super-page-designer 2.1.49 → 2.1.52

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 (55) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +9 -13
  2. package/dist/es/components/design/utils/data-table-util.js +15 -19
  3. package/dist/es/components/design/utils/form-design-util.js +0 -1
  4. package/dist/es/components/design/utils/page-service-util.d.ts +2 -2
  5. package/dist/es/components/design/utils/page-service-util.js +7 -5
  6. package/dist/es/components/design/utils/page-table-util.js +33 -10
  7. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -1
  10. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +698 -0
  11. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +40 -15
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +12 -12
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +106 -0
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue2.js +4 -0
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +25 -11
  16. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +69 -31
  17. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +19 -8
  18. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +422 -287
  19. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +9 -6
  20. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
  21. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -1
  22. package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
  23. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -1
  24. package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -4
  25. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  26. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +3 -7
  27. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -1
  28. package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +46 -52
  29. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  30. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +29 -9
  31. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  32. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +9 -2
  33. package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +67 -9
  34. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -7
  35. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +22 -8
  36. package/dist/es/components/design/views/assemblys/data/table/table-attr-style.vue.js +7 -2
  37. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +8 -2
  38. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  39. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +31 -28
  40. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +33 -470
  41. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +7 -3
  42. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +2 -2
  43. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +275 -0
  44. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue2.js +4 -0
  45. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +16 -9
  46. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +4 -1
  47. package/dist/es/components/design/views/design/page-design.vue.js +1 -1
  48. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
  49. package/dist/es/components/design/views/design/page-event/config.vue3.js +102 -16
  50. package/dist/es/components/design/views/design/view/view-design-display.vue.js +14 -10
  51. package/dist/es/stores/statistics-table-store.js +2 -1
  52. package/dist/es/style.css +108 -108
  53. package/package.json +5 -4
  54. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue2.js +0 -78
  55. /package/dist/es/components/design/views/assemblys/{data/component/row-backgroud-color.vue3.js → chart/statistical-table/component/data-origin.vue3.js} +0 -0
@@ -170,13 +170,10 @@ const statisticsTableIndexColumnConf = {
170
170
  sortable: true,
171
171
  displayOrder: 1,
172
172
  headerAlign: "center",
173
- align: "center"
173
+ align: "center",
174
+ visible: true
174
175
  },
175
- format: {},
176
- size: {},
177
- dataOrigin: {
178
- sortField: [{ name: "", type: "" }]
179
- }
176
+ format: {}
180
177
  },
181
178
  style: {}
182
179
  };
@@ -313,14 +310,15 @@ function getStatisticsTableColumn(fieldInfo) {
313
310
  sortable: true,
314
311
  headerAlign: "center",
315
312
  align: "center",
316
- fixed: false
313
+ fixed: false,
314
+ visible: true
317
315
  },
318
316
  dataOrigin: {
319
317
  sortField: [{ name: "", type: "" }]
320
318
  },
321
319
  format: {}
322
320
  },
323
- style: {}
321
+ style: []
324
322
  };
325
323
  return getCopyColumn(columnConf);
326
324
  }
@@ -1292,8 +1290,7 @@ const assemblyGroups = [
1292
1290
  { name: "row-dblclick", label: "行双击", tip: "当某一行被双击时会触发该事件" },
1293
1291
  { name: "header-click", label: "列表头点击", tip: "当某一列的表头被点击时会触发该事件" },
1294
1292
  { name: "show", label: "列表显示", tip: "列表显示回调方法" },
1295
- { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" },
1296
- { name: "row-style", label: "行style", tip: "行style的回调方法" }
1293
+ { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
1297
1294
  ],
1298
1295
  icon: dataTable,
1299
1296
  btnList: [
@@ -1332,7 +1329,7 @@ const assemblyGroups = [
1332
1329
  selection: true,
1333
1330
  showIndex: true,
1334
1331
  showOperation: true,
1335
- stripe: true,
1332
+ stripe: false,
1336
1333
  highlightCurrentRow: true,
1337
1334
  subPaging: true
1338
1335
  },
@@ -2876,7 +2873,7 @@ const assemblyGroups = [
2876
2873
  align: "left",
2877
2874
  fixed: false,
2878
2875
  showIndex: true,
2879
- stripe: true,
2876
+ stripe: false,
2880
2877
  sortable: false
2881
2878
  },
2882
2879
  size: {},
@@ -2893,7 +2890,6 @@ const assemblyGroups = [
2893
2890
  style: {
2894
2891
  titleFont: {},
2895
2892
  tableHeader: {},
2896
- rowStyle: [{ type: "", model: "" }],
2897
2893
  background: {},
2898
2894
  margin: {},
2899
2895
  padding: {},
@@ -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 = [];
@@ -306,9 +300,12 @@ function getAllChildrenList(parentItem, groupHeaders, columnItems) {
306
300
  }
307
301
  }
308
302
  function getColumnsWithGroupHeader(tableConfigure) {
303
+ if (!tableConfigure.props.groupHeaders) {
304
+ return;
305
+ }
309
306
  let columns = [];
310
307
  let tableColumns = tableConfigure.items;
311
- let groupHeaders = tableConfigure.props.groupHeaders;
308
+ let groupHeaders = JSON.parse(JSON.stringify(tableConfigure.props.groupHeaders));
312
309
  if (tableColumns && (!groupHeaders || groupHeaders.length === 0)) {
313
310
  columns = tableColumns.sort((a, b) => {
314
311
  if (a.props.base) {
@@ -327,7 +324,6 @@ export {
327
324
  addColumnToGroupHeaders,
328
325
  deleteGroupHeaderByColumnUuid,
329
326
  formatConditionList,
330
- getChildrenList,
331
327
  getColumnsWithGroupHeader,
332
328
  getOperators,
333
329
  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
  }
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
90
  props.configure.serviceDataField = null;
91
91
  return;
92
92
  }
93
- queryServiceReturnFields(serviceId).then((fields) => {
93
+ queryServiceReturnFields(dataOriginInfo.service.simpleCode).then((fields) => {
94
94
  props.configure.serviceFields = fields;
95
95
  serviceFields.value = fields;
96
96
  checkDataFieldExist();
@@ -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) => [
@@ -1 +1,7 @@
1
-
1
+ import _sfc_main from "./data-origin.vue2.js";
2
+ import "./data-origin.vue3.js";
3
+ import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c2babae7"]]);
5
+ export {
6
+ DataOrigin as default
7
+ };