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

教案修改

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