Commit 12835f40 authored by 王's avatar

期数课程bug

parent e87874e5
......@@ -32,7 +32,7 @@
</el-table-column>
<el-table-column label="操作" v-if="!$store.state.readonly" width="300">
<template slot-scope="scope">
<el-button type="warning" size="mini" @click="editComment(scope.row.user_id, scope.row.desc)" v-if="!$store.state.readonly">编辑备注</el-button>
<el-button type="warning" size="mini" @click="editComment(scope.row.id, scope.row.desc)" v-if="!$store.state.readonly">编辑备注</el-button>
<el-button type="warning" size="mini" @click="changeUser(scope.row)" v-if="!$store.state.readonly">更改看课权限</el-button>
<el-button type="danger" size="mini" @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button>
</template>
......
......@@ -227,7 +227,6 @@
// });
break;
case 0:
console.log(this.form);
// this.$refs['form'].validate((valid) => {
// if(valid){
addLessonApi(json).then(res=>{
......@@ -288,7 +287,10 @@
});
}else if(resL.type === 1){
resL.detail['1'].forEach(t=>{
let x = this.showLessonList.find(i=>{return i.children.find(j=>{return j.id === t.pid})})
let x = this.showLessonList.find(i=>{
i.children = i.children || [];
return i.children.find(j=>{return j.id === t.pid})
})
this.selectLesson([x.id,t.pid,t.id])
})
}
......@@ -342,7 +344,6 @@
this.selectedBoxList.splice(second,1,oFirst);
},
moveItem(first,second){
console.log('moveItem', first, second);
let list = this.selectedLessonList;
let oFirst = list[first];
let oSecond = list[second];
......
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