3 Komitmen 2d1d5e0f1b ... 00a5a6c19e

Pembuat SHA1 Pesan Tanggal
  shanbinzhang 00a5a6c19e Merge branch 'master' of http://8.136.199.33:3000/eta_front/eta_front 1 hari lalu
  shanbinzhang bb91e3a1a6 Merge branch 'need_pool286' 1 hari lalu
  shanbinzhang 61b5953fcd admin报告操作权限同创建人 1 bulan lalu

+ 4 - 4
src/views/report_manage/reportV2/components/chapterEditWrapper.vue

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

+ 3 - 3
src/views/report_manage/reportV2/components/reportEditHeader.vue

@@ -1,15 +1,15 @@
 <template>
   <div class="top-action-wrap">
     <template>
-      <el-input 
+      <!-- <el-input 
         v-if="reportInfo&&reportInfo.ReportChapterId" 
         v-model="reportInfo.Title"
         style="width:240px;"
         :placeholder="$t('ReportManage.ReportList.label_chap_name')"
         @change="handleUpdateTitle"
-      ></el-input>
+      ></el-input> -->
       
-      <div v-else class="title text_oneLine">{{reportInfo&&reportInfo.Title}}</div>
+      <div class="title text_oneLine">{{reportInfo&&reportInfo.Title}}</div>
     </template>
     
       <ul class="action-list">