mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
课程管理列表适应管理端的调整
This commit is contained in:
@@ -374,14 +374,19 @@ export default {
|
||||
catalogs: {
|
||||
addNewZhang: false,
|
||||
addNewCell: false,
|
||||
}
|
||||
},
|
||||
extendRefId:'',
|
||||
extendRefType:'',
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
let chooseFlag=this.$route.query.f;
|
||||
this.extendRefId=this.$route.query.refId;
|
||||
this.extendRefType=this.$route.query.refId;
|
||||
if(chooseFlag && chooseFlag=='choose'){
|
||||
this.forChoose=true;
|
||||
}
|
||||
|
||||
if(this.$route.query && this.$route.query.page && this.$route.query.page == 'manage') {
|
||||
this.pageManage=true;
|
||||
}
|
||||
@@ -484,12 +489,18 @@ export default {
|
||||
},
|
||||
// 复制
|
||||
copyCourse(item) {
|
||||
let $this=this;
|
||||
this.$confirm('您确定要复制此课程吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
apiCourse.copyCourse(item.id).then(rs=>{
|
||||
let reqdata={
|
||||
id:item.id,
|
||||
refId:$this.extendRefId,
|
||||
refType:$this.extendRefType,
|
||||
}
|
||||
apiCourse.copyCourse(reqdata).then(rs=>{
|
||||
if(rs.status==200){
|
||||
this.$message.success("复制课程成功");
|
||||
this.searchData();
|
||||
@@ -614,6 +625,12 @@ export default {
|
||||
if(pageReset){
|
||||
this.page.pageIndex=1;
|
||||
}
|
||||
if(this.extendRefId){
|
||||
this.params.refId=this.extendRefId;
|
||||
}
|
||||
if(this.extendRefType){
|
||||
this.params.refType=this.extendRefType;
|
||||
}
|
||||
this.params.resOwner1 = this.resOwner[0];
|
||||
this.params.resOwner2 = this.resOwner[1];
|
||||
this.params.resOwner3 = this.resOwner[2];
|
||||
|
||||
Reference in New Issue
Block a user