作业发布是提示改为发布成功。切换表格视图时刷新页面-作业、问卷、测试。

This commit is contained in:
曹磊 2024-05-24 17:01:01 +08:00
parent 90277527b4
commit 0ca5a40f38
6 changed files with 12 additions and 14 deletions

View File

@ -3,10 +3,10 @@
<div style="text-align:right;width:100%;"> <div style="text-align:right;width:100%;">
<a-switch v-model:checked="checked1" @change="onChange1"/> <a-switch v-model:checked="checked1" @change="onChange1"/>
</div> </div>
<div v-show="checked1"> <div v-if="checked1">
<WjxCswjList/> <WjxCswjList/>
</div> </div>
<div v-show="!checked1"> <div v-if="!checked1">
<WjxCswjTableList/> <WjxCswjTableList/>
</div> </div>
</div> </div>

View File

@ -3,10 +3,10 @@
<div style="text-align:right;width:100%;"> <div style="text-align:right;width:100%;">
<a-switch v-model:checked="checked1" @change="onChange1"/> <a-switch v-model:checked="checked1" @change="onChange1"/>
</div> </div>
<div v-show="checked1"> <div v-if="checked1">
<WjxCswjList/> <WjxCswjList/>
</div> </div>
<div v-show="!checked1"> <div v-if="!checked1">
<WjxCswjTableList/> <WjxCswjTableList/>
</div> </div>
</div> </div>

View File

@ -3,10 +3,10 @@
<div style="text-align:right;width:100%;"> <div style="text-align:right;width:100%;">
<a-switch v-model:checked="checked1" @change="onChange1"/> <a-switch v-model:checked="checked1" @change="onChange1"/>
</div> </div>
<div v-show="checked1"> <div v-if="checked1">
<WjxDcwjList/> <WjxDcwjList/>
</div> </div>
<div v-show="!checked1"> <div v-if="!checked1">
<WjxDcwjTableList/> <WjxDcwjTableList/>
</div> </div>
</div> </div>

View File

@ -3,10 +3,10 @@
<div style="text-align:right;width:100%;"> <div style="text-align:right;width:100%;">
<a-switch v-model:checked="checked1" @change="onChange1"/> <a-switch v-model:checked="checked1" @change="onChange1"/>
</div> </div>
<div v-show="checked1"> <div v-if="checked1">
<WjxDcwjList/> <WjxDcwjList/>
</div> </div>
<div v-show="!checked1"> <div v-if="!checked1">
<WjxDcwjTableList/> <WjxDcwjTableList/>
</div> </div>
</div> </div>

View File

@ -202,7 +202,7 @@ import dayjs from 'dayjs';
okText: '确认', okText: '确认',
cancelText: '取消', cancelText: '取消',
onOk: () => { onOk: () => {
var url = "/zyInfo/zyInfo/edit"; var url = "/zyInfo/zyInfo/release";
var params = {id:record.id,zyStatus:'1'}; var params = {id:record.id,zyStatus:'1'};
defHttp.post({ url: url, params }).then((res) => { defHttp.post({ url: url, params }).then((res) => {
handleZySuccess(record.id); handleZySuccess(record.id);

View File

@ -3,10 +3,10 @@
<div style="text-align:right;width:100%;"> <div style="text-align:right;width:100%;">
<a-switch v-model:checked="checked1" @change="onChange1"/> <a-switch v-model:checked="checked1" @change="onChange1"/>
</div> </div>
<div v-show="checked1"> <div v-if="checked1">
<ZyInfoList/> <ZyInfoList/>
</div> </div>
<div v-show="!checked1"> <div v-if="!checked1">
<ZyInfoLiebiaoList/> <ZyInfoLiebiaoList/>
</div> </div>
</div> </div>
@ -17,11 +17,9 @@
import ZyInfoLiebiaoList from '/@/views/zy/zyInfo/ZyInfoLiebiaoList.vue' import ZyInfoLiebiaoList from '/@/views/zy/zyInfo/ZyInfoLiebiaoList.vue'
import ZyInfoList from '/@/views/zy/zyInfo/ZyInfoList.vue' import ZyInfoList from '/@/views/zy/zyInfo/ZyInfoList.vue'
const checked1 = ref(true); const checked1 = ref(true);
function onChange1(record){ function onChange1(record){
console.log(`🚀 ~ onChange1 ~ record:`, record)
} }
</script> </script>