gds-plus-design-vue 1.1.28 → 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.a21da510.mjs"),
633
+ component: () => import("./main.8c4866ca.mjs"),
634
634
  meta: {
635
635
  title: "\u767B\u5F55",
636
636
  transKey: "gd.login.title"
@@ -32073,7 +32073,7 @@ function processingResults$2(s, t) {
32073
32073
  function isSatisfyed$2(s, t) {
32074
32074
  return t === "2" ? s.every((a, r, o) => !a) : s.every((a, r, o) => !!a);
32075
32075
  }
32076
- 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 = {
32077
32077
  name: "GdTableQueriesField",
32078
32078
  props: {
32079
32079
  height: {
@@ -32351,14 +32351,14 @@ var _sfc_render$4R = function() {
32351
32351
  } }, model: { value: t.ruleFormData[r.prop], callback: function(l) {
32352
32352
  t.$set(t.ruleFormData, r.prop, l);
32353
32353
  }, expression: "ruleFormData[column.prop]" } })]], 2)];
32354
- })], 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);
32355
32355
  }, _sfc_staticRenderFns$4R = [], __component__$4R = /* @__PURE__ */ normalizeComponent(
32356
32356
  _sfc_main$4R,
32357
32357
  _sfc_render$4R,
32358
32358
  _sfc_staticRenderFns$4R,
32359
32359
  !1,
32360
32360
  null,
32361
- "53f2af2f",
32361
+ "0f8fff98",
32362
32362
  null,
32363
32363
  null
32364
32364
  );
@@ -117489,7 +117489,152 @@ var _sfc_render$1G = function s() {
117489
117489
  null,
117490
117490
  null
117491
117491
  );
117492
- const detailView = __component__$1G.exports, btnGroup_vue_vue_type_style_index_0_scoped_1ddbdb62_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 = {
117493
117638
  props: {
117494
117639
  record: {
117495
117640
  type: Object,
@@ -117501,9 +117646,25 @@ const detailView = __component__$1G.exports, btnGroup_vue_vue_type_style_index_0
117501
117646
  }
117502
117647
  },
117503
117648
  data() {
117504
- return {};
117649
+ return {
117650
+ btnItems: {},
117651
+ show: !1,
117652
+ statu: !1,
117653
+ fieldData: [],
117654
+ visible: !1
117655
+ };
117505
117656
  },
117506
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
+ },
117507
117668
  sysViewButtons() {
117508
117669
  let s = [];
117509
117670
  return this.columns.forEach((t) => {
@@ -117535,24 +117696,128 @@ const detailView = __component__$1G.exports, btnGroup_vue_vue_type_style_index_0
117535
117696
  },
117536
117697
  stylei() {
117537
117698
  return paddingData(this.cssData);
117538
- }
117699
+ },
117700
+ hig() {
117701
+ return this.screenHeight - 50;
117702
+ },
117703
+ ...mapGetters(["tableLists", "screenHeight"])
117539
117704
  },
117540
117705
  methods: {
117541
- doEvent(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) {
117542
117721
  console.log(s);
117722
+ },
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);
117797
+ },
117798
+ doEvent(s) {
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", { 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);
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
- "1ddbdb62",
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_907f4653_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,
@@ -118143,7 +118408,7 @@ const echartsView = __component__$1A.exports, componentArray = {
118143
118408
  this.loading = !0;
118144
118409
  const a = this.options.effectType, r = a === "fk" || a === "user" ? this.options.fkEntityName : this.options.fkEntityName.split(",")[0];
118145
118410
  baseFkList({ id: s, fkEntityName: t || r }).then((l) => {
118146
- this.loading = !1, l.code === 200 && (this.fkData = l.data.map((d) => (d.tableName = r, d)), this.record.fkData = [...this.fkData]);
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
- "907f4653",
118559
+ "b98906d7",
118295
118560
  null,
118296
118561
  null
118297
118562
  );
@@ -118578,152 +118843,7 @@ var _sfc_render$1v = function s() {
118578
118843
  null,
118579
118844
  null
118580
118845
  );
118581
- const FlexLayout = __component__$1v.exports;
118582
- function getColumns(s, t, a) {
118583
- var h, p, v, g;
118584
- if (!s.syscodegenconfig && !s.syscodegenconfigfk)
118585
- return console.log("\u5B57\u6BB5:" + s.name + "\u6570\u636E\u9519\u8BEF!"), null;
118586
- 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);
118587
- let f = {
118588
- key: l,
118589
- transKey: `Dynamics.${s.transkey}`,
118590
- prop: l,
118591
- label: s.name,
118592
- width: String(s.width),
118593
- owidth: String(s.width),
118594
- columnName: s.syscodegenconfig.columnname,
118595
- fkEntityName: s.syscodegenconfig.fkentityname,
118596
- id: s.fieldid,
118597
- fkId: ["fk", "about", "user"].includes(o) ? (p = s.syscodegenconfigfk) == null ? void 0 : p.id : null,
118598
- align: d[0] ? d[0] : "center",
118599
- checked: d[1] ? d[1] == 1 : !0,
118600
- effectType: r,
118601
- fieldType: o,
118602
- gatherConfig: s.gatherconfig == 1,
118603
- fieldFormat: ["fk", "user"].includes(o) ? (v = s.syscodegenconfigfk) == null ? void 0 : v.fieldformat : s.syscodegenconfig.fieldformat,
118604
- dictTypeCode: ["fk", "user"].includes(o) ? (g = s.syscodegenconfigfk) == null ? void 0 : g.dicttypecode : s.syscodegenconfig.dicttypecode,
118605
- dictTypeList: [],
118606
- maxTagCount: s.maxtagcount ? Number(s.maxtagcount) : 2,
118607
- sourceFk: !!["fk", "about", "user"].includes(o),
118608
- displayMode: d[2] ? d[2] : "none",
118609
- displayPrefix: d[3] ? d[3] : "none",
118610
- preview: d[4] ? d[4] === "true" : !0,
118611
- download: d[5] ? d[5] === "true" : !0
118612
- };
118613
- return s.orderconfig === 1 && Object.assign(f, {
118614
- sortable: "custom"
118615
- }), t < a && Object.assign(f, {
118616
- fixed: "left"
118617
- }), ["participants"].includes(o) && Object.assign(f, {
118618
- showTooltip: !1
118619
- }), Object.assign(f, u);
118620
- }
118621
- function getColumnName(s) {
118622
- const t = s.syscodegenconfigfk ? s.syscodegenconfigfk.columnname : "";
118623
- switch (s.syscodegenconfig.effecttype) {
118624
- case "fk":
118625
- return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
118626
- case "user":
118627
- return t + s.syscodegenconfig.fkentityname + s.syscodegenconfig.columnname;
118628
- case "about":
118629
- return s.syscodegenconfig.relations.toLowerCase();
118630
- default:
118631
- return s.syscodegenconfig.columnname;
118632
- }
118633
- }
118634
- function getScopedSlots(s, t, a) {
118635
- var o;
118636
- if (s == "input")
118637
- return {};
118638
- const r = ["fk", "user"].includes(s) ? (o = a.syscodegenconfigfk) == null ? void 0 : o.fieldformat : a.syscodegenconfig.fieldformat;
118639
- return ["datepicker"].includes(s) && r === 1 ? {} : {
118640
- type: "slot",
118641
- slotType: t
118642
- };
118643
- }
118644
- function getQueries(s, t, a) {
118645
- if (s.syscodegenconfig == null)
118646
- return !1;
118647
- let r = s.options ? JSON.parse(s.options) : {}, o = {
118648
- required: r.required,
118649
- message: a,
118650
- trigger: "blur"
118651
- };
118652
- return ["inputnumber", "double", " currency"].includes(s.syscodegenconfig.effecttype) && Object.assign(o, {
118653
- type: "number"
118654
- }), {
118655
- id: s.syscodegenconfig.id,
118656
- transKey: s.syscodegenconfig.transkey,
118657
- prop: s.syscodegenconfig.columnname,
118658
- label: s.syscodegenconfig.columncomment,
118659
- effectType: getEffectType(s.syscodegenconfig.effecttype),
118660
- dictTypeCode: s.syscodegenconfig.dicttypecode,
118661
- fkEntityName: s.syscodegenconfig.fkentityname,
118662
- disabled: s.disabled === void 0 ? !1 : s.disabled,
118663
- options: r,
118664
- fieldFormat: s.syscodegenconfig.fieldformat,
118665
- valueFormat: getFieldFormat(s.syscodegenconfig.fieldformat, t),
118666
- rules: [o],
118667
- hasFiltered: !1,
118668
- filterList: [],
118669
- fkData: []
118670
- };
118671
- }
118672
- function getFieldFormat(s, t) {
118673
- if (s === null)
118674
- return s;
118675
- const a = t.filter((r) => String(r.code) === String(s))[0];
118676
- return a ? a.name.replace("DD", "dd") : "yyyy-MM-dd hh:mm:ss";
118677
- }
118678
- function getEffectType(s) {
118679
- let t = s;
118680
- return ["image", "file"].includes(s) ? t = "input" : ["select", "radio", "switch", "checkbox"].includes(s) ? t = "selectMultiple" : ["fk", "about", "participants", "user"].includes(s) && (t = "selectFkMultiple"), t;
118681
- }
118682
- function switchingDate(s, t) {
118683
- let a = /* @__PURE__ */ new Map();
118684
- for (var r in s) {
118685
- let o = s[r] != null && s[r] !== void 0 ? s[r] : "", l = t ? t.filter((u) => u.columnname === r)[0] : null;
118686
- if ((l ? l.effecttype : "input") === "datepicker") {
118687
- let u = dateProcessing(o, l);
118688
- u && (a.set(r + "Start", u[0]), a.set(r + "End", u[1]));
118689
- } else
118690
- Array.isArray(o) ? o.length > 0 && a.set(r, o.join(",")) : !o == "" && a.set(r, o);
118691
- }
118692
- return a.size == 0 ? {} : Object.fromEntries(a);
118693
- }
118694
- function dateProcessing(s, t) {
118695
- 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"];
118696
- }
118697
- function hasDefaultVal(s) {
118698
- let t = /* @__PURE__ */ new Map(), a = getDatepickerVal(s);
118699
- 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);
118700
- }
118701
- function getDatepickerVal(s) {
118702
- if (!["datepicker"].includes(s.effectType))
118703
- return !1;
118704
- 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);
118705
- return t == 1 ? o === "" ? !1 : o : l.length === 0 ? !1 : l;
118706
- }
118707
- function getTimeDatas(s, t, a) {
118708
- 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}`;
118709
- return t == 1 ? a.valueFormat.replace("DD", "dd") === "YYYY-MM-dd" ? h.split(" ")[0] : h : [h, f];
118710
- }
118711
- function getFormatTime(s) {
118712
- let a = s.toString().length == 10 ? parseInt(s) * 1e3 : parseInt(s);
118713
- var r = new Date(a), o = r.getFullYear(), l = r.getMonth() + 1, d = r.getDate(), u = r.getHours(), f = r.getMinutes(), h = r.getSeconds();
118714
- return {
118715
- year: o,
118716
- mon: formatNumber(l),
118717
- day: formatNumber(d),
118718
- hours: formatNumber(u),
118719
- min: formatNumber(f),
118720
- sec: formatNumber(h)
118721
- };
118722
- }
118723
- function formatNumber(s) {
118724
- return s = s.toString(), s[1] ? s : "0" + s;
118725
- }
118726
- const dataList_vue_vue_type_style_index_0_scoped_372a6426_lang = "", _sfc_main$1u = {
118846
+ const FlexLayout = __component__$1v.exports, dataList_vue_vue_type_style_index_0_scoped_372a6426_lang = "", _sfc_main$1u = {
118727
118847
  props: {
118728
118848
  record: {
118729
118849
  type: Object,
@@ -1,5 +1,5 @@
1
1
  import o from "vue";
2
- import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as A, d as b, e as y, f as R } from "./index.90560b18.mjs";
2
+ import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as A, d as b, e as y, f as R } from "./index.5a6a6c88.mjs";
3
3
  const C = {
4
4
  name: "GdVerificationCode",
5
5
  props: {