mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
学习路径图课程不能编辑和删除
This commit is contained in:
@@ -445,7 +445,7 @@ const columns = ref([
|
|||||||
return (
|
return (
|
||||||
<div class="opa">
|
<div class="opa">
|
||||||
<a style="margin-right:10px;" onClick={() => planEdit(record)}>编辑</a>
|
<a style="margin-right:10px;" onClick={() => planEdit(record)}>编辑</a>
|
||||||
<a onClick={() => del(record.id)}>删除</a>
|
<a onClick={() => del(record.id,record)}>删除</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -572,7 +572,15 @@ const createNewCourse = () => {
|
|||||||
};
|
};
|
||||||
const handleCancelStu = () => offCourseNewVisiable.value = false;
|
const handleCancelStu = () => offCourseNewVisiable.value = false;
|
||||||
|
|
||||||
const del = (id) => {
|
const expenseStatus = {
|
||||||
|
A10:false,
|
||||||
|
S00:false
|
||||||
|
}
|
||||||
|
const del = (id,record) => {
|
||||||
|
console.log(record,'删除');
|
||||||
|
if (record.expenseStatus && expenseStatus[record.expenseStatus]) {
|
||||||
|
return message.warning("该开课已在审批流程中,不可进行删除!");
|
||||||
|
}
|
||||||
dialog({
|
dialog({
|
||||||
content: "确定删除此开课吗?",
|
content: "确定删除此开课吗?",
|
||||||
ok: async () => {
|
ok: async () => {
|
||||||
@@ -612,6 +620,9 @@ async function coursePlanConfirm() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function planEdit(record) {
|
function planEdit(record) {
|
||||||
|
if (record.expenseStatus && expenseStatus[record.expenseStatus]) {
|
||||||
|
return message.warning("该开课已在审批流程中,不可进行编辑!");
|
||||||
|
}
|
||||||
onceName.value = record.name;
|
onceName.value = record.name;
|
||||||
formData.value = { ...record };
|
formData.value = { ...record };
|
||||||
validated.value = 0;
|
validated.value = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user