Commit 5cdd043e authored by 黄奎's avatar 黄奎

页面修改

parent 4458daf1
......@@ -165,3 +165,16 @@ export function saveTeachPlanInfo(data) {
data
})
}
/**
* 删除课程教案
* @param {JSON参数} data
*/
export function removeTeachPlanInfo(data)
{
return request({
url: "/Course/RemoveTeachPlan",
method: 'post',
data
})
}
......@@ -46,8 +46,10 @@
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
{{props.row}}
<!--to="/course/teachplan?CourseId="+0+""-->
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="教案"
@click="EditCourse(props.row)"></q-btn>
></q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditCourse(props.row)" />
</q-td>
......
......@@ -47,7 +47,7 @@
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="accent" style="font-weight:400" label="删除"
@click="EditTeachPlan(props.row)"></q-btn>
@click="deleteTeach(props.row)" ></q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditTeachPlan(props.row)" />
</q-td>
......@@ -63,6 +63,7 @@
<script>
import {
queryTeachPlanPage,
removeTeachPlanInfo
} from '../../api/course/index'
import teachplanForm from '../../components/course/teachplan-form'
......@@ -169,6 +170,38 @@
//关闭弹窗
closeTeachSaveForm() {
this.IsShowTeachForm = false
},
//删除教案
deleteTeach(obj) {
console.log("obj", obj);
var that = this;
var delMsg = {
PlanId: obj.PlanId,
};
var tipMsg = "是否删除【" + obj.PlanName + "】教案?";;
this.$q.dialog({
title: '提示信息',
message: tipMsg,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
removeTeachPlanInfo(delMsg).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
that.getteachplanList();
}
})
}).onCancel(() => {
});
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment