@fecp/designer 5.5.4 → 5.5.6

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.
Files changed (105) hide show
  1. package/es/_virtual/app.mjs +5 -0
  2. package/es/_virtual/app2.mjs +4 -0
  3. package/es/designer/package.json.mjs +1 -1
  4. package/es/designer/src/api/index.mjs +30 -31
  5. package/es/designer/src/components/DocumentParam.vue.mjs +5 -3
  6. package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +5 -3
  7. package/es/designer/src/components/TemplateDialog.vue.mjs +5 -3
  8. package/es/designer/src/layout/header/index.vue.mjs +4 -2
  9. package/es/designer/src/layout/index.vue.mjs +6 -4
  10. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +5 -3
  11. package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -3
  12. package/es/designer/src/packages/dialog/index.vue2.mjs +6 -4
  13. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  14. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +9 -7
  15. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  16. package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +5 -3
  17. package/es/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +5 -3
  18. package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +5 -3
  19. package/es/designer/src/packages/form/components/DefaultValueEditor.vue.mjs +2 -2
  20. package/es/designer/src/packages/form/property/contract.vue.mjs +5 -3
  21. package/es/designer/src/packages/form/property/subTable.vue.mjs +5 -3
  22. package/es/designer/src/packages/form/property/widgets.vue.mjs +8 -6
  23. package/es/designer/src/packages/prod/index.vue.mjs +5 -3
  24. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -4
  25. package/es/designer/src/utils/optionLoader.mjs +8 -7
  26. package/es/designer.css +300 -271
  27. package/es/node_modules/element-china-category-data/dist/app.mjs +77 -0
  28. package/es/packages/mobile/index.mjs +4 -0
  29. package/es/packages/mobile/src/components/all.mjs +4 -0
  30. package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +2 -2
  31. package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +29 -25
  32. package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +195 -0
  33. package/es/packages/mobile/src/components/form/fieldIndustry/index.mjs +10 -0
  34. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +3 -25
  35. package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +34 -7
  36. package/es/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.mjs +27 -0
  37. package/es/packages/mobile/src/components/form/fieldSubTitle/index.mjs +10 -0
  38. package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +1 -1
  39. package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +35 -16
  40. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +2 -1
  41. package/es/packages/mobile/src/utils/common.mjs +28 -0
  42. package/es/packages/mobile/src/utils/datasource.mjs +354 -0
  43. package/es/packages/mobile/src/utils/optionUtil.mjs +63 -40
  44. package/es/packages/mobile/src/utils/parseRouteParams.mjs +41 -0
  45. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
  46. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
  47. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +6 -2
  48. package/es/packages/vue/src/components/table/Table.vue.mjs +7 -5
  49. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
  50. package/es/packages/vue/src/components/table/TableFilter.vue.mjs +7 -3
  51. package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
  52. package/es/packages/vue/src/utils/datasource.mjs +1 -1
  53. package/lib/_virtual/app.js +5 -0
  54. package/lib/_virtual/app2.js +4 -0
  55. package/lib/designer/package.json.js +1 -1
  56. package/lib/designer/src/api/index.js +30 -31
  57. package/lib/designer/src/components/DocumentParam.vue.js +4 -2
  58. package/lib/designer/src/components/RiskSchemeDialog.vue2.js +4 -2
  59. package/lib/designer/src/components/TemplateDialog.vue.js +4 -2
  60. package/lib/designer/src/layout/header/index.vue.js +3 -1
  61. package/lib/designer/src/layout/index.vue.js +5 -3
  62. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +4 -2
  63. package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -3
  64. package/lib/designer/src/packages/dialog/index.vue2.js +5 -3
  65. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  66. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +8 -6
  67. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  68. package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +4 -2
  69. package/lib/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +4 -2
  70. package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +4 -2
  71. package/lib/designer/src/packages/form/components/DefaultValueEditor.vue.js +2 -2
  72. package/lib/designer/src/packages/form/property/contract.vue.js +4 -2
  73. package/lib/designer/src/packages/form/property/subTable.vue.js +4 -2
  74. package/lib/designer/src/packages/form/property/widgets.vue.js +7 -5
  75. package/lib/designer/src/packages/prod/index.vue.js +4 -2
  76. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -4
  77. package/lib/designer/src/utils/optionLoader.js +8 -7
  78. package/lib/designer.css +300 -271
  79. package/lib/node_modules/element-china-category-data/dist/app.js +77 -0
  80. package/lib/packages/mobile/index.js +48 -44
  81. package/lib/packages/mobile/src/components/all.js +48 -44
  82. package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +2 -2
  83. package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +28 -24
  84. package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +195 -0
  85. package/lib/packages/mobile/src/components/form/fieldIndustry/index.js +10 -0
  86. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +2 -24
  87. package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +33 -6
  88. package/lib/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.js +27 -0
  89. package/lib/packages/mobile/src/components/form/fieldSubTitle/index.js +10 -0
  90. package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +1 -1
  91. package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +34 -15
  92. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +2 -1
  93. package/lib/packages/mobile/src/utils/common.js +28 -0
  94. package/lib/packages/mobile/src/utils/datasource.js +354 -0
  95. package/lib/packages/mobile/src/utils/optionUtil.js +64 -41
  96. package/lib/packages/mobile/src/utils/parseRouteParams.js +41 -0
  97. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
  98. package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
  99. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -2
  100. package/lib/packages/vue/src/components/table/Table.vue.js +7 -5
  101. package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
  102. package/lib/packages/vue/src/components/table/TableFilter.vue.js +7 -3
  103. package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
  104. package/lib/packages/vue/src/utils/datasource.js +1 -1
  105. package/package.json +1 -1
@@ -1,54 +1,77 @@
1
1
  import useHttp from "../axios/index.mjs";
2
- import { useDataSource } from "./dataSourceUtil.mjs";
2
+ import { createDataSource } from "./datasource.mjs";
3
3
  import envConfig from "./env.mjs";
4
4
  const baseUrl = envConfig.api_base_url;
5
5
  const getOptions = ({
6
- optionType,
7
- dicKey,
8
- dicList,
9
- dataSource,
10
- dataSourceParams,
11
- staticOptions,
12
- optionsFieldNames
6
+ ctx,
7
+ dataSources,
8
+ formData = [],
9
+ fields = [],
10
+ optionSource,
11
+ options: staticOptions,
12
+ dataSourceValue,
13
+ displayField,
14
+ valueField,
15
+ dictionaryValue
13
16
  }) => {
14
- return new Promise((resolve, reject) => {
15
- switch (optionType) {
16
- case "static":
17
+ return new Promise(async (resolve, reject) => {
18
+ var _a, _b;
19
+ switch (optionSource) {
20
+ case "custom":
17
21
  resolve(staticOptions);
18
22
  break;
19
- case "dic":
20
- let dicListToOption = function(dicList2) {
21
- return dicList2.map((item) => {
22
- return {
23
- text: item.optName,
24
- value: item.optCode
25
- };
26
- });
27
- };
28
- if (dicList) {
29
- resolve(dicListToOption(dicList));
23
+ case "dictionary":
24
+ if (!dictionaryValue) {
25
+ resolve([]);
26
+ break;
27
+ }
28
+ const response = await ctx.$http.postForm(
29
+ "/base-server/parm/sysParmDic/getDicListByKey",
30
+ {
31
+ keyName: dictionaryValue
32
+ },
33
+ false
34
+ );
35
+ const dictionaryData = response;
36
+ const dictItems = dictionaryData[dictionaryValue];
37
+ if (dictItems) {
38
+ const labelField2 = "optName";
39
+ const keyField2 = "optCode";
40
+ const options2 = dictItems.map((item) => ({
41
+ label: item[labelField2],
42
+ value: item[keyField2],
43
+ disabled: item.disabled || false
44
+ }));
45
+ resolve(options2);
30
46
  } else {
31
- getParmDicMapByKeys(dicKey).then((data) => {
32
- const option = dicListToOption(data[dicKey]);
33
- resolve(option);
34
- });
47
+ resolve([]);
35
48
  }
36
49
  break;
37
- case "library":
38
- const dataSourceRef = useDataSource(dataSource);
39
- dataSourceRef == null ? void 0 : dataSourceRef.load(dataSourceParams || {}).then((res) => {
40
- var _a;
41
- const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.records) || (res == null ? void 0 : res.data) || res || [];
42
- const option = data.map((item) => {
43
- return {
44
- text: item[optionsFieldNames.text],
45
- value: item[optionsFieldNames.value] + ""
46
- };
47
- });
48
- resolve(option);
49
- }).catch((err) => {
50
- console.error(err);
50
+ case "dataSource":
51
+ const dsManager = createDataSource({
52
+ http: ctx.$http,
53
+ dataSources,
54
+ currentDataSourceId: dataSourceValue,
55
+ data: formData,
56
+ // fields: [...fieldsData.value, ...hiddenFields.value],
57
+ fields
51
58
  });
59
+ const data = await dsManager.fetch();
60
+ let options = [];
61
+ if (Array.isArray(data)) {
62
+ options = data;
63
+ } else if (typeof data === "object") {
64
+ options = Array.isArray(data.data) ? data.data : ((_a = data.data) == null ? void 0 : _a.records) || ((_b = data.data) == null ? void 0 : _b.list) || [];
65
+ }
66
+ const labelField = displayField || "label";
67
+ const keyField = valueField || "value";
68
+ options = options.map((item) => ({
69
+ label: item[labelField],
70
+ value: item[keyField],
71
+ disabled: item.disabled || false,
72
+ ...item
73
+ }));
74
+ resolve(options);
52
75
  break;
53
76
  }
54
77
  });
@@ -0,0 +1,41 @@
1
+ import { removeEmptyValues } from "./common.mjs";
2
+ function parseSingleParamValue(value, data, fields) {
3
+ if (typeof value !== "object" || value === null) {
4
+ return value;
5
+ }
6
+ if (Array.isArray(value)) {
7
+ return value.map((item) => parseSingleParamValue(item, data, fields));
8
+ }
9
+ const type = value.type;
10
+ if (type === "field") {
11
+ const field = fields.find((f) => f.id == value.value);
12
+ if (field) {
13
+ return data[field.fieldName];
14
+ }
15
+ return null;
16
+ } else if (type === "userInfo") {
17
+ console.warn("[parseRouteParams] userInfo 类型暂未实现");
18
+ return {};
19
+ } else if (type === "urlParam") {
20
+ const urlParams = new URLSearchParams(window.location.search);
21
+ return urlParams.get(value.value) || null;
22
+ } else {
23
+ return value.value !== void 0 ? value.value : value;
24
+ }
25
+ }
26
+ function parseRouteParams(routeParams, data, fields) {
27
+ if (!routeParams || !Array.isArray(routeParams)) {
28
+ return {};
29
+ }
30
+ const params = {};
31
+ routeParams.forEach((param) => {
32
+ const key = param.key;
33
+ if (!key) return;
34
+ params[key] = parseSingleParamValue(param.value, data, fields);
35
+ });
36
+ return removeEmptyValues(params);
37
+ }
38
+ export {
39
+ parseRouteParams,
40
+ parseSingleParamValue
41
+ };
@@ -7,9 +7,9 @@ import { ref, computed, watch, resolveComponent, createBlock, openBlock, resolve
7
7
  import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
8
8
  import { calculate } from "../../utils/formulajs/calculate.mjs";
9
9
  import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
10
- /* empty css */
11
10
  /* empty css */
12
11
  /* empty css */
12
+ /* empty css */
13
13
  import { loadComponentByPath } from "../../utils/common.mjs";
14
14
  /* empty css */
15
15
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -3,9 +3,9 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
6
- /* empty css */
7
6
  /* empty css */
8
7
  /* empty css */
8
+ /* empty css */
9
9
  import { openDialog } from "../../dialog/index.mjs";
10
10
  /* empty css */
11
11
  /* empty css */
@@ -86,6 +86,10 @@ const _sfc_main = {
86
86
  hiddenFormData: {
87
87
  type: Object,
88
88
  default: {}
89
+ },
90
+ isCache: {
91
+ type: Boolean,
92
+ default: false
89
93
  }
90
94
  },
91
95
  emits: ["click", "search"],
@@ -167,7 +171,7 @@ const _sfc_main = {
167
171
  const searchInputValue = ref("");
168
172
  const ctx = getCurrentVueInstance();
169
173
  const route = (_a = ctx.$route) == null ? void 0 : _a.path;
170
- if (route) {
174
+ if (route && props.isCache) {
171
175
  const routeParams = JSON.parse(sessionStorage.getItem(route));
172
176
  const filters = JSON.parse((routeParams == null ? void 0 : routeParams.filters) || "{}");
173
177
  searchInputValue.value = (filters == null ? void 0 : filters.dynamicFilter) || "";
@@ -480,7 +484,7 @@ const _sfc_main = {
480
484
  };
481
485
  }
482
486
  };
483
- const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9e44c27e"]]);
487
+ const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3d06dba1"]]);
484
488
  export {
485
489
  DynamicQuery as default
486
490
  };
@@ -288,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
288
288
  if (!((_a = localConfig.value.dataSources) == null ? void 0 : _a.length)) return;
289
289
  let pageNo = 1;
290
290
  let pageSize = isPagination.value ? (_b = localConfig.value.paginationConfig) == null ? void 0 : _b.pageSize : 0;
291
- if (!props.isSubTable && !props.isSubTable) {
291
+ if (!props.isSubTable && !props.isDialog) {
292
292
  const route = (_c = ctx.$route) == null ? void 0 : _c.path;
293
293
  if (route) {
294
294
  routeParams.value = JSON.parse(sessionStorage.getItem(route));
@@ -582,7 +582,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
582
582
  };
583
583
  async function tableDataFetch(extraParams = {}) {
584
584
  var _a;
585
- if (!props.isSubTable && !props.isSubTable) {
585
+ if (!props.isSubTable && !props.isDialog) {
586
586
  const params = dataSourceManager.value.buildRequestParams(extraParams);
587
587
  const route = (_a = ctx.$route) == null ? void 0 : _a.path;
588
588
  if (route) {
@@ -805,9 +805,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
805
805
  createVNode(TableFilter, {
806
806
  "query-config": localConfig.value.queryConfig,
807
807
  "fields-data": fieldsData.value,
808
+ isCache: !__props.isSubTable && !__props.isDialog,
808
809
  onSearch: handleFilterSearch,
809
810
  onReset: handleFilterReset
810
- }, null, 8, ["query-config", "fields-data"]),
811
+ }, null, 8, ["query-config", "fields-data", "isCache"]),
811
812
  createVNode(CustomButtons, {
812
813
  "custom-btns": localConfig.value.customBtns,
813
814
  localConfig: localConfig.value,
@@ -823,10 +824,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
823
824
  isSubTable: __props.titleMode == "label",
824
825
  localConfig: localConfig.value,
825
826
  "fields-data": fieldsData.value,
827
+ isCache: !__props.isSubTable && !__props.isDialog,
826
828
  onSearch: handleFilterSearch,
827
829
  onClick: handleCustomBtnClick,
828
830
  hiddenFormData: hiddenFormData.value
829
- }, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "hiddenFormData"])) : createCommentVNode("", true),
831
+ }, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "isCache", "hiddenFormData"])) : createCommentVNode("", true),
830
832
  createElementVNode("div", _hoisted_1, [
831
833
  createVNode(unref(VxeTable), {
832
834
  ref_key: "tableRef",
@@ -897,7 +899,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
897
899
  };
898
900
  }
899
901
  });
900
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-501e930d"]]);
902
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7dad99a5"]]);
901
903
  export {
902
904
  _Table as default
903
905
  };
@@ -7,10 +7,10 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
7
7
  import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
8
8
  import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
9
9
  import { removeEmptyValues } from "../../utils/common.mjs";
10
- /* empty css */
11
10
  /* empty css */
12
11
  /* empty css */
13
12
  /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  import "../../utils/formulajs/functionCore.mjs";
16
16
  import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
@@ -42,13 +42,17 @@ const _sfc_main = {
42
42
  fieldsData: {
43
43
  type: Array,
44
44
  default: () => []
45
+ },
46
+ isCache: {
47
+ type: Boolean,
48
+ default: false
45
49
  }
46
50
  },
47
51
  emits: ["search", "reset"],
48
52
  setup(__props, { expose: __expose, emit: __emit }) {
49
53
  var _a;
50
54
  useCssVars((_ctx) => ({
51
- "5db6b2d0": `${config.value.collapseRows * 90}px`
55
+ "6f90a0ef": `${config.value.collapseRows * 90}px`
52
56
  }));
53
57
  const props = __props;
54
58
  const emit = __emit;
@@ -77,7 +81,7 @@ const _sfc_main = {
77
81
  const filterValues = ref({});
78
82
  const ctx = getCurrentVueInstance();
79
83
  const route = (_a = ctx.$route) == null ? void 0 : _a.path;
80
- if (route) {
84
+ if (route && props.isCache) {
81
85
  const routeParams = JSON.parse(sessionStorage.getItem(route));
82
86
  const filters = JSON.parse((routeParams == null ? void 0 : routeParams.filters) || "{}");
83
87
  filterValues.value = reverseHandleSearchData(
@@ -294,7 +298,7 @@ const _sfc_main = {
294
298
  };
295
299
  }
296
300
  };
297
- const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a11251e7"]]);
301
+ const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8af059f7"]]);
298
302
  export {
299
303
  TableFilter as default
300
304
  };
@@ -1,9 +1,9 @@
1
1
  import { onUnmounted, onBeforeUnmount, onMounted } from "vue";
2
2
  /* empty css */
3
- /* empty css */
4
3
  /* empty css */
5
4
  /* empty css */
6
5
  /* empty css */
6
+ /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import "../utils/formulajs/functionCore.mjs";
@@ -2,9 +2,9 @@ import { reactive } from "vue";
2
2
  import { parseRouteParams } from "./parseRouteParams.mjs";
3
3
  import "../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
- /* empty css */
6
5
  /* empty css */
7
6
  /* empty css */
7
+ /* empty css */
8
8
  import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
9
9
  import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
10
10
  class DataSourceManager {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const app = require("../node_modules/element-china-category-data/dist/app.js");
4
+ var appExports = app.__require();
5
+ exports.appExports = appExports;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var app = { exports: {} };
4
+ exports.__module = app;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.4";
3
+ const version = "5.5.6";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,71 +1,70 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("../axios/index.js");
4
3
  const api = {
5
- login4dev: () => {
6
- return index.post(`${$servers.base}/login4dev`);
4
+ login4dev: ($http) => {
5
+ return $http.post(`${$servers.base}/login4dev`);
7
6
  },
8
- getById: (id, showLoading = true) => {
9
- return index.get(`${$servers.base}/design/getById/${id}`, showLoading);
7
+ getById: ($http, id, showLoading = true) => {
8
+ return $http.get(`${$servers.base}/design/getById/${id}`, showLoading);
10
9
  },
11
- updateById: (data) => {
12
- return index.post(
10
+ updateById: ($http, data) => {
11
+ return $http.post(
13
12
  `${$servers.base}/template/sysTemplate/update4DesignerV5`,
14
13
  data
15
14
  );
16
15
  },
17
- findAllDic: () => {
18
- return index.post(`${$servers.base}/parm/sysParmDic/findAllDic`);
16
+ findAllDic: ($http) => {
17
+ return $http.post(`${$servers.base}/parm/sysParmDic/findAllDic`);
19
18
  },
20
- getDicDataByKey: (keyName) => {
21
- return index.postForm(
19
+ getDicDataByKey: ($http, keyName) => {
20
+ return $http.postForm(
22
21
  `${$servers.base}/parm/sysParmDic/getDicListByKeyFromCache`,
23
22
  { keyName }
24
23
  );
25
24
  },
26
- findTemplateByPagePop: (data) => {
27
- return index.post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
25
+ findTemplateByPagePop: ($http, data) => {
26
+ return $http.post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
28
27
  },
29
- getDataDicArea4Cascader: () => {
30
- return index.post(
28
+ getDataDicArea4Cascader: ($http) => {
29
+ return $http.post(
31
30
  `${$servers.base}/parm/sysParmDic/getDataDicArea4Cascader`,
32
31
  null,
33
32
  false
34
33
  );
35
34
  },
36
- getDataDicTrade4Cascader: () => {
37
- return index.post(
35
+ getDataDicTrade4Cascader: ($http) => {
36
+ return $http.post(
38
37
  `${$servers.base}/parm/sysParmDic/getDataDicTrade4Cascader`,
39
38
  null,
40
39
  false
41
40
  );
42
41
  },
43
- saveTemplateDialog: (data) => {
44
- return index.post(`${$servers.base}/template/sysTemplateDialog/save`, data);
42
+ saveTemplateDialog: ($http, data) => {
43
+ return $http.post(`${$servers.base}/template/sysTemplateDialog/save`, data);
45
44
  },
46
- getAllTemplateDialog: () => {
47
- return index.post(
45
+ getAllTemplateDialog: ($http) => {
46
+ return $http.post(
48
47
  `${$servers.base}/template/sysTemplateDialog/getAllTemplate`,
49
48
  null,
50
49
  false
51
50
  );
52
51
  },
53
- deleteTemplateDialog: (id) => {
54
- return index.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
52
+ deleteTemplateDialog: ($http, id) => {
53
+ return $http.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
55
54
  id
56
55
  });
57
56
  },
58
- getProductConfig: () => {
59
- return index.postForm(`${$servers.base}/design/getProductConfig`);
57
+ getProductConfig: ($http) => {
58
+ return $http.postForm(`${$servers.base}/design/getProductConfig`);
60
59
  },
61
- getModeNoList4Doc: () => {
62
- return index.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
60
+ getModeNoList4Doc: ($http) => {
61
+ return $http.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
63
62
  },
64
- getModeNoList4Cont: () => {
65
- return index.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
63
+ getModeNoList4Cont: ($http) => {
64
+ return $http.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
66
65
  },
67
- findRiskSchByPopPage4Designer: (data) => {
68
- return index.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
66
+ findRiskSchByPopPage4Designer: ($http, data) => {
67
+ return $http.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
69
68
  }
70
69
  };
71
70
  exports.default = api;
@@ -37,6 +37,8 @@ const _sfc_main = {
37
37
  },
38
38
  emits: ["update:modelValue"],
39
39
  setup(__props, { emit: __emit }) {
40
+ const currentInstance = vue.getCurrentInstance();
41
+ const ctx = currentInstance.proxy;
40
42
  const props = __props;
41
43
  const emit = __emit;
42
44
  const params = vue.computed({
@@ -44,7 +46,7 @@ const _sfc_main = {
44
46
  set: (val) => emit("update:modelValue", val)
45
47
  });
46
48
  const scenarioOptions = vue.ref([]);
47
- index.default.getModeNoList4Doc().then((data) => {
49
+ index.default.getModeNoList4Doc(ctx.$http).then((data) => {
48
50
  scenarioOptions.value = data.map((item) => ({
49
51
  label: item.modeName,
50
52
  value: item.modeNo
@@ -152,5 +154,5 @@ const _sfc_main = {
152
154
  };
153
155
  }
154
156
  };
155
- const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4262b43c"]]);
157
+ const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fef622ca"]]);
156
158
  exports.default = DocumentParam;
@@ -48,6 +48,8 @@ const _sfc_main = {
48
48
  },
49
49
  emits: ["update:modelValue", "confirm", "close"],
50
50
  setup(__props, { emit: __emit }) {
51
+ const currentInstance = vue.getCurrentInstance();
52
+ const ctx = currentInstance.proxy;
51
53
  const props = __props;
52
54
  const emit = __emit;
53
55
  const dialogVisible = vue.computed({
@@ -86,7 +88,7 @@ const _sfc_main = {
86
88
  if (searchText.value) {
87
89
  params.dynamicQuery = searchText.value;
88
90
  }
89
- const data = await index.default.findRiskSchByPopPage4Designer(params);
91
+ const data = await index.default.findRiskSchByPopPage4Designer(ctx.$http, params);
90
92
  schemeList.value = data.records || data.list || [];
91
93
  total.value = schemeList.value.length;
92
94
  } catch (error) {
@@ -237,5 +239,5 @@ const _sfc_main = {
237
239
  };
238
240
  }
239
241
  };
240
- const RiskSchemeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7dd01cd4"]]);
242
+ const RiskSchemeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b943b417"]]);
241
243
  exports.default = RiskSchemeDialog;
@@ -68,6 +68,8 @@ const _sfc_main = {
68
68
  },
69
69
  emits: ["update:modelValue", "confirm", "close"],
70
70
  setup(__props, { emit: __emit }) {
71
+ const currentInstance = vue.getCurrentInstance();
72
+ const ctx = currentInstance.proxy;
71
73
  const props = __props;
72
74
  const emit = __emit;
73
75
  const dialogVisible = vue.computed({
@@ -108,7 +110,7 @@ const _sfc_main = {
108
110
  if (searchText.value) {
109
111
  params.dynamicQuery = searchText.value;
110
112
  }
111
- const data = await index.default.findTemplateByPagePop(params);
113
+ const data = await index.default.findTemplateByPagePop(ctx.$http, params);
112
114
  templateList.value = data.records || data.list || [];
113
115
  total.value = data.total || 0;
114
116
  } catch (error) {
@@ -251,5 +253,5 @@ const _sfc_main = {
251
253
  };
252
254
  }
253
255
  };
254
- const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2716f51c"]]);
256
+ const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ea3685a4"]]);
255
257
  exports.default = TemplateDialog;
@@ -41,6 +41,8 @@ const _hoisted_9 = { class: "dialog-footer" };
41
41
  const _sfc_main = {
42
42
  __name: "index",
43
43
  setup(__props) {
44
+ const currentInstance = vue.getCurrentInstance();
45
+ const ctx = currentInstance.proxy;
44
46
  const editingHeaderBtn = vue.computed(() => {
45
47
  switch (index.default.getters.editingType) {
46
48
  case "table":
@@ -103,7 +105,7 @@ const _sfc_main = {
103
105
  templateName: data.templateName,
104
106
  context: JSON.stringify(data)
105
107
  };
106
- index$8.default.updateById(templateData).then(() => {
108
+ index$8.default.updateById(ctx.$http, templateData).then(() => {
107
109
  index$9.ElMessage.success("保存成功");
108
110
  });
109
111
  }
@@ -33,16 +33,18 @@ const _hoisted_1 = {
33
33
  const _sfc_main = {
34
34
  __name: "index",
35
35
  setup(__props) {
36
+ const currentInstance = vue.getCurrentInstance();
37
+ const ctx = currentInstance.proxy;
36
38
  const pkId = getUrlParam("pkId");
37
39
  const isInitd = vue.ref(0);
38
40
  const compRef = vue.ref(null);
39
41
  if (!pkId) {
40
42
  isInitd.value = -1;
41
43
  } else {
42
- index.default.login4dev().then((data) => {
44
+ index.default.login4dev(ctx.$http).then((data) => {
43
45
  index$1.default.commit("set_token", data.token);
44
46
  index$1.default.commit("set_refreshToken", data.refreshToken);
45
- index.default.getById(pkId).then((data2) => {
47
+ index.default.getById(ctx.$http, pkId).then((data2) => {
46
48
  const templateName = data2.templateName;
47
49
  const templateKey = data2.templateKey;
48
50
  document.title = templateName || "表单设计器";
@@ -144,5 +146,5 @@ const _sfc_main = {
144
146
  };
145
147
  }
146
148
  };
147
- const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b54a865d"]]);
149
+ const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
148
150
  exports.default = layout;
@@ -65,6 +65,8 @@ const _sfc_main = {
65
65
  "update:showText"
66
66
  ],
67
67
  setup(__props, { emit: __emit }) {
68
+ const currentInstance = vue.getCurrentInstance();
69
+ const ctx = currentInstance.proxy;
68
70
  const $props = __props;
69
71
  const $emits = __emit;
70
72
  const data = vue.computed({
@@ -228,7 +230,7 @@ const _sfc_main = {
228
230
  console.error(`Failed to load data source ${dataSourceId}:`, error);
229
231
  }
230
232
  } else if (optionSource === "dictionary" && dictionaryValue) {
231
- index$1.default.getDicDataByKey(dictionaryValue).then((data2) => {
233
+ index$1.default.getDicDataByKey(ctx.$http, dictionaryValue).then((data2) => {
232
234
  const result = [];
233
235
  for (const key in data2) {
234
236
  result.push({ label: data2[key], value: key });
@@ -427,5 +429,5 @@ const _sfc_main = {
427
429
  };
428
430
  }
429
431
  };
430
- const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1df3fcbe"]]);
432
+ const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-cb879741"]]);
431
433
  exports.default = ValueInput;
@@ -34,9 +34,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
35
  ;/* empty css */
36
36
  require("../../axios/config.js");
37
- require("../../../../_virtual/FileSaver.min.js");
38
- require("../../../../_virtual/index.js");
39
- ;/* empty css */
40
37
  ;/* empty css */
41
38
  ;/* empty css */
42
39
  ;/* empty css */