|
@@ -95,39 +95,9 @@
|
|
|
>导出
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- v-if="queryParams.isShow==0"
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="putOn"
|
|
|
- v-hasPermi="['course:userCourse:putOn']"
|
|
|
- >上架
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- v-if="queryParams.isShow==1"
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="pullOff"
|
|
|
- v-hasPermi="['course:userCourse:pullOff']"
|
|
|
- >下架
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-tabs type="card" v-model="queryParams.isShow" @tab-click="handleClick">
|
|
|
- <el-tab-pane label="已上架" name="1"></el-tab-pane>
|
|
|
- <el-tab-pane label="待上架" name="0"></el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
<el-table height="600" border v-loading="loading" :data="userCourseList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="课程ID" align="center" prop="courseId"/>
|
|
@@ -156,15 +126,6 @@
|
|
|
@click="handleCatalog(scope.row)"
|
|
|
>目录管理
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- :icon="scope.row.isShow === 1 ? 'el-icon-close' : 'el-icon-open'"
|
|
|
- @click="handleShow(scope.row)"
|
|
|
- v-hasPermi="['course:userCourse:editShow']"
|
|
|
- >
|
|
|
- {{ scope.row.isShow === 1 ? '下架' : '上架' }}
|
|
|
- </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -494,10 +455,6 @@ export default {
|
|
|
this.$refs.userCourseCatalogDetails.getDetails(courseId, row.courseName, row.isPrivate);
|
|
|
}, 200);
|
|
|
},
|
|
|
- handleClick(tab, event) {
|
|
|
- this.queryParams.isShow = tab.name;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
/** 转换课堂分类数据结构 */
|
|
|
normalizer(node) {
|
|
|
if (node.children && !node.children.length) {
|