super-page-designer 2.1.49 → 2.1.55

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 (72) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +19 -32
  2. package/dist/es/components/design/utils/chart-design-util.js +17 -0
  3. package/dist/es/components/design/utils/data-table-util.js +26 -28
  4. package/dist/es/components/design/utils/form-design-util.js +0 -1
  5. package/dist/es/components/design/utils/page-service-util.d.ts +2 -2
  6. package/dist/es/components/design/utils/page-service-util.js +7 -5
  7. package/dist/es/components/design/utils/page-table-util.js +33 -10
  8. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +5 -5
  9. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +61 -2
  10. package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue.js +22 -0
  11. package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue2.js +4 -0
  12. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
  13. package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +89 -23
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -1
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +706 -0
  16. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +40 -15
  17. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +106 -0
  18. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue2.js +4 -0
  19. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +26 -12
  20. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +347 -0
  21. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue2.js +4 -0
  22. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +69 -31
  23. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +15 -7
  24. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +466 -304
  25. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +9 -6
  26. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
  27. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -1
  28. package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
  29. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -1
  30. package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -4
  31. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
  32. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  33. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -738
  34. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
  35. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +8 -0
  36. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +2 -2
  37. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -11
  38. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +31 -5
  39. package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +46 -52
  40. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  41. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +16 -28
  42. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  43. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +9 -2
  44. package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +67 -9
  45. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -7
  46. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +23 -9
  47. package/dist/es/components/design/views/assemblys/data/table/table-attr-style.vue.js +7 -2
  48. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +9 -2
  49. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  50. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +31 -28
  51. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +35 -470
  52. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +7 -3
  53. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  54. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +2 -2
  55. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +275 -0
  56. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue2.js +4 -0
  57. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +16 -9
  58. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -2
  59. package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +30 -1
  60. package/dist/es/components/design/views/design/page-design.vue.js +1 -1
  61. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
  62. package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
  63. package/dist/es/components/design/views/design/page-event/config.vue3.js +102 -16
  64. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  65. package/dist/es/components/design/views/design/view/view-design-display.vue.js +15 -11
  66. package/dist/es/stores/statistics-table-store.js +2 -1
  67. package/dist/es/style.css +115 -115
  68. package/package.json +6 -5
  69. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +0 -205
  70. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +0 -4
  71. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue2.js +0 -78
  72. /package/dist/es/components/design/views/assemblys/{data/component/row-backgroud-color.vue3.js → chart/statistical-table/component/data-origin.vue3.js} +0 -0
@@ -160,26 +160,6 @@ const tableIndexColumnConf = {
160
160
  tittleClass: ""
161
161
  }
162
162
  };
163
- const statisticsTableIndexColumnConf = {
164
- uuid: "",
165
- name: "",
166
- props: {
167
- base: {
168
- name: "序号",
169
- prop: "$index",
170
- sortable: true,
171
- displayOrder: 1,
172
- headerAlign: "center",
173
- align: "center"
174
- },
175
- format: {},
176
- size: {},
177
- dataOrigin: {
178
- sortField: [{ name: "", type: "" }]
179
- }
180
- },
181
- style: {}
182
- };
183
163
  const tableSelectionColumnConf = {
184
164
  uuid: "",
185
165
  name: "",
@@ -313,14 +293,15 @@ function getStatisticsTableColumn(fieldInfo) {
313
293
  sortable: true,
314
294
  headerAlign: "center",
315
295
  align: "center",
316
- fixed: false
296
+ fixed: false,
297
+ visible: true
317
298
  },
318
299
  dataOrigin: {
319
300
  sortField: [{ name: "", type: "" }]
320
301
  },
321
302
  format: {}
322
303
  },
323
- style: {}
304
+ style: []
324
305
  };
325
306
  return getCopyColumn(columnConf);
326
307
  }
@@ -1292,8 +1273,7 @@ const assemblyGroups = [
1292
1273
  { name: "row-dblclick", label: "行双击", tip: "当某一行被双击时会触发该事件" },
1293
1274
  { name: "header-click", label: "列表头点击", tip: "当某一列的表头被点击时会触发该事件" },
1294
1275
  { name: "show", label: "列表显示", tip: "列表显示回调方法" },
1295
- { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" },
1296
- { name: "row-style", label: "行style", tip: "行style的回调方法" }
1276
+ { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
1297
1277
  ],
1298
1278
  icon: dataTable,
1299
1279
  btnList: [
@@ -1332,7 +1312,7 @@ const assemblyGroups = [
1332
1312
  selection: true,
1333
1313
  showIndex: true,
1334
1314
  showOperation: true,
1335
- stripe: true,
1315
+ stripe: false,
1336
1316
  highlightCurrentRow: true,
1337
1317
  subPaging: true
1338
1318
  },
@@ -2701,6 +2681,10 @@ const assemblyGroups = [
2701
2681
  size: { fixHeight: 300, widthType: "flex", flexSpan: 24 }
2702
2682
  },
2703
2683
  style: { yaxisLeft: {}, yaxisRight: {} },
2684
+ events: [
2685
+ { name: "beforeUpdateChart", label: "图表更新前" },
2686
+ { name: "afterUpdateChart", label: "图表更新后", tip: "图表更新后" }
2687
+ ],
2704
2688
  designComponent: defineAsyncComponent(() => {
2705
2689
  return import("../views/assemblys/chart/column-line/column-line-design.vue.js");
2706
2690
  }),
@@ -2868,7 +2852,7 @@ const assemblyGroups = [
2868
2852
  name: "statistical-table",
2869
2853
  label: "统计表格",
2870
2854
  icon: dataTable,
2871
- items: [getStatisticsTableIndexConf()],
2855
+ items: [],
2872
2856
  modelFields: [],
2873
2857
  props: {
2874
2858
  base: {
@@ -2876,7 +2860,7 @@ const assemblyGroups = [
2876
2860
  align: "left",
2877
2861
  fixed: false,
2878
2862
  showIndex: true,
2879
- stripe: true,
2863
+ stripe: false,
2880
2864
  sortable: false
2881
2865
  },
2882
2866
  size: {},
@@ -2893,7 +2877,6 @@ const assemblyGroups = [
2893
2877
  style: {
2894
2878
  titleFont: {},
2895
2879
  tableHeader: {},
2896
- rowStyle: [{ type: "", model: "" }],
2897
2880
  background: {},
2898
2881
  margin: {},
2899
2882
  padding: {},
@@ -3015,9 +2998,6 @@ function getTableOperateConf() {
3015
2998
  function getTableIndexConf() {
3016
2999
  return getCopyColumn(tableIndexColumnConf);
3017
3000
  }
3018
- function getStatisticsTableIndexConf() {
3019
- return getCopyColumn(statisticsTableIndexColumnConf);
3020
- }
3021
3001
  function getTableSelectionConf() {
3022
3002
  return getCopyColumn(tableSelectionColumnConf);
3023
3003
  }
@@ -3341,6 +3321,13 @@ function getComponentEventOptions(componentName) {
3341
3321
  }
3342
3322
  }
3343
3323
  }
3324
+ function getInputTypeComponentNames() {
3325
+ const inputComponent = [];
3326
+ assemblyGroups.find((item) => item.name === "form").items.forEach((item) => {
3327
+ inputComponent.push(item.name);
3328
+ });
3329
+ return inputComponent;
3330
+ }
3344
3331
  export {
3345
3332
  assemblyGroups,
3346
3333
  getAttrComponentByName,
@@ -3350,10 +3337,10 @@ export {
3350
3337
  getDesignEvents,
3351
3338
  getFormComponentOptions,
3352
3339
  getInitialInformationByName,
3340
+ getInputTypeComponentNames,
3353
3341
  getListComponentOptions,
3354
3342
  getPageConf,
3355
3343
  getStatisticsTableColumn,
3356
- getStatisticsTableIndexConf,
3357
3344
  getTableColumnConf,
3358
3345
  getTableIndexConf,
3359
3346
  getTableOperateConf,
@@ -463,6 +463,22 @@ function generateYaxisJson(styleYaxis, optionYaxis) {
463
463
  }
464
464
  optionYaxis.min = styleYaxis.min;
465
465
  optionYaxis.max = styleYaxis.max;
466
+ if (styleYaxis._dataMin === "auto") {
467
+ optionYaxis._dataMin = styleYaxis._dataMin;
468
+ optionYaxis.min = function(value) {
469
+ if (value.min) {
470
+ return Math.floor(value.min / 10) * 10;
471
+ }
472
+ };
473
+ }
474
+ if (styleYaxis._dataMax === "auto") {
475
+ optionYaxis._dataMax = styleYaxis._dataMax;
476
+ optionYaxis.max = function(value) {
477
+ if (value.max) {
478
+ return Math.ceil(value.max / 10) * 10;
479
+ }
480
+ };
481
+ }
466
482
  if (styleYaxis.enableAxisLine != void 0) {
467
483
  optionYaxis.splitLine.show = styleYaxis.enableAxisLine;
468
484
  if (styleYaxis.enableAxisLine) {
@@ -1598,6 +1614,7 @@ function initComponentDataConfig(configure, headerInfo) {
1598
1614
  } else {
1599
1615
  pageDesign.initChartServiceConfigs.push(config);
1600
1616
  }
1617
+ config.resultSet = dataOriginInfo.resultSet ? dataOriginInfo.resultSet : null;
1601
1618
  return config;
1602
1619
  } else if (existIndex > -1) {
1603
1620
  pageDesign.initChartServiceConfigs.shift(existIndex, 1);
@@ -13,9 +13,7 @@ function formatConditionList(conditionList, attributeMap, fieldMap) {
13
13
  for (var i = 0; i < conditionList.length; i++) {
14
14
  const item = conditionList[i];
15
15
  if (item && item.propDbName && attributeMap) {
16
- const operatorsArr = getOperators(
17
- fieldMap[item.propDbName]
18
- );
16
+ const operatorsArr = getOperators(fieldMap[item.propDbName]);
19
17
  if (operatorsArr && operatorsArr.length > 0) {
20
18
  const operator = operatorsArr.filter((operItem) => {
21
19
  return operItem.name === item.operator;
@@ -192,6 +190,7 @@ function addColumnToGroupHeaders(column, parentUuid, groupHeaders) {
192
190
  uuid: getUuidv4(),
193
191
  parentUuid,
194
192
  columnUuid: column.uuid,
193
+ prop: column.props.base.prop,
195
194
  titleText: column.props.base.name,
196
195
  isLeaf: true
197
196
  };
@@ -234,23 +233,18 @@ function getTopGroupHeaderList(groupHeaders) {
234
233
  return topGroupHeaderList;
235
234
  }
236
235
  function isLeafNode(headerCol, groupHeaders) {
237
- const childrenList = groupHeaders.filter((item) => item.parentUuid === headerCol.uuid);
238
- if (childrenList && childrenList.length > 0) {
239
- return false;
236
+ for (const item of groupHeaders) {
237
+ if (item.parentUuid === headerCol.uuid) {
238
+ return false;
239
+ }
240
+ if (item.children && item.children.length > 0) {
241
+ if (!isLeafNode(headerCol, item.children)) {
242
+ return false;
243
+ }
244
+ }
240
245
  }
241
246
  return true;
242
247
  }
243
- function getChildrenList(parentUuid, groupHeaders) {
244
- let childrenList = [];
245
- groupHeaders.forEach((item) => {
246
- if (item.parentUuid === parentUuid) {
247
- item.isLeaf = isLeafNode(item, groupHeaders);
248
- childrenList.push(item);
249
- }
250
- });
251
- childrenList = childrenList.sort((a, b) => a.displayOrder - b.displayOrder);
252
- return childrenList;
253
- }
254
248
  function getTopGroupHeaderColumnList(groupHeaders, columnItems) {
255
249
  console.log("组合表头---groupHeaders=====", groupHeaders);
256
250
  let topGroupHeaderList = [];
@@ -274,15 +268,17 @@ function getTopGroupHeaderColumnList(groupHeaders, columnItems) {
274
268
  }
275
269
  });
276
270
  eventBus.$emit("setFieldGroup", compositeHeaderFieldGroup);
277
- columnItems.forEach((item) => {
278
- if (item.props.base && item.props.base.prop == "$selection") {
279
- topGroupHeaderList.unshift(item);
280
- } else if (item.props.base && item.props.base.prop == "$index") {
281
- topGroupHeaderList.splice(1, 0, item);
282
- } else if (item.props.base && item.props.base.prop == "operation") {
283
- topGroupHeaderList.push(item);
284
- }
285
- });
271
+ if (columnItems) {
272
+ columnItems.forEach((item) => {
273
+ if (item.props.base && item.props.base.prop == "$selection") {
274
+ topGroupHeaderList.unshift(item);
275
+ } else if (item.props.base && item.props.base.prop == "$index") {
276
+ topGroupHeaderList.splice(1, 0, item);
277
+ } else if (item.props.base && item.props.base.prop == "operation") {
278
+ topGroupHeaderList.push(item);
279
+ }
280
+ });
281
+ }
286
282
  topGroupHeaderList = topGroupHeaderList.sort((a, b) => a.displayOrder - b.displayOrder);
287
283
  return topGroupHeaderList;
288
284
  }
@@ -306,9 +302,12 @@ function getAllChildrenList(parentItem, groupHeaders, columnItems) {
306
302
  }
307
303
  }
308
304
  function getColumnsWithGroupHeader(tableConfigure) {
305
+ if (!tableConfigure.props.groupHeaders) {
306
+ return;
307
+ }
309
308
  let columns = [];
310
309
  let tableColumns = tableConfigure.items;
311
- let groupHeaders = tableConfigure.props.groupHeaders;
310
+ let groupHeaders = JSON.parse(JSON.stringify(tableConfigure.props.groupHeaders));
312
311
  if (tableColumns && (!groupHeaders || groupHeaders.length === 0)) {
313
312
  columns = tableColumns.sort((a, b) => {
314
313
  if (a.props.base) {
@@ -327,7 +326,6 @@ export {
327
326
  addColumnToGroupHeaders,
328
327
  deleteGroupHeaderByColumnUuid,
329
328
  formatConditionList,
330
- getChildrenList,
331
329
  getColumnsWithGroupHeader,
332
330
  getOperators,
333
331
  getTopGroupHeaderList,
@@ -356,7 +356,6 @@ function watchValidate(configure, verification, fieldInfo) {
356
356
  const prop = configure.props.base.prop;
357
357
  if (prop) {
358
358
  if (verification) {
359
- debugger;
360
359
  if (verification.required) {
361
360
  watchRequiredValidate(configure, fieldInfo);
362
361
  }
@@ -5,11 +5,11 @@
5
5
  * @param tableName
6
6
  * @returns
7
7
  */
8
- export declare function queryServiceInfo(serivceId: number): Promise<any>;
8
+ export declare function queryServiceInfo(serviceCode: string): Promise<any>;
9
9
  /**
10
10
  * 查询服务的返回字段信息
11
11
  * @param serviceInfo
12
12
  * @returns
13
13
  */
14
- export declare function queryServiceReturnFields(serivceId: number): Promise<any>;
14
+ export declare function queryServiceReturnFields(serviceCode: string): Promise<any>;
15
15
  export declare function fetchPageDesignData(pageId: number): any;
@@ -1,11 +1,11 @@
1
1
  import http from "agilebuilder-ui/src/utils/request";
2
- function queryServiceInfo(serivceId) {
3
- let url = window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + serivceId;
2
+ function queryServiceInfo(serviceCode) {
3
+ let url = window["$vueApp"].config.globalProperties.baseAPI + "/api/super-page-design/service-flow/" + serviceCode;
4
4
  return http.get(url);
5
5
  }
6
- function queryServiceReturnFields(serivceId) {
6
+ function queryServiceReturnFields(serviceCode) {
7
7
  return new Promise((resolve, reject) => {
8
- queryServiceInfo(serivceId).then((result) => {
8
+ queryServiceInfo(serviceCode).then((result) => {
9
9
  console.log("queryServiceReturnFields", result);
10
10
  const returnValues = result.returnValues ? JSON.parse(result.returnValues) : [];
11
11
  const fieldInfos = [];
@@ -23,6 +23,7 @@ function convertReturnValuesToFields(parentFieldName, returnValues, fieldInfos)
23
23
  }
24
24
  for (let r of returnValues) {
25
25
  let fieldName = null;
26
+ let label = null;
26
27
  if (!r.isArrayElement) {
27
28
  fieldName = r.name;
28
29
  if (!fieldName && r.value) {
@@ -34,10 +35,11 @@ function convertReturnValuesToFields(parentFieldName, returnValues, fieldInfos)
34
35
  }
35
36
  if (parentFieldName) {
36
37
  fieldName = parentFieldName + "." + fieldName;
38
+ label = parentFieldName + "." + r.alias;
37
39
  }
38
40
  const fieldInfo = {
39
41
  value: fieldName,
40
- label: fieldName,
42
+ label: label || fieldName,
41
43
  type: r.type
42
44
  };
43
45
  fieldInfos.push(fieldInfo);
@@ -202,7 +202,7 @@ function getGroupHeaders(configure) {
202
202
  displayOrder: item.displayOrder,
203
203
  uuid: item.uuid
204
204
  };
205
- if (item.props.base && item.props.base.prop) {
205
+ if (item.props && item.props.base && item.props.base.prop) {
206
206
  header.prop = getNameFromProp(item.props.base.prop);
207
207
  }
208
208
  result.push(header);
@@ -398,7 +398,8 @@ function getFileSet(item) {
398
398
  return null;
399
399
  }
400
400
  function getControlConfig(item) {
401
- var _a, _b;
401
+ var _a, _b, _c, _d;
402
+ let controlConfig;
402
403
  if (item.name === "select" && item.props.base.multiple) {
403
404
  const baseProps = item.props.base;
404
405
  const allowCreate = baseProps.allowCreate;
@@ -407,21 +408,33 @@ function getControlConfig(item) {
407
408
  if (item.props.dataOrigin.filterType === "normal") {
408
409
  filterable = true;
409
410
  }
410
- return JSON.stringify({
411
+ controlConfig = {
411
412
  automaticDropdown: false,
412
413
  clearable,
413
414
  filterable,
414
415
  allowCreate
415
- });
416
+ };
416
417
  } else if (item.name === "input-text") {
417
418
  const scanEnable = ((_a = item.props.scan) == null ? void 0 : _a.enable) ? true : false;
418
419
  const scanRuleList = (_b = item.props.scan) == null ? void 0 : _b.ruleList;
419
- return JSON.stringify({
420
+ controlConfig = {
420
421
  scanEnable,
421
422
  scanRuleList
422
- });
423
+ };
423
424
  }
424
- return null;
425
+ if ((_c = item.style) == null ? void 0 : _c.cellStyle) {
426
+ if (!controlConfig) {
427
+ controlConfig = {};
428
+ }
429
+ controlConfig["cellStyle"] = item.style.cellStyle;
430
+ }
431
+ if ((_d = item.style) == null ? void 0 : _d.titleStyle) {
432
+ if (!controlConfig) {
433
+ controlConfig = {};
434
+ }
435
+ controlConfig["titleStyle"] = item.style.titleStyle;
436
+ }
437
+ return controlConfig ? JSON.stringify(controlConfig) : null;
425
438
  }
426
439
  function getPropsFormat(item) {
427
440
  var _a, _b;
@@ -432,8 +445,17 @@ function getPropsFormat(item) {
432
445
  const format = {};
433
446
  format.type = item.props.format.type;
434
447
  const jumpJson = JSON.parse(JSON.stringify(item.props.linkPage));
435
- if (jumpJson.displayTextJudge && jumpJson.dynamicTags && jumpJson.dynamicTags.length > 0) {
436
- jumpJson.displayText = jumpJson.dynamicTags.join("-#-#");
448
+ if (jumpJson && Array.isArray(jumpJson)) {
449
+ format.multPage = true;
450
+ jumpJson.forEach((item2) => {
451
+ if (item2.jumpPageSetting.displayTextJudge && item2.jumpPageSetting.dynamicTags && item2.jumpPageSetting.dynamicTags.length > 0) {
452
+ item2.jumpPageSetting.displayText = item2.jumpPageSetting.dynamicTags.join("-#-#");
453
+ }
454
+ });
455
+ } else {
456
+ if (jumpJson.displayTextJudge && jumpJson.dynamicTags && jumpJson.dynamicTags.length > 0) {
457
+ jumpJson.displayText = jumpJson.dynamicTags.join("-#-#");
458
+ }
437
459
  }
438
460
  format.jumpPageJson = JSON.stringify(jumpJson);
439
461
  return JSON.stringify(format);
@@ -547,7 +569,8 @@ function getModelOptionsByFields(dataFieldList) {
547
569
  value: element.dbColumnName,
548
570
  // element.name
549
571
  label: element.alias,
550
- alias: element.alias
572
+ alias: element.alias,
573
+ dataType: element.dataType
551
574
  });
552
575
  });
553
576
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createTextVNode, createBlock, createCommentVNode, withDirectives, createVNode, vShow } from "vue";
2
2
  import _sfc_main$1 from "./column-line-attr-base.vue.js";
3
3
  import _sfc_main$2 from "./column-line-attr-style.vue.js";
4
- import _sfc_main$3 from "../../common-attr-events.vue.js";
4
+ import _sfc_main$3 from "../common/common-attr-events.vue.js";
5
5
  import _sfc_main$4 from "./attr-advanced.vue.js";
6
6
  const _hoisted_1 = { class: "amb-design-attr-content" };
7
7
  const _hoisted_2 = { class: "amb-design-attr-header" };
@@ -41,15 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  createElementVNode("div", _hoisted_2, [
42
42
  createElementVNode("div", _hoisted_3, [
43
43
  createElementVNode("label", {
44
- class: normalizeClass({ "selected": selAsselbyType.value == "base" }),
44
+ class: normalizeClass({ selected: selAsselbyType.value == "base" }),
45
45
  onClick: _cache[0] || (_cache[0] = ($event) => selAsselbyType.value = "base")
46
46
  }, "属性", 2),
47
47
  createElementVNode("label", {
48
- class: normalizeClass({ "selected": selAsselbyType.value == "style" }),
48
+ class: normalizeClass({ selected: selAsselbyType.value == "style" }),
49
49
  onClick: _cache[1] || (_cache[1] = ($event) => selAsselbyType.value = "style")
50
50
  }, "样式", 2),
51
51
  createElementVNode("label", {
52
- class: normalizeClass({ "selected": selAsselbyType.value == "event" }),
52
+ class: normalizeClass({ selected: selAsselbyType.value == "event" }),
53
53
  onClick: _cache[2] || (_cache[2] = ($event) => selAsselbyType.value = "event")
54
54
  }, [
55
55
  createTextVNode(" 事件 "),
@@ -59,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  }, null, 8, ["value"])) : createCommentVNode("", true)
60
60
  ], 2),
61
61
  createElementVNode("label", {
62
- class: normalizeClass({ "selected": selAsselbyType.value == "advanced" }),
62
+ class: normalizeClass({ selected: selAsselbyType.value == "advanced" }),
63
63
  onClick: _cache[3] || (_cache[3] = ($event) => selAsselbyType.value = "advanced")
64
64
  }, "高级", 2)
65
65
  ])
@@ -1,7 +1,10 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createElementBlock, Fragment, renderList, toDisplayString, createTextVNode, withDirectives, vShow, createCommentVNode } from "vue";
2
2
  import _sfc_main$1 from "../../common/page-permission-select.vue.js";
3
3
  import { usePageContextStore } from "../../../../../../stores/page-store.js";
4
- import { queryServiceReturnFields } from "../../../../utils/page-service-util.js";
4
+ import { queryServiceReturnFields, queryServiceInfo } from "../../../../utils/page-service-util.js";
5
+ import BindVariable from "../../common/common-variable-bind.vue.js";
6
+ import { getUuidv4 } from "../../../../utils/common-util.js";
7
+ import { ElMessageBox, ElMessage } from "element-plus";
5
8
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
6
9
  const _hoisted_2 = { style: { "float": "left" } };
7
10
  const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
@@ -90,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
93
  props.configure.serviceDataField = null;
91
94
  return;
92
95
  }
93
- queryServiceReturnFields(serviceId).then((fields) => {
96
+ queryServiceReturnFields(dataOriginInfo.service.simpleCode).then((fields) => {
94
97
  props.configure.serviceFields = fields;
95
98
  serviceFields.value = fields;
96
99
  checkDataFieldExist();
@@ -113,6 +116,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
116
  props.configure.serviceDataField = null;
114
117
  }
115
118
  }
119
+ function fieldsDefaultValue(modelValue) {
120
+ props.configure.props.dataOrigin.resultSet = modelValue;
121
+ if (props.configure.serviceDataField && modelValue.startsWith("${page.")) {
122
+ queryServiceInfo(dataOriginInfo.service.simpleCode).then((result) => {
123
+ var _a;
124
+ const returnValues = result.returnValues ? JSON.parse(result.returnValues) : [];
125
+ const serviceDataSource = returnValues.find((item) => item.name == props.configure.serviceDataField);
126
+ if (serviceDataSource && serviceDataSource.type == "array") {
127
+ if (((_a = serviceDataSource.items[0]) == null ? void 0 : _a.type) == "object") {
128
+ ElMessageBox.confirm("是否需要将服务变量中的对象数组中的属性设值要页面变量中?", "提示", {
129
+ confirmButtonText: "添加",
130
+ cancelButtonText: "取消",
131
+ type: "info"
132
+ }).then(() => {
133
+ setServiceVarToPageVar(modelValue, serviceDataSource);
134
+ }).catch(() => {
135
+ console.log("取消");
136
+ });
137
+ }
138
+ }
139
+ });
140
+ }
141
+ }
142
+ function setServiceVarToPageVar(modelValue, serviceFieldsSource) {
143
+ var _a;
144
+ const pageVarName = modelValue.replace("${page.", "").replace("}", "");
145
+ const pageVarNameIndex = pageDesign.variables.findIndex((pv) => pv.name == pageVarName);
146
+ const pageVar = pageDesign.variables[pageVarNameIndex];
147
+ if (pageVar && pageVar.type == "array" && ((_a = pageVar.items[0]) == null ? void 0 : _a.type) == "object") {
148
+ serviceFieldsSource.items[0].items.forEach((serviceField) => {
149
+ const pageVarFieldIndex = pageVar.items[0].items.findIndex((pvf) => pvf.name == serviceField.name);
150
+ if (pageVarFieldIndex == -1) {
151
+ pageVar.items[0].items.push({
152
+ name: serviceField.name,
153
+ type: serviceField.type,
154
+ alias: serviceField.alias,
155
+ code: getUuidv4()
156
+ });
157
+ }
158
+ });
159
+ ElMessage.success("添加成功");
160
+ }
161
+ }
116
162
  setTimeout(() => {
117
163
  getServiceReturnFields(dataOriginInfo.service.id);
118
164
  }, 10);
@@ -191,6 +237,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
237
  ]),
192
238
  _: 1
193
239
  }),
240
+ createVNode(_component_el_form_item, {
241
+ label: "结果设值到",
242
+ class: "amb-design-attr-item"
243
+ }, {
244
+ default: withCtx(() => [
245
+ (openBlock(), createBlock(BindVariable, {
246
+ key: __props.configure.uuid,
247
+ modelValue: __props.configure.props.dataOrigin.resultSet,
248
+ "onUpdate:modelValue": fieldsDefaultValue
249
+ }, null, 8, ["modelValue"]))
250
+ ]),
251
+ _: 1
252
+ }),
194
253
  createVNode(_component_el_form_item, {
195
254
  label: "立即查询",
196
255
  class: "amb-design-attr-item"
@@ -0,0 +1,22 @@
1
+ import { defineComponent, openBlock, createBlock } from "vue";
2
+ import AttrEvent from "../../form/common/attr-event.vue.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "common-attr-events",
5
+ props: {
6
+ configure: {
7
+ type: Object,
8
+ required: true
9
+ }
10
+ },
11
+ setup(__props) {
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createBlock(AttrEvent, {
14
+ configure: __props.configure,
15
+ events: __props.configure.events
16
+ }, null, 8, ["configure", "events"]);
17
+ };
18
+ }
19
+ });
20
+ export {
21
+ _sfc_main as default
22
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./common-attr-events.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -178,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
178
  }),
179
179
  createVNode(_component_el_table_column, {
180
180
  prop: "label",
181
- label: "维度名称",
181
+ label: "维度字段",
182
182
  width: "90"
183
183
  }, {
184
184
  default: withCtx((scope) => [