课程管理功能细化
This commit is contained in:
@@ -162,6 +162,10 @@
|
||||
ref="addOrUpdate"
|
||||
@refreshDataList="getDataList"
|
||||
></add-or-update>
|
||||
<move-course
|
||||
v-if="drawerVisible"
|
||||
ref="moveCourse" @mycloseDrawer="mycloseDrawer"
|
||||
></move-course>
|
||||
<price
|
||||
v-if="priceVisible"
|
||||
ref="priceUpdate"
|
||||
@@ -171,6 +175,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import moveCourse from "./moveCourse.vue";
|
||||
import AddOrUpdate from "./catalogue-add-or-update";
|
||||
import price from "./catalogue-price";
|
||||
export default {
|
||||
@@ -185,6 +190,7 @@ export default {
|
||||
sociologyId: "",
|
||||
keywords: ""
|
||||
},
|
||||
drawerVisible:false,
|
||||
dataList: [],
|
||||
delFlag: false,
|
||||
pageIndex: 1,
|
||||
@@ -201,7 +207,8 @@ export default {
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,
|
||||
price
|
||||
price,
|
||||
moveCourse
|
||||
},
|
||||
activated() {
|
||||
this.courseid = this.$route.query.id;
|
||||
@@ -237,7 +244,12 @@ export default {
|
||||
}
|
||||
this.dataListLoading = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
mycloseDrawer(val){
|
||||
console.log('999999',val)
|
||||
this.drawerVisible = false
|
||||
this.getDataList()
|
||||
},
|
||||
migrate(item){
|
||||
// 课程迁移
|
||||
console.log(item)
|
||||
@@ -246,15 +258,16 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.drawerVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs["moveCourse"].getDataList();
|
||||
});
|
||||
// this.$message({
|
||||
// type: 'success',
|
||||
// message: '删除成功!'
|
||||
// });
|
||||
}).catch(() => {
|
||||
// this.$message({
|
||||
// type: 'info',
|
||||
// message: '已取消删除'
|
||||
// });
|
||||
|
||||
})
|
||||
},
|
||||
// 每页数
|
||||
|
||||
Reference in New Issue
Block a user