Browse Source

节点基础数据编辑禁用

duy 2 tuần trước cách đây
mục cha
commit
c7e6d6cc7a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/views/data-fill/wbs.vue

+ 6 - 0
src/views/data-fill/wbs.vue

@@ -1359,6 +1359,7 @@
             widths="800px"
             is-footer-center
             :loading="nodeBaseDataLoad"
+  
             @close="nodeBaseDataModalClose"
             @save="nodeBaseDataModalSave"
         >
@@ -3618,6 +3619,7 @@ const getnodeBaseData = async ()=>{
     const { error, code, msg, data } = await nodeBaseApi.getNodeData(
         {
             pKeyId: primaryKeyId.value,
+            classify:authBtnTabKey.value,
         },
     )
 
@@ -3667,6 +3669,10 @@ const resetForm = ()=>{
     getOrSaveNodeBaseInfo()
 }
 const nodeBaseDataModalSave = async ()=>{
+    if (autoFormData.value?.isDisable === 1) {
+        window?.$message?.warning('当前节点基础数据,不允许修改')
+        return
+    }
     nodeBaseDataLoad.value = true
     const { error, code, msg } = await nodeBaseApi.save(
         {