Просмотр исходного кода

放开设备建档字段建档人编辑权限

shenQiLong 1 неделя назад
Родитель
Сommit
afd16fd380
1 измененных файлов с 13 добавлено и 15 удалено
  1. 13 15
      src/views/component/device/deviceDialog.vue

+ 13 - 15
src/views/component/device/deviceDialog.vue

@@ -85,7 +85,7 @@
                         v-model="form.bianZhiRen"
                         type="user"
                         readonly-text="text"
-                        :disabled="true"
+                        :disabled="readonly"
                         :multiple="false"
                         size="mini"
                         style="width: 100%"
@@ -1389,12 +1389,12 @@ export default {
           name: 'eight',
           component: 'ConfirmationRecord',
           isKeepAlive: true
-        },
+        }
         // {   //福永,主分支
-        //   label: '授权人员', 
-        //   name: 'nine', 
-        //   component: 'AuthorizedPersonRecord', 
-        //   isKeepAlive: true 
+        //   label: '授权人员',
+        //   name: 'nine',
+        //   component: 'AuthorizedPersonRecord',
+        //   isKeepAlive: true
         // }
         // 同步与深圳三院分支,后端暂未同步对应接口,不开放
         // { label: '性能验证记录', name: 'nine', component: 'PvRecord', isKeepAlive: true }
@@ -1899,15 +1899,13 @@ export default {
       this.isEdit = !!(this.params && this.params.id)
       this.isSheKou = this.deptList[0].positionId === '1166372468122714112' // 判断是否是蛇口医院
 
-      if(deviceres?.authorization){
-        this.tabItems.push(
-          {
-            label: '授权人员', 
-            name: 'nine', 
-            component: 'AuthorizedPersonRecord', 
-            isKeepAlive: true 
-          }
-        )
+      if (deviceres?.authorization) {
+        this.tabItems.push({
+          label: '授权人员',
+          name: 'nine',
+          component: 'AuthorizedPersonRecord',
+          isKeepAlive: true
+        })
       }
 
       // 根据全局配置动态生成tab