Bläddra i källkod

会计-合同管理的修改权限调整

lizhenhao 2 år sedan
förälder
incheckning
e86515dbf9
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      src/views/modules/cw/workContract/ContractRegistration.vue

+ 3 - 2
src/views/modules/cw/workContract/ContractRegistration.vue

@@ -173,8 +173,9 @@
           <vxe-column title="操作" min-width="200px" fixed="right" align="center">
             <template  slot-scope="scope">
 <!--              <el-button v-if="hasPermission('cw:workContract:view')" type="text" size="small" @click="view(scope.row.id)">查看</el-button>-->
-              <el-button v-if="hasPermission('cw:workContract:edit') && (scope.row.createId === $store.state.user.id || isAdmin) &&
-              (scope.row.filedPaperType !== '2' || scope.row.filedPaperType !== '5')" type="text" size="small" @click="edit(scope.row)">修改</el-button>
+              <el-button v-if="hasPermission('cw:workContract:edit') && (scope.row.createId === $store.state.user.id) &&
+              (scope.row.filedPaperType !== '2' && scope.row.filedPaperType !== '5')" type="text" size="small" @click="edit(scope.row)">修改</el-button>
+              <el-button v-else-if="isAdmin" type="text" size="small" @click="edit(scope.row)">修改</el-button>
 <!--              <el-button v-if="hasPermission('cw:workContract:edit') && scope.row.status === '5' && isAdmin && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === '1' || scope.row.filedPaperType === '3')" type="text" size="small" @click="editForm(scope.row.id)">修改</el-button>-->
               <!--<el-button v-else-if="hasPermission('cw:workContract:edit') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === '1' || scope.row.filedPaperType === '3' || commonJS.isEmpty(scope.row.filedPaperType))" type="text" size="small" @click="editForm(scope.row.id)">修改</el-button>-->
               <!--              审核-->