gds-plus-design-vue 1.1.27 → 1.1.29

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.
@@ -630,7 +630,7 @@ const constantRouterMap = [{
630
630
  {
631
631
  path: "login",
632
632
  name: "login",
633
- component: () => import("./main.eb2a51d9.mjs"),
633
+ component: () => import("./main.8c4866ca.mjs"),
634
634
  meta: {
635
635
  title: "\u767B\u5F55",
636
636
  transKey: "gd.login.title"
@@ -23053,7 +23053,7 @@ const GDpackage$S = __component__$4_.exports;
23053
23053
  GDpackage$S.install = function(s) {
23054
23054
  s.component(GDpackage$S.name, GDpackage$S);
23055
23055
  };
23056
- const main_vue_vue_type_style_index_0_scoped_617ecd8f_lang = "", _sfc_main$4Z = {
23056
+ const main_vue_vue_type_style_index_0_scoped_a87dd3a5_lang = "", _sfc_main$4Z = {
23057
23057
  name: "GdBtnList",
23058
23058
  props: {
23059
23059
  sysViewButtons: {
@@ -23063,12 +23063,23 @@ const main_vue_vue_type_style_index_0_scoped_617ecd8f_lang = "", _sfc_main$4Z =
23063
23063
  max: {
23064
23064
  type: Number,
23065
23065
  default: 12
23066
+ },
23067
+ followSys: {
23068
+ type: Boolean,
23069
+ default: !0
23070
+ },
23071
+ styled: {
23072
+ type: String,
23073
+ default: ""
23066
23074
  }
23067
23075
  },
23068
23076
  data() {
23069
23077
  return {};
23070
23078
  },
23071
23079
  computed: {
23080
+ btnModed() {
23081
+ return this.followSys ? this.btnMode : "btn";
23082
+ },
23072
23083
  btnList() {
23073
23084
  return this.sysViewButtons.filter((s, t) => t < this.max);
23074
23085
  },
@@ -23096,7 +23107,7 @@ const main_vue_vue_type_style_index_0_scoped_617ecd8f_lang = "", _sfc_main$4Z =
23096
23107
  var _sfc_render$4Z = function() {
23097
23108
  var t = this, a = t._self._c;
23098
23109
  return a("div", { staticStyle: { display: "flex", "align-items": "center", "justify-content": "flex-end" } }, [t._l(t.btnList, function(r, o) {
23099
- return [t.$hasPerm(r.name) && (r.show === void 0 ? !0 : r.show) ? [t.btnMode === "text" ? [r.children && r.children.length > 0 && r.sublevel === void 0 || r.sublevel ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [a("el-button", { class: r.btnType ? "" : "active-color", staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "text" } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(r.children, function(l) {
23110
+ return [t.$hasPerm(r.name) && (r.show === void 0 ? !0 : r.show) ? [t.btnModed === "text" ? [r.children && r.children.length > 0 ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [a("el-button", { class: r.btnType ? "" : "active-color", staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "text" } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(r.children, function(l) {
23100
23111
  return a("el-dropdown-item", { key: l.key, attrs: { command: { item: r, key: l.key } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(l.transKey, l.displayName)) + " ")]);
23101
23112
  }), 1)], 1) : r.btnType == "popconfirm" ? a("el-popconfirm", { staticStyle: { "margin-left": "10px" }, attrs: { "confirm-button-text": t.$i18nt("gd.btn.confirm", "\u786E\u8BA4"), "cancel-button-text": t.$i18nt("gd.btn.cancel", "\u53D6\u6D88"), icon: "el-icon-warning", "icon-color": "#faad14", title: t.$i18nt(r.transKeyTip, r.tip) }, on: { confirm: function(l) {
23102
23113
  return t.functionName(r);
@@ -23104,16 +23115,16 @@ var _sfc_render$4Z = function() {
23104
23115
  return t.functionName(r);
23105
23116
  } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])], 2) : a("el-button", { class: r.btnType ? "" : "active-color", style: r.btnType ? "color:#ff4d4f;font-size: 13px;" : "font-size: 13px;", attrs: { type: "text" }, on: { click: function(l) {
23106
23117
  return t.functionName(r);
23107
- } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])] : [r.children && r.children.length > 0 && r.sublevel === void 0 || r.sublevel ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " "), a("i", { staticClass: "el-icon-arrow-down" })]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(r.children, function(l) {
23118
+ } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])] : [r.children && r.children.length > 0 ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " "), a("i", { staticClass: "el-icon-arrow-down" })]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(r.children, function(l) {
23108
23119
  return a("el-dropdown-item", { key: l.key, attrs: { command: { item: r, key: l.key } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(l.transKey, l.displayName)) + " ")]);
23109
23120
  }), 1)], 1) : r.btnType == "popconfirm" ? a("el-popconfirm", { attrs: { slot: "reference", "confirm-button-text": t.$i18nt("gd.btn.confirm", "\u786E\u8BA4"), "cancel-button-text": t.$i18nt("gd.btn.cancel", "\u53D6\u6D88"), icon: "el-icon-warning", "icon-color": "#faad14", title: t.$i18nt(r.transKeyTip, r.tip) }, on: { confirm: function(l) {
23110
23121
  return t.functionName(r);
23111
23122
  } }, slot: "reference" }, [a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { slot: "reference", type: r.btnType || "primary" }, slot: "reference" }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])], 1) : r.btnType == "tooltip" ? a("el-tooltip", { attrs: { placement: "top" } }, [a("template", { slot: "content" }, [t._v(" " + t._s(t.$i18nt(r.tipI18n, r.tip)) + " ")]), a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" }, on: { click: function(l) {
23112
23123
  return t.functionName(r);
23113
- } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])], 2) : a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: r.btnType || "primary" }, on: { click: function(l) {
23124
+ } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])], 2) : a("el-button", { style: `margin: 0 1px 0 0; padding: 6px 8px;${t.styled}${r.style ? r.style : ""}`, attrs: { type: r.btnType || "primary" }, on: { click: function(l) {
23114
23125
  return t.functionName(r);
23115
23126
  } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")])]] : t._e()];
23116
- }), t.moreList.length > 0 ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [t.btnMode === "text" ? a("el-button", { staticClass: "active-color", staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "text" } }, [a("i", { staticClass: "gd-icons el-icon-more", staticStyle: { "font-size": "12px" } })]) : a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" } }, [a("i", { staticClass: "gd-icons el-icon-more", staticStyle: { "font-size": "12px" } })]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord, minWidth: "100px" }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(t.moreList, function(r) {
23127
+ }), t.moreList.length > 0 ? a("el-dropdown", { attrs: { placement: "bottom" }, on: { command: t.command } }, [t.btnModed === "text" ? a("el-button", { staticClass: "active-color", staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "text" } }, [a("i", { staticClass: "gd-icons el-icon-more", staticStyle: { "font-size": "12px" } })]) : a("el-button", { style: `margin: 0 1px 0 0; padding: 6px 8px;${t.styled}`, attrs: { type: "primary" } }, [a("i", { staticClass: "gd-icons el-icon-more", staticStyle: { "font-size": "12px" } })]), a("el-dropdown-menu", { style: { "--dilute": t.fadeColord, minWidth: "100px" }, attrs: { slot: "dropdown" }, slot: "dropdown" }, t._l(t.moreList, function(r) {
23117
23128
  return a("el-dropdown-item", { key: r.key, attrs: { command: { item: r, key: null } } }, [a("i", { staticClass: "gd-icons", class: r.icon, staticStyle: { "font-size": "12px" } }), t._v(" " + t._s(t.$i18nt(r.transKey, r.displayName)) + " ")]);
23118
23129
  }), 1)], 1) : t._e()], 2);
23119
23130
  }, _sfc_staticRenderFns$4Z = [], __component__$4Z = /* @__PURE__ */ normalizeComponent(
@@ -23122,7 +23133,7 @@ var _sfc_render$4Z = function() {
23122
23133
  _sfc_staticRenderFns$4Z,
23123
23134
  !1,
23124
23135
  null,
23125
- "617ecd8f",
23136
+ "a87dd3a5",
23126
23137
  null,
23127
23138
  null
23128
23139
  );
@@ -32062,7 +32073,7 @@ function processingResults$2(s, t) {
32062
32073
  function isSatisfyed$2(s, t) {
32063
32074
  return t === "2" ? s.every((a, r, o) => !a) : s.every((a, r, o) => !!a);
32064
32075
  }
32065
- const main_vue_vue_type_style_index_0_scoped_53f2af2f_lang = "", _sfc_main$4R = {
32076
+ const main_vue_vue_type_style_index_0_scoped_0f8fff98_lang = "", _sfc_main$4R = {
32066
32077
  name: "GdTableQueriesField",
32067
32078
  props: {
32068
32079
  height: {
@@ -32340,14 +32351,14 @@ var _sfc_render$4R = function() {
32340
32351
  } }, model: { value: t.ruleFormData[r.prop], callback: function(l) {
32341
32352
  t.$set(t.ruleFormData, r.prop, l);
32342
32353
  }, expression: "ruleFormData[column.prop]" } })]], 2)];
32343
- })], 2), a("div", { staticClass: "gd-table-btom" }, [a("div", { staticClass: "active-color btom-reset", on: { click: t.reset } }, [t._v(" " + t._s(t.$i18nt("gd.btn.reset", "\u91CD\u7F6E")) + " ")]), a("el-button", { attrs: { type: "primary", size: "mini" }, on: { click: t.save } }, [t._v(t._s(t.$i18nt("gd.btn.confirm", "\u786E\u8BA4")))]), a("el-button", { attrs: { type: "info", size: "mini" }, on: { click: t.cancel } }, [t._v(t._s(t.$i18nt("gd.btn.cancel", "\u53D6\u6D88")))])], 1)], 1);
32354
+ })], 2), a("div", { staticClass: "gd-table-btom" }, [a("div", { staticClass: "active-color btom-reset", on: { click: t.reset } }, [a("i", { staticClass: "el-icon-brush" }), t._v(" " + t._s(t.$i18nt("gd.btn.reset", "\u91CD\u7F6E")) + " ")]), a("el-button", { attrs: { type: "primary", size: "mini", icon: "el-icon-document-checked" }, on: { click: t.save } }, [t._v(" " + t._s(t.$i18nt("gd.btn.confirm", "\u786E\u8BA4")) + " ")]), a("el-button", { attrs: { type: "info", size: "mini", icon: "el-icon-error" }, on: { click: t.cancel } }, [t._v(t._s(t.$i18nt("gd.btn.cancel", "\u53D6\u6D88")))])], 1)], 1);
32344
32355
  }, _sfc_staticRenderFns$4R = [], __component__$4R = /* @__PURE__ */ normalizeComponent(
32345
32356
  _sfc_main$4R,
32346
32357
  _sfc_render$4R,
32347
32358
  _sfc_staticRenderFns$4R,
32348
32359
  !1,
32349
32360
  null,
32350
- "53f2af2f",
32361
+ "0f8fff98",
32351
32362
  null,
32352
32363
  null
32353
32364
  );
@@ -111141,16 +111152,19 @@ var _sfc_render$2e = function s() {
111141
111152
  const operationMenus = __component__$2e.exports, abilityItems = [{
111142
111153
  type: "btnGroup",
111143
111154
  key: "",
111144
- label: "\u6309\u94AE\u7EC4",
111155
+ label: "\u6309\u94AE",
111145
111156
  icon: "gd-icon-anniu",
111146
111157
  transKey: "gd.functionalcomponents.btnGroup",
111147
111158
  options: {
111148
- limit: 20
111159
+ limit: 20,
111160
+ flexWidth: 100,
111161
+ flexUnit: "%",
111162
+ btnType: "btn"
111149
111163
  },
111150
- columns: [],
111164
+ btnList: [],
111151
111165
  css: {
111152
111166
  bjColor: "#fff",
111153
- padding: [0, 0, 0, 0],
111167
+ padding: [9, 15, 9, 15],
111154
111168
  margin: [0, 0, 0, 0]
111155
111169
  },
111156
111170
  fieldContext: [],
@@ -117475,84 +117489,335 @@ var _sfc_render$1G = function s() {
117475
117489
  null,
117476
117490
  null
117477
117491
  );
117478
- const detailView = __component__$1G.exports, btnGroup_vue_vue_type_style_index_0_scoped_a7fd9e66_lang = "", _sfc_main$1F = {
117492
+ const detailView = __component__$1G.exports;
117493
+ function getColumns(s, t, a) {
117494
+ var h, p, v, g;
117495
+ if (!s.syscodegenconfig && !s.syscodegenconfigfk)
117496
+ return console.log("\u5B57\u6BB5:" + s.name + "\u6570\u636E\u9519\u8BEF!"), null;
117497
+ const r = ["fk", "user"].includes(s.syscodegenconfig.effecttype) ? (h = s.syscodegenconfigfk) == null ? void 0 : h.effecttype : s.syscodegenconfig.effecttype, o = s.syscodegenconfig.effecttype, l = getColumnName(s).toLowerCase(), d = s.align ? s.align.split("&") : [], u = getScopedSlots(o, l, s);
117498
+ let f = {
117499
+ key: l,
117500
+ transKey: `Dynamics.${s.transkey}`,
117501
+ prop: l,
117502
+ label: s.name,
117503
+ width: String(s.width),
117504
+ owidth: String(s.width),
117505
+ columnName: s.syscodegenconfig.columnname,
117506
+ fkEntityName: s.syscodegenconfig.fkentityname,
117507
+ id: s.fieldid,
117508
+ fkId: ["fk", "about", "user"].includes(o) ? (p = s.syscodegenconfigfk) == null ? void 0 : p.id : null,
117509
+ align: d[0] ? d[0] : "center",
117510
+ checked: d[1] ? d[1] == 1 : !0,
117511
+ effectType: r,
117512
+ fieldType: o,
117513
+ gatherConfig: s.gatherconfig == 1,
117514
+ fieldFormat: ["fk", "user"].includes(o) ? (v = s.syscodegenconfigfk) == null ? void 0 : v.fieldformat : s.syscodegenconfig.fieldformat,
117515
+ dictTypeCode: ["fk", "user"].includes(o) ? (g = s.syscodegenconfigfk) == null ? void 0 : g.dicttypecode : s.syscodegenconfig.dicttypecode,
117516
+ dictTypeList: [],
117517
+ maxTagCount: s.maxtagcount ? Number(s.maxtagcount) : 2,
117518
+ sourceFk: !!["fk", "about", "user"].includes(o),
117519
+ displayMode: d[2] ? d[2] : "none",
117520
+ displayPrefix: d[3] ? d[3] : "none",
117521
+ preview: d[4] ? d[4] === "true" : !0,
117522
+ download: d[5] ? d[5] === "true" : !0
117523
+ };
117524
+ return s.orderconfig === 1 && Object.assign(f, {
117525
+ sortable: "custom"
117526
+ }), t < a && Object.assign(f, {
117527
+ fixed: "left"
117528
+ }), ["participants"].includes(o) && Object.assign(f, {
117529
+ showTooltip: !1
117530
+ }), Object.assign(f, u);
117531
+ }
117532
+ function getColumnName(s) {
117533
+ const t = s.syscodegenconfigfk ? s.syscodegenconfigfk.columnname : "";
117534
+ switch (s.syscodegenconfig.effecttype) {
117535
+ case "fk":
117536
+ return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
117537
+ case "user":
117538
+ return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
117539
+ case "about":
117540
+ return s.syscodegenconfig.relations.toLowerCase();
117541
+ default:
117542
+ return s.syscodegenconfig.columnname;
117543
+ }
117544
+ }
117545
+ function getScopedSlots(s, t, a) {
117546
+ var o;
117547
+ if (s == "input")
117548
+ return {};
117549
+ const r = ["fk", "user"].includes(s) ? (o = a.syscodegenconfigfk) == null ? void 0 : o.fieldformat : a.syscodegenconfig.fieldformat;
117550
+ return ["datepicker"].includes(s) && r === 1 ? {} : {
117551
+ type: "slot",
117552
+ slotType: t
117553
+ };
117554
+ }
117555
+ function getQueries(s, t, a) {
117556
+ if (s.syscodegenconfig == null)
117557
+ return !1;
117558
+ let r = s.options ? JSON.parse(s.options) : {}, o = {
117559
+ required: r.required,
117560
+ message: a,
117561
+ trigger: "blur"
117562
+ };
117563
+ return ["inputnumber", "double", " currency"].includes(s.syscodegenconfig.effecttype) && Object.assign(o, {
117564
+ type: "number"
117565
+ }), {
117566
+ id: s.syscodegenconfig.id,
117567
+ transKey: s.syscodegenconfig.transkey,
117568
+ prop: s.syscodegenconfig.columnname,
117569
+ label: s.syscodegenconfig.columncomment,
117570
+ effectType: getEffectType(s.syscodegenconfig.effecttype),
117571
+ dictTypeCode: s.syscodegenconfig.dicttypecode,
117572
+ fkEntityName: s.syscodegenconfig.fkentityname,
117573
+ disabled: s.disabled === void 0 ? !1 : s.disabled,
117574
+ options: r,
117575
+ fieldFormat: s.syscodegenconfig.fieldformat,
117576
+ valueFormat: getFieldFormat(s.syscodegenconfig.fieldformat, t),
117577
+ rules: [o],
117578
+ hasFiltered: !1,
117579
+ filterList: [],
117580
+ fkData: []
117581
+ };
117582
+ }
117583
+ function getFieldFormat(s, t) {
117584
+ if (s === null)
117585
+ return s;
117586
+ const a = t.filter((r) => String(r.code) === String(s))[0];
117587
+ return a ? a.name.replace("DD", "dd") : "yyyy-MM-dd hh:mm:ss";
117588
+ }
117589
+ function getEffectType(s) {
117590
+ let t = s;
117591
+ return ["image", "file"].includes(s) ? t = "input" : ["select", "radio", "switch", "checkbox"].includes(s) ? t = "selectMultiple" : ["fk", "about", "participants", "user"].includes(s) && (t = "selectFkMultiple"), t;
117592
+ }
117593
+ function switchingDate(s, t) {
117594
+ let a = /* @__PURE__ */ new Map();
117595
+ for (var r in s) {
117596
+ let o = s[r] != null && s[r] !== void 0 ? s[r] : "", l = t ? t.filter((u) => u.columnname === r)[0] : null;
117597
+ if ((l ? l.effecttype : "input") === "datepicker") {
117598
+ let u = dateProcessing(o, l);
117599
+ u && (a.set(r + "Start", u[0]), a.set(r + "End", u[1]));
117600
+ } else
117601
+ Array.isArray(o) ? o.length > 0 && a.set(r, o.join(",")) : !o == "" && a.set(r, o);
117602
+ }
117603
+ return a.size == 0 ? {} : Object.fromEntries(a);
117604
+ }
117605
+ function dateProcessing(s, t) {
117606
+ return s === "" ? !1 : typeof s == "array" || typeof s == "object" ? s[1] ? [s[0].split(" ")[0] + " 00:00:00", s[1].split(" ")[0] + " 23:59:59"] : !1 : t.fieldFormat == 1 ? [s, s] : [s + " 00:00:00", s + " 23:59:59"];
117607
+ }
117608
+ function hasDefaultVal(s) {
117609
+ let t = /* @__PURE__ */ new Map(), a = getDatepickerVal(s);
117610
+ return ["switch", "select", "radio", "checkbox", "selectMultiple"].includes(s.effectType) && s.options.defaultValueList.length > 0 ? t.set(s.prop, s.options.defaultValueList) : ["datepicker"].includes(s.effectType) && a ? t.set(s.prop, a) : (["input", "textarea", "editor"].includes(s.effectType) && s.options.defaultValue !== "" || ["inputnumber", "double", " currency"].includes(s.effectType) && s.options.defaultValue !== "") && t.set(s.prop, s.options.defaultValue), Object.fromEntries(t);
117611
+ }
117612
+ function getDatepickerVal(s) {
117613
+ if (!["datepicker"].includes(s.effectType))
117614
+ return !1;
117615
+ let t = s.options.displayStyle, a = s.options.defaultInterval.filter((d) => d.type === "interval")[0], r = s.options.defaultInterval.filter((d) => d.type === "equal")[0], o = r.value === "" ? s.options.defaultValue : getTimeDatas(r, t, s), l = a.value === "" ? s.options.defaultValueList : getTimeDatas(a, t, s);
117616
+ return t == 1 ? o === "" ? !1 : o : l.length === 0 ? !1 : l;
117617
+ }
117618
+ function getTimeDatas(s, t, a) {
117619
+ let r = Number(s.value), o = new Date().getTime(), l = o - r * 1e3 * 60 * 60 * 24, d = getFormatTime(o), u = getFormatTime(l), f = `${d.year}-${d.mon}-${d.day} ${d.hours}:${d.min}:${d.sec}`, h = `${u.year}-${u.mon}-${u.day} ${u.hours}:${u.min}:${u.sec}`;
117620
+ return t == 1 ? a.valueFormat.replace("DD", "dd") === "YYYY-MM-dd" ? h.split(" ")[0] : h : [h, f];
117621
+ }
117622
+ function getFormatTime(s) {
117623
+ let a = s.toString().length == 10 ? parseInt(s) * 1e3 : parseInt(s);
117624
+ var r = new Date(a), o = r.getFullYear(), l = r.getMonth() + 1, d = r.getDate(), u = r.getHours(), f = r.getMinutes(), h = r.getSeconds();
117625
+ return {
117626
+ year: o,
117627
+ mon: formatNumber(l),
117628
+ day: formatNumber(d),
117629
+ hours: formatNumber(u),
117630
+ min: formatNumber(f),
117631
+ sec: formatNumber(h)
117632
+ };
117633
+ }
117634
+ function formatNumber(s) {
117635
+ return s = s.toString(), s[1] ? s : "0" + s;
117636
+ }
117637
+ const btnGroup_vue_vue_type_style_index_0_scoped_386edc6a_lang = "", _sfc_main$1F = {
117479
117638
  props: {
117480
117639
  record: {
117481
117640
  type: Object,
117482
117641
  required: !0
117642
+ },
117643
+ develop: {
117644
+ type: [Number, String],
117645
+ default: 1
117483
117646
  }
117484
117647
  },
117485
117648
  data() {
117486
117649
  return {
117487
- sysViewButtons: []
117650
+ btnItems: {},
117651
+ show: !1,
117652
+ statu: !1,
117653
+ fieldData: [],
117654
+ visible: !1
117488
117655
  };
117489
117656
  },
117490
- watch: {
117491
- columns: {
117492
- handler(s) {
117493
- let t = [];
117494
- s.forEach((a) => {
117495
- let r = [];
117496
- a.permissionsPage !== "" && r.push(a.permissionsPage);
117497
- const o = a.childrenT ? { children: a.childrenT } : {};
117498
- t.push(
117499
- Object.assign(o, {
117500
- show: !a.hide,
117501
- functionName: a.functionName,
117502
- icon: a.icon,
117503
- displayName: a.displayName,
117504
- transKey: a.transKey,
117505
- permissions: r,
117506
- sublevel: a.sublevel,
117507
- tip: a.tip
117508
- })
117509
- );
117510
- }), this.sysViewButtons = [...t];
117511
- },
117512
- deep: !0,
117513
- immediate: !0
117514
- }
117515
- },
117516
117657
  computed: {
117658
+ componentForm() {
117659
+ const s = this.$importViewFiles();
117660
+ let a = `../views/main/${this.btnItems.table}/editForm.vue`;
117661
+ const r = s[a];
117662
+ return r ? r.default : GdsDesignVue.GdFormBuildDesigner;
117663
+ },
117664
+ tableData() {
117665
+ const s = this.tableLists.filter((t) => t.tablename === this.btnItems.table)[0];
117666
+ return s || { tablename: this.btnItems.table };
117667
+ },
117668
+ sysViewButtons() {
117669
+ let s = [];
117670
+ return this.columns.forEach((t) => {
117671
+ let a = {
117672
+ displayName: t.displayName,
117673
+ show: !t.hide,
117674
+ icon: t.icon,
117675
+ transKey: t.transKey,
117676
+ name: t.permissionsPage ? t.permissionsPage : t.id,
117677
+ children: t.sublevel ? t.children : [],
117678
+ id: t.id,
117679
+ style: fontSize(t)
117680
+ };
117681
+ const r = t.btType !== "none" ? { btnType: t.btnType } : {};
117682
+ s.push(Object.assign(a, r));
117683
+ }), s;
117684
+ },
117685
+ cssData() {
117686
+ return this.record.css;
117687
+ },
117517
117688
  columns() {
117518
- return this.record.columns;
117689
+ return this.record.btnList;
117519
117690
  },
117520
117691
  options() {
117521
117692
  return this.record.options;
117522
117693
  },
117523
117694
  style() {
117524
- let s = this.record.css, t = [], a = [];
117525
- s.padding && s.padding.forEach((l) => {
117526
- t.push(l + "px");
117527
- }), s.margin && s.margin.forEach((l) => {
117528
- a.push(l + "px");
117529
- });
117530
- let r = `padding:${t.join(" ")}`, o = `margin:${a.join(" ")}`;
117531
- return `background:${s.bjColor};${r};${o};`;
117532
- }
117695
+ return this.develop === 1 ? `${marginData(this.cssData)}` : `${marginData(this.cssData)}${widthData(this.options)}`;
117696
+ },
117697
+ stylei() {
117698
+ return paddingData(this.cssData);
117699
+ },
117700
+ hig() {
117701
+ return this.screenHeight - 50;
117702
+ },
117703
+ ...mapGetters(["tableLists", "screenHeight"])
117533
117704
  },
117534
117705
  methods: {
117535
- add(s) {
117706
+ refresh() {
117707
+ },
117708
+ async openForm(s) {
117709
+ this.show = !0, this.$nextTick(() => {
117710
+ setTimeout(async () => {
117711
+ if (this.$refs.editForm) {
117712
+ const t = this.btnItems.btnDataAll.formlist.filter((a) => a.id === this.btnItems.tableComponents)[0];
117713
+ await this.$refs.editForm.setFormRecord(t), this.$refs.editForm.open({
117714
+ title: this.$i18nt(`Dynamics.${this.btnItems.transKey}`, this.btnItems.displayName)
117715
+ }), this.statu = !1, s.close();
117716
+ }
117717
+ }, 0);
117718
+ });
117719
+ },
117720
+ queriesRefresh(s) {
117536
117721
  console.log(s);
117537
117722
  },
117538
- edit(s) {
117723
+ openQuery(s) {
117724
+ const t = this.btnItems.btnDataAll.viewlist.filter((l) => l.id === this.btnItems.tableComponents)[0];
117725
+ let a = [], r = {};
117726
+ t.sysviewqueries.forEach((l) => {
117727
+ const d = getQueries(l, this.getDictionary("time_longshort"), this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879")), u = this.fieldData.filter((h) => {
117728
+ let p = d ? d.prop : "";
117729
+ return h.columnname === p;
117730
+ })[0], f = u ? u.isquery : !0;
117731
+ d && f && a.push(d);
117732
+ }), a.map((l) => (!l.disabled && !l.options.hidden && (r = Object.assign(r, hasDefaultVal(l))), l));
117733
+ let o = this.btnItems.queryParam === void 0 ? {} : this.btnItems.queryParam === void 0;
117734
+ this.btnItems.queryParam === void 0 && Object.assign(this.btnItems, {
117735
+ queryParam: Object.assign(o, r),
117736
+ tableQueries: a,
117737
+ viewRecord: t
117738
+ }), this.visible = !0, console.log(this.btnItems), this.$nextTick(() => {
117739
+ setTimeout(() => {
117740
+ this.$refs.queriesField && this.$refs.queriesField.init().then((l) => {
117741
+ this.statu = !1, s.close();
117742
+ });
117743
+ }, 10);
117744
+ });
117745
+ },
117746
+ colseQuery() {
117747
+ this.visible = !1;
117748
+ },
117749
+ sysBaseAdd(s) {
117750
+ this.statu = !0;
117751
+ const t = this.$message({
117752
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
117753
+ duration: 0,
117754
+ iconClass: "el-icon-loading"
117755
+ });
117756
+ if (this.btnItems.btnDataAll !== void 0 && this.btnItems.fieldData !== void 0) {
117757
+ this.fieldData = this.btnItems.fieldData, this.openForm(t);
117758
+ return;
117759
+ }
117760
+ Promise.all([this.baseTableData(), this.baseGetLoadData()]).then((a) => {
117761
+ a[0].code === 200 ? this.openForm(t) : (this.$message.warning(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a[0].message), this.statu = !1, t.close());
117762
+ });
117763
+ },
117764
+ sysBaseQuery() {
117765
+ this.statu = !0;
117766
+ const s = this.$message({
117767
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
117768
+ duration: 0,
117769
+ iconClass: "el-icon-loading"
117770
+ });
117771
+ if (this.btnItems.viewRecord) {
117772
+ this.visible = !0, this.$nextTick(() => {
117773
+ setTimeout(() => {
117774
+ this.$refs.queriesField && this.$refs.queriesField.init().then((t) => {
117775
+ this.statu = !1, s.close();
117776
+ });
117777
+ }, 10);
117778
+ });
117779
+ return;
117780
+ }
117781
+ Promise.all([this.baseTableData(), this.baseGetLoadData()]).then((t) => {
117782
+ t[0].code === 200 ? this.openQuery(s) : (this.$message.warning(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t[0].message), this.statu = !1, s.close());
117783
+ });
117784
+ },
117785
+ baseTableData() {
117786
+ return baseTableData({ tableId: this.tableData.id }).then((s) => (s.code === 200 && Object.assign(this.btnItems, { btnDataAll: s.data }), s));
117787
+ },
117788
+ baseGetLoadData() {
117789
+ return onlineFormGetCodeGenerateList({
117790
+ codeGenId: this.tableData.id
117791
+ }).then((s) => (s.code === 200 && (Object.assign(this.btnItems, { fieldData: s.data }), this.fieldData = s.data), s));
117792
+ },
117793
+ changeTrigger() {
117794
+ },
117795
+ getDictionary(s) {
117796
+ return this.$options.filters.dictData(s);
117539
117797
  },
117540
117798
  doEvent(s) {
117541
- let t = s.item.functionName;
117542
- this[t] && this[t]();
117799
+ if (this.statu || this.develop === 1)
117800
+ return;
117801
+ const t = this.columns.filter((a) => a.id === s.item.id)[0];
117802
+ if (console.log(s, t), !!t && (this.btnItems = t, t.formMode === "systemsMethod")) {
117803
+ let a = t.sysFunctionName;
117804
+ this[a] && this[a](t);
117805
+ }
117543
117806
  }
117544
117807
  }
117545
117808
  };
117546
117809
  var _sfc_render$1F = function s() {
117547
117810
  var t = this, a = t._self._c;
117548
- return t.columns.length == 0 ? a("div", { staticClass: "btn-class" }, [t._v(" ~" + t._s(t.$i18nt("gd.module.pleaseAddButtonOnTheRight", "\u8BF7\u5728\u53F3\u4FA7\u6DFB\u52A0\u6309\u94AE")) + "~ ")]) : a("div", { style: t.style }, [a("gd-btn-list", { attrs: { sysViewButtons: t.sysViewButtons, max: t.options.limit }, on: { functionName: t.doEvent } })], 1);
117811
+ return a("div", [t.columns.length == 0 ? a("div", { staticClass: "btn-class" }, [t._v("~" + t._s(t.$i18nt("gd.module.pleaseAddButtonOnTheRight", "\u8BF7\u5728\u53F3\u4FA7\u6DFB\u52A0\u6309\u94AE")) + "~")]) : a("div", { class: t.options.btnType === "btn" ? "gd-line-btn" : "", style: t.style }, [a("gd-btn-list", { attrs: { sysViewButtons: t.sysViewButtons, max: t.options.limit, followSys: !1, styled: t.stylei }, on: { functionName: t.doEvent } })], 1), t.develop == 2 ? [t.show ? a(t.componentForm, { ref: "editForm", tag: "component", attrs: { fieldData: t.fieldData, tableData: t.tableData, recordRelation: t.record, openMode: 1 }, on: { ok: t.refresh } }) : t._e(), a("el-drawer", { attrs: { visible: t.visible, "close-on-press-escape": !1, "append-to-body": !0, "modal-append-to-body": !1, size: "366px", "custom-class": "gd-drawer-form" }, on: { "update:visible": function(r) {
117812
+ t.visible = r;
117813
+ } } }, [a("template", { slot: "title" }, [a("div", { staticClass: "gd-dialog-head gd-dialog-heads" }, [a("div", { staticClass: "dialog-head-title" }, [t._v(t._s(t.$i18nt(`Dynamics.${this.btnItems.transKey}`, this.btnItems.displayName)))]), a("div", { staticClass: "dialog-head-btn" })])]), a("div", [a("gd-table-queries-field", { ref: "queriesField", attrs: { columns: t.btnItems.tableQueries, height: t.hig, queryParam: t.btnItems.queryParam, colse: t.colseQuery, visible: t.visible, openMode: 1, recordRelation: t.record, viewRecord: t.btnItems.viewRecord, openRules: !0, changeTrigger: t.changeTrigger }, on: { save: t.queriesRefresh } })], 1)], 2)] : t._e()], 2);
117549
117814
  }, _sfc_staticRenderFns$1F = [], __component__$1F = /* @__PURE__ */ normalizeComponent(
117550
117815
  _sfc_main$1F,
117551
117816
  _sfc_render$1F,
117552
117817
  _sfc_staticRenderFns$1F,
117553
117818
  !1,
117554
117819
  null,
117555
- "a7fd9e66",
117820
+ "386edc6a",
117556
117821
  null,
117557
117822
  null
117558
117823
  );
@@ -118011,7 +118276,7 @@ const echartsView = __component__$1A.exports, componentArray = {
118011
118276
  uploadImg,
118012
118277
  echarts: echartsView,
118013
118278
  inputNumber: moneyNumber
118014
- }, layoutItem_vue_vue_type_style_index_0_scoped_426835f5_lang = "", _sfc_main$1z = {
118279
+ }, layoutItem_vue_vue_type_style_index_0_scoped_b98906d7_lang = "", _sfc_main$1z = {
118015
118280
  props: {
118016
118281
  record: {
118017
118282
  type: Object,
@@ -118139,11 +118404,11 @@ const echartsView = __component__$1A.exports, componentArray = {
118139
118404
  }
118140
118405
  });
118141
118406
  },
118142
- searchDataId(s) {
118407
+ searchDataId(s, t) {
118143
118408
  this.loading = !0;
118144
- const t = this.options.effectType, a = t === "fk" || t === "user" ? this.options.fkEntityName : this.options.fkEntityName.split(",")[0];
118145
- baseFkList({ id: s, fkEntityName: a }).then((o) => {
118146
- this.loading = !1, o.code === 200 && (this.fkData = o.data, this.record.fkData = [...this.fkData]);
118409
+ const a = this.options.effectType, r = a === "fk" || a === "user" ? this.options.fkEntityName : this.options.fkEntityName.split(",")[0];
118410
+ baseFkList({ id: s, fkEntityName: t || r }).then((l) => {
118411
+ this.loading = !1, l.code === 200 && (this.fkData = l.data.map((d) => (d.tableName = t || r, d)), this.record.fkData = [...this.fkData]);
118147
118412
  });
118148
118413
  },
118149
118414
  setData({ val: s, data: t, items: a, fkData: r }) {
@@ -118291,7 +118556,7 @@ var _sfc_render$1z = function s() {
118291
118556
  _sfc_staticRenderFns$1z,
118292
118557
  !1,
118293
118558
  null,
118294
- "426835f5",
118559
+ "b98906d7",
118295
118560
  null,
118296
118561
  null
118297
118562
  );
@@ -118388,7 +118653,7 @@ var _sfc_render$1y = function s() {
118388
118653
  null,
118389
118654
  null
118390
118655
  );
118391
- const BuildLayoutItemForm = __component__$1y.exports, layoutNode_vue_vue_type_style_index_0_scoped_608c4979_lang = "", _sfc_main$1x = {
118656
+ const BuildLayoutItemForm = __component__$1y.exports, layoutNode_vue_vue_type_style_index_0_scoped_22e7f515_lang = "", _sfc_main$1x = {
118392
118657
  props: {
118393
118658
  record: {
118394
118659
  type: Object,
@@ -118422,11 +118687,6 @@ const BuildLayoutItemForm = __component__$1y.exports, layoutNode_vue_vue_type_st
118422
118687
  data() {
118423
118688
  return {};
118424
118689
  },
118425
- computed: {
118426
- fstyle() {
118427
- return `width:${this.record.options.flexWidth + "%"};`;
118428
- }
118429
- },
118430
118690
  components: { buildLayoutItem: BuildLayoutItem, buildLayoutItemForm: BuildLayoutItemForm },
118431
118691
  methods: {
118432
118692
  handleSelectItem() {
@@ -118482,7 +118742,7 @@ var _sfc_render$1x = function s() {
118482
118742
  _sfc_staticRenderFns$1x,
118483
118743
  !1,
118484
118744
  null,
118485
- "608c4979",
118745
+ "22e7f515",
118486
118746
  null,
118487
118747
  null
118488
118748
  );
@@ -118583,152 +118843,7 @@ var _sfc_render$1v = function s() {
118583
118843
  null,
118584
118844
  null
118585
118845
  );
118586
- const FlexLayout = __component__$1v.exports;
118587
- function getColumns(s, t, a) {
118588
- var h, p, v, g;
118589
- if (!s.syscodegenconfig && !s.syscodegenconfigfk)
118590
- return console.log("\u5B57\u6BB5:" + s.name + "\u6570\u636E\u9519\u8BEF!"), null;
118591
- const r = ["fk", "user"].includes(s.syscodegenconfig.effecttype) ? (h = s.syscodegenconfigfk) == null ? void 0 : h.effecttype : s.syscodegenconfig.effecttype, o = s.syscodegenconfig.effecttype, l = getColumnName(s).toLowerCase(), d = s.align ? s.align.split("&") : [], u = getScopedSlots(o, l, s);
118592
- let f = {
118593
- key: l,
118594
- transKey: `Dynamics.${s.transkey}`,
118595
- prop: l,
118596
- label: s.name,
118597
- width: String(s.width),
118598
- owidth: String(s.width),
118599
- columnName: s.syscodegenconfig.columnname,
118600
- fkEntityName: s.syscodegenconfig.fkentityname,
118601
- id: s.fieldid,
118602
- fkId: ["fk", "about", "user"].includes(o) ? (p = s.syscodegenconfigfk) == null ? void 0 : p.id : null,
118603
- align: d[0] ? d[0] : "center",
118604
- checked: d[1] ? d[1] == 1 : !0,
118605
- effectType: r,
118606
- fieldType: o,
118607
- gatherConfig: s.gatherconfig == 1,
118608
- fieldFormat: ["fk", "user"].includes(o) ? (v = s.syscodegenconfigfk) == null ? void 0 : v.fieldformat : s.syscodegenconfig.fieldformat,
118609
- dictTypeCode: ["fk", "user"].includes(o) ? (g = s.syscodegenconfigfk) == null ? void 0 : g.dicttypecode : s.syscodegenconfig.dicttypecode,
118610
- dictTypeList: [],
118611
- maxTagCount: s.maxtagcount ? Number(s.maxtagcount) : 2,
118612
- sourceFk: !!["fk", "about", "user"].includes(o),
118613
- displayMode: d[2] ? d[2] : "none",
118614
- displayPrefix: d[3] ? d[3] : "none",
118615
- preview: d[4] ? d[4] === "true" : !0,
118616
- download: d[5] ? d[5] === "true" : !0
118617
- };
118618
- return s.orderconfig === 1 && Object.assign(f, {
118619
- sortable: "custom"
118620
- }), t < a && Object.assign(f, {
118621
- fixed: "left"
118622
- }), ["participants"].includes(o) && Object.assign(f, {
118623
- showTooltip: !1
118624
- }), Object.assign(f, u);
118625
- }
118626
- function getColumnName(s) {
118627
- const t = s.syscodegenconfigfk ? s.syscodegenconfigfk.columnname : "";
118628
- switch (s.syscodegenconfig.effecttype) {
118629
- case "fk":
118630
- return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
118631
- case "user":
118632
- return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
118633
- case "about":
118634
- return s.syscodegenconfig.relations.toLowerCase();
118635
- default:
118636
- return s.syscodegenconfig.columnname;
118637
- }
118638
- }
118639
- function getScopedSlots(s, t, a) {
118640
- var o;
118641
- if (s == "input")
118642
- return {};
118643
- const r = ["fk", "user"].includes(s) ? (o = a.syscodegenconfigfk) == null ? void 0 : o.fieldformat : a.syscodegenconfig.fieldformat;
118644
- return ["datepicker"].includes(s) && r === 1 ? {} : {
118645
- type: "slot",
118646
- slotType: t
118647
- };
118648
- }
118649
- function getQueries(s, t, a) {
118650
- if (s.syscodegenconfig == null)
118651
- return !1;
118652
- let r = s.options ? JSON.parse(s.options) : {}, o = {
118653
- required: r.required,
118654
- message: a,
118655
- trigger: "blur"
118656
- };
118657
- return ["inputnumber", "double", " currency"].includes(s.syscodegenconfig.effecttype) && Object.assign(o, {
118658
- type: "number"
118659
- }), {
118660
- id: s.syscodegenconfig.id,
118661
- transKey: s.syscodegenconfig.transkey,
118662
- prop: s.syscodegenconfig.columnname,
118663
- label: s.syscodegenconfig.columncomment,
118664
- effectType: getEffectType(s.syscodegenconfig.effecttype),
118665
- dictTypeCode: s.syscodegenconfig.dicttypecode,
118666
- fkEntityName: s.syscodegenconfig.fkentityname,
118667
- disabled: s.disabled === void 0 ? !1 : s.disabled,
118668
- options: r,
118669
- fieldFormat: s.syscodegenconfig.fieldformat,
118670
- valueFormat: getFieldFormat(s.syscodegenconfig.fieldformat, t),
118671
- rules: [o],
118672
- hasFiltered: !1,
118673
- filterList: [],
118674
- fkData: []
118675
- };
118676
- }
118677
- function getFieldFormat(s, t) {
118678
- if (s === null)
118679
- return s;
118680
- const a = t.filter((r) => String(r.code) === String(s))[0];
118681
- return a ? a.name.replace("DD", "dd") : "yyyy-MM-dd hh:mm:ss";
118682
- }
118683
- function getEffectType(s) {
118684
- let t = s;
118685
- return ["image", "file"].includes(s) ? t = "input" : ["select", "radio", "switch", "checkbox"].includes(s) ? t = "selectMultiple" : ["fk", "about", "participants", "user"].includes(s) && (t = "selectFkMultiple"), t;
118686
- }
118687
- function switchingDate(s, t) {
118688
- let a = /* @__PURE__ */ new Map();
118689
- for (var r in s) {
118690
- let o = s[r] != null && s[r] !== void 0 ? s[r] : "", l = t ? t.filter((u) => u.columnName === r)[0] : null;
118691
- if ((l ? l.effectType : "input") === "datepicker") {
118692
- let u = dateProcessing(o, l);
118693
- u && (a.set(r + "Start", u[0]), a.set(r + "End", u[1]));
118694
- } else
118695
- Array.isArray(o) ? o.length > 0 && a.set(r, o.join(",")) : !o == "" && a.set(r, o);
118696
- }
118697
- return a.size == 0 ? {} : Object.fromEntries(a);
118698
- }
118699
- function dateProcessing(s, t) {
118700
- return s === "" ? !1 : typeof s == "array" || typeof s == "object" ? s[1] ? [s[0].split(" ")[0] + " 00:00:00", s[1].split(" ")[0] + " 23:59:59"] : !1 : t.fieldFormat == 1 ? [s, s] : [s + " 00:00:00", s + " 23:59:59"];
118701
- }
118702
- function hasDefaultVal(s) {
118703
- let t = /* @__PURE__ */ new Map(), a = getDatepickerVal(s);
118704
- return ["switch", "select", "radio", "checkbox", "selectMultiple"].includes(s.effectType) && s.options.defaultValueList.length > 0 ? t.set(s.prop, s.options.defaultValueList) : ["datepicker"].includes(s.effectType) && a ? t.set(s.prop, a) : (["input", "textarea", "editor"].includes(s.effectType) && s.options.defaultValue !== "" || ["inputnumber", "double", " currency"].includes(s.effectType) && s.options.defaultValue !== "") && t.set(s.prop, s.options.defaultValue), Object.fromEntries(t);
118705
- }
118706
- function getDatepickerVal(s) {
118707
- if (!["datepicker"].includes(s.effectType))
118708
- return !1;
118709
- let t = s.options.displayStyle, a = s.options.defaultInterval.filter((d) => d.type === "interval")[0], r = s.options.defaultInterval.filter((d) => d.type === "equal")[0], o = r.value === "" ? s.options.defaultValue : getTimeDatas(r, t, s), l = a.value === "" ? s.options.defaultValueList : getTimeDatas(a, t, s);
118710
- return t == 1 ? o === "" ? !1 : o : l.length === 0 ? !1 : l;
118711
- }
118712
- function getTimeDatas(s, t, a) {
118713
- let r = Number(s.value), o = new Date().getTime(), l = o - r * 1e3 * 60 * 60 * 24, d = getFormatTime(o), u = getFormatTime(l), f = `${d.year}-${d.mon}-${d.day} ${d.hours}:${d.min}:${d.sec}`, h = `${u.year}-${u.mon}-${u.day} ${u.hours}:${u.min}:${u.sec}`;
118714
- return t == 1 ? a.valueFormat.replace("DD", "dd") === "YYYY-MM-dd" ? h.split(" ")[0] : h : [h, f];
118715
- }
118716
- function getFormatTime(s) {
118717
- let a = s.toString().length == 10 ? parseInt(s) * 1e3 : parseInt(s);
118718
- var r = new Date(a), o = r.getFullYear(), l = r.getMonth() + 1, d = r.getDate(), u = r.getHours(), f = r.getMinutes(), h = r.getSeconds();
118719
- return {
118720
- year: o,
118721
- mon: formatNumber(l),
118722
- day: formatNumber(d),
118723
- hours: formatNumber(u),
118724
- min: formatNumber(f),
118725
- sec: formatNumber(h)
118726
- };
118727
- }
118728
- function formatNumber(s) {
118729
- return s = s.toString(), s[1] ? s : "0" + s;
118730
- }
118731
- const dataList_vue_vue_type_style_index_0_scoped_e0a762ef_lang = "", _sfc_main$1u = {
118846
+ const FlexLayout = __component__$1v.exports, dataList_vue_vue_type_style_index_0_scoped_372a6426_lang = "", _sfc_main$1u = {
118732
118847
  props: {
118733
118848
  record: {
118734
118849
  type: Object,
@@ -118757,7 +118872,7 @@ const dataList_vue_vue_type_style_index_0_scoped_e0a762ef_lang = "", _sfc_main$1
118757
118872
  watch: {
118758
118873
  record: {
118759
118874
  handler(s, t) {
118760
- t !== void 0 && this.getContext();
118875
+ t !== void 0 && s.type === "dataList" && this.getContext();
118761
118876
  },
118762
118877
  deep: !0,
118763
118878
  immediate: !0
@@ -118909,7 +119024,7 @@ var _sfc_render$1u = function s() {
118909
119024
  _sfc_staticRenderFns$1u,
118910
119025
  !1,
118911
119026
  null,
118912
- "e0a762ef",
119027
+ "372a6426",
118913
119028
  null,
118914
119029
  null
118915
119030
  );
@@ -122090,7 +122205,7 @@ var _sfc_render$18 = function s() {
122090
122205
  null,
122091
122206
  null
122092
122207
  );
122093
- const propertiesDetail = __component__$18.exports, propertiesBtn_vue_vue_type_style_index_0_scoped_8c758189_lang = "", _sfc_main$17 = {
122208
+ const propertiesDetail = __component__$18.exports, propertiesBtn_vue_vue_type_style_index_0_scoped_93578801_lang = "", _sfc_main$17 = {
122094
122209
  props: {
122095
122210
  selectItem: {
122096
122211
  type: Object,
@@ -122102,11 +122217,28 @@ const propertiesDetail = __component__$18.exports, propertiesBtn_vue_vue_type_st
122102
122217
  }
122103
122218
  },
122104
122219
  data() {
122105
- return {
122106
- btnList: []
122107
- };
122220
+ return {};
122108
122221
  },
122109
122222
  computed: {
122223
+ styleList() {
122224
+ return [
122225
+ { name: "\u9ED8\u8BA4", code: "none", transKey: "gd.page.btnPrimary" },
122226
+ { name: "\u8DDF\u968F", code: "primary", transKey: "gd.page.btnPrimary" },
122227
+ { name: "\u6210\u529F", code: "success ", transKey: "gd.page.btnSuccess " },
122228
+ { name: "\u8B66\u544A", code: "warning ", transKey: "gd.page.btnWarning " },
122229
+ { name: "\u5371\u9669", code: "danger ", transKey: "gd.page.btnDanger " },
122230
+ { name: "\u4FE1\u606F", code: "info", transKey: "gd.page.btnInfo" }
122231
+ ];
122232
+ },
122233
+ functionList() {
122234
+ return [
122235
+ { name: "\u65B0\u589E", code: "sysBaseAdd", transKey: "gd.btn.add", type: "form" },
122236
+ { name: "\u67E5\u8BE2", code: "sysBaseQuery", transKey: "gd.btn.query", type: "view" }
122237
+ ];
122238
+ },
122239
+ btnDisabled() {
122240
+ return !!(this.selectItem.btnList && this.selectItem.btnList.length > 1);
122241
+ },
122110
122242
  options() {
122111
122243
  return this.selectItem.options;
122112
122244
  },
@@ -122116,36 +122248,79 @@ const propertiesDetail = __component__$18.exports, propertiesBtn_vue_vue_type_st
122116
122248
  dialogTree() {
122117
122249
  return JSON.parse(JSON.stringify(this.outlineTreeData.dialogTree));
122118
122250
  },
122119
- ...mapGetters(["primaryColor"])
122251
+ ...mapGetters(["primaryColor", "tableLists"])
122120
122252
  },
122121
122253
  components: {
122122
122254
  draggable,
122123
122255
  iconSelector: GDpackage$Q
122124
122256
  },
122125
122257
  methods: {
122258
+ changeSysMethod(s, t) {
122259
+ const a = this.tableLists.filter((r) => r.tablename === s)[0];
122260
+ sysViewList$1({ sysCodeGenId: a.id }).then((r) => {
122261
+ if (r.code === 200) {
122262
+ let o = [];
122263
+ r.data.forEach((l) => {
122264
+ o.push({
122265
+ id: l.id,
122266
+ name: l.name,
122267
+ transkey: l.transkey
122268
+ });
122269
+ }), t.viewList = o;
122270
+ }
122271
+ }), sysFormList({ sysCodeGenId: a.id }).then((r) => {
122272
+ if (r.code === 200) {
122273
+ let o = [];
122274
+ r.data.forEach((l) => {
122275
+ o.push({
122276
+ id: l.id,
122277
+ displayname: l.displayname,
122278
+ transkey: l.transkey
122279
+ });
122280
+ }), t.formList = o;
122281
+ }
122282
+ });
122283
+ },
122284
+ changeTableComponents(s, t) {
122285
+ const a = t.viewList.filter((o) => o.id == s)[0], r = t.formList.filter((o) => o.id == s)[0];
122286
+ if (a) {
122287
+ t.tableComponentsType = "view", t.sysFunctionName = "sysBaseQuery";
122288
+ return;
122289
+ }
122290
+ r && (t.tableComponentsType = "form", t.sysFunctionName = "sysBaseAdd");
122291
+ },
122126
122292
  addBtn() {
122127
122293
  const s = {
122128
- displayName: "\u6309\u94AE",
122294
+ id: uuid$1(12),
122295
+ displayName: "\u6309\u94AE" + (this.selectItem.btnList.length + 1),
122296
+ sysFunctionName: "sysBaseAdd",
122297
+ componentFunctionName: "",
122129
122298
  functionName: "",
122130
122299
  transKey: null,
122131
122300
  icon: "",
122132
122301
  hide: !1,
122133
122302
  permissionsPage: "",
122134
- mode: "custom",
122135
- formKey: "",
122136
- formMode: "form",
122137
- childrenT: [],
122303
+ componentKey: "",
122304
+ formMode: "systemsMethod",
122305
+ btnstyle: "primary",
122306
+ children: [],
122138
122307
  btType: "none",
122139
122308
  sublevel: !1,
122140
- tip: ""
122309
+ tip: "",
122310
+ table: "",
122311
+ viewList: [],
122312
+ tableComponents: "",
122313
+ tableComponentsType: "view",
122314
+ fromList: [],
122315
+ fontSize: 12
122141
122316
  };
122142
- this.selectItem.columns = this.selectItem.columns.concat([s]);
122317
+ this.selectItem.btnList = this.selectItem.btnList.concat([s]);
122143
122318
  },
122144
122319
  delBtn(s) {
122145
- console.log(s), this.selectItem.columns = this.selectItem.columns.filter((t, a) => s !== a);
122320
+ this.selectItem.btnList = this.selectItem.btnList.filter((t, a) => s !== a);
122146
122321
  },
122147
122322
  clearBtn() {
122148
- this.selectItem.columns.length !== 0 && (this.btnList = [], this.selectItem.columns = []);
122323
+ this.selectItem.btnList.length !== 0 && (this.btnList = [], this.selectItem.btnList = []);
122149
122324
  },
122150
122325
  popoverClosed(s) {
122151
122326
  this.$refs[`popoverItem${s}`][0].doClose();
@@ -122156,40 +122331,30 @@ const propertiesDetail = __component__$18.exports, propertiesBtn_vue_vue_type_st
122156
122331
  addBtnChild(s) {
122157
122332
  let t = {
122158
122333
  value: "",
122159
- displayName: ""
122334
+ displayName: "",
122335
+ id: uuid$1(8)
122160
122336
  };
122161
- this.selectItem.columns.forEach((a, r) => {
122162
- if (a.childrenT.length == 10) {
122163
- this.$message.warning("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A");
122164
- return;
122165
- }
122166
- s == r && a.childrenT.push([t]);
122337
+ this.selectItem.btnList[s].children.length !== 10 && this.selectItem.btnList.forEach((a, r) => {
122338
+ s === r && a.children.push([t]);
122167
122339
  });
122168
122340
  },
122169
122341
  delChild(s, t) {
122170
- this.selectItem.columns.filter((a, r) => {
122171
- if (t == r) {
122172
- if (a.childrenT.length == 1) {
122173
- this.$message.warning("\u81F3\u5C11\u4FDD\u75591\u4E2A");
122174
- return;
122175
- }
122176
- a.childrenT = a.childrenT.filter((o, l) => s !== l);
122177
- }
122342
+ this.selectItem.btnList.filter((a, r) => {
122343
+ t == r && (a.children = a.children.filter((o, l) => s !== l));
122178
122344
  });
122179
- },
122180
- sublevel(s) {
122181
- this.btnList = s == !0 ? this.btnList : [];
122182
122345
  }
122183
122346
  }
122184
122347
  };
122185
122348
  var _sfc_render$17 = function s() {
122186
122349
  var t = this, a = t._self._c;
122187
- return a("div", [t.selectItem.type == "btnGroup" ? a("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: t.$i18nt("gd.page.buttonConfiguration", "\u6309\u94AE\u914D\u7F6E") } }, [a("div", { staticClass: "generator-items" }, [a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.rule", "\u89C4\u5219"), placement: "top" } }, [a("i", { staticClass: "el-icon-setting" })]), a("el-divider", { attrs: { direction: "vertical" } }), a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.empty", "\u6E05\u7A7A"), placement: "top" } }, [a("el-popconfirm", { attrs: { title: t.$i18nt("gd.page.emptyButton", "\u6E05\u7A7A\u6309\u94AE") }, on: { confirm: t.clearBtn } }, [a("i", { staticClass: "el-icon-delete", attrs: { slot: "reference" }, slot: "reference" })])], 1), a("el-divider", { attrs: { direction: "vertical" } }), a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.add", "\u65B0\u589E"), placement: "top" } }, [a("i", { staticClass: "el-icon-plus", on: { click: t.addBtn } })])], 1)]) : t._e(), a("div", { staticClass: "generator-kuang" }, [a("draggable", t._b({ model: { value: t.selectItem.columns, callback: function(r) {
122188
- t.$set(t.selectItem, "columns", r);
122189
- }, expression: "selectItem.columns" } }, "draggable", {
122350
+ return a("div", [a("el-form-item", { attrs: { label: t.$i18nt("gd.page.cuttingModed", "\u7C7B\u578B") } }, [a("el-radio-group", { model: { value: t.options.btnType, callback: function(r) {
122351
+ t.$set(t.options, "btnType", r);
122352
+ }, expression: "options.btnType" } }, [a("el-radio-button", { attrs: { label: "btn", disabled: t.btnDisabled } }, [t._v(t._s(t.$i18nt("gd.page.btndd", "\u6309\u94AE")))]), a("el-radio-button", { attrs: { label: "butGroup" } }, [t._v(t._s(t.$i18nt("gd.page.butGroupdd", "\u6309\u94AE\u7EC4")))])], 1)], 1), t.selectItem.type == "btnGroup" ? a("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: t.$i18nt("gd.page.buttonConfiguration", "\u6309\u94AE\u914D\u7F6E") } }, [a("div", { staticClass: "generator-items" }, [t.selectItem.btnList.length > 0 ? [a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.empty", "\u6E05\u7A7A"), placement: "top" } }, [a("el-popconfirm", { attrs: { title: t.$i18nt("gd.page.emptyButton", "\u6E05\u7A7A\u6309\u94AE") }, on: { confirm: t.clearBtn } }, [a("i", { staticClass: "el-icon-delete", attrs: { slot: "reference" }, slot: "reference" })])], 1), a("el-divider", { attrs: { direction: "vertical" } })] : t._e(), t.options.btnType == "btn" && t.selectItem.btnList.length < 1 || t.options.btnType == "butGroup" ? a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.add", "\u65B0\u589E"), placement: "top" } }, [a("i", { staticClass: "el-icon-plus", on: { click: t.addBtn } })]) : t._e()], 2)]) : t._e(), a("div", { staticClass: "generator-kuang" }, [a("draggable", t._b({ model: { value: t.selectItem.btnList, callback: function(r) {
122353
+ t.$set(t.selectItem, "btnList", r);
122354
+ }, expression: "selectItem.btnList" } }, "draggable", {
122190
122355
  animation: 300,
122191
122356
  handle: ".drag-move"
122192
- }, !1), [t._l(t.selectItem.columns, function(r, o) {
122357
+ }, !1), [t._l(t.selectItem.btnList, function(r, o) {
122193
122358
  return [a("el-popover", { attrs: { placement: "left", trigger: "click" } }, [a("div", { staticClass: "generator-list", attrs: { slot: "reference" }, slot: "reference" }, [a("i", { staticClass: "el-icon-rank active-color drag-move" }), a("div", { staticClass: "sku" }, [r.icon !== "" ? a("i", { staticClass: "gd-icons", class: r.icon }) : t._e(), t._v(" " + t._s(t.$i18nt(`Dynamics.${r.transKey}`, r.displayName)) + " ")]), a("i", { staticClass: "el-icon-delete rdelete", on: { click: function(l) {
122194
122359
  return l.stopPropagation(), t.delBtn(o);
122195
122360
  } } })]), a("div", { staticClass: "generator-config" }, [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.text", "\u6587\u672C")))]), a("div", { staticClass: "r" }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: r.displayName, callback: function(l) {
@@ -122200,50 +122365,66 @@ var _sfc_render$17 = function s() {
122200
122365
  return t.popoverClosed(o);
122201
122366
  } }, model: { value: r.icon, callback: function(l) {
122202
122367
  t.$set(r, "icon", l);
122203
- }, expression: "item.icon" } })], 1)], 1)], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.executionFunction", "\u6267\u884C\u65B9\u6CD5")))]), a("div", { staticClass: "r" }, [a("el-input", { attrs: { disabled: r.mode === "sys", placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: r.functionName, callback: function(l) {
122204
- t.$set(r, "functionName", l);
122205
- }, expression: "item.functionName" } })], 1)]), r.mode === "custom" ? [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveMode", "\u4EA4\u4E92\u65B9\u5F0F")))]), a("div", { staticClass: "r" }, [a("el-radio-group", { attrs: { size: "mini" }, model: { value: r.formMode, callback: function(l) {
122368
+ }, expression: "item.icon" } })], 1)], 1)], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l ls" }, [t._v(t._s(t.$i18nt("gd.page.interactive", "\u4EA4\u4E92")))])]), a("div", { staticClass: "config-kuang" }, [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveMode", "\u4EA4\u4E92\u65B9\u5F0F")))]), a("div", { staticClass: "r" }, [a("el-radio-group", { attrs: { size: "mini" }, model: { value: r.formMode, callback: function(l) {
122206
122369
  t.$set(r, "formMode", l);
122207
- }, expression: "item.formMode" } }, [a("el-radio-button", { attrs: { label: "form" } }, [t._v(t._s(t.$i18nt("gd.page.follow", "\u8DDF\u968F")))]), a("el-radio-button", { attrs: { label: "component" } }, [t._v(t._s(t.$i18nt("gd.page.custom", "\u81EA\u5B9A\u4E49")))])], 1)], 1)]), r.formMode === "component" ? [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveComponent", "\u4EA4\u4E92\u7EC4\u4EF6")))]), a("div", { staticClass: "r" }, [a("el-select", { attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: t.options.formKey, callback: function(l) {
122208
- t.$set(t.options, "formKey", l);
122209
- }, expression: "options.formKey" } }, t._l(t.dialogTree, function(l, d) {
122370
+ }, expression: "item.formMode" } }, [a("el-radio-button", { attrs: { label: "systemsMethod" } }, [t._v(" " + t._s(t.$i18nt("gd.page.systemsMethod", "\u7CFB\u7EDF\u65B9\u6CD5")) + " ")]), a("el-radio-button", { attrs: { label: "componentMethod" } }, [t._v(" " + t._s(t.$i18nt("gd.page.componentMethod", "\u7EC4\u4EF6\u65B9\u6CD5")) + " ")])], 1)], 1)]), r.formMode === "systemsMethod" ? [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.form.associationTable", "\u5173\u8054\u8868")))]), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: (l) => t.changeSysMethod(l, r) }, model: { value: r.table, callback: function(l) {
122371
+ t.$set(r, "table", l);
122372
+ }, expression: "item.table" } }, t._l(t.tableLists, function(l) {
122373
+ return a("el-option", { key: l.tablename, attrs: { label: t.$i18nt(`Dynamics.${l.transkey}`, l.busname), value: l.tablename } }, [a("span", [t._v(t._s(t.$i18nt(`Dynamics.${l.transkey}`, l.busname)) + " " + t._s(l.tablename))])]);
122374
+ }), 1)], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.form.associatedComponents", "\u5173\u8054\u7EC4\u4EF6")))]), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: (l) => t.changeTableComponents(l, r) }, model: { value: r.tableComponents, callback: function(l) {
122375
+ t.$set(r, "tableComponents", l);
122376
+ }, expression: "item.tableComponents" } }, [t._l(r.viewList, function(l) {
122377
+ return [a("el-option", { attrs: { label: t.$i18nt(`Dynamics.${l.transkey}`, l.name), value: l.id } }, [a("span", [a("span", { staticClass: "gd-icons gd-icon-shitumoshi" }), t._v(" " + t._s(t.$i18nt(`Dynamics.${l.transkey}`, l.name)) + " ")])])];
122378
+ }), t._l(r.formList, function(l) {
122379
+ return [a("el-option", { attrs: { label: t.$i18nt(`Dynamics.${l.transkey}`, l.displayname), value: l.id } }, [a("span", [a("span", { staticClass: "gd-icons gd-icon-biaodanmoshi" }), t._v(" " + t._s(t.$i18nt(`Dynamics.${l.transkey}`, l.displayname)) + " ")])])];
122380
+ })], 2)], 1)]), r.tableComponents ? a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveMethod", "\u4EA4\u4E92\u65B9\u6CD5")))]), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: r.sysFunctionName, callback: function(l) {
122381
+ t.$set(r, "sysFunctionName", l);
122382
+ }, expression: "item.sysFunctionName" } }, [t._l(t.functionList, function(l) {
122383
+ return [r.tableComponentsType === l.type ? a("el-option", { attrs: { label: t.$i18nt(l.transKey, l.name), value: l.code } }) : t._e()];
122384
+ })], 2)], 1)]) : t._e()] : t._e(), r.formMode === "componentMethod" ? [a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveComponent", "\u4EA4\u4E92\u7EC4\u4EF6")))]), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: r.componentKey, callback: function(l) {
122385
+ t.$set(r, "componentKey", l);
122386
+ }, expression: "item.componentKey" } }, t._l(t.dialogTree, function(l, d) {
122210
122387
  return a("el-option", { key: l.key, attrs: { label: l.key, value: l.key } }, [a("i", { staticClass: "gd-icons", class: l.icon, staticStyle: { "margin-right": "4px" } }), a("span", [t._v(t._s(l.key))])]);
122211
122388
  }), 1)], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.interactiveMethod", "\u4EA4\u4E92\u65B9\u6CD5")))]), a("div", { staticClass: "r" }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: r.functionName, callback: function(l) {
122212
122389
  t.$set(r, "functionName", l);
122213
- }, expression: "item.functionName" } })], 1)])] : t._e()] : t._e(), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.hide", "\u9690\u85CF")))]), a("div", { staticClass: "r" }, [a("el-switch", { attrs: { "active-value": !0, "inactive-value": !1, "active-color": t.primaryColor }, model: { value: r.hide, callback: function(l) {
122390
+ }, expression: "item.functionName" } })], 1)])] : t._e()], 2), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.style", "\u98CE\u683C")))]), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: r.btnstyle, callback: function(l) {
122391
+ t.$set(r, "btnstyle", l);
122392
+ }, expression: "item.btnstyle" } }, [t._l(t.styleList, function(l, d) {
122393
+ return [a("el-option", { attrs: { label: t.$i18nt(l.transKey, l.name), value: l.code } })];
122394
+ })], 2)], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.hide", "\u9690\u85CF")))]), a("div", { staticClass: "r" }, [a("el-switch", { attrs: { "active-value": !0, "inactive-value": !1, "active-color": t.primaryColor }, model: { value: r.hide, callback: function(l) {
122214
122395
  t.$set(r, "hide", l);
122215
122396
  }, expression: "item.hide" } })], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.pagePermissions", "\u9875\u9762\u6743\u9650")))]), a("div", { staticClass: "r" }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: r.permissionsPage, callback: function(l) {
122216
122397
  t.$set(r, "permissionsPage", l);
122217
- }, expression: "item.permissionsPage" } })], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.openSubbutton", "\u5F00\u542F\u5B50\u6309\u94AE")))]), a("div", { staticClass: "r" }, [a("el-switch", { attrs: { "active-value": !0, "inactive-value": !1, "active-color": t.primaryColor }, on: { click: function(l) {
122218
- return t.sublevel(r.sublevel);
122219
- } }, model: { value: r.sublevel, callback: function(l) {
122398
+ }, expression: "item.permissionsPage" } })], 1)]), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.openSubbutton", "\u5F00\u542F\u5B50\u6309\u94AE")))]), a("div", { staticClass: "r" }, [a("el-switch", { attrs: { "active-value": !0, "inactive-value": !1, "active-color": t.primaryColor }, model: { value: r.sublevel, callback: function(l) {
122220
122399
  t.$set(r, "sublevel", l);
122221
- }, expression: "item.sublevel" } })], 1)]), r.sublevel == !0 ? a("div", { staticClass: "child-item" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.subbutton", "\u5B50\u6309\u94AE")))]), a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.addition", "\u6DFB\u52A0"), placement: "top-start" } }, [a("i", { staticClass: "el-icon-plus", on: { click: function(l) {
122400
+ }, expression: "item.sublevel" } })], 1)]), r.sublevel ? a("div", { staticClass: "child-item" }, [a("div", { staticClass: "l ls" }, [t._v(t._s(t.$i18nt("gd.page.subbutton", "\u5B50\u6309\u94AE")))]), a("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t.$i18nt("gd.page.addition", "\u6DFB\u52A0"), placement: "top-start" } }, [a("i", { staticClass: "el-icon-plus", on: { click: function(l) {
122222
122401
  return t.addBtnChild(o);
122223
- } } })])], 1) : t._e(), r.sublevel == !0 ? a("div", { staticClass: "overall-items" }, [a("div", { staticClass: "config-items", staticStyle: { "margin-left": "24px" } }, [a("span", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.subbutton", "key\u503C")) + "\uFF1A")]), a("span", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.name", "\u540D\u79F0")) + "\uFF1A")])]), r.childrenT.length > 0 ? a("div", { staticClass: "container-list" }, [a("draggable", t._b({ model: { value: r.childrenT, callback: function(l) {
122224
- t.$set(r, "childrenT", l);
122225
- }, expression: "item.childrenT" } }, "draggable", {
122402
+ } } })])], 1) : t._e(), r.sublevel ? a("div", { staticClass: "overall-items" }, [a("div", { staticClass: "config-items", staticStyle: { "margin-left": "24px" } }, [a("span", { staticClass: "l" }, [t._v("key")]), a("span", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.name", "\u540D\u79F0")))])]), r.children && r.children.length > 0 ? a("div", { staticClass: "container-list" }, [a("draggable", t._b({ model: { value: r.children, callback: function(l) {
122403
+ t.$set(r, "children", l);
122404
+ }, expression: "item.children" } }, "draggable", {
122226
122405
  animation: 300,
122227
122406
  handle: ".drag-child"
122228
- }, !1), [t._l(r.childrenT, function(l, d) {
122229
- return [a("div", { staticClass: "config-items" }, [a("i", { staticClass: "el-icon-rank active-color drag-child" }), a("div", { staticClass: "l", staticStyle: { "margin-left": "10px" } }, [a("el-input", { staticStyle: { width: "90%", margin: "0 7px 0 0px" }, attrs: { placeholder: t.$i18nt("gd.placeholder.inputKey", "\u8BF7\u8F93\u5165key") }, model: { value: l.value, callback: function(u) {
122407
+ }, !1), [t._l(r.children, function(l, d) {
122408
+ return [a("div", { staticClass: "config-items" }, [a("i", { staticClass: "el-icon-rank active-color drag-child" }), a("div", { staticClass: "l", staticStyle: { "margin-left": "10px" } }, [a("el-input", { staticStyle: { width: "90%", margin: "0 7px 0 0px" }, attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: l.value, callback: function(u) {
122230
122409
  t.$set(l, "value", u);
122231
122410
  }, expression: "ite.value" } })], 1), a("div", { staticClass: "r" }, [a("el-input", { staticStyle: { width: "85%", margin: "0 7px 0 0px" }, attrs: { placeholder: t.$i18nt("gd.placeholder.inputName", "\u8BF7\u8F93\u5165\u540D\u79F0") }, model: { value: l.displayName, callback: function(u) {
122232
122411
  t.$set(l, "displayName", u);
122233
122412
  }, expression: "ite.displayName" } }), a("i", { staticClass: "el-icon-delete rdelete", on: { click: function(u) {
122234
122413
  return t.delChild(d, o);
122235
122414
  } } })], 1)])];
122236
- })], 2)], 1) : t._e()]) : t._e()], 2)])];
122237
- }), t.selectItem.columns.length === 0 ? a("div", { staticClass: "empty-title" }, [t._v(t._s(t.$i18nt("el.select.noData", "\u6682\u65E0\u6570\u636E")) + " ")]) : t._e()], 2)], 1), a("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: t.$i18nt("gd.page.maximumDisplayNumber", "\u6700\u591A\u663E\u793A\u4E2A\u6570") } }, [a("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: 1, max: 20 }, model: { value: t.options.limit, callback: function(r) {
122415
+ })], 2)], 1) : t._e()]) : t._e(), a("div", { staticClass: "config-items" }, [a("div", { staticClass: "l" }, [t._v(t._s(t.$i18nt("gd.page.fontSize", "\u5B57\u4F53\u5927\u5C0F")))]), a("div", { staticClass: "r" }, [a("el-input", { model: { value: r.fontSize, callback: function(l) {
122416
+ t.$set(r, "fontSize", l);
122417
+ }, expression: "item.fontSize" } }, [a("template", { slot: "append" }, [t._v("px")])], 2)], 1)])])])];
122418
+ }), t.selectItem.btnList.length === 0 ? a("div", { staticClass: "empty-title" }, [t._v(t._s(t.$i18nt("el.select.noData", "\u6682\u65E0\u6570\u636E")))]) : t._e()], 2)], 1), a("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: t.$i18nt("gd.page.maximumDisplayNumber", "\u6700\u591A\u663E\u793A\u4E2A\u6570") } }, [a("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: 1, max: 20 }, model: { value: t.options.limit, callback: function(r) {
122238
122419
  t.$set(t.options, "limit", r);
122239
- }, expression: "options.limit" } })], 1)], 1);
122420
+ }, expression: "options.limit" } })], 1), a("div", { staticClass: "gd-btn-divider" }, [a("el-divider")], 1)], 1);
122240
122421
  }, _sfc_staticRenderFns$17 = [], __component__$17 = /* @__PURE__ */ normalizeComponent(
122241
122422
  _sfc_main$17,
122242
122423
  _sfc_render$17,
122243
122424
  _sfc_staticRenderFns$17,
122244
122425
  !1,
122245
122426
  null,
122246
- "8c758189",
122427
+ "93578801",
122247
122428
  null,
122248
122429
  null
122249
122430
  );
@@ -122917,7 +123098,7 @@ var _sfc_render$13 = function s() {
122917
123098
  null,
122918
123099
  null
122919
123100
  );
122920
- const propertiesTress = __component__$13.exports, properties_vue_vue_type_style_index_0_scoped_5949ba54_lang = "", _sfc_main$12 = {
123101
+ const propertiesTress = __component__$13.exports, properties_vue_vue_type_style_index_0_scoped_b1a052f9_lang = "", _sfc_main$12 = {
122921
123102
  props: {
122922
123103
  selectItem: {
122923
123104
  type: Object,
@@ -123331,7 +123512,7 @@ var _sfc_render$12 = function s() {
123331
123512
  t.$set(t.selectItem, "rules", r);
123332
123513
  }, expression: "selectItem.rules" } }) : t._e()] : t._e(), t.isFormItem && t.getTypeof("help", "selectItem") ? a("el-form-item", { attrs: { label: t.$i18nt("gd.page.labelHelp", "\u6807\u7B7E\u5E2E\u52A9\u4FE1\u606F") } }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.selectItem.help, callback: function(r) {
123333
123514
  t.$set(t.selectItem, "help", r);
123334
- }, expression: "selectItem.help" } })], 1) : t._e(), t.selectItem.type == "btnGroup" ? a("propertiesBtn", { key: t.selectItem.key, attrs: { selectItem: t.selectItem, outlineTreeData: t.outlineTreeData } }) : t._e(), t.getTypeof("gutter") ? a("el-form-item", { attrs: { label: t.$i18nt("gd.page.gridSpacing", "\u6805\u683C\u95F4\u9694") } }, [a("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: 0 }, model: { value: t.options.gutter, callback: function(r) {
123515
+ }, expression: "selectItem.help" } })], 1) : t._e(), t.getTypeof("gutter") ? a("el-form-item", { attrs: { label: t.$i18nt("gd.page.gridSpacing", "\u6805\u683C\u95F4\u9694") } }, [a("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: 0 }, model: { value: t.options.gutter, callback: function(r) {
123335
123516
  t.$set(t.options, "gutter", r);
123336
123517
  }, expression: "options.gutter" } })], 1) : t._e(), t.selectItem.type == "grid" ? [a("el-divider"), a("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: t.$i18nt("gd.page.listAttribute", "\u5217\u8868\u5C5E\u6027") } }), a("properitesCol", { attrs: { selectItem: t.selectItem, data: t.data, table: t.table, tableName: t.tableName, type: "grid" }, model: { value: t.selectItem.columns, callback: function(r) {
123337
123518
  t.$set(t.selectItem, "columns", r);
@@ -123403,7 +123584,7 @@ var _sfc_render$12 = function s() {
123403
123584
  t.$set(t.options, "autoplay", r);
123404
123585
  }, expression: "options.autoplay" } }) : t._e(), t.getTypeof("loop") ? a("pCheckbox", { attrs: { label: t.$i18nt("gd.page.loopDisplay", "\u5FAA\u73AF\u663E\u793A") }, model: { value: t.options.loop, callback: function(r) {
123405
123586
  t.$set(t.options, "loop", r);
123406
- }, expression: "options.loop" } }) : t._e()], 1) : t._e(), t.selectItem.type == "banner" ? a("carouselMap", { attrs: { selectItem: t.selectItem } }) : t._e(), t.selectItem.type == "dataList" ? a("propertiesList", { attrs: { selectItem: t.selectItem } }) : t._e(), a("propertiesCss", { attrs: { selectItem: t.selectItem } })], 2), a("iconSelector", { ref: "iconSelector", model: { value: t.options.icon, callback: function(r) {
123587
+ }, expression: "options.loop" } }) : t._e()], 1) : t._e(), t.selectItem.type == "btnGroup" ? a("propertiesBtn", { key: t.selectItem.key, attrs: { selectItem: t.selectItem, outlineTreeData: t.outlineTreeData } }) : t._e(), t.selectItem.type == "banner" ? a("carouselMap", { attrs: { selectItem: t.selectItem } }) : t._e(), t.selectItem.type == "dataList" ? a("propertiesList", { attrs: { selectItem: t.selectItem } }) : t._e(), a("propertiesCss", { attrs: { selectItem: t.selectItem } })], 2), a("iconSelector", { ref: "iconSelector", model: { value: t.options.icon, callback: function(r) {
123407
123588
  t.$set(t.options, "icon", r);
123408
123589
  }, expression: "options.icon" } })], 1)]], 2);
123409
123590
  }, _sfc_staticRenderFns$12 = [], __component__$12 = /* @__PURE__ */ normalizeComponent(
@@ -123412,7 +123593,7 @@ var _sfc_render$12 = function s() {
123412
123593
  _sfc_staticRenderFns$12,
123413
123594
  !1,
123414
123595
  null,
123415
- "5949ba54",
123596
+ "b1a052f9",
123416
123597
  null,
123417
123598
  null
123418
123599
  );
@@ -136472,7 +136653,7 @@ var _sfc_render$n = function s() {
136472
136653
  null,
136473
136654
  null
136474
136655
  );
136475
- const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_scoped_a65a10df_lang = "", _sfc_main$m = {
136656
+ const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_scoped_885f5ae4_lang = "", _sfc_main$m = {
136476
136657
  name: "GdFormBuild",
136477
136658
  props: {
136478
136659
  modeType: {
@@ -137390,16 +137571,19 @@ const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_sco
137390
137571
  },
137391
137572
  baseSetData(s, t = !0) {
137392
137573
  const a = this.baseFormatterData(s);
137393
- if (this.baseHandlefkData(a), Object.assign(this.parameterData, a), t)
137574
+ if (this.baseHandlefkData(a, s), Object.assign(this.parameterData, a), t)
137394
137575
  for (let r of Object.keys(a)) {
137395
137576
  const o = this.allField.filter((l) => l.options.columnName === r)[0];
137396
137577
  o && (this.baseUsageFieldRules(o), this.fkNotice(o, !0));
137397
137578
  }
137398
137579
  },
137399
- baseHandlefkData(s) {
137400
- for (let t in s) {
137401
- const a = this.allField.filter((o) => o.options.columnName === t)[0], r = this.fieldData.filter((o) => o.columnname === t)[0];
137402
- a && ["fk", "user", "about"].includes(r.effecttype) && a.searchDataId && a.searchDataId(s[t]);
137580
+ baseHandlefkData(s, t) {
137581
+ for (let a in s) {
137582
+ const r = this.allField.filter((l) => l.options.columnName === a)[0], o = this.fieldData.filter((l) => l.columnname === a)[0];
137583
+ if (r && ["fk", "user", "about"].includes(o.effecttype)) {
137584
+ const l = o.relations + "_abouttable", d = o.effecttype === "about" && t[l] ? t[l] : "";
137585
+ r.searchDataId && r.searchDataId(s[a], d);
137586
+ }
137403
137587
  }
137404
137588
  },
137405
137589
  baseChange(s, t = 1) {
@@ -137552,7 +137736,7 @@ var _sfc_render$m = function s() {
137552
137736
  _sfc_staticRenderFns$m,
137553
137737
  !1,
137554
137738
  null,
137555
- "a65a10df",
137739
+ "885f5ae4",
137556
137740
  null,
137557
137741
  null
137558
137742
  );