From 59a4f02701ef3b232b9f1d54ba0b29a1e8764704 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 03 十二月 2025 14:54:53 +0800
Subject: [PATCH] 修改
---
src/views/work/onlineEducation/courseManage/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/work/onlineEducation/courseManage/index.vue b/src/views/work/onlineEducation/courseManage/index.vue
index b573590..91da9b7 100644
--- a/src/views/work/onlineEducation/courseManage/index.vue
+++ b/src/views/work/onlineEducation/courseManage/index.vue
@@ -8,6 +8,7 @@
plain
icon="Plus"
@click="openDialog('add',{})"
+ v-hasPermi="['courseManage:list:add']"
>新增</el-button>
</el-form-item>
<el-form-item label="课程名称:" >
@@ -101,7 +102,7 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240">
<template #default="scope">
- <div v-if="data.isAdmin">
+ <div v-if="data.isAdmin || data.userType == 6">
<div v-if="scope.row.state !== 3">
<el-button link type="primary" v-if="scope.row.state == 1" @click="openApprove(scope.row)">审核</el-button>
<el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
@@ -114,9 +115,9 @@
<div v-if="scope.row.state !== 2">
<el-button link type="primary" v-if="scope.row.state == 0 || scope.row.state == 3" @click="submitApprove(scope.row)">提交审核</el-button>
<el-button link type="primary" v-if="scope.row.state == 1" @click="submitApprove(scope.row)">取消审核</el-button>
- <el-button link type="primary" v-if="scope.row.state !== 1" @click="openDialog('edit',scope.row)" >编辑</el-button>
+ <el-button link type="primary" v-if="scope.row.state !== 1" @click="openDialog('edit',scope.row)" v-hasPermi="['courseManage:list:edit']">编辑</el-button>
<el-button link type="primary" @click="toChapters(scope.row)">章节</el-button>
- <el-button link type="danger" v-if="scope.row.state !== 1" @click="handleDelete(scope.row)">删除</el-button>
+ <el-button link type="danger" v-if="scope.row.state !== 1" @click="handleDelete(scope.row)" v-hasPermi="['courseManage:list:del']">删除</el-button>
</div>
<div v-else>
<el-button link type="primary" @click="toChapters(scope.row)">章节</el-button>
@@ -228,7 +229,8 @@
id: 3,
name: '审批不通过'
},
- ]
+ ],
+ userType: null
});
const { queryParams, total, dataList } = toRefs(data);
@@ -243,6 +245,7 @@
}
const userInfo = JSON.parse(Cookies.get('userInfo'))
console.log("userInfo",userInfo)
+ data.userType = userInfo.userType
if(userInfo.userType === 0){
data.isAdmin = true;
}else {
--
Gitblit v1.9.2