调查问卷-问卷结果没有查看答卷结果操作

This commit is contained in:
曹磊 2024-05-28 15:49:10 +08:00
parent 24341183a5
commit cbf4286ef5
4 changed files with 22 additions and 13 deletions

View File

@ -66,7 +66,7 @@
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">问卷预览</a-button> <a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">问卷预览</a-button>
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷详情</a-button> <a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷详情</a-button>
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷预览</a-button> <a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷预览</a-button>
<a-button type="primary" @click="handleDjjgs(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷结果</a-button> <a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">问卷结果</a-button>
</a-col> </a-col>
<!-- <a-col :span="24" style="text-align:center;margin-top:20px;">--> <!-- <a-col :span="24" style="text-align:center;margin-top:20px;">-->
<!-- <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">答卷</a-button>--> <!-- <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">答卷</a-button>-->

View File

@ -97,7 +97,7 @@ import {ref, reactive, defineExpose, unref} from 'vue';
* 操作栏 * 操作栏
*/ */
function getTableAction(record) { function getTableAction(record) {
if(record.totalScore>0){ if(record.commitTime != null && record.commitTime != ''){
return [ return [
{ {
label: '答卷结果', label: '答卷结果',
@ -107,7 +107,7 @@ import {ref, reactive, defineExpose, unref} from 'vue';
}else{ }else{
return []; return [];
} }
} }
function init(record,flag){ function init(record,flag){

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div>
<div class="jeecg-basic-table-form-container"> <div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24"> <a-row :gutter="24">
@ -27,7 +27,7 @@
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable" > <BasicTable @register="registerTable" >
<!--操作栏--> <!--操作栏-->
<template #action="{ record }" v-if="isFinished=='1'"> <template #action="{ record }">
<TableAction :actions="getTableAction(record)"/> <TableAction :actions="getTableAction(record)"/>
</template> </template>
</BasicTable> </BasicTable>
@ -89,15 +89,22 @@ import {ref, reactive, defineExpose, unref} from 'vue';
* 操作栏 * 操作栏
*/ */
function getTableAction(record) { function getTableAction(record) {
return [ console.log(record);
{ if(record.commitTime != null && record.commitTime != ''){
label: '答卷结果', return [
onClick: handlePeizhiDjjg.bind(null, record), {
} label: '答卷结果',
] onClick: handlePeizhiDjjg.bind(null, record),
}
]
}else{
return [];
}
} }
function init(record,flag){ function init(record,flag){
console.log(record);
console.log(flag);
queryParam.value.id = record.id; queryParam.value.id = record.id;
queryParam.value.rwbh = record.rwbh; queryParam.value.rwbh = record.rwbh;
queryParam.value.isFinished = flag; queryParam.value.isFinished = flag;

View File

@ -22,8 +22,10 @@
function edit(record,flag) { function edit(record,flag) {
if(flag == '1'){ if(flag == '1'){
title.value = '已完成答卷学生列表'; title.value = '已完成答卷学生列表';
}else{ }else if(flag == '0'){
title.value = '已完成答卷学生列表'; title.value = '未完成答卷学生列表';
}else if(flag == ''){
title.value = '全部答卷学生列表';
} }
visible.value = true; visible.value = true;
nextTick(() => { nextTick(() => {