运维学堂-课程管理模块
This commit is contained in:
parent
7c961676b2
commit
c1a5f98a9c
@ -44,7 +44,7 @@ export function delCourseOnline(classId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 修改在线课程信息状态
|
// 修改在线课程信息状态
|
||||||
export function changeStatus(data) {
|
export function changeOnlineStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/operations/courseOnline/changeStatus',
|
url: '/operations/courseOnline/changeStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
@ -44,7 +44,7 @@ export function delCourseVideo(courseId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 修改在线课程信息状态
|
// 修改在线课程信息状态
|
||||||
export function changeStatus(data) {
|
export function changeVideoStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/operations/courseVideo/changeStatus',
|
url: '/operations/courseVideo/changeStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
@ -27,67 +27,67 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="status">
|
<!-- <el-form-item label="状态" prop="status">-->
|
||||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
|
<!-- <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>-->
|
||||||
<el-option
|
<!-- <el-option-->
|
||||||
v-for="dict in dict.type.sys_normal_disable"
|
<!-- v-for="dict in dict.type.sys_normal_disable"-->
|
||||||
:key="dict.value"
|
<!-- :key="dict.value"-->
|
||||||
:label="dict.label"
|
<!-- :label="dict.label"-->
|
||||||
:value="dict.value"
|
<!-- :value="dict.value"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</el-select>
|
<!-- </el-select>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<!-- <el-row :gutter="10" class="mb8">-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-plus"
|
<!-- icon="el-icon-plus"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleAdd"
|
<!-- @click="handleAdd"-->
|
||||||
v-hasPermi="['operations:courseOnline:add']"
|
<!-- v-hasPermi="['operations:courseOnline:add']"-->
|
||||||
>新增</el-button>
|
<!-- >新增</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="success"
|
<!-- type="success"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="single"
|
<!-- :disabled="single"-->
|
||||||
@click="handleUpdate"
|
<!-- @click="handleUpdate"-->
|
||||||
v-hasPermi="['operations:courseOnline:edit']"
|
<!-- v-hasPermi="['operations:courseOnline:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="danger"
|
<!-- type="danger"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="multiple"
|
<!-- :disabled="multiple"-->
|
||||||
@click="handleDelete"
|
<!-- @click="handleDelete"-->
|
||||||
v-hasPermi="['operations:courseOnline:remove']"
|
<!-- v-hasPermi="['operations:courseOnline:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="warning"
|
<!-- type="warning"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-download"
|
<!-- icon="el-icon-download"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleExport"
|
<!-- @click="handleExport"-->
|
||||||
v-hasPermi="['operations:courseOnline:export']"
|
<!-- v-hasPermi="['operations:courseOnline:export']"-->
|
||||||
>导出</el-button>
|
<!-- >导出</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
||||||
</el-row>
|
<!-- </el-row>-->
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="courseOnlineList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="courseOnlineList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
@ -103,28 +103,28 @@
|
|||||||
<el-table-column label="课程开始时间" align="center" prop="classStartTime" width="180"/>
|
<el-table-column label="课程开始时间" align="center" prop="classStartTime" width="180"/>
|
||||||
<el-table-column label="课程结束时间" align="center" prop="classEndTime" width="180"/>
|
<el-table-column label="课程结束时间" align="center" prop="classEndTime" width="180"/>
|
||||||
<el-table-column label="参加方式" align="center" prop="classJoinMethod" />
|
<el-table-column label="参加方式" align="center" prop="classJoinMethod" />
|
||||||
<el-table-column label="状态" align="center" prop="status" >
|
<!-- <el-table-column label="状态" align="center" prop="status" >-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
|
<!-- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
@click="handleUpdate(scope.row)"
|
<!-- @click="handleUpdate(scope.row)"-->
|
||||||
v-hasPermi="['operations:courseOnline:edit']"
|
<!-- v-hasPermi="['operations:courseOnline:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleDelete(scope.row)"
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
v-hasPermi="['operations:courseOnline:remove']"
|
<!-- v-hasPermi="['operations:courseOnline:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -139,22 +139,22 @@
|
|||||||
@click="handleUnStar(scope.row)"
|
@click="handleUnStar(scope.row)"
|
||||||
v-if="scope.row.status === '0' && scope.row.starId != null"
|
v-if="scope.row.status === '0' && scope.row.starId != null"
|
||||||
>已收藏</el-button>
|
>已收藏</el-button>
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStart(scope.row)"
|
<!-- @click="handleStart(scope.row)"-->
|
||||||
v-if="scope.row.status === '1'"
|
<!-- v-if="scope.row.status === '1'"-->
|
||||||
v-hasPermi="['operations:courseOnline:changeStatus']"
|
<!-- v-hasPermi="['operations:courseOnline:changeStatus']"-->
|
||||||
>启用</el-button>
|
<!-- >启用</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStop(scope.row)"
|
<!-- @click="handleStop(scope.row)"-->
|
||||||
v-if="scope.row.status === '0'"
|
<!-- v-if="scope.row.status === '0'"-->
|
||||||
v-hasPermi="['operations:courseOnline:changeStatus']"
|
<!-- v-hasPermi="['operations:courseOnline:changeStatus']"-->
|
||||||
>停用</el-button>
|
<!-- >停用</el-button>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -221,7 +221,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listCourseOnline, getCourseOnline, delCourseOnline, addCourseOnline, updateCourseOnline,changeStatus } from "@/api/operations/courseOnline";
|
import { listCourseOnline, getCourseOnline, delCourseOnline, addCourseOnline, updateCourseOnline,changeOnlineStatus } from "@/api/operations/courseOnline";
|
||||||
import { star } from "@/api/operations/collect";
|
import { star } from "@/api/operations/collect";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -327,7 +327,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//设置状态
|
//设置状态
|
||||||
handleChangeStatus(form){
|
handleChangeStatus(form){
|
||||||
changeStatus(form).then(()=>{
|
changeOnlineStatus(form).then(()=>{
|
||||||
this.$modal.msgSuccess("状态修改成功");
|
this.$modal.msgSuccess("状态修改成功");
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
})
|
||||||
@ -335,6 +335,7 @@ export default {
|
|||||||
/** 查询在线课程信息列表 */
|
/** 查询在线课程信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.queryParams.status = '0';
|
||||||
listCourseOnline(this.queryParams).then(response => {
|
listCourseOnline(this.queryParams).then(response => {
|
||||||
this.courseOnlineList = response.rows;
|
this.courseOnlineList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
@ -14,67 +14,67 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="status">
|
<!-- <el-form-item label="状态" prop="status">-->
|
||||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
|
<!-- <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>-->
|
||||||
<el-option
|
<!-- <el-option-->
|
||||||
v-for="dict in dict.type.sys_normal_disable"
|
<!-- v-for="dict in dict.type.sys_normal_disable"-->
|
||||||
:key="dict.value"
|
<!-- :key="dict.value"-->
|
||||||
:label="dict.label"
|
<!-- :label="dict.label"-->
|
||||||
:value="dict.value"
|
<!-- :value="dict.value"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</el-select>
|
<!-- </el-select>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<!-- <el-row :gutter="10" class="mb8">-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-plus"
|
<!-- icon="el-icon-plus"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleAdd"
|
<!-- @click="handleAdd"-->
|
||||||
v-hasPermi="['operations:courseVideo:add']"
|
<!-- v-hasPermi="['operations:courseVideo:add']"-->
|
||||||
>新增</el-button>
|
<!-- >新增</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="success"
|
<!-- type="success"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="single"
|
<!-- :disabled="single"-->
|
||||||
@click="handleUpdate"
|
<!-- @click="handleUpdate"-->
|
||||||
v-hasPermi="['operations:courseVideo:edit']"
|
<!-- v-hasPermi="['operations:courseVideo:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="danger"
|
<!-- type="danger"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="multiple"
|
<!-- :disabled="multiple"-->
|
||||||
@click="handleDelete"
|
<!-- @click="handleDelete"-->
|
||||||
v-hasPermi="['operations:courseVideo:remove']"
|
<!-- v-hasPermi="['operations:courseVideo:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="warning"
|
<!-- type="warning"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-download"
|
<!-- icon="el-icon-download"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleExport"
|
<!-- @click="handleExport"-->
|
||||||
v-hasPermi="['operations:courseVideo:export']"
|
<!-- v-hasPermi="['operations:courseVideo:export']"-->
|
||||||
>导出</el-button>
|
<!-- >导出</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
||||||
</el-row>
|
<!-- </el-row>-->
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="courseVideoList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="courseVideoList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
@ -91,27 +91,27 @@
|
|||||||
<img :src="scope.row.courseCoverPath" style="width: 80px;height: 80px" :alt="scope.row.courseFileName">
|
<img :src="scope.row.courseCoverPath" style="width: 80px;height: 80px" :alt="scope.row.courseFileName">
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" >
|
<!-- <el-table-column label="状态" align="center" prop="status" >-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
|
<!-- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
@click="handleUpdate(scope.row)"
|
<!-- @click="handleUpdate(scope.row)"-->
|
||||||
v-hasPermi="['operations:courseVideo:edit']"
|
<!-- v-hasPermi="['operations:courseVideo:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleDelete(scope.row)"
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
v-hasPermi="['operations:courseVideo:remove']"
|
<!-- v-hasPermi="['operations:courseVideo:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -126,22 +126,22 @@
|
|||||||
@click="handleUnStar(scope.row)"
|
@click="handleUnStar(scope.row)"
|
||||||
v-if="scope.row.status === '0' && scope.row.starId != null"
|
v-if="scope.row.status === '0' && scope.row.starId != null"
|
||||||
>已收藏</el-button>
|
>已收藏</el-button>
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStart(scope.row)"
|
<!-- @click="handleStart(scope.row)"-->
|
||||||
v-if="scope.row.status === '1'"
|
<!-- v-if="scope.row.status === '1'"-->
|
||||||
v-hasPermi="['operations:courseVideo:changeStatus']"
|
<!-- v-hasPermi="['operations:courseVideo:changeStatus']"-->
|
||||||
>启用</el-button>
|
<!-- >启用</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStop(scope.row)"
|
<!-- @click="handleStop(scope.row)"-->
|
||||||
v-if="scope.row.status === '0'"
|
<!-- v-if="scope.row.status === '0'"-->
|
||||||
v-hasPermi="['operations:courseVideo:changeStatus']"
|
<!-- v-hasPermi="['operations:courseVideo:changeStatus']"-->
|
||||||
>停用</el-button>
|
<!-- >停用</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -205,7 +205,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listCourseVideo, getCourseVideo, delCourseVideo, addCourseVideo, updateCourseVideo,changeStatus } from "@/api/operations/courseVideo";
|
import { listCourseVideo, getCourseVideo, delCourseVideo, addCourseVideo, updateCourseVideo,changeVideoStatus } from "@/api/operations/courseVideo";
|
||||||
import { star } from "@/api/operations/collect";
|
import { star } from "@/api/operations/collect";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//设置状态
|
//设置状态
|
||||||
handleChangeStatus(form){
|
handleChangeStatus(form){
|
||||||
changeStatus(form).then(()=>{
|
changeVideoStatus(form).then(()=>{
|
||||||
this.$modal.msgSuccess("状态修改成功");
|
this.$modal.msgSuccess("状态修改成功");
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
})
|
||||||
@ -336,6 +336,7 @@ export default {
|
|||||||
/** 查询视频课程信息列表 */
|
/** 查询视频课程信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.queryParams.status = '0';
|
||||||
listCourseVideo(this.queryParams).then(response => {
|
listCourseVideo(this.queryParams).then(response => {
|
||||||
this.courseVideoList = response.rows;
|
this.courseVideoList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
@ -14,67 +14,67 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="status">
|
<!-- <el-form-item label="状态" prop="status">-->
|
||||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
|
<!-- <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>-->
|
||||||
<el-option
|
<!-- <el-option-->
|
||||||
v-for="dict in dict.type.sys_normal_disable"
|
<!-- v-for="dict in dict.type.sys_normal_disable"-->
|
||||||
:key="dict.value"
|
<!-- :key="dict.value"-->
|
||||||
:label="dict.label"
|
<!-- :label="dict.label"-->
|
||||||
:value="dict.value"
|
<!-- :value="dict.value"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</el-select>
|
<!-- </el-select>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<!-- <el-row :gutter="10" class="mb8">-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-plus"
|
<!-- icon="el-icon-plus"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleAdd"
|
<!-- @click="handleAdd"-->
|
||||||
v-hasPermi="['operations:document:add']"
|
<!-- v-hasPermi="['operations:document:add']"-->
|
||||||
>新增</el-button>
|
<!-- >新增</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="success"
|
<!-- type="success"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="single"
|
<!-- :disabled="single"-->
|
||||||
@click="handleUpdate"
|
<!-- @click="handleUpdate"-->
|
||||||
v-hasPermi="['operations:document:edit']"
|
<!-- v-hasPermi="['operations:document:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="danger"
|
<!-- type="danger"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
:disabled="multiple"
|
<!-- :disabled="multiple"-->
|
||||||
@click="handleDelete"
|
<!-- @click="handleDelete"-->
|
||||||
v-hasPermi="['operations:document:remove']"
|
<!-- v-hasPermi="['operations:document:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="warning"
|
<!-- type="warning"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-download"
|
<!-- icon="el-icon-download"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleExport"
|
<!-- @click="handleExport"-->
|
||||||
v-hasPermi="['operations:document:export']"
|
<!-- v-hasPermi="['operations:document:export']"-->
|
||||||
>导出</el-button>
|
<!-- >导出</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
||||||
</el-row>
|
<!-- </el-row>-->
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="documentList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="documentList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
@ -93,27 +93,27 @@
|
|||||||
<span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span>
|
<span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" >
|
<!-- <el-table-column label="状态" align="center" prop="status" >-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
|
<!-- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-edit"
|
<!-- icon="el-icon-edit"-->
|
||||||
@click="handleUpdate(scope.row)"
|
<!-- @click="handleUpdate(scope.row)"-->
|
||||||
v-hasPermi="['operations:document:edit']"
|
<!-- v-hasPermi="['operations:document:edit']"-->
|
||||||
>修改</el-button>
|
<!-- >修改</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleDelete(scope.row)"
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
v-hasPermi="['operations:document:remove']"
|
<!-- v-hasPermi="['operations:document:remove']"-->
|
||||||
>删除</el-button>
|
<!-- >删除</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -128,22 +128,22 @@
|
|||||||
@click="handleUnStar(scope.row)"
|
@click="handleUnStar(scope.row)"
|
||||||
v-if="scope.row.status === '0' && scope.row.starId != null"
|
v-if="scope.row.status === '0' && scope.row.starId != null"
|
||||||
>已收藏</el-button>
|
>已收藏</el-button>
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStart(scope.row)"
|
<!-- @click="handleStart(scope.row)"-->
|
||||||
v-if="scope.row.status === '1'"
|
<!-- v-if="scope.row.status === '1'"-->
|
||||||
v-hasPermi="['operations:document:changeStatus']"
|
<!-- v-hasPermi="['operations:document:changeStatus']"-->
|
||||||
>启用</el-button>
|
<!-- >启用</el-button>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click="handleStop(scope.row)"
|
<!-- @click="handleStop(scope.row)"-->
|
||||||
v-if="scope.row.status === '0'"
|
<!-- v-if="scope.row.status === '0'"-->
|
||||||
v-hasPermi="['operations:document:changeStatus']"
|
<!-- v-hasPermi="['operations:document:changeStatus']"-->
|
||||||
>停用</el-button>
|
<!-- >停用</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -502,6 +502,7 @@ export default {
|
|||||||
/** 查询课程培训资料列表 */
|
/** 查询课程培训资料列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.queryParams.status = '0';
|
||||||
listDocument(this.queryParams).then(response => {
|
listDocument(this.queryParams).then(response => {
|
||||||
this.documentList = response.rows;
|
this.documentList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
1352
inspur-ui/src/views/operations/manage/index.vue
Normal file
1352
inspur-ui/src/views/operations/manage/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user