gds-plus-design-vue 1.1.38 → 1.1.39

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.34b6a2eb.mjs"),
633
+ component: () => import("./main.17be1ce8.mjs"),
634
634
  meta: {
635
635
  title: "\u767B\u5F55",
636
636
  transKey: "gd.login.title"
@@ -8483,7 +8483,7 @@ function sysTimezonePage(s) {
8483
8483
  params: s
8484
8484
  });
8485
8485
  }
8486
- const main_vue_vue_type_style_index_0_scoped_d3ca8f12_lang = "", _sfc_main$5F = {
8486
+ const main_vue_vue_type_style_index_0_scoped_21604779_lang = "", _sfc_main$5F = {
8487
8487
  props: {
8488
8488
  height: {
8489
8489
  type: Number,
@@ -8626,7 +8626,11 @@ var _sfc_render$5F = function() {
8626
8626
  t.$set(t.ruleForm, "gender", r);
8627
8627
  }, expression: "ruleForm.gender" } }, t._l(t.sexData, function(r, o) {
8628
8628
  return a("el-radio", { key: o, attrs: { label: r.code } }, [t._v(" " + t._s(r.name) + " ")]);
8629
- }), 1)], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [{ required: !0, message: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }] } }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleForm.phone, callback: function(r) {
8629
+ }), 1)], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [{ required: !0, message: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, {
8630
+ pattern: /^1[3-9]\d{9}$/,
8631
+ message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
8632
+ trigger: "blur"
8633
+ }] } }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleForm.phone, callback: function(r) {
8630
8634
  t.$set(t.ruleForm, "phone", r);
8631
8635
  }, expression: "ruleForm.phone" } })], 1), a("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: t.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [a("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleForm.tel, callback: function(r) {
8632
8636
  t.$set(t.ruleForm, "tel", r);
@@ -8657,7 +8661,7 @@ var _sfc_render$5F = function() {
8657
8661
  _sfc_staticRenderFns$5F,
8658
8662
  !1,
8659
8663
  null,
8660
- "d3ca8f12",
8664
+ "21604779",
8661
8665
  null,
8662
8666
  null
8663
8667
  );
@@ -21275,7 +21279,7 @@ var _sfc_render$56 = function() {
21275
21279
  null,
21276
21280
  null
21277
21281
  );
21278
- const Column = __component__$56.exports, main_vue_vue_type_style_index_0_scoped_fd92e483_lang = "", _sfc_main$55 = {
21282
+ const Column = __component__$56.exports, main_vue_vue_type_style_index_0_scoped_848a6399_lang = "", _sfc_main$55 = {
21279
21283
  name: "GdTables",
21280
21284
  props: Object.assign(
21281
21285
  {},
@@ -21463,7 +21467,8 @@ const Column = __component__$56.exports, main_vue_vue_type_style_index_0_scoped_
21463
21467
  visibleFilter: !1,
21464
21468
  frozenColumn: 0,
21465
21469
  wid: 0,
21466
- triggerFilter: "manual"
21470
+ triggerFilter: "manual",
21471
+ clearData: !1
21467
21472
  };
21468
21473
  },
21469
21474
  watch: {
@@ -21662,7 +21667,9 @@ const Column = __component__$56.exports, main_vue_vue_type_style_index_0_scoped_
21662
21667
  const s = this.dataSource(Object.assign({ ...this.sorter }, { pageNo: this.currentPage, pageSize: this.pageSized }));
21663
21668
  (typeof s == "object" || typeof s == "function") && typeof s.then == "function" ? s.then((t) => {
21664
21669
  let a = t && t.rows ? t.rows : [];
21665
- this.tableData = a, this.currentPage = t.pageno, this.total = t.totalrows, this.toggleRowSelection();
21670
+ this.currentPage = t.pageno, this.total = t.totalrows, this.clearData && (this.tableData = []), setTimeout(() => {
21671
+ this.tableData = a, this.toggleRowSelection();
21672
+ }, 0);
21666
21673
  }) : this.loading = !1;
21667
21674
  },
21668
21675
  loadColumns() {
@@ -21804,7 +21811,7 @@ var _sfc_render$55 = function() {
21804
21811
  return [a("el-radio", { attrs: { label: l.row[t.rowKey], size: "small" }, on: { input: t.changRadio }, model: { value: t.currentRow, callback: function(d) {
21805
21812
  t.currentRow = d;
21806
21813
  }, expression: "currentRow" } }, [t._v(" " + t._s("") + " ")])];
21807
- } }], null, !0) })] : r.type === "slot" ? [a("el-table-column", { key: r.key ? r.key : o, attrs: { width: r.width, "show-overflow-tooltip": typeof r.showTooltip > "u" ? !0 : r.showTooltip, "min-width": r.minWidth, prop: r.prop, label: t.$i18nt(r.transKey, r.label), fixed: r.fixed ? r.fixed : !1, sortable: r.sortable ? r.sortable : !1, align: r.align ? r.align : "center", "render-header": r.renderHeader, filters: r.filters, "filter-method": r.filterTag, "filter-placement": "bottom-end", "reserve-selection": r.reserveSelection, type: r.colType }, scopedSlots: t._u([{ key: "default", fn: function(l) {
21814
+ } }], null, !0) })] : r.type === "slot" ? [a("el-table-column", { key: r.prop ? r.prop : o, attrs: { width: r.width, "show-overflow-tooltip": typeof r.showTooltip > "u" ? !0 : r.showTooltip, "min-width": r.minWidth, prop: r.prop, label: t.$i18nt(r.transKey, r.label), fixed: r.fixed ? r.fixed : !1, sortable: r.sortable ? r.sortable : !1, align: r.align ? r.align : "center", "render-header": r.renderHeader, filters: r.filters, "filter-method": r.filterTag, "filter-placement": "bottom-end", "reserve-selection": r.reserveSelection, type: r.colType }, scopedSlots: t._u([{ key: "default", fn: function(l) {
21808
21815
  return [t._t(r.slotType, null, { row: l.row, index: l.$index, column: l.column })];
21809
21816
  } }], null, !0) })] : t._e()];
21810
21817
  }), a("template", { slot: "empty" }, [a("div", { staticClass: "gd-table-empty" }, [a("i", { staticClass: "el-icon-receiving" }), a("div", { staticClass: "empty-title" }, [t._v(" " + t._s(t.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")) + " ")])])])], 2), a("div", { staticClass: "gd-paging" }, [t.showPagination ? a("el-pagination", { attrs: { background: "", "page-sizes": t.pageSizes, "page-size": t.pageSized, "current-page": t.currentPage, layout: "total, sizes, prev, pager, next, jumper", total: t.total }, on: { "update:currentPage": function(r) {
@@ -21818,7 +21825,7 @@ var _sfc_render$55 = function() {
21818
21825
  _sfc_staticRenderFns$55,
21819
21826
  !1,
21820
21827
  null,
21821
- "fd92e483",
21828
+ "848a6399",
21822
21829
  null,
21823
21830
  null
21824
21831
  );
@@ -79022,7 +79029,7 @@ var _sfc_render$4v = function() {
79022
79029
  null,
79023
79030
  null
79024
79031
  );
79025
- const RoleScope = __component__$4v.exports, roleGrant_vue_vue_type_style_index_0_scoped_2a913c42_lang = "", _sfc_main$4u = {
79032
+ const RoleScope = __component__$4v.exports, roleGrant_vue_vue_type_style_index_0_scoped_f3c4eef1_lang = "", _sfc_main$4u = {
79026
79033
  data() {
79027
79034
  return {
79028
79035
  buttons: [
@@ -79093,20 +79100,20 @@ const RoleScope = __component__$4v.exports, roleGrant_vue_vue_type_style_index_0
79093
79100
  },
79094
79101
  {
79095
79102
  transKey: "gd.relation.assignment",
79096
- prop: "allocationcustor",
79103
+ prop: "allocationgrantd",
79097
79104
  label: "\u5206\u6D3E",
79098
79105
  align: "left",
79099
79106
  type: "slot",
79100
- slotType: "allocationcustor",
79107
+ slotType: "allocationgrantd",
79101
79108
  width: 270
79102
79109
  },
79103
79110
  {
79104
79111
  transKey: "gd.btn.share",
79105
- prop: "sharecustor",
79112
+ prop: "sharegrantd",
79106
79113
  label: "\u5171\u4EAB",
79107
79114
  align: "left",
79108
79115
  type: "slot",
79109
- slotType: "sharecustor",
79116
+ slotType: "sharegrantd",
79110
79117
  width: 270
79111
79118
  }
79112
79119
  ],
@@ -79124,7 +79131,7 @@ const RoleScope = __component__$4v.exports, roleGrant_vue_vue_type_style_index_0
79124
79131
  handleSubmit() {
79125
79132
  this.confirmLoading = !0;
79126
79133
  let s = this.$refs.table.tableData;
79127
- s.map((t) => (t.addgrant = t.addgrantd.length > 0 ? t.addgrantd.join(",") : null, t.delgrant = t.delgrantd.length > 0 ? t.delgrantd.join(",") : null, t.editgrant = t.editgrantd.length > 0 ? t.editgrantd.join(",") : null, t.getgrant = t.getgrantd.length > 0 ? t.getgrantd.join(",") : null, t.sharegrant = t.sharecustor.length > 0 ? t.sharecustor.join(",") : null, t.allocationgrant = t.allocationcustor.length > 0 ? t.allocationcustor.join(",") : null, t)), saveOrgDetail(
79134
+ s.map((t) => (t.addgrant = t.addgrantd.length > 0 ? t.addgrantd.join(",") : null, t.delgrant = t.delgrantd.length > 0 ? t.delgrantd.join(",") : null, t.editgrant = t.editgrantd.length > 0 ? t.editgrantd.join(",") : null, t.getgrant = t.getgrantd.length > 0 ? t.getgrantd.join(",") : null, t.sharegrant = t.sharegrantd.length > 0 ? t.sharegrantd.join(",") : null, t.allocationgrant = t.allocationgrantd.length > 0 ? t.allocationgrantd.join(",") : null, t)), saveOrgDetail(
79128
79135
  Object.assign(
79129
79136
  { ...this.submitData },
79130
79137
  {
@@ -79146,7 +79153,7 @@ const RoleScope = __component__$4v.exports, roleGrant_vue_vue_type_style_index_0
79146
79153
  },
79147
79154
  getUserControlData() {
79148
79155
  this.confirmLoading = !0, getOrgDetail({ roleId: this.record.id }).then((s) => {
79149
- s.success ? (s.data.grants.map((t) => (t.addgrantd = t.addgrant ? t.addgrant.split(",") : [], t.delgrantd = t.delgrant ? t.delgrant.split(",") : [], t.editgrantd = t.editgrant ? t.editgrant.split(",") : [], t.getgrantd = t.getgrant ? t.getgrant.split(",") : [], t.sharecustor = t.sharegrant ? t.sharegrant.split(",") : [], t.allocationcustor = t.allocationgrant ? t.allocationgrant.split(",") : [], t)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
79156
+ s.success ? (s.data.grants.map((t) => (t.addgrantd = t.addgrant ? t.addgrant.split(",") : [], t.delgrantd = t.delgrant ? t.delgrant.split(",") : [], t.editgrantd = t.editgrant ? t.editgrant.split(",") : [], t.getgrantd = t.getgrant ? t.getgrant.split(",") : [], t.sharegrantd = t.sharegrant ? t.sharegrant.split(",") : [], t.allocationgrantd = t.allocationgrant ? t.allocationgrant.split(",") : [], t)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
79150
79157
  setTimeout(() => {
79151
79158
  this.refresh();
79152
79159
  }, 0);
@@ -79195,7 +79202,7 @@ var _sfc_render$4u = function() {
79195
79202
  _sfc_staticRenderFns$4u,
79196
79203
  !1,
79197
79204
  null,
79198
- "2a913c42",
79205
+ "f3c4eef1",
79199
79206
  null,
79200
79207
  null
79201
79208
  );
@@ -111729,6 +111736,8 @@ const operationMenus = __component__$2g.exports, abilityItems = [{
111729
111736
  icon: "gd-icon-biaodanzujian-biaoge",
111730
111737
  transKey: "gd.datadisplaycomponents.table",
111731
111738
  options: {
111739
+ flexWidth: 100,
111740
+ flexUnit: "%",
111732
111741
  table: {},
111733
111742
  view: {},
111734
111743
  btn: [],
@@ -111799,6 +111808,8 @@ const operationMenus = __component__$2g.exports, abilityItems = [{
111799
111808
  icon: "gd-icon-miaoshu",
111800
111809
  transKey: "gd.datadisplaycomponents.descriptions",
111801
111810
  options: {
111811
+ flexWidth: 100,
111812
+ flexUnit: "%",
111802
111813
  table: {},
111803
111814
  view: {},
111804
111815
  field: [],
@@ -111825,6 +111836,8 @@ const operationMenus = __component__$2g.exports, abilityItems = [{
111825
111836
  icon: "gd-icon-zhuzhuangtu",
111826
111837
  transKey: "gd.datadisplaycomponents.echarts",
111827
111838
  options: {
111839
+ flexWidth: 100,
111840
+ flexUnit: "%",
111828
111841
  echartsId: "",
111829
111842
  table: {},
111830
111843
  view: {},
@@ -111852,10 +111865,12 @@ const operationMenus = __component__$2g.exports, abilityItems = [{
111852
111865
  icon: "gd-icon-baobiaotongji",
111853
111866
  transKey: "gd.datadisplaycomponents.statisticValue",
111854
111867
  options: {
111868
+ flexWidth: 100,
111869
+ flexUnit: "%",
111855
111870
  title: "\u7EDF\u8BA1",
111856
111871
  timeIndices: !1,
111857
111872
  titleValue: 0,
111858
- transKey: "gd.datadisplaycomponents.statistic"
111873
+ transKey: null
111859
111874
  },
111860
111875
  css: {
111861
111876
  color: "#333",
@@ -113900,7 +113915,136 @@ var _sfc_render$26 = function s() {
113900
113915
  null,
113901
113916
  null
113902
113917
  );
113903
- const navBuild = __component__$26.exports, tableView_vue_vue_type_style_index_0_scoped_1b064941_lang = "", _sfc_main$25 = {
113918
+ const navBuild = __component__$26.exports;
113919
+ function getCss(s) {
113920
+ let t = "";
113921
+ for (let a in s)
113922
+ t += getProperti(s, a);
113923
+ return t;
113924
+ }
113925
+ function paddingData(s) {
113926
+ let t = [];
113927
+ return (s.padding ? s.padding : []).forEach((r) => {
113928
+ t.push(r ? `${r}px` : 0);
113929
+ }), t.length === 0 ? "" : `padding:${t.join(" ")};`;
113930
+ }
113931
+ function marginData(s) {
113932
+ let t = [];
113933
+ return (s.margin ? s.margin : []).forEach((r) => {
113934
+ t.push(r ? `${r}px` : 0);
113935
+ }), t.length === 0 ? "" : `margin:${t.join(" ")};`;
113936
+ }
113937
+ function backgroundData(s) {
113938
+ const t = s.bjColor ? s.bjColor : "";
113939
+ return t === "" ? "" : `background-color:${t};`;
113940
+ }
113941
+ function radiusData(s) {
113942
+ let t = [];
113943
+ return (s.radius ? s.radius : []).forEach((r) => {
113944
+ t.push(r ? `${r}px` : 0);
113945
+ }), t.length === 0 ? "" : `border-radius:${t.join(" ")};`;
113946
+ }
113947
+ function textAlign(s) {
113948
+ const t = s.align ? s.align : "";
113949
+ return t === "" ? "" : `text-align:${t};`;
113950
+ }
113951
+ function lineHeight(s) {
113952
+ const t = s.lineHeight ? s.lineHeight : "";
113953
+ return t === "" ? "" : `line-height:${t}px;`;
113954
+ }
113955
+ function letterSpacing(s) {
113956
+ const t = s.letterSpacing ? s.letterSpacing : "";
113957
+ return t === "" ? "" : `letter-spacing:${t}px;`;
113958
+ }
113959
+ function colorData(s) {
113960
+ if (s.color === "0")
113961
+ return "color:var(--color);";
113962
+ const t = s.color ? s.color : "";
113963
+ return t === "" ? "" : `color:${t};`;
113964
+ }
113965
+ function fontSize(s) {
113966
+ const t = s.fontSize ? s.fontSize : "";
113967
+ return t === "" ? "" : `font-size:${t}px;`;
113968
+ }
113969
+ function fontWeight(s) {
113970
+ const t = s.fontWeight ? s.fontWeight : "";
113971
+ return t === "" ? "" : `font-weight:${t};`;
113972
+ }
113973
+ function textDecoration(s) {
113974
+ const t = s.textDecoration ? s.textDecoration : "";
113975
+ return t === "" ? "" : `text-decoration:${t};`;
113976
+ }
113977
+ function fontStyle(s) {
113978
+ const t = s.fontStyle ? s.fontStyle : "";
113979
+ return t === "" ? "" : `font-style:${t};`;
113980
+ }
113981
+ function maxLineClamp(s) {
113982
+ const t = s.maxLineClamp ? s.maxLineClamp : "";
113983
+ return t === "" ? "" : `overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${t};-webkit-box-orient: vertical;`;
113984
+ }
113985
+ function widthData(s) {
113986
+ const t = s.flexWidth ? s.flexWidth : "100", a = s.flexUnit ? s.flexUnit : "%";
113987
+ return `width:${a === "%" ? t > 100 ? 100 : t : a === "auto" ? "" : t}${a};`;
113988
+ }
113989
+ function flexDirection(s) {
113990
+ const t = s.flexDirection ? s.flexDirection : "";
113991
+ return t === "" ? "" : `flex-direction:${t};`;
113992
+ }
113993
+ function justifyContent(s) {
113994
+ const t = s.justifyContent ? s.justifyContent : "";
113995
+ return t === "" ? "" : `justify-content:${t};`;
113996
+ }
113997
+ function alignItems(s) {
113998
+ const t = s.alignItems ? s.alignItems : "";
113999
+ return t === "" ? "" : `align-items:${t};`;
114000
+ }
114001
+ function flexWrap(s) {
114002
+ const t = s.flexWrap ? s.flexWrap : "";
114003
+ return t === "" ? "" : `flex-wrap:${t};`;
114004
+ }
114005
+ function getProperti(s, t) {
114006
+ switch (t) {
114007
+ case "padding":
114008
+ return paddingData(s);
114009
+ case "margin":
114010
+ return marginData(s);
114011
+ case "bjColor":
114012
+ return backgroundData(s);
114013
+ case "radius":
114014
+ return radiusData(s);
114015
+ case "align":
114016
+ return textAlign(s);
114017
+ case "lineHeight":
114018
+ return lineHeight(s);
114019
+ case "letterSpacing":
114020
+ return letterSpacing(s);
114021
+ case "color":
114022
+ return colorData(s);
114023
+ case "fontSize":
114024
+ return fontSize(s);
114025
+ case "fontWeight":
114026
+ return fontWeight(s);
114027
+ case "textDecoration":
114028
+ return textDecoration(s);
114029
+ case "fontStyle":
114030
+ return fontStyle(s);
114031
+ case "maxLineClamp":
114032
+ return maxLineClamp(s);
114033
+ case "flexWidth":
114034
+ return widthData(s);
114035
+ case "flexDirection":
114036
+ return flexDirection(s);
114037
+ case "justifyContent":
114038
+ return justifyContent(s);
114039
+ case "alignItems":
114040
+ return alignItems(s);
114041
+ case "flexWrap":
114042
+ return flexWrap(s);
114043
+ default:
114044
+ return "";
114045
+ }
114046
+ }
114047
+ const tableView_vue_vue_type_style_index_0_scoped_ab542162_lang = "", _sfc_main$25 = {
113904
114048
  props: {
113905
114049
  record: {
113906
114050
  type: Object,
@@ -113931,20 +114075,27 @@ const navBuild = __component__$26.exports, tableView_vue_vue_type_style_index_0_
113931
114075
  },
113932
114076
  options() {
113933
114077
  return this.record.options;
114078
+ },
114079
+ gclass() {
114080
+ return this.develop == 1 ? "" : this.record.customClass ? `${this.record.customClass}` : "";
114081
+ },
114082
+ wstyle() {
114083
+ const s = this.develop == 1 ? "" : `${getCss(this.options)}max-width:100%;`, t = this.record.customCss ? this.record.customCss : "";
114084
+ return `${s}${getCss(this.record.css)}${t}`;
113934
114085
  }
113935
114086
  },
113936
114087
  methods: {}
113937
114088
  };
113938
114089
  var _sfc_render$25 = function s() {
113939
114090
  var t = this, a = t._self._c;
113940
- return a("div", { staticClass: "view-table" }, [t.show ? a("div", { staticClass: "emport" }, [t._v("~" + t._s(t.$i18nt("gd.module.pleaseClickOnFormGenerator", "\u8BF7\u70B9\u51FB\u8868\u683C\u751F\u6210\u5668")) + "~")]) : a(t.componentItemed, { tag: "component", attrs: { record: t.record, height: t.height, develop: t.develop }, on: { changeData: (r) => t.$emit("changeData", r), onSelectChange: (r, o) => t.$emit("onSelectChange", r, o), fieldData: (r) => t.$emit("fieldData", r) } })], 1);
114091
+ return a("div", { staticClass: "view-table", class: t.gclass, style: t.wstyle }, [t.show ? a("div", { staticClass: "emport" }, [t._v("~" + t._s(t.$i18nt("gd.module.pleaseClickOnFormGenerator", "\u8BF7\u70B9\u51FB\u8868\u683C\u751F\u6210\u5668")) + "~")]) : a(t.componentItemed, { tag: "component", attrs: { record: t.record, height: t.height, develop: t.develop }, on: { changeData: (r) => t.$emit("changeData", r), onSelectChange: (r, o) => t.$emit("onSelectChange", r, o), fieldData: (r) => t.$emit("fieldData", r) } })], 1);
113941
114092
  }, _sfc_staticRenderFns$25 = [], __component__$25 = /* @__PURE__ */ normalizeComponent(
113942
114093
  _sfc_main$25,
113943
114094
  _sfc_render$25,
113944
114095
  _sfc_staticRenderFns$25,
113945
114096
  !1,
113946
114097
  null,
113947
- "1b064941",
114098
+ "ab542162",
113948
114099
  null,
113949
114100
  null
113950
114101
  );
@@ -114056,136 +114207,7 @@ var _sfc_render$23 = function s() {
114056
114207
  null,
114057
114208
  null
114058
114209
  );
114059
- const divider = __component__$23.exports;
114060
- function getCss(s) {
114061
- let t = "";
114062
- for (let a in s)
114063
- t += getProperti(s, a);
114064
- return t;
114065
- }
114066
- function paddingData(s) {
114067
- let t = [];
114068
- return (s.padding ? s.padding : []).forEach((r) => {
114069
- t.push(r ? `${r}px` : 0);
114070
- }), t.length === 0 ? "" : `padding:${t.join(" ")};`;
114071
- }
114072
- function marginData(s) {
114073
- let t = [];
114074
- return (s.margin ? s.margin : []).forEach((r) => {
114075
- t.push(r ? `${r}px` : 0);
114076
- }), t.length === 0 ? "" : `margin:${t.join(" ")};`;
114077
- }
114078
- function backgroundData(s) {
114079
- const t = s.bjColor ? s.bjColor : "";
114080
- return t === "" ? "" : `background-color:${t};`;
114081
- }
114082
- function radiusData(s) {
114083
- let t = [];
114084
- return (s.radius ? s.radius : []).forEach((r) => {
114085
- t.push(r ? `${r}px` : 0);
114086
- }), t.length === 0 ? "" : `border-radius:${t.join(" ")};`;
114087
- }
114088
- function textAlign(s) {
114089
- const t = s.align ? s.align : "";
114090
- return t === "" ? "" : `text-align:${t};`;
114091
- }
114092
- function lineHeight(s) {
114093
- const t = s.lineHeight ? s.lineHeight : "";
114094
- return t === "" ? "" : `line-height:${t}px;`;
114095
- }
114096
- function letterSpacing(s) {
114097
- const t = s.letterSpacing ? s.letterSpacing : "";
114098
- return t === "" ? "" : `letter-spacing:${t}px;`;
114099
- }
114100
- function colorData(s) {
114101
- if (s.color === "0")
114102
- return "color:var(--color);";
114103
- const t = s.color ? s.color : "";
114104
- return t === "" ? "" : `color:${t};`;
114105
- }
114106
- function fontSize(s) {
114107
- const t = s.fontSize ? s.fontSize : "";
114108
- return t === "" ? "" : `font-size:${t}px;`;
114109
- }
114110
- function fontWeight(s) {
114111
- const t = s.fontWeight ? s.fontWeight : "";
114112
- return t === "" ? "" : `font-weight:${t};`;
114113
- }
114114
- function textDecoration(s) {
114115
- const t = s.textDecoration ? s.textDecoration : "";
114116
- return t === "" ? "" : `text-decoration:${t};`;
114117
- }
114118
- function fontStyle(s) {
114119
- const t = s.fontStyle ? s.fontStyle : "";
114120
- return t === "" ? "" : `font-style:${t};`;
114121
- }
114122
- function maxLineClamp(s) {
114123
- const t = s.maxLineClamp ? s.maxLineClamp : "";
114124
- return t === "" ? "" : `overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${t};-webkit-box-orient: vertical;`;
114125
- }
114126
- function widthData(s) {
114127
- const t = s.flexWidth ? s.flexWidth : "100", a = s.flexUnit ? s.flexUnit : "%";
114128
- return `width:${a === "%" ? t > 100 ? 100 : t : a === "auto" ? "" : t}${a};`;
114129
- }
114130
- function flexDirection(s) {
114131
- const t = s.flexDirection ? s.flexDirection : "";
114132
- return t === "" ? "" : `flex-direction:${t};`;
114133
- }
114134
- function justifyContent(s) {
114135
- const t = s.justifyContent ? s.justifyContent : "";
114136
- return t === "" ? "" : `justify-content:${t};`;
114137
- }
114138
- function alignItems(s) {
114139
- const t = s.alignItems ? s.alignItems : "";
114140
- return t === "" ? "" : `align-items:${t};`;
114141
- }
114142
- function flexWrap(s) {
114143
- const t = s.flexWrap ? s.flexWrap : "";
114144
- return t === "" ? "" : `flex-wrap:${t};`;
114145
- }
114146
- function getProperti(s, t) {
114147
- switch (t) {
114148
- case "padding":
114149
- return paddingData(s);
114150
- case "margin":
114151
- return marginData(s);
114152
- case "bjColor":
114153
- return backgroundData(s);
114154
- case "radius":
114155
- return radiusData(s);
114156
- case "align":
114157
- return textAlign(s);
114158
- case "lineHeight":
114159
- return lineHeight(s);
114160
- case "letterSpacing":
114161
- return letterSpacing(s);
114162
- case "color":
114163
- return colorData(s);
114164
- case "fontSize":
114165
- return fontSize(s);
114166
- case "fontWeight":
114167
- return fontWeight(s);
114168
- case "textDecoration":
114169
- return textDecoration(s);
114170
- case "fontStyle":
114171
- return fontStyle(s);
114172
- case "maxLineClamp":
114173
- return maxLineClamp(s);
114174
- case "flexWidth":
114175
- return widthData(s);
114176
- case "flexDirection":
114177
- return flexDirection(s);
114178
- case "justifyContent":
114179
- return justifyContent(s);
114180
- case "alignItems":
114181
- return alignItems(s);
114182
- case "flexWrap":
114183
- return flexWrap(s);
114184
- default:
114185
- return "";
114186
- }
114187
- }
114188
- const textContent_vue_vue_type_style_index_0_scoped_e79340be_lang = "", _sfc_main$22 = {
114210
+ const divider = __component__$23.exports, textContent_vue_vue_type_style_index_0_scoped_e79340be_lang = "", _sfc_main$22 = {
114189
114211
  props: {
114190
114212
  record: {
114191
114213
  type: Object,
@@ -118973,7 +118995,7 @@ const echartsView = __component__$1B.exports, componentArray = {
118973
118995
  uploadImg,
118974
118996
  echarts: echartsView,
118975
118997
  inputNumber: moneyNumber
118976
- }, layoutItem_vue_vue_type_style_index_0_scoped_42111220_lang = "", _sfc_main$1A = {
118998
+ }, layoutItem_vue_vue_type_style_index_0_scoped_61d055f1_lang = "", _sfc_main$1A = {
118977
118999
  props: {
118978
119000
  record: {
118979
119001
  type: Object,
@@ -119226,11 +119248,11 @@ var _sfc_render$1A = function s() {
119226
119248
  t.$set(t.model, t.columnName, r);
119227
119249
  }, expression: "model[columnName]" } }, t._l(t.dict, function(r) {
119228
119250
  return a("el-radio", { key: r.code, attrs: { label: r.code, disabled: r.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${r.transkey}`, r.name)) + " ")]);
119229
- }), 1) : t.record.type === "checkbox" ? a("el-checkbox-group", { on: { change: t.handleChange }, model: { value: t.model[t.columnName], callback: function(r) {
119251
+ }), 1) : t.record.type === "checkbox" ? [typeof t.model[t.columnName] == "object" ? a("el-checkbox-group", { on: { change: t.handleChange }, model: { value: t.model[t.columnName], callback: function(r) {
119230
119252
  t.$set(t.model, t.columnName, r);
119231
119253
  }, expression: "model[columnName]" } }, t._l(t.dict, function(r) {
119232
119254
  return a("el-checkbox", { key: r.code, attrs: { label: r.code, disabled: r.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${r.transkey}`, r.name)) + " ")]);
119233
- }), 1) : t.record.type === "select" ? [["fk", "user", "about"].includes(t.options.effectType) ? a("div", { style: t.wstyle }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { disabled: t.options.disabled, placeholder: t.options.placeholder !== void 0 ? t.options.placeholder === "" ? t.options.placeholder : t.$i18nt(`Dynamics.${t.options.placeholderTransKey}`, t.options.placeholder) : t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: t.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": t.searchData, "popper-append-to-body": !1 }, on: { focus: t.fkSearch, change: t.handleChange }, model: { value: t.model[t.columnName], callback: function(r) {
119255
+ }), 1) : t._e()] : t.record.type === "select" ? [["fk", "user", "about"].includes(t.options.effectType) ? a("div", { style: t.wstyle }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { disabled: t.options.disabled, placeholder: t.options.placeholder !== void 0 ? t.options.placeholder === "" ? t.options.placeholder : t.$i18nt(`Dynamics.${t.options.placeholderTransKey}`, t.options.placeholder) : t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: t.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": t.searchData, "popper-append-to-body": !1 }, on: { focus: t.fkSearch, change: t.handleChange }, model: { value: t.model[t.columnName], callback: function(r) {
119234
119256
  t.$set(t.model, t.columnName, r);
119235
119257
  }, expression: "model[columnName]" } }, t._l(t.fkData, function(r) {
119236
119258
  return a("el-option", { key: r.id, attrs: { label: r.name, value: r.id } });
@@ -119261,7 +119283,7 @@ var _sfc_render$1A = function s() {
119261
119283
  _sfc_staticRenderFns$1A,
119262
119284
  !1,
119263
119285
  null,
119264
- "42111220",
119286
+ "61d055f1",
119265
119287
  null,
119266
119288
  null
119267
119289
  );
@@ -119559,7 +119581,7 @@ var _sfc_render$1w = function s() {
119559
119581
  null,
119560
119582
  null
119561
119583
  );
119562
- const FlexLayout = __component__$1w.exports, dataList_vue_vue_type_style_index_0_scoped_c29cc137_lang = "", _sfc_main$1v = {
119584
+ const FlexLayout = __component__$1w.exports, dataList_vue_vue_type_style_index_0_scoped_058408ea_lang = "", _sfc_main$1v = {
119563
119585
  props: {
119564
119586
  record: {
119565
119587
  type: Object,
@@ -119697,7 +119719,7 @@ const FlexLayout = __component__$1w.exports, dataList_vue_vue_type_style_index_0
119697
119719
  },
119698
119720
  methods: {
119699
119721
  executeEvent(s) {
119700
- this.tableQueries = s && s.tableQueries ? s.tableQueries : [];
119722
+ console.log(s), this.tableQueries = s && s.tableQueries ? s.tableQueries : [];
119701
119723
  const t = s.functionName ? s.functionName : "";
119702
119724
  t && this[t] !== void 0 ? this[t](s.data) : console.log("\u6267\u884C\u9519\u8BEF");
119703
119725
  },
@@ -119758,7 +119780,7 @@ const FlexLayout = __component__$1w.exports, dataList_vue_vue_type_style_index_0
119758
119780
  if (a.code === 200) {
119759
119781
  let r = a.data.rows.map((o) => {
119760
119782
  let l = /* @__PURE__ */ new Map();
119761
- return l.set(this.ids, o.id), Object.assign(o, Object.fromEntries(l), this.tableQueries, this.getDictionary("time_longshort")), o;
119783
+ return l.set(this.executeIds, o.id), Object.assign(o, Object.fromEntries(l), this.tableQueries, this.getDictionary("time_longshort")), o;
119762
119784
  });
119763
119785
  this.list = s || this.pageNo === 1 ? r : this.list.concat(r), this.totalRows = a.data.totalrows, this.statu = this.totalRows === 0;
119764
119786
  }
@@ -119839,7 +119861,7 @@ var _sfc_render$1v = function s() {
119839
119861
  _sfc_staticRenderFns$1v,
119840
119862
  !1,
119841
119863
  null,
119842
- "c29cc137",
119864
+ "058408ea",
119843
119865
  null,
119844
119866
  null
119845
119867
  );
@@ -120442,7 +120464,7 @@ var _sfc_render$1s = function s() {
120442
120464
  null,
120443
120465
  null
120444
120466
  );
120445
- const layoutItem = __component__$1s.exports, componentPanel_vue_vue_type_style_index_0_scoped_2ddf0fc0_lang = "";
120467
+ const layoutItem = __component__$1s.exports, componentPanel_vue_vue_type_style_index_0_scoped_b62ff8ef_lang = "";
120446
120468
  var timeOut = null;
120447
120469
  const _sfc_main$1r = {
120448
120470
  props: {
@@ -120660,7 +120682,7 @@ const _sfc_main$1r = {
120660
120682
  getRuleFormData(s) {
120661
120683
  let t = /* @__PURE__ */ new Map();
120662
120684
  return s.forEach((a) => {
120663
- ["inputNumber", "select"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : void 0) : ["switch"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : 0) : ["checkbox"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : []) : ["select"].includes(a.type) ? t.set(
120685
+ ["inputNumber"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : void 0) : ["switch"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : 0) : ["checkbox"].includes(a.type) ? t.set(a.options.columnName, a.options.defaultValue !== void 0 ? a.options.defaultValue : []) : ["select"].includes(a.type) ? t.set(
120664
120686
  a.options.columnName,
120665
120687
  a.options.defaultValue !== void 0 ? a.options.defaultValue : a.options.multiple ? [] : void 0
120666
120688
  ) : t.set(
@@ -120712,7 +120734,7 @@ var _sfc_render$1r = function s() {
120712
120734
  _sfc_staticRenderFns$1r,
120713
120735
  !1,
120714
120736
  null,
120715
- "2ddf0fc0",
120737
+ "b62ff8ef",
120716
120738
  null,
120717
120739
  null
120718
120740
  );
@@ -134418,7 +134440,7 @@ var _sfc_render$H = function s() {
134418
134440
  null,
134419
134441
  null
134420
134442
  );
134421
- const AddPage = __component__$H.exports, movePid_vue_vue_type_style_index_0_scoped_22511eda_lang = "", _sfc_main$G = {
134443
+ const AddPage = __component__$H.exports, movePid_vue_vue_type_style_index_0_scoped_20e98ad0_lang = "", _sfc_main$G = {
134422
134444
  props: {
134423
134445
  treeData: {
134424
134446
  type: Array,
@@ -134467,14 +134489,9 @@ const AddPage = __component__$H.exports, movePid_vue_vue_type_style_index_0_scop
134467
134489
  let a = {
134468
134490
  name: t.name
134469
134491
  };
134470
- if (this.record.modeType === "page")
134471
- Object.assign(a, { pid: this.ruleForm.npid });
134472
- else if (this.record.modeType === "directory") {
134473
- const r = this.treeOptions.filter((o) => o.id === this.ruleForm.npid)[0];
134474
- Object.assign(a, { pid: 0, application: r.code });
134475
- }
134476
- sysMenuEdit(Object.assign(t, { ...a })).then((r) => {
134477
- r.success ? (this.closed(), this.$emit("ok"), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.confirmLoading = !1;
134492
+ const r = this.treeOptions.filter((o) => o.id === this.ruleForm.npid)[0];
134493
+ this.record.modeType === "page" && !r ? Object.assign(a, { pid: this.ruleForm.npid }) : this.record.modeType === "page" && r ? Object.assign(a, { pid: 0, application: r.code }) : this.record.modeType === "directory" && Object.assign(a, { pid: 0, application: r.code }), sysMenuEdit(Object.assign(t, { ...a })).then((o) => {
134494
+ o.success ? (this.closed(), this.$emit("ok"), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message), this.confirmLoading = !1;
134478
134495
  });
134479
134496
  });
134480
134497
  },
@@ -134518,7 +134535,7 @@ var _sfc_render$G = function s() {
134518
134535
  _sfc_staticRenderFns$G,
134519
134536
  !1,
134520
134537
  null,
134521
- "22511eda",
134538
+ "20e98ad0",
134522
134539
  null,
134523
134540
  null
134524
134541
  );
@@ -136371,10 +136388,11 @@ var _sfc_render$q = function s() {
136371
136388
  null,
136372
136389
  null
136373
136390
  );
136374
- const BuildBlocks = __component__$q.exports, main_vue_vue_type_style_index_0_scoped_f541c238_lang = "", _sfc_main$p = {
136391
+ const BuildBlocks = __component__$q.exports, main_vue_vue_type_style_index_0_scoped_5a0bc3d1_lang = "", _sfc_main$p = {
136375
136392
  name: "GdPageBuild",
136376
136393
  data() {
136377
136394
  return {
136395
+ showComponents: [],
136378
136396
  menuId: "",
136379
136397
  loading: !1,
136380
136398
  record: {},
@@ -136402,6 +136420,9 @@ const BuildBlocks = __component__$q.exports, main_vue_vue_type_style_index_0_sco
136402
136420
  },
136403
136421
  components: { BuildBlocks },
136404
136422
  methods: {
136423
+ closed(s) {
136424
+ this.showComponents = this.showComponents.filter((t) => t !== s);
136425
+ },
136405
136426
  baseFilePreview(s) {
136406
136427
  let t = [];
136407
136428
  if (isJson(s.data) && (t = JSON.parse(s.data)), t.length === 0) {
@@ -136410,7 +136431,11 @@ const BuildBlocks = __component__$q.exports, main_vue_vue_type_style_index_0_sco
136410
136431
  }
136411
136432
  const a = t[0];
136412
136433
  let r = { name: a.fileoriginname, fileId: a.id };
136413
- this.$refs.filePreview.open(r);
136434
+ this.showComponents = ["filePreview"], this.$nextTick(() => {
136435
+ setTimeout(() => {
136436
+ this.$refs.filePreview.open(r);
136437
+ }, 200);
136438
+ });
136414
136439
  },
136415
136440
  doEventDataList(s, t) {
136416
136441
  const a = t.executeEvent ? t.executeEvent : [];
@@ -136496,14 +136521,16 @@ const BuildBlocks = __component__$q.exports, main_vue_vue_type_style_index_0_sco
136496
136521
  };
136497
136522
  var _sfc_render$p = function s() {
136498
136523
  var t = this, a = t._self._c;
136499
- return a("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticClass: "gd-page-bulid", style: t.style }, [t.loading ? a("div", { staticClass: "bulid-loading" }, [a("gd-view-loading", { attrs: { height: t.height } })], 1) : t._e(), t.show ? a("BuildBlocks", { attrs: { record: t.record, height: t.height } }) : t._e(), a("gd-file-preview", { ref: "filePreview", attrs: { options: {}, hasFullscreen: !0 } })], 1);
136524
+ return a("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticClass: "gd-page-bulid", style: t.style }, [t.loading ? a("div", { staticClass: "bulid-loading" }, [a("gd-view-loading", { attrs: { height: t.height } })], 1) : t._e(), t.show ? a("BuildBlocks", { attrs: { record: t.record, height: t.height } }) : t._e(), t.showComponents.includes("filePreview") ? a("gd-file-preview", { ref: "filePreview", attrs: { options: {}, hasFullscreen: !0 }, on: { closed: function(r) {
136525
+ return t.closed("filePreview");
136526
+ } } }) : t._e()], 1);
136500
136527
  }, _sfc_staticRenderFns$p = [], __component__$p = /* @__PURE__ */ normalizeComponent(
136501
136528
  _sfc_main$p,
136502
136529
  _sfc_render$p,
136503
136530
  _sfc_staticRenderFns$p,
136504
136531
  !1,
136505
136532
  null,
136506
- "f541c238",
136533
+ "5a0bc3d1",
136507
136534
  null,
136508
136535
  null
136509
136536
  );
@@ -137876,7 +137903,7 @@ var _sfc_render$n = function s() {
137876
137903
  null,
137877
137904
  null
137878
137905
  );
137879
- const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_scoped_17ddf9dd_lang = "", _sfc_main$m = {
137906
+ const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_scoped_0a6a1b43_lang = "", _sfc_main$m = {
137880
137907
  name: "GdFormBuild",
137881
137908
  props: {
137882
137909
  modeType: {
@@ -138164,7 +138191,9 @@ const ProcessFlow = __component__$n.exports, main_vue_vue_type_style_index_0_sco
138164
138191
  });
138165
138192
  },
138166
138193
  addbase({ data: s, resolve: t, saved: a, refreshHost: r, t: o, statu: l }) {
138167
- return baseAdd(s).then((d) => (d.code === 200 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.title = this.$i18nt("gd.common.btn.edit", "\u7F16\u8F91"), this.id = d.data, l ? this.baseRelationSave({ id: d.data, fkList }, o) : (this.baseAddFlow(d.data, o), this.$emit("ok", !1), this.baseClearFk(), this.closed(o), this.confirmLoading = !1), String(this.openMode) === "3" && a && r && this.baseRelationRefresh(!0, [])) : (this.confirmLoading = !1, this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + d.message)), setTimeout(() => {
138194
+ return baseAdd(s).then((d) => (d.code === 200 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.title = this.$i18nt("gd.common.btn.edit", "\u7F16\u8F91"), this.id = d.data, l ? this.baseRelationSave({ id: d.data, fkList }, o) : (this.baseAddFlow(d.data, o), this.baseClearFk(), this.closed(o), this.confirmLoading = !1, setTimeout(() => {
138195
+ this.$emit("ok", !1, !0);
138196
+ }, 0)), String(this.openMode) === "3" && a && r && this.baseRelationRefresh(!0, [])) : (this.confirmLoading = !1, this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + d.message)), setTimeout(() => {
138168
138197
  t({ res: d, data: s });
138169
138198
  }, 50), d)).catch(() => {
138170
138199
  this.confirmLoading = !1;
@@ -138975,7 +139004,7 @@ var _sfc_render$m = function s() {
138975
139004
  _sfc_staticRenderFns$m,
138976
139005
  !1,
138977
139006
  null,
138978
- "17ddf9dd",
139007
+ "0a6a1b43",
138979
139008
  null,
138980
139009
  null
138981
139010
  );
@@ -143828,7 +143857,7 @@ const mixins$2 = {
143828
143857
  }]
143829
143858
  };
143830
143859
  }
143831
- }, editForm_vue_vue_type_style_index_0_scoped_e8be489c_lang = "", _sfc_main$5 = {
143860
+ }, editForm_vue_vue_type_style_index_0_scoped_ce04d9b0_lang = "", _sfc_main$5 = {
143832
143861
  props: {
143833
143862
  fieldData: {
143834
143863
  type: Array,
@@ -144231,7 +144260,7 @@ var _sfc_render$5 = function s() {
144231
144260
  _sfc_staticRenderFns$5,
144232
144261
  !1,
144233
144262
  null,
144234
- "e8be489c",
144263
+ "ce04d9b0",
144235
144264
  null,
144236
144265
  null
144237
144266
  );