@fecp/designer 5.5.83 → 5.5.85

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 (45) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  4. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  6. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  9. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  10. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  11. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  12. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  14. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  15. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  16. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  17. package/es/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +12 -3
  18. package/es/designer.css +76 -71
  19. package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +2 -1
  20. package/es/packages/vue/src/components/forms/number/Number.vue.mjs +34 -37
  21. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +12 -3
  22. package/es/packages/vue/src/utils/parseFilterConfig.mjs +3 -0
  23. package/lib/designer/package.json.js +1 -1
  24. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  25. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  26. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  27. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  28. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  29. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  30. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  31. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  32. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  33. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  34. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  35. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  36. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  37. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  38. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  39. package/lib/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +12 -3
  40. package/lib/designer.css +76 -71
  41. package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +2 -1
  42. package/lib/packages/vue/src/components/forms/number/Number.vue.js +34 -37
  43. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +12 -3
  44. package/lib/packages/vue/src/utils/parseFilterConfig.js +3 -0
  45. package/package.json +1 -1
@@ -77,6 +77,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
77
77
  return (_ctx, _cache) => {
78
78
  return openBlock(), createElementBlock("div", _hoisted_1, [
79
79
  (openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
80
+ id: `comp_${__props.config.id}`,
80
81
  mode: unref(mode),
81
82
  busNo: unref(busNo),
82
83
  contNo: unref(contNo),
@@ -84,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
84
85
  genType: __props.config.genType,
85
86
  parmList: unref(parsedParams),
86
87
  onLoaded: loaded
87
- }, null, 40, ["mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
88
+ }, null, 40, ["id", "mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
88
89
  ]);
89
90
  };
90
91
  }
@@ -279,7 +279,35 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
279
279
  };
280
280
  const handleBlur = (event) => {
281
281
  let value = event.target.value;
282
- handlerValue(value);
282
+ if (!value && value !== 0) {
283
+ compValue.value = value;
284
+ return;
285
+ }
286
+ let cleanValue = delcommafy(value.toString());
287
+ let numValue = Number(cleanValue);
288
+ if (isNaN(numValue)) return;
289
+ numValue = Number(numValue.toFixed(precision.value));
290
+ switch (props.format) {
291
+ case "wan":
292
+ numValue = numMulti(numValue, 1e4);
293
+ break;
294
+ case "million":
295
+ numValue = numMulti(numValue, 1e6);
296
+ break;
297
+ case "percentage":
298
+ numValue = numDiv(numValue, 100);
299
+ break;
300
+ case "permillage":
301
+ numValue = numDiv(numValue, 1e3);
302
+ break;
303
+ case "permillion":
304
+ numValue = numDiv(numValue, 1e4);
305
+ break;
306
+ }
307
+ const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
308
+ const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
309
+ numValue = Math.max(effectiveMin, Math.min(effectiveMax, numValue));
310
+ compValue.value = numValue;
283
311
  switch (props.format) {
284
312
  case "wan":
285
313
  textValue.value = numDiv(numValue, 1e4);
@@ -308,42 +336,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
308
336
  textValue.value = delcommafy(textValue.value);
309
337
  }
310
338
  };
311
- function handlerValue(value) {
312
- if (!value && value !== 0) {
313
- compValue.value = value;
314
- return;
315
- }
316
- let cleanValue = delcommafy(value.toString());
317
- let numValue2 = Number(cleanValue);
318
- if (isNaN(numValue2)) return;
319
- numValue2 = Number(numValue2.toFixed(precision.value));
320
- switch (props.format) {
321
- case "wan":
322
- numValue2 = numMulti(numValue2, 1e4);
323
- break;
324
- case "million":
325
- numValue2 = numMulti(numValue2, 1e6);
326
- break;
327
- case "percentage":
328
- numValue2 = numDiv(numValue2, 100);
329
- break;
330
- case "permillage":
331
- numValue2 = numDiv(numValue2, 1e3);
332
- break;
333
- case "permillion":
334
- numValue2 = numDiv(numValue2, 1e4);
335
- break;
336
- }
337
- const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
338
- const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
339
- numValue2 = Math.max(effectiveMin, Math.min(effectiveMax, numValue2));
340
- compValue.value = numValue2;
341
- }
342
- function formatNumberWithComma(numValue2) {
343
- if (isNaN(numValue2) || numValue2 === null || numValue2 === void 0) {
344
- return numValue2;
339
+ function formatNumberWithComma(numValue) {
340
+ if (isNaN(numValue) || numValue === null || numValue === void 0) {
341
+ return numValue;
345
342
  }
346
- let numStr = numValue2.toString();
343
+ let numStr = numValue.toString();
347
344
  const endsWithDot = numStr.endsWith(".");
348
345
  const [integerPart, decimalPart] = numStr.split(".");
349
346
  const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
@@ -507,7 +504,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
507
504
  };
508
505
  }
509
506
  });
510
- const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b177c06"]]);
507
+ const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-01611195"]]);
511
508
  export {
512
509
  _Number as default
513
510
  };
@@ -266,6 +266,14 @@ const _sfc_main = {
266
266
  }
267
267
  return `${placeholderMap[field.fieldType] || "请输入"}${field.label || ""}`;
268
268
  };
269
+ const dynamicPlaceholder = computed(() => {
270
+ const searchFields = dynamicConfig.value.searchFields || [];
271
+ if (searchFields.length == 0) {
272
+ return "请输入筛选条件";
273
+ }
274
+ const labelArr = searchFields.map((item) => item.label);
275
+ return `搜索${labelArr.join("/")}`;
276
+ });
269
277
  return (_ctx, _cache) => {
270
278
  const _component_el_icon = ElIcon;
271
279
  const _component_el_tab_pane = ElTabPane;
@@ -317,7 +325,8 @@ const _sfc_main = {
317
325
  createVNode(_component_el_input, {
318
326
  modelValue: searchInputValue.value,
319
327
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInputValue.value = $event),
320
- placeholder: "请输入查询条件",
328
+ placeholder: dynamicPlaceholder.value,
329
+ title: dynamicPlaceholder.value,
321
330
  class: "search-input",
322
331
  clearable: "",
323
332
  size: "default",
@@ -351,7 +360,7 @@ const _sfc_main = {
351
360
  ]),
352
361
  key: "0"
353
362
  } : void 0
354
- ]), 1032, ["modelValue"])
363
+ ]), 1032, ["modelValue", "placeholder", "title"])
355
364
  ])) : createCommentVNode("", true),
356
365
  !__props.readOnly && !__props.isSubTable && rightButtons.value.length > 0 ? (openBlock(), createBlock(unref(VxeToolbar), {
357
366
  key: 1,
@@ -485,7 +494,7 @@ const _sfc_main = {
485
494
  };
486
495
  }
487
496
  };
488
- const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ba490486"]]);
497
+ const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b94368c6"]]);
489
498
  export {
490
499
  DynamicQuery as default
491
500
  };
@@ -14,6 +14,9 @@ function checkFilterMatch(filterConfig, data, fields = []) {
14
14
  }
15
15
  function checkGroupMatch(group, data, fields) {
16
16
  const { operator, conditions, groups } = group;
17
+ if ((!conditions || conditions.length == 0) && !groups || groups.length == 0) {
18
+ return true;
19
+ }
17
20
  const results = [];
18
21
  if (conditions && conditions.length > 0) {
19
22
  conditions.forEach((cond) => {
@@ -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.83";
3
+ const version = "5.5.85";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const Vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue.js");
14
+ const ValueSelector = require("./ValueSelector.vue2.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue.js");
9
+ const ValueSelector = require("./ValueSelector.vue2.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const Vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  const index$8 = require("../../api/index.js");
37
37
  ;/* empty css */
38
38
  ;/* empty css */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
13
13
  const Vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const eventBus = require("../../utils/eventBus.js");
16
- const ValueSelector = require("../../../components/ValueSelector.vue.js");
16
+ const ValueSelector = require("../../../components/ValueSelector.vue2.js");
17
17
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
18
18
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
19
19
  const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
@@ -19,7 +19,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
19
19
  const Vue = require("vue");
20
20
  const common = require("../../utils/common.js");
21
21
  require("../../utils/eventBus.js");
22
- const ValueSelector = require("../../../components/ValueSelector.vue.js");
22
+ const ValueSelector = require("../../../components/ValueSelector.vue2.js");
23
23
  const index = require("../../../api/index.js");
24
24
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
25
25
  ;/* empty css */
@@ -14,7 +14,7 @@ const Vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const TemplateSelector = require("../../../components/TemplateSelector.vue2.js");
16
16
  const eventBus = require("../../utils/eventBus.js");
17
- const ValueSelector = require("../../../components/ValueSelector.vue.js");
17
+ const ValueSelector = require("../../../components/ValueSelector.vue2.js");
18
18
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
19
19
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
20
20
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/es/index.js");
16
16
  const Vue = require("vue");
17
17
  const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
18
18
  const common = require("../utils/common.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
20
20
  const index = require("../../api/index.js");
21
21
  ;/* empty css */
22
22
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
@@ -47,7 +47,7 @@ const index$1 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
47
47
  ;/* empty css */
48
48
  require("../../store/index.js");
49
49
  ;/* empty css */
50
- ;/* empty css */
50
+ ;/* empty css */
51
51
  ;/* empty css */
52
52
  ;/* empty css */
53
53
  ;/* empty css */
@@ -256,6 +256,14 @@ const _sfc_main = {
256
256
  optionsMap[filterField.fieldId] = [];
257
257
  }
258
258
  }
259
+ const dynamicPlaceholder = Vue.computed(() => {
260
+ const searchFields = dynamicConfig.value.searchFields || [];
261
+ if (searchFields.length == 0) {
262
+ return "请输入筛选条件";
263
+ }
264
+ const labelArr = searchFields.map((item) => item.label);
265
+ return `搜索${labelArr.join("/")}`;
266
+ });
259
267
  return (_ctx, _cache) => {
260
268
  const _component_el_icon = index.ElIcon;
261
269
  const _component_el_tab_pane = index$2.ElTabPane;
@@ -303,7 +311,8 @@ const _sfc_main = {
303
311
  Vue.createElementVNode("div", _hoisted_6, [
304
312
  __props.enabled ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_7, [
305
313
  Vue.createVNode(_component_el_input, {
306
- placeholder: "请输入查询条件",
314
+ placeholder: dynamicPlaceholder.value,
315
+ title: dynamicPlaceholder.value,
307
316
  class: "search-input"
308
317
  }, Vue.createSlots({
309
318
  suffix: Vue.withCtx(() => [
@@ -331,7 +340,7 @@ const _sfc_main = {
331
340
  ]),
332
341
  key: "0"
333
342
  } : void 0
334
- ]), 1024)
343
+ ]), 1032, ["placeholder", "title"])
335
344
  ])) : Vue.createCommentVNode("", true),
336
345
  Vue.createVNode(Vue.unref(vueDraggablePlus.VueDraggable), {
337
346
  modelValue: editConfigData.value.customBtns.right,
@@ -508,5 +517,5 @@ const _sfc_main = {
508
517
  };
509
518
  }
510
519
  };
511
- const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f2c50fdc"]]);
520
+ const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-93791225"]]);
512
521
  exports.default = DynamicModeConfig;