mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
讲师管理bug
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user