Commit 03e6fd44 authored by 黄奎's avatar 黄奎

教案修改

parent 02992e64
......@@ -46,10 +46,9 @@
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
{{props.row}}
<!--to="/course/teachplan?CourseId="+0+""-->
<!--to=""+0+""-->
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="教案"
></q-btn>
@click="gotoTeach(props.row)"></q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditCourse(props.row)" />
</q-td>
......@@ -172,6 +171,12 @@
this.getcourselist();
},
methods: {
gotoTeach(obj) {
var tempStr = '/course/teachplan?CourseId=' + obj.CourseId;
this.$router.push({
path: tempStr
});
},
//分类改变
getChild(cateArray) {
var tempStr = "";
......
......@@ -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="deleteTeach(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>
......@@ -120,13 +120,20 @@
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
CourseId: 1,
CourseId: 0,
},
CourseId: 0,
pageCount: 0,
IsShowTeachForm: false,
teachPlanObj: null,
}
},
created() {
if (this.$route.query.CourseId) {
this.CourseId = this.$route.query.CourseId
this.msg.CourseId = this.CourseId;
}
},
mounted() {
this.currentUrl = this.$route.path
this.getteachplanList();
......@@ -199,7 +206,7 @@
}
})
}).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