|
@@ -5,9 +5,10 @@
|
|
|
<div class="container normal-panel" style="padding-top:0">
|
|
|
<tableLayout :layout="tablecols" :data="list" :custom="true" height="calc(100vh - 212px)" @rowClick="rowClick">
|
|
|
<template v-slot:customcol="scope">
|
|
|
- <div v-if="scope.column.columnname === 'classname'">
|
|
|
- <p>{{scope.column.data.classname}}</p>
|
|
|
- <el-input
|
|
|
+ <div v-if="scope.column.columnname === 'classname'" style="display:flex;align-items:center">
|
|
|
+ <p style="margin-right:10px">{{scope.column.data.classname}}</p>
|
|
|
+ <el-tag v-if="scope.column.data.issystem == 1" size="mini">系统</el-tag>
|
|
|
+ <!-- <el-input
|
|
|
class="input-new-tag"
|
|
|
v-if="scope.column.data.sat_courseware_classid === activeid"
|
|
|
v-model="inputValue"
|
|
@@ -16,7 +17,7 @@
|
|
|
@keyup.enter.native="handleInputConfirm"
|
|
|
@blur="handleInputConfirm"
|
|
|
>
|
|
|
- </el-input>
|
|
|
+ </el-input> -->
|
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname === 'isenable'">
|
|
|
<slot name="start" :data="scope"></slot>
|
|
@@ -24,9 +25,9 @@
|
|
|
<p v-else>{{scope.column.data[scope.column.columnname]}}</p>
|
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
|
- <slot name="edit" :data="scope"></slot>
|
|
|
+ <slot name="edit" :data="scope" v-if="scope.data.issystem != 1"></slot>
|
|
|
<slot name="addChild" :data="scope"></slot>
|
|
|
- <slot name="del" :data="scope"></slot>
|
|
|
+ <slot name="del" :data="scope" v-if="scope.data.issystem != 1"></slot>
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
</div>
|
|
@@ -46,8 +47,8 @@
|
|
|
<p v-else>{{scope.column.data[scope.column.columnname]}}</p>
|
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
|
- <slot name="childedit" :data="scope"></slot>
|
|
|
- <slot name="childdel" :data="scope"></slot>
|
|
|
+ <slot name="childedit" :data="scope" v-if="scope.data.issystem != 1"></slot>
|
|
|
+ <slot name="childdel" :data="scope" v-if="scope.data.issystem != 1"></slot>
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
</div>
|
|
@@ -77,10 +78,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.list = res.data
|
|
|
+ console.log(this.list);
|
|
|
+
|
|
|
// 查看当前选中分类
|
|
|
this.act_index?this.act_index:this.act_index = 0
|
|
|
this.rowClick(res.data[this.act_index])
|
|
|
- console.log(this.list);
|
|
|
|
|
|
},
|
|
|
showInput(val) {
|
|
@@ -111,6 +113,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
+ console.log('eeeeeeeeeeeeeeeeeeeeeeeeeeeee');
|
|
|
+
|
|
|
this.coursewareclass()
|
|
|
},
|
|
|
created () {
|