This commit is contained in:
闫晓茹 2023-04-26 16:04:28 +08:00
parent ea51feb83e
commit d571b87c88

View File

@ -157,6 +157,7 @@
<el-table-column label="上架状态" align="center" prop="trainingShelfFlag"> <el-table-column label="上架状态" align="center" prop="trainingShelfFlag">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-if="scope.row.trainingItemType == 'LEARNING_ITEM_GROUP'"
v-model="scope.row.trainingShelfFlag" v-model="scope.row.trainingShelfFlag"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
@ -950,7 +951,6 @@ export default {
itemDirectoryUrl: null, itemDirectoryUrl: null,
itemDirectoryIntroduce: null, itemDirectoryIntroduce: null,
itemDirectorySort: null, itemDirectorySort: null,
}, },
], ],
}, },
@ -1303,7 +1303,7 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.form.trainingParentName="请选择所属培训课程组" this.form.trainingParentName = "请选择所属培训课程组";
this.form = { this.form = {
trainingItemDirectoryList: [ trainingItemDirectoryList: [
{ {