gds-plus-design-vue 1.2.2 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78041,7 +78041,7 @@ function processingResults(i, t, s) {
78041
78041
  function isSatisfyed(i, t) {
78042
78042
  return t === "2" ? i.every((s, a, n) => !s) : i.every((s, a, n) => !!s);
78043
78043
  }
78044
- const processFlow_vue_vue_type_style_index_0_scoped_92d99aa9_lang = "", _sfc_main$8 = {
78044
+ const processFlow_vue_vue_type_style_index_0_scoped_d51aaede_lang = "", _sfc_main$8 = {
78045
78045
  props: {
78046
78046
  fieldData: {
78047
78047
  type: Array,
@@ -78184,7 +78184,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_92d99aa9_lang = "", _sfc_mai
78184
78184
  return;
78185
78185
  }
78186
78186
  const t = i.columnComment ? i.columnComment.toLowerCase() : i.columnComment;
78187
- i.rules === "1" ? this.baseSetError({ columnName: t, data: i.val }) : i.rules === "2" ? this.baseSetVal({ columnName: t, data: i.val }) : i.rules === "3" ? this.baseSetEssential({ columnName: t, data: i.val }) : i.rules === "4" ? this.baseSetVisibility({ columnName: t, data: i.val, item: i }) : i.rules === "5" ? this.baseSetDefaultsVal({ columnName: t, data: i.val }) : i.rules === "6" && this.baseSetLocking({ columnName: t, data: i.val });
78187
+ i.rules === "1" ? this.baseSetError({ columnName: t, data: i.val }) : i.rules === "2" ? this.baseSetVal({ columnName: t, data: i.val }) : i.rules === "3" ? this.baseSetEssential({ columnName: t, data: i.val }) : i.rules === "4" ? this.baseSetVisibility({ columnName: t, data: i.val, item: i }) : i.rules === "5" ? this.baseSetDefaultsVal({ columnName: t, data: i.val }) : i.rules === "6" ? this.baseSetLocking({ columnName: t, data: i.val }) : i.rules === "7" && this.baseSetEmpty({ columnName: t, data: "" });
78188
78188
  }, 150);
78189
78189
  });
78190
78190
  },
@@ -78258,6 +78258,18 @@ const processFlow_vue_vue_type_style_index_0_scoped_92d99aa9_lang = "", _sfc_mai
78258
78258
  })
78259
78259
  });
78260
78260
  },
78261
+ baseSetEmpty(i) {
78262
+ const t = this.getCurrentList.filter((n) => (n.options.columnName ? n.options.columnName.toLowerCase() : n.options.columnName) === i.columnName)[0];
78263
+ if (!t || !this.baseHasFieldPermission(i.columnName))
78264
+ return;
78265
+ let a = /* @__PURE__ */ new Map();
78266
+ ["currency", "double", "inputnumber"].includes(t.options.effectType) ? a.set(i.columnName, void 0) : a.set(i.columnName, i.data), this.$nextTick(() => {
78267
+ setTimeout(() => {
78268
+ let n = /* @__PURE__ */ new Map();
78269
+ ["currency", "double", "inputnumber"].includes(t.options.effectType) ? n.set(i.columnName, void 0) : n.set(i.columnName, i.data), t && t.searchDataId && t.searchDataId(Object.fromEntries(n)), Object.assign(this.parameterData, Object.fromEntries(n));
78270
+ }, 300);
78271
+ });
78272
+ },
78261
78273
  baseHasFieldPermission(i) {
78262
78274
  const t = this.fieldData.filter((a) => a.columnname === i)[0];
78263
78275
  if (!t)
@@ -78846,11 +78858,11 @@ var _sfc_render$8 = function i() {
78846
78858
  _sfc_staticRenderFns$8,
78847
78859
  !1,
78848
78860
  null,
78849
- "92d99aa9",
78861
+ "d51aaede",
78850
78862
  null,
78851
78863
  null
78852
78864
  );
78853
- const ProcessFlow = __component__$8.exports, main_vue_vue_type_style_index_0_scoped_45bccba1_lang = "", _sfc_main$7 = {
78865
+ const ProcessFlow = __component__$8.exports, main_vue_vue_type_style_index_0_scoped_56f0dfc7_lang = "", _sfc_main$7 = {
78854
78866
  name: "GdFormBuild",
78855
78867
  props: {
78856
78868
  modeType: {
@@ -79234,9 +79246,7 @@ const ProcessFlow = __component__$8.exports, main_vue_vue_type_style_index_0_sco
79234
79246
  _.push({ id: v.id, name: v.name, tableName: v.tableName });
79235
79247
  }), l.set(y, JSON.stringify(_));
79236
79248
  });
79237
- const o = s.getFkList(t), r = s.id === "" ? s.securityFiled.addData : s.securityFiled.editData, d = s.updateFiled.split(",").filter((h) => !r.includes(Number(h))), u = s.updateFlowFiled.filter(
79238
- (h) => !d.includes(h) && !r.includes(Number(h))
79239
- );
79249
+ const o = s.getFkList(t), r = s.id === "" ? s.securityFiled.addData : s.securityFiled.editData, d = s.updateFiled.split(",").filter((h) => !r.includes(Number(h))), u = s.updateFlowFiled.filter((h) => !d.includes(h) && !r.includes(Number(h)));
79240
79250
  let p = { ...this.parameterData };
79241
79251
  for (const h in p) {
79242
79252
  const m = typeof p[h];
@@ -80119,9 +80129,9 @@ var _sfc_render$7 = function i() {
80119
80129
  a.preventDefault();
80120
80130
  } } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData, height: t.getHeight }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)], 1) : s("el-drawer", { class: t.formDatalist ? "isdrawerContainer" : "", attrs: { visible: t.visible, "close-on-press-escape": !1, "append-to-body": !0, "modal-append-to-body": !1, size: t.drawerWidth, "custom-class": "gd-drawer-form", wrapperClosable: !0, "before-close": t.handleBeforeClose, "show-close": !1 }, on: { "update:visible": function(a) {
80121
80131
  t.visible = a;
80122
- } } }, [s("gd-modal-title", { attrs: { slot: "title", title: t.titlePrefix + t.title, modalType: "drawer", fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: !!(t.confirmLoading || t.statu), emitFun: !0, showFullscreen: !1, showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen, close: t.handleBeforeClose }, slot: "title" }), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [t.visible ? s("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (a) => t.baseChange(a, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, height: t.getHeight, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)], 1)] : t.modeType === "iframe" ? [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-form-iframe" }, [s("div", { staticClass: "iframe-title" }, [s("div", { staticClass: "iframe-title-l" }, [t._v(t._s(t.title))]), s("div", { staticClass: "iframe-title-r" }, [s("gd-btn-list", { attrs: { sysViewButtons: t.sysViewButtons }, on: { functionName: t.doEvent } })], 1), s("div", { staticClass: "el-icon-close", on: { click: function(a) {
80132
+ } } }, [s("gd-modal-title", { attrs: { slot: "title", title: t.titlePrefix + t.title, modalType: "drawer", fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: !!(t.confirmLoading || t.statu), emitFun: !0, showFullscreen: !1, showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen, close: t.handleBeforeClose }, slot: "title" }), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [t.visible ? s("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (a) => t.baseChange(a, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, height: t.getHeight, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)], 1)] : t.modeType === "iframe" ? [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-form-iframe" }, [s("div", { staticClass: "iframe-title" }, [s("div", { staticClass: "iframe-title-r" }, [s("gd-modal-title", { attrs: { title: "", fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: !!(t.confirmLoading || t.statu), emitFun: !0, showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen, close: function(a) {
80123
80133
  return t.closed(1);
80124
- } } }), t.confirmLoading ? s("div", { staticClass: "iframe-meng" }) : t._e()]), s("div", { staticClass: "iframe-item" }, [t.visible ? s("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (a) => t.baseChange(a, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)])] : s("div", [t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline }, nativeOn: { submit: function(a) {
80134
+ } } })], 1)]), s("div", { staticClass: "iframe-item" }, [t.visible ? s("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (a) => t.baseChange(a, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)])] : t.modeType === "component" ? [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], staticStyle: { position: "relative" } }, [t.visible ? s("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (a) => t.baseChange(a, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [s("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1)] : s("div", [t.visible ? s("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline }, nativeOn: { submit: function(a) {
80125
80135
  a.preventDefault();
80126
80136
  } } }, [s("BuildBlocks", { attrs: { isedit: t.isedit, record: { options: t.formData }, isForm: !0, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (a) => t.baseChange(a, 1) } })], 1) : t._e()], 1), s("DataAssign", { ref: "dataAssign", attrs: { tableData: t.tableData }, on: { ok: (a) => t.okAssignSharing(a, "dataAssign") } }), s("TeamSharing", { ref: "teamSharing", attrs: { tableData: t.tableData }, on: { ok: (a) => t.okAssignSharing(a, "teamSharing") } }), s("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } }), t._l(t.componentList, function(a, n) {
80127
80137
  return [s(a.componentItem, { key: n, ref: a.ref, refInFor: !0, tag: "component", attrs: { record: a, openMode: t.openMode, tableData: t.tableData }, on: { change: (l) => t.doEventComponent(l, a) } })];
@@ -80132,7 +80142,7 @@ var _sfc_render$7 = function i() {
80132
80142
  _sfc_staticRenderFns$7,
80133
80143
  !1,
80134
80144
  null,
80135
- "45bccba1",
80145
+ "56f0dfc7",
80136
80146
  null,
80137
80147
  null
80138
80148
  );