|
@@ -151,10 +151,13 @@ const customFieldChange = (val) => {
|
|
|
form.value.customFieldName = JSON.stringify(result);
|
|
|
};
|
|
|
const beforeOpenDialog = (done, type, loading) => {
|
|
|
- customFieldOptions.value = JSON.parse(form.value.customFieldName);
|
|
|
- customFieldNameValues.value = customFieldOptions.value.map(
|
|
|
- (item) => item.value
|
|
|
- );
|
|
|
+ if (type === "edit") {
|
|
|
+ customFieldOptions.value = JSON.parse(form.value.customFieldName);
|
|
|
+ customFieldNameValues.value = customFieldOptions.value.map(
|
|
|
+ (item) => item.value
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
done();
|
|
|
};
|
|
|
|