form-custom-test 3.0.187 → 3.0.189

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.
package/dist/render.es.js CHANGED
@@ -26510,13 +26510,13 @@ function registerIcon(app) {
26510
26510
  if (typeof window !== "undefined") {
26511
26511
  let loadSvg = function() {
26512
26512
  var body = document.body;
26513
- var svgDom = document.getElementById("__svg__icons__dom__1780470086494__");
26513
+ var svgDom = document.getElementById("__svg__icons__dom__1780476141134__");
26514
26514
  if (!svgDom) {
26515
26515
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26516
26516
  svgDom.style.position = "absolute";
26517
26517
  svgDom.style.width = "0";
26518
26518
  svgDom.style.height = "0";
26519
- svgDom.id = "__svg__icons__dom__1780470086494__";
26519
+ svgDom.id = "__svg__icons__dom__1780476141134__";
26520
26520
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26521
26521
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26522
26522
  }
@@ -63948,7 +63948,8 @@ const _sfc_main$4 = {
63948
63948
  oldFieldValue: null,
63949
63949
  rules: [],
63950
63950
  detailDialogVisible: false,
63951
- detailDialogData: null
63951
+ detailDialogData: null,
63952
+ dictOptions: []
63952
63953
  };
63953
63954
  },
63954
63955
  computed: {},
@@ -63980,6 +63981,7 @@ const _sfc_main$4 = {
63980
63981
  },
63981
63982
  mounted() {
63982
63983
  this.handleOnMounted();
63984
+ this.getDictItem("project_stage");
63983
63985
  },
63984
63986
  beforeUnmount() {
63985
63987
  this.unregisterFromRefList();
@@ -64006,6 +64008,25 @@ const _sfc_main$4 = {
64006
64008
  getlabel(row) {
64007
64009
  return (dictManager == null ? void 0 : dictManager.getDictLabel("project_stage", row.projectStage)) || "-";
64008
64010
  },
64011
+ getDictItem(dictCode) {
64012
+ if (!dictCode)
64013
+ return "-";
64014
+ service({
64015
+ method: "post",
64016
+ url: "/unified-dict/sysItemDict/page",
64017
+ data: {
64018
+ current: 1,
64019
+ size: 1e4,
64020
+ dictType: dictCode
64021
+ }
64022
+ }).then(({ data: { records } }) => {
64023
+ const options = records.map((item) => ({
64024
+ label: item.label,
64025
+ value: item.itemValue
64026
+ }));
64027
+ this.dictOptions = [...this.dictOptions, ...options];
64028
+ });
64029
+ },
64009
64030
  getSameCompanyRows(currentIndex) {
64010
64031
  const currentCompany = this.fieldModel[currentIndex].enterpriseName;
64011
64032
  const sameRows = [currentIndex];
@@ -64190,9 +64211,12 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64190
64211
  label: "\u9879\u76EE\u9636\u6BB5",
64191
64212
  width: "90"
64192
64213
  }, {
64193
- default: withCtx(({ row }) => [
64194
- createTextVNode(toDisplayString($options.getlabel(row)), 1)
64195
- ]),
64214
+ default: withCtx(({ row }) => {
64215
+ var _a;
64216
+ return [
64217
+ createTextVNode(toDisplayString(((_a = $data.dictOptions.find((item) => item.value === row.projectStage)) == null ? void 0 : _a.label) || "-"), 1)
64218
+ ];
64219
+ }),
64196
64220
  _: 1
64197
64221
  }),
64198
64222
  createVNode(_component_el_table_column, {
@@ -64263,7 +64287,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64263
64287
  _: 1
64264
64288
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
64265
64289
  }
64266
- var FixedTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-7e005307"]]);
64290
+ var FixedTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-34e9ca5d"]]);
64267
64291
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
64268
64292
  const _sfc_main$3 = {
64269
64293
  name: "equity-table-widget",