mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
修改权限
This commit is contained in:
@@ -250,10 +250,12 @@ const url = ref('http://localhost:8070/manage/img/50.34e94524.png')
|
||||
//搜索值
|
||||
const searchValue = ref('')
|
||||
//搜索功能
|
||||
const Administrator= ref(0)
|
||||
const Administrator= ref(1)
|
||||
const search = async()=>{
|
||||
loading.value = true
|
||||
|
||||
if(uploadAdmin('examine-admin')){
|
||||
Administrator.value = 0
|
||||
}
|
||||
const res = await getexamineList({
|
||||
pageNo: current1.value,
|
||||
pageSize: pageSize.value,
|
||||
@@ -320,6 +322,9 @@ const toLecture = (id,description,time) =>{
|
||||
const InstructorCertificationlist = ref([])
|
||||
const getlist = async() =>{
|
||||
loading.value = true
|
||||
if(uploadAdmin('examine-admin')){
|
||||
Administrator.value = 0
|
||||
}
|
||||
const res = await getexamineList({
|
||||
pageNo: current1.value,
|
||||
pageSize: pageSize.value,
|
||||
@@ -436,7 +441,7 @@ function handleOper(record, type, status = "") {
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex;justify-content: space-between;align-self: end;">
|
||||
<div v-if="Administrator===0" @click="OnlineLearning" style=" cursor: pointer;margin-right: 15px;height: 38px; width: 150px;background: #4ea6ff; line-height: 40px;text-align: center;border-radius: 8px;color: #ffffff;">线上学习课程设置</div>
|
||||
<div v-if="uploadAdmin('examine-admin')" @click="OnlineLearning" style=" cursor: pointer;margin-right: 15px;height: 38px; width: 150px;background: #4ea6ff; line-height: 40px;text-align: center;border-radius: 8px;color: #ffffff;">线上学习课程设置</div>
|
||||
<div class="btns" @click="centerDialogVisible=true">
|
||||
<div style="margin-right: 0;" class="btn btn3" @click="createData">
|
||||
<div class="search"></div>
|
||||
@@ -485,7 +490,7 @@ function handleOper(record, type, status = "") {
|
||||
<a style="margin-right: 7px;" @click="toLecture(record.id,record.description,record.name)">
|
||||
评审
|
||||
</a>
|
||||
<DropDown v-if="Administrator===0" value="授权">
|
||||
<DropDown v-if="uploadAdmin('examine-admin')" value="授权">
|
||||
<OwnerTableModelStudent
|
||||
:types="[7, 8, 9]"
|
||||
:id="record.id"
|
||||
|
||||
@@ -952,7 +952,7 @@ const vwtext = ref(null)
|
||||
<a style="margin-right: 7px;" @click="show(record)">
|
||||
查看
|
||||
</a>
|
||||
<a v-if="record.draftStatus == 0" style="margin-right: 7px;" @click="returnPage(record)">
|
||||
<a v-if="record.draftStatus == 0&&uploadAdmin('examine-admin')" style="margin-right: 7px;" @click="returnPage(record)">
|
||||
退回初稿
|
||||
</a>
|
||||
<a style="color: #de2139" @click="handleOper(record, 'del')">删除</a>
|
||||
@@ -1014,7 +1014,7 @@ const vwtext = ref(null)
|
||||
<a style="margin-right: 7px;" @click="show(record)">
|
||||
查看
|
||||
</a>
|
||||
<a v-if="record.draftStatus == 0" style="margin-right: 7px;" @click="returnPageTwo(record)">
|
||||
<a v-if="record.draftStatus == 0&&uploadAdmin('examine-admin')" style="margin-right: 7px;" @click="returnPageTwo(record)">
|
||||
退回终稿
|
||||
</a>
|
||||
<a style="color: #de2139" @click="handleOper(record, 'del')">删除</a>
|
||||
|
||||
@@ -646,7 +646,9 @@ const route = useRoute()
|
||||
nameSearch.value.keyword = "";
|
||||
addTutor({
|
||||
examineId:route.query.id.toString(),
|
||||
teachers: teaunm.value
|
||||
teachers: teaunm.value,
|
||||
deptIds: deptList.value?.map((e) => e.id),
|
||||
groupIds: auditSelectRows.value?.map((e) => e.id),
|
||||
}).then(() => {
|
||||
deleteDepSelect();
|
||||
emit("finash", true);
|
||||
|
||||
Reference in New Issue
Block a user