Prechádzať zdrojové kódy

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

lupeng 4 mesiacov pred
rodič
commit
0f5e83d0f8

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

@@ -208,7 +208,6 @@ const queryDiffList = (id) =>{
 }
 const beforeOpenDialog = (done, type, loading) => {
   if (
-    type === "edit" &&
     form.value.customFieldName &&
     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();
 };