mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-20 16:26:43 +08:00
Merge remote-tracking branch 'origin/master-20251219' into master-20251219
This commit is contained in:
@@ -71,92 +71,94 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-right:30px;">
|
<div style="margin-right:30px;">
|
||||||
<el-table style="margin:10px 32px 10px 22px;" :data="pageData" border stripe>
|
<!-- ai播放器相关 -->
|
||||||
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
<el-table style="margin:10px 32px 10px 22px;" :data="pageData" border stripe @selection-change="handleSelectionChange">
|
||||||
<el-table-column v-if="forChoose" label="选择" width="80">
|
<el-table-column v-if="aiPermission" type="selection" width="55"></el-table-column>
|
||||||
<template slot-scope="scope" v-if="scope.row.published">
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
<el-button type="default" size="mini" @click="handleChoose(scope.row)">选择</el-button>
|
<el-table-column v-if="forChoose" label="选择" width="80">
|
||||||
</template>
|
<template slot-scope="scope" v-if="scope.row.published">
|
||||||
</el-table-column>
|
<el-button type="default" size="mini" @click="handleChoose(scope.row)">选择</el-button>
|
||||||
<el-table-column label="名称" prop="name" width="200" show-overflow-tooltip>
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span class="previewStyle" @click="viewTopic(scope.row)">{{ scope.row.name }}</span>
|
<el-table-column label="名称" prop="name" width="200" show-overflow-tooltip>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span class="previewStyle" @click="viewTopic(scope.row)">{{ scope.row.name }}</span>
|
||||||
<el-table-column label="内容分类" prop="sysType" sortable width="240px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span>{{sysTypeName(scope.row.sysType1)}}</span>
|
<el-table-column label="内容分类" prop="sysType" sortable width="240px">
|
||||||
<span v-if="scope.row.sysType2 !=''">/{{sysTypeName(scope.row.sysType2)}}</span>
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.sysType3 !=''">/{{sysTypeName(scope.row.sysType3)}}</span>
|
<span>{{sysTypeName(scope.row.sysType1)}}</span>
|
||||||
</template>
|
<span v-if="scope.row.sysType2 !=''">/{{sysTypeName(scope.row.sysType2)}}</span>
|
||||||
</el-table-column>
|
<span v-if="scope.row.sysType3 !=''">/{{sysTypeName(scope.row.sysType3)}}</span>
|
||||||
<el-table-column label="关键字" :show-overflow-tooltip="true" prop="name" width="200px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.keywords }}
|
<el-table-column label="关键字" :show-overflow-tooltip="true" prop="name" width="200px">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.keywords }}
|
||||||
<!-- <el-table-column label="资源归属" sortable prop="author" width="240px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span>{{resOwnerName(scope.row.resOwner1)}}</span>
|
<!-- <el-table-column label="资源归属" sortable prop="author" width="240px">
|
||||||
<span v-if="scope.row.resOwner2 != ''">/{{resOwnerName(scope.row.resOwner2)}}</span>
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.resOwner3 != ''">/{{resOwnerName(scope.row.resOwner3)}}</span>
|
<span>{{resOwnerName(scope.row.resOwner1)}}</span>
|
||||||
</template>
|
<span v-if="scope.row.resOwner2 != ''">/{{resOwnerName(scope.row.resOwner2)}}</span>
|
||||||
</el-table-column> -->
|
<span v-if="scope.row.resOwner3 != ''">/{{resOwnerName(scope.row.resOwner3)}}</span>
|
||||||
<!-- <el-table-column label="授课方式" prop="type" width="120px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column> -->
|
||||||
{{ courseType(scope.row.type)}}
|
<!-- <el-table-column label="授课方式" prop="type" width="120px">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column> -->
|
{{ courseType(scope.row.type)}}
|
||||||
<el-table-column label="状态" prop="status" width="120px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column> -->
|
||||||
<!-- 1,未提交 2.已提交 = 未审核 5 已审核 -->
|
<el-table-column label="状态" prop="status" width="100">
|
||||||
<span v-if="scope.row.status == 1">未提交</span>
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status == 2">待审核</span>
|
<!-- 1,未提交 2.已提交 = 未审核 5 已审核 -->
|
||||||
<span v-if="scope.row.status == 5">已审核</span>
|
<span v-if="scope.row.status == 1">未提交</span>
|
||||||
<span v-if="scope.row.status == 3">审核未通过</span>
|
<span v-if="scope.row.status == 2">待审核</span>
|
||||||
</template>
|
<span v-if="scope.row.status == 5">已审核</span>
|
||||||
</el-table-column>
|
<span v-if="scope.row.status == 3">审核未通过</span>
|
||||||
<el-table-column label="是否发布" width="130px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.published == true ? '已发布' : '未发布' }}
|
<el-table-column label="是否发布" width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.published == true ? '已发布' : '未发布' }}
|
||||||
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
|
</template>
|
||||||
<el-table-column label="创建时间" prop="sysCreateTime" width="230px" show-overflow-tooltip></el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否停用" width="130px">
|
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
|
||||||
<template slot-scope="scope">
|
<el-table-column label="创建时间" prop="sysCreateTime" width="150" show-overflow-tooltip></el-table-column>
|
||||||
{{ scope.row.enabled == true ? '启用' : '停用' }}
|
<el-table-column label="是否停用" width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.enabled == true ? '启用' : '停用' }}
|
||||||
<el-table-column label="是否置顶" width="130px">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.isTop == true ? '置顶' : '未置顶' }}
|
<el-table-column label="是否置顶" width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.isTop == true ? '置顶' : '未置顶' }}
|
||||||
<el-table-column label="审核人" prop="auditUser"></el-table-column>
|
</template>
|
||||||
<el-table-column label="审核时间" prop="auditTime" show-overflow-tooltip></el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="180px" fixed="right">
|
<el-table-column label="审核人" prop="auditUser" width="80"></el-table-column>
|
||||||
<template slot-scope="scope" class="btn-gl">
|
<el-table-column label="审核时间" prop="auditTime" width="150" show-overflow-tooltip></el-table-column>
|
||||||
<!-- 20240621 修改scope.row.isPermission = fasle 时不展示操作按钮-->
|
<el-table-column label="操作" width="180px" fixed="right">
|
||||||
<el-button type="text" size="mini" v-if="scope.row.isPermission && scope.row.status == 5 && !scope.row.published" @click="releaseData(scope.row)">发布</el-button>
|
<template slot-scope="scope" class="btn-gl">
|
||||||
<el-button v-if="scope.row.isPermission && pageManage && scope.row.published" @click="showStudent(scope.row)" type="text" size="mini">学员</el-button>
|
<!-- 20240621 修改scope.row.isPermission = fasle 时不展示操作按钮-->
|
||||||
<el-button v-if="scope.row.isPermission && !forChoose && scope.row.published" @click="showManageStudy(scope.row)" type="text" size="mini">管理</el-button>
|
<el-button type="text" size="mini" v-if="scope.row.isPermission && scope.row.status == 5 && !scope.row.published" @click="releaseData(scope.row)">发布</el-button>
|
||||||
<el-button v-if="scope.row.isPermission && !forChoose && scope.row.status == 2" @click="withdraw(scope.row)" type="text" size="mini">撤回</el-button>
|
<el-button v-if="scope.row.isPermission && pageManage && scope.row.published" @click="showStudent(scope.row)" type="text" size="mini">学员</el-button>
|
||||||
<el-button v-if="scope.row.isPermission && scope.row.status != 2" type="text" size="mini" @click="editCurriculum(scope.row)">编辑</el-button>
|
<el-button v-if="scope.row.isPermission && !forChoose && scope.row.published" @click="showManageStudy(scope.row)" type="text" size="mini">管理</el-button>
|
||||||
<el-button v-if="scope.row.isPermission && (scope.row.status != 2 && !scope.row.published) || scope.row.isPermission &&!scope.row.enabled" type="text" size="mini" @click="delItem(scope.row)">删除</el-button>
|
<el-button v-if="scope.row.isPermission && !forChoose && scope.row.status == 2" @click="withdraw(scope.row)" type="text" size="mini">撤回</el-button>
|
||||||
<el-dropdown v-if="scope.row.isPermission && scope.row.published" type="text" size="mini" style="margin-left:10px">
|
<el-button v-if="scope.row.isPermission && scope.row.status != 2" type="text" size="mini" @click="editCurriculum(scope.row)">编辑</el-button>
|
||||||
<el-button type="text" size="mini">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
<el-button v-if="scope.row.isPermission && (scope.row.status != 2 && !scope.row.published) || scope.row.isPermission &&!scope.row.enabled" type="text" size="mini" @click="delItem(scope.row)">删除</el-button>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown v-if="scope.row.isPermission && scope.row.published" type="text" size="mini" style="margin-left:10px">
|
||||||
<el-dropdown-item @click.native="copyCourse(scope.row)">复制</el-dropdown-item>
|
<el-button type="text" size="mini">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
||||||
<el-dropdown-item v-if="scope.row.published" @click.native="isDisable(scope.row)">{{scope.row.enabled? '停用':'启用'}}</el-dropdown-item>
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item v-if="scope.row.published" @click.native="showQrimage(scope.row)">二维码</el-dropdown-item><!--发布之后才可以查看二维码-->
|
<el-dropdown-item @click.native="copyCourse(scope.row)">复制</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="scope.row.published" @click.native="setTop(scope.row)">{{scope.row.isTop? '取消置顶':'置顶'}}</el-dropdown-item>
|
<el-dropdown-item v-if="scope.row.published" @click.native="isDisable(scope.row)">{{scope.row.enabled? '停用':'启用'}}</el-dropdown-item>
|
||||||
|
<el-dropdown-item v-if="scope.row.published" @click.native="showQrimage(scope.row)">二维码</el-dropdown-item><!--发布之后才可以查看二维码-->
|
||||||
|
<el-dropdown-item v-if="scope.row.published" @click.native="setTop(scope.row)">{{scope.row.isTop? '取消置顶':'置顶'}}</el-dropdown-item>
|
||||||
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -301,7 +303,7 @@ import auditCourse2 from '@/components/Course/auditCourse2.vue';
|
|||||||
import adminPage from '@/components/Administration/adminPage.vue';
|
import adminPage from '@/components/Administration/adminPage.vue';
|
||||||
import apiResowner from '../../api/modules/resowner.js';
|
import apiResowner from '../../api/modules/resowner.js';
|
||||||
import apiType from '../../api/modules/type.js'
|
import apiType from '../../api/modules/type.js'
|
||||||
import {courseType} from '../../utils/tools.js';
|
import {courseType, deepCopy} from '../../utils/tools.js';
|
||||||
import apiCourse from '../../api/modules/course.js';
|
import apiCourse from '../../api/modules/course.js';
|
||||||
// import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js';
|
// import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js';
|
||||||
import { mapGetters,mapActions } from 'vuex';
|
import { mapGetters,mapActions } from 'vuex';
|
||||||
@@ -309,8 +311,9 @@ import apiUserbasic from "@/api/boe/userbasic.js"
|
|||||||
export default {
|
export default {
|
||||||
name: 'manageCourse',
|
name: 'manageCourse',
|
||||||
components: {courseForm, manager, auditCourse1, auditCourse2,adminPage},
|
components: {courseForm, manager, auditCourse1, auditCourse2,adminPage},
|
||||||
|
// ai播放器相关
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['resOwnerMap','sysTypeMap','userInfo']),
|
...mapGetters(['resOwnerMap','sysTypeMap','userInfo', 'selectAllLang']),
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -428,6 +431,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
getAudiences(){
|
getAudiences(){
|
||||||
apiUserbasic.getInAudienceIds().then(res=>{
|
apiUserbasic.getInAudienceIds().then(res=>{
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
@@ -451,6 +455,7 @@ export default {
|
|||||||
inputOn() {
|
inputOn() {
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
|
|
||||||
// 置顶
|
// 置顶
|
||||||
setTop(row) {
|
setTop(row) {
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
Reference in New Issue
Block a user