Browse Source

人员权限问题

user5 2 years ago
parent
commit
5b3684fd61
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/modules/sys/project/AssessForm.vue

+ 4 - 2
src/views/modules/sys/project/AssessForm.vue

@@ -305,7 +305,7 @@
                      :show-file-list="false"
                      :on-change="changes"
                      :file-list="filesArra2">
-            <el-button type="info" size="mini">点击上传</el-button>
+            <el-button type="info" size="mini" v-if="inputForm.permissionFlag">点击上传</el-button>
           </el-upload>
           <div style="height: calc(100% - 80px);">
           <vxe-table
@@ -346,7 +346,7 @@
 <!--            <vxe-column title="文件描述" field="description"></vxe-column>-->
             <vxe-column title="操作" width="200px" fixed="right" align="center">
               <template  slot-scope="scope">
-                <el-button type="text"  icon="el-icon-delete" size="small" @click="deleteMsgById(scope.row, scope.$rowIndex)">删除</el-button>
+                <el-button type="text"  icon="el-icon-delete" size="small" v-if="inputForm.permissionFlag" @click="deleteMsgById(scope.row, scope.$rowIndex)">删除</el-button>
                 <el-button type="text"  icon="el-icon-edit" size="small" @click="toHref(scope.row)">下载</el-button>
               </template>
             </vxe-column>
@@ -387,6 +387,7 @@
         visible: false,
         loading: false,
         inputForm: {
+          permissionFlag: '', // 判断是否为当前登录人参数
           customerName: '',
           projectName: '',
           evaluationObjective: '',
@@ -584,6 +585,7 @@
               this.inputForm.evaluationReportDateUi = data.evaluationReportDate
               this.inputForm.invoiceDateUi = data.invoiceDate
               this.inputForm.reimbursementDateUi = data.reimbursementDate
+              this.inputForm.permissionFlag = data.permissionFlag
               this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
               this.loading = false
             })