|
@@ -27558,7 +27558,7 @@ var _export_sfc = (sfc, props) => {
|
|
}
|
|
}
|
|
return target;
|
|
return target;
|
|
};
|
|
};
|
|
-const _withScopeId = (n) => (pushScopeId("data-v-6f7c6df8"), n = n(), popScopeId(), n);
|
|
|
|
|
|
+const _withScopeId = (n) => (pushScopeId("data-v-fd931432"), n = n(), popScopeId(), n);
|
|
const _hoisted_1$6 = { key: 12 };
|
|
const _hoisted_1$6 = { key: 12 };
|
|
const _hoisted_2$5 = {
|
|
const _hoisted_2$5 = {
|
|
key: 1,
|
|
key: 1,
|
|
@@ -27616,8 +27616,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
if (field == "customerId") {
|
|
if (field == "customerId") {
|
|
let list = JSON.parse(JSON.stringify(props.widgetFormData));
|
|
let list = JSON.parse(JSON.stringify(props.widgetFormData));
|
|
for (var i in list) {
|
|
for (var i in list) {
|
|
- if (list[i].model == "contactsId") {
|
|
|
|
- let item = list[i];
|
|
|
|
|
|
+ if (list[i].list[0].model == "contactsId") {
|
|
|
|
+ let item = list[i].list[0];
|
|
const token = sessionStorage.getItem("token");
|
|
const token = sessionStorage.getItem("token");
|
|
fetch(`${item.options.remoteFunc}?customerId=${val}`, {
|
|
fetch(`${item.options.remoteFunc}?customerId=${val}`, {
|
|
headers: {
|
|
headers: {
|
|
@@ -27633,15 +27633,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
children: data22[item.options.props.children]
|
|
children: data22[item.options.props.children]
|
|
}));
|
|
}));
|
|
}
|
|
}
|
|
- list[i].options = __spreadProps(__spreadValues({}, list[i].options), { disabled: false, defaultValue: "" });
|
|
|
|
|
|
+ list[i].list[0].options = __spreadProps(__spreadValues({}, list[i].list[0].options), { disabled: false, defaultValue: "" });
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- emits("updateWidgetForm", list);
|
|
|
|
|
|
+ console.log("\u5F00\u59CB\u6267\u884C");
|
|
|
|
+ updateWidgetForm(list);
|
|
}, 100);
|
|
}, 100);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+ const updateWidgetForm = (list) => {
|
|
|
|
+ emits("updateWidgetForm", list);
|
|
|
|
+ };
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
const _component_GenerateFormItem = resolveComponent("GenerateFormItem", true);
|
|
const _component_GenerateFormItem = resolveComponent("GenerateFormItem", true);
|
|
const _component_el_table_column = ElTableColumn;
|
|
const _component_el_table_column = ElTableColumn;
|
|
@@ -27684,8 +27688,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
"updated-model": __props.updatedModel,
|
|
"updated-model": __props.updatedModel,
|
|
element: colItem,
|
|
element: colItem,
|
|
config: __props.config,
|
|
config: __props.config,
|
|
- disabled: __props.disabled
|
|
|
|
- }, null, 8, ["request", "model", "updated-model", "element", "config", "disabled"]);
|
|
|
|
|
|
+ disabled: __props.disabled,
|
|
|
|
+ widgetFormData: __props.element.columns,
|
|
|
|
+ onUpdateWidgetForm: updateWidgetForm
|
|
|
|
+ }, null, 8, ["request", "model", "updated-model", "element", "config", "disabled", "widgetFormData"]);
|
|
}), 128))
|
|
}), 128))
|
|
], 4);
|
|
], 4);
|
|
}), 128))
|
|
}), 128))
|
|
@@ -28035,7 +28041,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-var GenerateFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6f7c6df8"]]);
|
|
|
|
|
|
+var GenerateFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-fd931432"]]);
|
|
const _sfc_main$7 = defineComponent({
|
|
const _sfc_main$7 = defineComponent({
|
|
name: "FormGenerate",
|
|
name: "FormGenerate",
|
|
components: {
|
|
components: {
|
|
@@ -28120,7 +28126,8 @@ const _sfc_main$7 = defineComponent({
|
|
});
|
|
});
|
|
};
|
|
};
|
|
const updateWidgetForm = (list) => {
|
|
const updateWidgetForm = (list) => {
|
|
- state.widgetForm.list = list;
|
|
|
|
|
|
+ const listIndex2 = state.widgetForm.list.findIndex((item) => item.type === "grid");
|
|
|
|
+ state.widgetForm.list[listIndex2].columns = list;
|
|
state.model = __spreadProps(__spreadValues({}, state.model), { contactsId: "" });
|
|
state.model = __spreadProps(__spreadValues({}, state.model), { contactsId: "" });
|
|
};
|
|
};
|
|
watch(() => props.data, (val) => {
|
|
watch(() => props.data, (val) => {
|