mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
讲师管理bug
This commit is contained in:
@@ -4474,9 +4474,13 @@ function onFocusEnd(){
|
|||||||
dialog({
|
dialog({
|
||||||
content: "确定撤回吗?",
|
content: "确定撤回吗?",
|
||||||
ok: () => {
|
ok: () => {
|
||||||
|
handle({ offcourseId: id, type: 0 }).then(res=>{
|
||||||
message.success("撤回成功");
|
message.success("撤回成功");
|
||||||
record.publishStatus ? (state.tableData1[index].publishStatus = 0) : (state.tableData1[index].auditStatus = 0);
|
record.publishStatus ? (state.tableData1[index].publishStatus = 0) : (state.tableData1[index].auditStatus = 0);
|
||||||
handle({ offcourseId: id, type: 0 });
|
}).catch(err=>{
|
||||||
|
message.destroy();
|
||||||
|
message.error(err.data.msg);
|
||||||
|
})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -4860,10 +4864,14 @@ function onFocusEnd(){
|
|||||||
dialog({
|
dialog({
|
||||||
content: "确定删除该课程吗?",
|
content: "确定删除该课程吗?",
|
||||||
ok: async () => {
|
ok: async () => {
|
||||||
|
await handle({ offcourseId: id, type: -1 }).then(res=>{
|
||||||
message.success("删除成功");
|
message.success("删除成功");
|
||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
await handle({ offcourseId: id, type: -1 });
|
|
||||||
getTableDate();
|
getTableDate();
|
||||||
|
}).catch(err=>{
|
||||||
|
message.destroy()
|
||||||
|
message.error(err.data.msg)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -4912,9 +4920,14 @@ function onFocusEnd(){
|
|||||||
dialog({
|
dialog({
|
||||||
content: "确定停用该课程吗?",
|
content: "确定停用该课程吗?",
|
||||||
ok: () => {
|
ok: () => {
|
||||||
|
handle({ offcourseId: record.id, type: -2 }).then(res=>{
|
||||||
|
console.log(res,'handleStop')
|
||||||
message.success("停用成功");
|
message.success("停用成功");
|
||||||
record.status = 0;
|
record.status = 0;
|
||||||
handle({ offcourseId: record.id, type: -2 });
|
}).catch(err=>{
|
||||||
|
message.destroy()
|
||||||
|
message.error(err.data.msg)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1305,13 +1305,13 @@ export default {
|
|||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '应发费用 ',
|
// title: '应发费用 ',
|
||||||
dataIndex: 'payableExpense',
|
// dataIndex: 'payableExpense',
|
||||||
key: 'payableExpense',
|
// key: 'payableExpense',
|
||||||
ellipsis: true, align: "center",
|
// ellipsis: true, align: "center",
|
||||||
width: 120,
|
// width: 120,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '状态 ',
|
title: '状态 ',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
@@ -1320,14 +1320,15 @@ export default {
|
|||||||
width: 120,
|
width: 120,
|
||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div >
|
<div>
|
||||||
{value.record.status == "A10" || value.record.status == "A20" || value.record.status == "A30" || value.record.status == "E10" || value.record.status == "S20"
|
{String(value.record.status)
|
||||||
? {
|
? {
|
||||||
"A10": "待审核",
|
"0": "待确认",
|
||||||
"A20": "已提交",
|
"1": "待提交",
|
||||||
"A30": "审核中",
|
"2": "审核中",
|
||||||
"E10": "审核打回",
|
"3": "审核通过",
|
||||||
"S20": "审核通过",
|
'4': '审核拒绝',
|
||||||
|
'5': '待提交',
|
||||||
}[value.record.status + ""] || ""
|
}[value.record.status + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user