@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
@@ -0,0 +1,5 @@
1
+ import { __require as requireApp } from "../node_modules/element-china-category-data/dist/app.mjs";
2
+ var appExports = requireApp();
3
+ export {
4
+ appExports as a
5
+ };
@@ -0,0 +1,4 @@
1
+ var app = { exports: {} };
2
+ export {
3
+ app as __module
4
+ };
@@ -1,4 +1,4 @@
1
- const version = "5.5.4";
1
+ const version = "5.5.6";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,69 +1,68 @@
1
- import { post, postForm, get } from "../axios/index.mjs";
2
1
  const api = {
3
- login4dev: () => {
4
- return post(`${$servers.base}/login4dev`);
2
+ login4dev: ($http) => {
3
+ return $http.post(`${$servers.base}/login4dev`);
5
4
  },
6
- getById: (id, showLoading = true) => {
7
- return get(`${$servers.base}/design/getById/${id}`, showLoading);
5
+ getById: ($http, id, showLoading = true) => {
6
+ return $http.get(`${$servers.base}/design/getById/${id}`, showLoading);
8
7
  },
9
- updateById: (data) => {
10
- return post(
8
+ updateById: ($http, data) => {
9
+ return $http.post(
11
10
  `${$servers.base}/template/sysTemplate/update4DesignerV5`,
12
11
  data
13
12
  );
14
13
  },
15
- findAllDic: () => {
16
- return post(`${$servers.base}/parm/sysParmDic/findAllDic`);
14
+ findAllDic: ($http) => {
15
+ return $http.post(`${$servers.base}/parm/sysParmDic/findAllDic`);
17
16
  },
18
- getDicDataByKey: (keyName) => {
19
- return postForm(
17
+ getDicDataByKey: ($http, keyName) => {
18
+ return $http.postForm(
20
19
  `${$servers.base}/parm/sysParmDic/getDicListByKeyFromCache`,
21
20
  { keyName }
22
21
  );
23
22
  },
24
- findTemplateByPagePop: (data) => {
25
- return post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
23
+ findTemplateByPagePop: ($http, data) => {
24
+ return $http.post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
26
25
  },
27
- getDataDicArea4Cascader: () => {
28
- return post(
26
+ getDataDicArea4Cascader: ($http) => {
27
+ return $http.post(
29
28
  `${$servers.base}/parm/sysParmDic/getDataDicArea4Cascader`,
30
29
  null,
31
30
  false
32
31
  );
33
32
  },
34
- getDataDicTrade4Cascader: () => {
35
- return post(
33
+ getDataDicTrade4Cascader: ($http) => {
34
+ return $http.post(
36
35
  `${$servers.base}/parm/sysParmDic/getDataDicTrade4Cascader`,
37
36
  null,
38
37
  false
39
38
  );
40
39
  },
41
- saveTemplateDialog: (data) => {
42
- return post(`${$servers.base}/template/sysTemplateDialog/save`, data);
40
+ saveTemplateDialog: ($http, data) => {
41
+ return $http.post(`${$servers.base}/template/sysTemplateDialog/save`, data);
43
42
  },
44
- getAllTemplateDialog: () => {
45
- return post(
43
+ getAllTemplateDialog: ($http) => {
44
+ return $http.post(
46
45
  `${$servers.base}/template/sysTemplateDialog/getAllTemplate`,
47
46
  null,
48
47
  false
49
48
  );
50
49
  },
51
- deleteTemplateDialog: (id) => {
52
- return postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
50
+ deleteTemplateDialog: ($http, id) => {
51
+ return $http.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
53
52
  id
54
53
  });
55
54
  },
56
- getProductConfig: () => {
57
- return postForm(`${$servers.base}/design/getProductConfig`);
55
+ getProductConfig: ($http) => {
56
+ return $http.postForm(`${$servers.base}/design/getProductConfig`);
58
57
  },
59
- getModeNoList4Doc: () => {
60
- return post(`${$servers.base}/docFileModeConfig/findList`, null, false);
58
+ getModeNoList4Doc: ($http) => {
59
+ return $http.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
61
60
  },
62
- getModeNoList4Cont: () => {
63
- return post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
61
+ getModeNoList4Cont: ($http) => {
62
+ return $http.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
64
63
  },
65
- findRiskSchByPopPage4Designer: (data) => {
66
- return post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
64
+ findRiskSchByPopPage4Designer: ($http, data) => {
65
+ return $http.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
67
66
  }
68
67
  };
69
68
  export {
@@ -7,7 +7,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
10
+ import { getCurrentInstance, computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
11
11
  import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
12
12
  import ValueSelector from "./ValueSelector.vue.mjs";
13
13
  import api from "../api/index.mjs";
@@ -35,6 +35,8 @@ const _sfc_main = {
35
35
  },
36
36
  emits: ["update:modelValue"],
37
37
  setup(__props, { emit: __emit }) {
38
+ const currentInstance = getCurrentInstance();
39
+ const ctx = currentInstance.proxy;
38
40
  const props = __props;
39
41
  const emit = __emit;
40
42
  const params = computed({
@@ -42,7 +44,7 @@ const _sfc_main = {
42
44
  set: (val) => emit("update:modelValue", val)
43
45
  });
44
46
  const scenarioOptions = ref([]);
45
- api.getModeNoList4Doc().then((data) => {
47
+ api.getModeNoList4Doc(ctx.$http).then((data) => {
46
48
  scenarioOptions.value = data.map((item) => ({
47
49
  label: item.modeName,
48
50
  value: item.modeNo
@@ -150,7 +152,7 @@ const _sfc_main = {
150
152
  };
151
153
  }
152
154
  };
153
- const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4262b43c"]]);
155
+ const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fef622ca"]]);
154
156
  export {
155
157
  DocumentParam as default
156
158
  };
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  /* empty css */
18
- import { computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
18
+ import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
19
19
  import { Search as search_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
20
20
  import api from "../api/index.mjs";
21
21
  /* empty css */
@@ -46,6 +46,8 @@ const _sfc_main = {
46
46
  },
47
47
  emits: ["update:modelValue", "confirm", "close"],
48
48
  setup(__props, { emit: __emit }) {
49
+ const currentInstance = getCurrentInstance();
50
+ const ctx = currentInstance.proxy;
49
51
  const props = __props;
50
52
  const emit = __emit;
51
53
  const dialogVisible = computed({
@@ -84,7 +86,7 @@ const _sfc_main = {
84
86
  if (searchText.value) {
85
87
  params.dynamicQuery = searchText.value;
86
88
  }
87
- const data = await api.findRiskSchByPopPage4Designer(params);
89
+ const data = await api.findRiskSchByPopPage4Designer(ctx.$http, params);
88
90
  schemeList.value = data.records || data.list || [];
89
91
  total.value = schemeList.value.length;
90
92
  } catch (error) {
@@ -235,7 +237,7 @@ const _sfc_main = {
235
237
  };
236
238
  }
237
239
  };
238
- const RiskSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7dd01cd4"]]);
240
+ const RiskSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b943b417"]]);
239
241
  export {
240
242
  RiskSchemeDialog as default
241
243
  };
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  /* empty css */
18
- import { computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
18
+ import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
19
19
  import { Search as search_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
20
20
  import api from "../api/index.mjs";
21
21
  /* empty css */
@@ -66,6 +66,8 @@ const _sfc_main = {
66
66
  },
67
67
  emits: ["update:modelValue", "confirm", "close"],
68
68
  setup(__props, { emit: __emit }) {
69
+ const currentInstance = getCurrentInstance();
70
+ const ctx = currentInstance.proxy;
69
71
  const props = __props;
70
72
  const emit = __emit;
71
73
  const dialogVisible = computed({
@@ -106,7 +108,7 @@ const _sfc_main = {
106
108
  if (searchText.value) {
107
109
  params.dynamicQuery = searchText.value;
108
110
  }
109
- const data = await api.findTemplateByPagePop(params);
111
+ const data = await api.findTemplateByPagePop(ctx.$http, params);
110
112
  templateList.value = data.records || data.list || [];
111
113
  total.value = data.total || 0;
112
114
  } catch (error) {
@@ -249,7 +251,7 @@ const _sfc_main = {
249
251
  };
250
252
  }
251
253
  };
252
- const TemplateDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2716f51c"]]);
254
+ const TemplateDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea3685a4"]]);
253
255
  export {
254
256
  TemplateDialog as default
255
257
  };
@@ -7,7 +7,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { computed, ref, reactive, createBlock, openBlock, withCtx, createElementVNode, createVNode, toDisplayString, unref, resolveDynamicComponent, createTextVNode } from "vue";
10
+ import { getCurrentInstance, computed, ref, reactive, createBlock, openBlock, withCtx, createElementVNode, createVNode, toDisplayString, unref, resolveDynamicComponent, createTextVNode } from "vue";
11
11
  import _imports_0 from "../../assets/logo.png.mjs";
12
12
  import { UploadFilled as upload_filled_default, DocumentAdd as document_add_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
13
13
  import TemplateDialog from "../../components/TemplateDialog.vue.mjs";
@@ -39,6 +39,8 @@ const _hoisted_9 = { class: "dialog-footer" };
39
39
  const _sfc_main = {
40
40
  __name: "index",
41
41
  setup(__props) {
42
+ const currentInstance = getCurrentInstance();
43
+ const ctx = currentInstance.proxy;
42
44
  const editingHeaderBtn = computed(() => {
43
45
  switch (store.getters.editingType) {
44
46
  case "table":
@@ -101,7 +103,7 @@ const _sfc_main = {
101
103
  templateName: data.templateName,
102
104
  context: JSON.stringify(data)
103
105
  };
104
- api.updateById(templateData).then(() => {
106
+ api.updateById(ctx.$http, templateData).then(() => {
105
107
  ElMessage.success("保存成功");
106
108
  });
107
109
  }
@@ -7,7 +7,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import "../../../node_modules/element-plus/theme-chalk/el-config-provider.css.mjs";
10
- import { ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
10
+ import { getCurrentInstance, ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
11
11
  import zh_cn_default from "../../../node_modules/element-plus/es/locale/lang/zh-cn.mjs";
12
12
  import LayoutAside from "./aside/index.vue.mjs";
13
13
  import _sfc_main$1 from "./header/index.vue.mjs";
@@ -31,16 +31,18 @@ const _hoisted_1 = {
31
31
  const _sfc_main = {
32
32
  __name: "index",
33
33
  setup(__props) {
34
+ const currentInstance = getCurrentInstance();
35
+ const ctx = currentInstance.proxy;
34
36
  const pkId = getUrlParam("pkId");
35
37
  const isInitd = ref(0);
36
38
  const compRef = ref(null);
37
39
  if (!pkId) {
38
40
  isInitd.value = -1;
39
41
  } else {
40
- api.login4dev().then((data) => {
42
+ api.login4dev(ctx.$http).then((data) => {
41
43
  store.commit("set_token", data.token);
42
44
  store.commit("set_refreshToken", data.refreshToken);
43
- api.getById(pkId).then((data2) => {
45
+ api.getById(ctx.$http, pkId).then((data2) => {
44
46
  const templateName = data2.templateName;
45
47
  const templateKey = data2.templateKey;
46
48
  document.title = templateName || "表单设计器";
@@ -142,7 +144,7 @@ const _sfc_main = {
142
144
  };
143
145
  }
144
146
  };
145
- const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b54a865d"]]);
147
+ const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
146
148
  export {
147
149
  layout as default
148
150
  };
@@ -12,7 +12,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
15
- import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
15
+ import { getCurrentInstance, computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
16
16
  import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
17
17
  import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
18
  import api from "../../api/index.mjs";
@@ -63,6 +63,8 @@ const _sfc_main = {
63
63
  "update:showText"
64
64
  ],
65
65
  setup(__props, { emit: __emit }) {
66
+ const currentInstance = getCurrentInstance();
67
+ const ctx = currentInstance.proxy;
66
68
  const $props = __props;
67
69
  const $emits = __emit;
68
70
  const data = computed({
@@ -226,7 +228,7 @@ const _sfc_main = {
226
228
  console.error(`Failed to load data source ${dataSourceId}:`, error);
227
229
  }
228
230
  } else if (optionSource === "dictionary" && dictionaryValue) {
229
- api.getDicDataByKey(dictionaryValue).then((data2) => {
231
+ api.getDicDataByKey(ctx.$http, dictionaryValue).then((data2) => {
230
232
  const result = [];
231
233
  for (const key in data2) {
232
234
  result.push({ label: data2[key], value: key });
@@ -425,7 +427,7 @@ const _sfc_main = {
425
427
  };
426
428
  }
427
429
  };
428
- const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1df3fcbe"]]);
430
+ const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cb879741"]]);
429
431
  export {
430
432
  ValueInput as default
431
433
  };
@@ -32,9 +32,6 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
32
32
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
33
33
  /* empty css */
34
34
  import "../../axios/config.mjs";
35
- import "../../../../_virtual/FileSaver.min.mjs";
36
- import "../../../../_virtual/index.mjs";
37
- /* empty css */
38
35
  /* empty css */
39
36
  /* empty css */
40
37
  /* empty css */
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import { computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
27
+ import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
28
28
  import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
29
29
  import { Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
30
30
  import { getEditConfigData, cloneDeep, getEditConfigDialogs, setEditConfigDialogs } from "../utils/common.mjs";
@@ -92,6 +92,8 @@ const _sfc_main = {
92
92
  },
93
93
  emits: ["update:modelValue"],
94
94
  setup(__props) {
95
+ const currentInstance = getCurrentInstance();
96
+ const ctx = currentInstance.proxy;
95
97
  const editConfigData = computed(() => {
96
98
  return getEditConfigData();
97
99
  });
@@ -195,14 +197,14 @@ const _sfc_main = {
195
197
  if ((data == null ? void 0 : data.contentSource) == "table") {
196
198
  const pkId = data == null ? void 0 : data.subTableId;
197
199
  if (pkId) {
198
- api.getById(pkId, false).then((data2) => {
200
+ api.getById(ctx.$http, pkId, false).then((data2) => {
199
201
  tableOptions.value = JSON.parse(data2.context);
200
202
  });
201
203
  }
202
204
  } else if ((data == null ? void 0 : data.contentSource) == "form") {
203
205
  const pkId = data == null ? void 0 : data.subFormId;
204
206
  if (pkId) {
205
- api.getById(pkId, false).then((data2) => {
207
+ api.getById(ctx.$http, pkId, false).then((data2) => {
206
208
  formOptions.value = JSON.parse(data2.context);
207
209
  });
208
210
  }
@@ -982,7 +984,7 @@ const _sfc_main = {
982
984
  };
983
985
  }
984
986
  };
985
- const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-47900630"]]);
987
+ const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
986
988
  export {
987
989
  DialogDialog as default
988
990
  };
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue.mjs";
1
+ import DialogDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogDialog() {
4
4
  const dialogDialogVisible = ref(false);
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import { computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
27
+ import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
28
28
  import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
29
29
  import { Loading as loading_default, Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
30
30
  import { getEditConfigData, cloneDeep } from "../utils/common.mjs";
@@ -157,6 +157,8 @@ const _sfc_main = {
157
157
  },
158
158
  emits: ["update:modelValue"],
159
159
  setup(__props) {
160
+ const currentInstance = getCurrentInstance();
161
+ const ctx = currentInstance.proxy;
160
162
  const editConfigData = computed(() => {
161
163
  return getEditConfigData();
162
164
  });
@@ -171,7 +173,7 @@ const _sfc_main = {
171
173
  editingDialogIndex.value = -1;
172
174
  loading.value = true;
173
175
  try {
174
- const response = await api.getAllTemplateDialog();
176
+ const response = await api.getAllTemplateDialog(ctx.$http);
175
177
  selectedDialogs.value = [];
176
178
  for (let dialog of response) {
177
179
  selectedDialogs.value.push({
@@ -240,7 +242,7 @@ const _sfc_main = {
240
242
  const handleRemoveDialog = async (index) => {
241
243
  const dialogToRemove = selectedDialogs.value[index];
242
244
  try {
243
- await api.deleteTemplateDialog(dialogToRemove.id);
245
+ await api.deleteTemplateDialog(ctx.$http, dialogToRemove.id);
244
246
  } catch (error) {
245
247
  console.error("🚀 ~ 删除弹层失败:", error);
246
248
  ElMessage.error("删除弹层失败");
@@ -284,7 +286,7 @@ const _sfc_main = {
284
286
  config: JSON.stringify(data)
285
287
  };
286
288
  });
287
- const response = await api.saveTemplateDialog(dialogArr);
289
+ const response = await api.saveTemplateDialog(ctx.$http, dialogArr);
288
290
  ElMessage.success("弹层配置保存成功");
289
291
  dialogVisible.value = false;
290
292
  } catch (error) {
@@ -312,14 +314,14 @@ const _sfc_main = {
312
314
  if ((data == null ? void 0 : data.contentSource) == "table") {
313
315
  const pkId = data == null ? void 0 : data.subTableId;
314
316
  if (pkId) {
315
- api.getById(pkId, false).then((data2) => {
317
+ api.getById(ctx.$http, pkId, false).then((data2) => {
316
318
  tableOptions.value = JSON.parse(data2.context);
317
319
  });
318
320
  }
319
321
  } else if ((data == null ? void 0 : data.contentSource) == "form") {
320
322
  const pkId = data == null ? void 0 : data.subFormId;
321
323
  if (pkId) {
322
- api.getById(pkId, false).then((data2) => {
324
+ api.getById(ctx.$http, pkId, false).then((data2) => {
323
325
  formOptions.value = JSON.parse(data2.context);
324
326
  });
325
327
  }
@@ -1029,7 +1031,7 @@ const _sfc_main = {
1029
1031
  };
1030
1032
  }
1031
1033
  };
1032
- const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60556147"]]);
1034
+ const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b9e1841"]]);
1033
1035
  export {
1034
1036
  DialogGlobalDialog as default
1035
1037
  };
@@ -1,4 +1,4 @@
1
- import DialogGlobalDialog from "./index.vue.mjs";
1
+ import DialogGlobalDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogGlobalDialog() {
4
4
  const dialogGlobalDialogVisible = ref(false);
@@ -5,7 +5,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, unref } from "vue";
8
+ import { getCurrentInstance, ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, unref } from "vue";
9
9
  import { getEditConfigData } from "../../../utils/common.mjs";
10
10
  import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
11
11
  import OnlyFLowConfigButton from "../../../../components/OnlyFLowConfigButton.vue2.mjs";
@@ -21,6 +21,8 @@ const _sfc_main = {
21
21
  formData: Object
22
22
  },
23
23
  setup(__props) {
24
+ const currentInstance = getCurrentInstance();
25
+ const ctx = currentInstance.proxy;
24
26
  const props = __props;
25
27
  const currDialog = ref({});
26
28
  const globalDialogs = ref([]);
@@ -29,7 +31,7 @@ const _sfc_main = {
29
31
  const loadGlobalDialogs = async () => {
30
32
  loading.value = true;
31
33
  try {
32
- const response = await api.getAllTemplateDialog();
34
+ const response = await api.getAllTemplateDialog(ctx.$http);
33
35
  globalDialogs.value = [];
34
36
  for (let dialog of response) {
35
37
  globalDialogs.value.push({
@@ -74,7 +76,7 @@ const _sfc_main = {
74
76
  const tableId = currDialog.value.subTableId;
75
77
  if (tableId) {
76
78
  try {
77
- const response = await api.getById(tableId, false);
79
+ const response = await api.getById(ctx.$http, tableId, false);
78
80
  tableOptions.value = JSON.parse(response.context);
79
81
  console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
80
82
  } catch (error) {
@@ -7,7 +7,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { computed, ref, watch, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock } from "vue";
10
+ import { getCurrentInstance, computed, ref, watch, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock } from "vue";
11
11
  import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
12
12
  import { getEditConfigDataFields } from "../../../utils/common.mjs";
13
13
  import api from "../../../../api/index.mjs";
@@ -21,6 +21,8 @@ const _sfc_main = {
21
21
  formData: Object
22
22
  },
23
23
  setup(__props) {
24
+ const currentInstance = getCurrentInstance();
25
+ const ctx = currentInstance.proxy;
24
26
  const props = __props;
25
27
  const fieldList = computed(() => {
26
28
  return getEditConfigDataFields().filter(
@@ -34,7 +36,7 @@ const _sfc_main = {
34
36
  const fieldItem = getEditConfigDataFields().find((item) => item.id == id);
35
37
  if (fieldItem) {
36
38
  const subTableId = fieldItem.subTableId;
37
- api.getById(subTableId).then((data) => {
39
+ api.getById(ctx.$http, subTableId).then((data) => {
38
40
  subTableOptions.value = JSON.parse(data.context);
39
41
  });
40
42
  }
@@ -95,7 +97,7 @@ const _sfc_main = {
95
97
  };
96
98
  }
97
99
  };
98
- const TableChildSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aac8efa4"]]);
100
+ const TableChildSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-170db076"]]);
99
101
  export {
100
102
  TableChildSelection as default
101
103
  };
@@ -19,7 +19,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
19
19
  /* empty css */
20
20
  import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
21
21
  import "../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
22
- import { computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode, Fragment, renderList, unref } from "vue";
22
+ import { getCurrentInstance, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode, Fragment, renderList, unref } from "vue";
23
23
  import { useOptions } from "../../../utils/optionLoader.mjs";
24
24
  /* empty css */
25
25
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -55,6 +55,8 @@ const _sfc_main = {
55
55
  }
56
56
  },
57
57
  setup(__props) {
58
+ const currentInstance = getCurrentInstance();
59
+ const ctx = currentInstance.proxy;
58
60
  const props = __props;
59
61
  const commProps = computed(() => {
60
62
  return {
@@ -66,7 +68,7 @@ const _sfc_main = {
66
68
  showWordLimit: props.componentData.showWordCount || false
67
69
  };
68
70
  });
69
- const { options } = useOptions(props.componentData);
71
+ const { options } = useOptions(ctx, props.componentData);
70
72
  const cascaderPropsDataValue = computed(() => {
71
73
  let propsData = props.componentData.propsData || {};
72
74
  if (props.componentData.fieldType == "area" || props.componentData.fieldType == "industry") {
@@ -299,7 +301,7 @@ const _sfc_main = {
299
301
  };
300
302
  }
301
303
  };
302
- const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-09ce9664"]]);
304
+ const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-58df4a86"]]);
303
305
  export {
304
306
  ComponentPreviewWrapper as default
305
307
  };
@@ -50,7 +50,7 @@ const _sfc_main = {
50
50
  }
51
51
  return component;
52
52
  });
53
- const { options: optionData } = useOptions(props.config);
53
+ const { options: optionData } = useOptions(ctx, props.config);
54
54
  const componentProps = computed(() => {
55
55
  const fieldProps = cloneDeep(props.config);
56
56
  fieldProps.disabled = false;
@@ -83,7 +83,7 @@ const _sfc_main = {
83
83
  };
84
84
  }
85
85
  };
86
- const DefaultValueEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d2b570cf"]]);
86
+ const DefaultValueEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b89d5b3"]]);
87
87
  export {
88
88
  DefaultValueEditor as default
89
89
  };
@@ -14,7 +14,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
17
- import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
17
+ import { getCurrentInstance, computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
18
18
  import { getCurrentItem } from "../../utils/common.mjs";
19
19
  import "../../utils/eventBus.mjs";
20
20
  import ValueSelector from "../../../components/ValueSelector.vue.mjs";
@@ -30,12 +30,14 @@ import { ElSelect, ElOption } from "../../../../../node_modules/element-plus/es/
30
30
  const _sfc_main = {
31
31
  __name: "contract",
32
32
  setup(__props) {
33
+ const currentInstance = getCurrentInstance();
34
+ const ctx = currentInstance.proxy;
33
35
  const currentItem = computed(() => {
34
36
  return getCurrentItem();
35
37
  });
36
38
  const activeName = ref(["common"]);
37
39
  const scenarioOptions = ref([]);
38
- api.getModeNoList4Cont().then((data) => {
40
+ api.getModeNoList4Cont(ctx.$http).then((data) => {
39
41
  scenarioOptions.value = data.map((item) => ({
40
42
  label: item.modeName,
41
43
  value: item.modeNo
@@ -212,7 +214,7 @@ const _sfc_main = {
212
214
  };
213
215
  }
214
216
  };
215
- const contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-80d84bee"]]);
217
+ const contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ebeb42d"]]);
216
218
  export {
217
219
  contract as default
218
220
  };