|
@@ -168,7 +168,6 @@
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
:command="{type:'beseInfo',item}"
|
|
:command="{type:'beseInfo',item}"
|
|
- v-if="isCreator"
|
|
|
|
><!-- 基础信息 -->{{$t('ReportManage.ReportList.information_title')}}</el-dropdown-item>
|
|
><!-- 基础信息 -->{{$t('ReportManage.ReportList.information_title')}}</el-dropdown-item>
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
:command="{type:'del',item}"
|
|
:command="{type:'del',item}"
|
|
@@ -222,7 +221,8 @@
|
|
placeholder="请输入章节名称"
|
|
placeholder="请输入章节名称"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item prop="varietys">
|
|
|
|
|
|
+
|
|
|
|
+ <el-form-item prop="varietys" v-if="isCreator">
|
|
<template slot="label">
|
|
<template slot="label">
|
|
<el-tooltip class="item" effect="dark">
|
|
<el-tooltip class="item" effect="dark">
|
|
<div slot="content" v-html="varietyTip"></div>
|
|
<div slot="content" v-html="varietyTip"></div>
|
|
@@ -250,7 +250,7 @@
|
|
clearable
|
|
clearable
|
|
></el-cascader>
|
|
></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item prop="editors" :label="$t('ReportManage.ReportList.label_chap_editor')">
|
|
|
|
|
|
+ <el-form-item prop="editors" :label="$t('ReportManage.ReportList.label_chap_editor')" v-if="isCreator">
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="chapterInfo.editors"
|
|
v-model="chapterInfo.editors"
|
|
:options="userOpts"
|
|
:options="userOpts"
|
|
@@ -389,7 +389,7 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
isCreator() {
|
|
isCreator() {
|
|
let roleId = Number(localStorage.getItem('AdminId'))
|
|
let roleId = Number(localStorage.getItem('AdminId'))
|
|
- return roleId === this.reportBase.AdminId;
|
|
|
|
|
|
+ return roleId===this.reportBase.AdminId || localStorage.getItem('Role')==='admin';
|
|
},
|
|
},
|
|
RoleId() {
|
|
RoleId() {
|
|
return Number(localStorage.getItem('AdminId'))
|
|
return Number(localStorage.getItem('AdminId'))
|