Bläddra i källkod

fix:修改编辑回显以及查看回显

lupeng 4 månader sedan
förälder
incheckning
0f5e83d0f8
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      src/views/base/craftManagement/process/index.vue

+ 6 - 1
src/views/base/craftManagement/process/index.vue

@@ -208,7 +208,6 @@ const queryDiffList = (id) =>{
 }
 }
 const beforeOpenDialog = (done, type, loading) => {
 const beforeOpenDialog = (done, type, loading) => {
   if (
   if (
-    type === "edit" &&
     form.value.customFieldName &&
     form.value.customFieldName &&
     JSON.parse(form.value.customFieldName)?.length > 0
     JSON.parse(form.value.customFieldName)?.length > 0
   ) {
   ) {
@@ -218,6 +217,12 @@ const beforeOpenDialog = (done, type, loading) => {
     );
     );
   }
   }
 
 
+  if (
+    !form.value.customFieldName ||
+    JSON.parse(form.value.customFieldName)?.length == 0
+  ) {
+    customFieldNameValues.value =[];
+  }
   done();
   done();
 };
 };