讲师管理bug

This commit is contained in:
zhangsir
2024-12-14 13:35:16 +08:00
parent 31aea6411c
commit 52fd9f768d
5 changed files with 25 additions and 17 deletions

View File

@@ -172,7 +172,7 @@
</div>
</a-tab-pane>
</a-tabs>
<div :style="{
<div v-if="formParam?.status==1||formParam?.status==5" :style="{
position: 'absolute',
right: 0,
bottom: 0,
@@ -184,7 +184,7 @@
zIndex: 1,
}">
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">确定
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog(1)" :loading="buttonLoading">提交
</a-button>
<!-- <a-button class="drabtn" @click="cancelTeachingDialog" type="primary" danger>拒绝</a-button> -->
</div>
@@ -481,7 +481,7 @@
ellipsis: true,
align: "center",
width: 120,
customCell: (record) => {return{style:{color:['#67C23A','#F56C6C'][record.status]}}},
// customCell: (record) => {return{style:{color:['#67C23A','#F56C6C'][record.status]}}},
customRender: (value) => {
switch (value.record.status) {
case 0:
@@ -598,9 +598,14 @@
})
}
//取消按钮 清空输入的数据
const cancelTeachingDialog = () => {
const cancelTeachingDialog = (val) => {
if(state.teachingdialog = true )
{
console.log(val,'valllllll')
if(val == 1){
submit(state.formParam)
return
}
state.teachingdialog = false
cancel()
}
@@ -705,10 +710,13 @@
if(res.data.code == 200){
message.success('提交成功')
getTableDate();
cancel()
state.teachingdialog = false
}
}).catch(err=>{
message.destroy()
cancel()
state.teachingdialog = false
message.error(err.data.msg)
})
}