super-page-designer 2.1.74 → 2.1.78

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 (30) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +2 -0
  2. package/dist/es/components/design/utils/form-design-util.js +2 -0
  3. package/dist/es/components/design/utils/page-table-util.d.ts +1 -0
  4. package/dist/es/components/design/utils/page-table-util.js +18 -0
  5. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +48 -39
  6. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +33 -7
  7. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +2 -2
  8. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +17 -3
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +33 -10
  10. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -0
  11. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +3 -2
  12. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
  13. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +738 -1
  14. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -738
  15. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +1 -0
  17. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +63 -5
  18. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -0
  19. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +54 -25
  20. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -0
  21. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  22. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
  23. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
  24. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +4 -0
  25. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +17 -1
  26. package/dist/es/components/design/views/assemblys/object-design.vue.js +9 -7
  27. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -0
  28. package/dist/es/stores/page-store.js +1 -1
  29. package/dist/es/style.css +76 -76
  30. package/package.json +2 -2
@@ -1,155 +1,4 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
- import { Search } from "@element-plus/icons-vue";
3
- const _hoisted_1 = { class: "dialog-footer" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "dataorigin-input-table",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: ""
10
- }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(__props, { emit: __emit }) {
14
- const props = __props;
15
- const inputValue = ref(props.modelValue);
16
- const emit = __emit;
17
- const tableData = [
18
- {
19
- id: 1,
20
- date: "2016-05-03",
21
- name: "Tom",
22
- address: "No. 189, Grove St, Los Angeles"
23
- },
24
- {
25
- id: 2,
26
- date: "2016-05-02",
27
- name: "Tom",
28
- address: "No. 189, Grove St, Los Angeles"
29
- },
30
- {
31
- id: 3,
32
- date: "2016-05-04",
33
- name: "Tom",
34
- address: "No. 189, Grove St, Los Angeles"
35
- },
36
- {
37
- id: 4,
38
- date: "2016-05-01",
39
- name: "Tom",
40
- address: "No. 189, Grove St, Los Angeles"
41
- }
42
- ];
43
- const dialogVisible = ref(false);
44
- const selectData = ref([]);
45
- watch(() => props.modelValue, (newVal) => {
46
- inputValue.value = newVal;
47
- });
48
- function confirm() {
49
- if (selectData.value.length > 0) {
50
- let str = "";
51
- selectData.value.forEach((item) => {
52
- str = str + item.name + ",";
53
- });
54
- str = str.substring(0, str.length - 1);
55
- emit("update:modelValue", str);
56
- dialogVisible.value = false;
57
- } else {
58
- dialogVisible.value = false;
59
- }
60
- }
61
- function handleSelectionChange(selection) {
62
- selectData.value = selection;
63
- }
64
- function inputClick() {
65
- dialogVisible.value = true;
66
- }
67
- return (_ctx, _cache) => {
68
- const _component_el_icon = resolveComponent("el-icon");
69
- const _component_el_input = resolveComponent("el-input");
70
- const _component_el_table_column = resolveComponent("el-table-column");
71
- const _component_el_table = resolveComponent("el-table");
72
- const _component_el_button = resolveComponent("el-button");
73
- const _component_el_dialog = resolveComponent("el-dialog");
74
- return openBlock(), createElementBlock(Fragment, null, [
75
- createVNode(_component_el_input, {
76
- modelValue: inputValue.value,
77
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
- placeholder: "请选择",
79
- onClick: inputClick
80
- }, {
81
- suffix: withCtx(() => [
82
- createVNode(_component_el_icon, { onClick: inputClick }, {
83
- default: withCtx(() => [
84
- createVNode(unref(Search))
85
- ]),
86
- _: 1
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["modelValue"]),
91
- createVNode(_component_el_dialog, {
92
- modelValue: dialogVisible.value,
93
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
- title: "Tips",
95
- width: "500"
96
- }, {
97
- footer: withCtx(() => [
98
- createElementVNode("div", _hoisted_1, [
99
- createVNode(_component_el_button, {
100
- onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
- }, {
102
- default: withCtx(() => [
103
- createTextVNode("取消")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(_component_el_button, {
108
- type: "primary",
109
- onClick: confirm
110
- }, {
111
- default: withCtx(() => [
112
- createTextVNode(" 确定 ")
113
- ]),
114
- _: 1
115
- })
116
- ])
117
- ]),
118
- default: withCtx(() => [
119
- createVNode(_component_el_table, {
120
- data: tableData,
121
- style: { "width": "100%" },
122
- onSelectionChange: handleSelectionChange
123
- }, {
124
- default: withCtx(() => [
125
- createVNode(_component_el_table_column, {
126
- type: "selection",
127
- width: "55"
128
- }),
129
- createVNode(_component_el_table_column, {
130
- prop: "date",
131
- label: "Date",
132
- width: "180"
133
- }),
134
- createVNode(_component_el_table_column, {
135
- prop: "name",
136
- label: "Name",
137
- width: "180"
138
- }),
139
- createVNode(_component_el_table_column, {
140
- prop: "address",
141
- label: "Address"
142
- })
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- }, 8, ["modelValue"])
149
- ], 64);
150
- };
151
- }
152
- });
1
+ import _sfc_main from "./dataorigin-input-table.vue.js";
153
2
  export {
154
3
  _sfc_main as default
155
4
  };
@@ -19,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  const conditionRef = ref(null);
20
20
  const emits = __emit;
21
21
  const props = __props;
22
+ if (!props.linkPage) {
23
+ props.linkPage = [];
24
+ emits("update:linkPage", []);
25
+ }
22
26
  function addPage() {
23
27
  if (!props.linkPage) {
24
28
  emits("update:linkPage", []);
@@ -7,6 +7,7 @@ import BindVariable from "../../common/common-variable-bind.vue.js";
7
7
  import _sfc_main$2 from "./condition.vue.js";
8
8
  import _sfc_main$3 from "../../common/common-icon-bind.vue.js";
9
9
  import _sfc_main$1 from "../../common/common-i18n-key-input.vue.js";
10
+ import { getModelOptionsByFields } from "../../../../utils/page-table-util.js";
10
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  __name: "suffixmodule",
12
13
  props: {
@@ -21,6 +22,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  const props = __props;
22
23
  const selectPageDialog = ref(null);
23
24
  const linkPage = ref({});
25
+ let dataFieldNameList;
26
+ const pageType = props.pageDesign ? props.pageDesign.pageType : null;
27
+ if (pageType && (pageType === "form" || pageType === "list")) {
28
+ dataFieldNameList = props.pageDesign.modelFields;
29
+ }
30
+ const dataModelOptions = ref(null);
31
+ if (dataFieldNameList && dataFieldNameList.length > 0) {
32
+ dataModelOptions.value = getModelOptionsByFields(dataFieldNameList);
33
+ }
34
+ const rowModelOptions = ref(null);
35
+ if (props.tableConfigure) {
36
+ rowModelOptions.value = getModelOptionsByFields(props.tableConfigure.modelFields);
37
+ }
24
38
  if (props.isDialog) {
25
39
  linkPage.value = props.configure;
26
40
  } else {
@@ -485,8 +499,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
485
499
  createVNode(BindVariable, {
486
500
  isTable: _ctx.configure.isTable,
487
501
  modelValue: sowDefaultValue.value,
502
+ dataModelOptions: dataModelOptions.value,
503
+ objModelOptions: rowModelOptions.value,
488
504
  "onUpdate:modelValue": afterBindDefaultValue
489
- }, null, 8, ["isTable", "modelValue"])
505
+ }, null, 8, ["isTable", "modelValue", "dataModelOptions", "objModelOptions"])
490
506
  ]),
491
507
  _: 1
492
508
  })) : createCommentVNode("", true),
@@ -8,6 +8,7 @@ import { batchUpdatePermissions, batchRemovePermissions } from "../../utils/page
8
8
  import { watchValidate, getRefrencePropMap, removePropFromRefrencePropMap } from "../../utils/form-design-util.js";
9
9
  import { usePageContextStore } from "../../../../stores/page-store.js";
10
10
  import { getListCode } from "super-page-runtime";
11
+ import { getFormPropName } from "../../utils/page-helper-util.js";
11
12
  const _hoisted_1 = { class: "amb-widget-item-tool" };
12
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
14
  __name: "object-design",
@@ -21,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  },
22
23
  emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"],
23
24
  setup(__props, { emit: __emit }) {
25
+ var _a, _b;
24
26
  const pageDesignContextUtil = usePageContextStore();
25
27
  const props = __props;
26
28
  if (props.configure.name === "table") {
@@ -40,22 +42,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
42
  if (props.configure.style == void 0) {
41
43
  props.configure.style = {};
42
44
  }
43
- const fieldInfo = pageDesignContextUtil.getModelField();
45
+ const fieldInfo = pageDesignContextUtil.getModelField(getFormPropName((_b = (_a = props.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
44
46
  if (props.pageDesign && props.configure && props.configure.name == "table") {
45
47
  if (props.configure.uuid) {
46
48
  if (!props.pageDesign.tableUuids) {
47
49
  props.pageDesign.tableUuids = [];
48
50
  }
49
51
  setTimeout(() => {
50
- var _a, _b, _c, _d;
51
- if (!((_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.includes(props.configure.uuid))) {
52
+ var _a2, _b2, _c, _d;
53
+ if (!((_b2 = (_a2 = props.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(props.configure.uuid))) {
52
54
  (_d = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(props.configure.uuid);
53
55
  }
54
56
  getListCodeMap(props.configure.code);
55
57
  }, 500);
56
58
  onUnmounted(() => {
57
- var _a, _b, _c, _d;
58
- const uuidIndex = (_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.indexOf(props.configure.uuid);
59
+ var _a2, _b2, _c, _d;
60
+ const uuidIndex = (_b2 = (_a2 = props.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(props.configure.uuid);
59
61
  if (uuidIndex != void 0 && uuidIndex > -1) {
60
62
  (_d = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(uuidIndex, 1);
61
63
  }
@@ -182,8 +184,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
182
184
  }
183
185
  );
184
186
  onUnmounted(() => {
185
- var _a, _b;
186
- removePropFromRefrencePropMap(props.configure.props.base.prop, (_b = (_a = props.pageDesign) == null ? void 0 : _a.runtime) == null ? void 0 : _b.refercePropMap);
187
+ var _a2, _b2;
188
+ removePropFromRefrencePropMap(props.configure.props.base.prop, (_b2 = (_a2 = props.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
187
189
  });
188
190
  }
189
191
  watch(props.configure.props.verification, (newValue, oldValue) => {
@@ -167,6 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
167
167
  }
168
168
  const configureCopy = JSON.parse(JSON.stringify(props.configure));
169
169
  configureCopy.tableRuntimes = {};
170
+ configureCopy.currentTableConfig = {};
170
171
  beforeSaveForm(configureCopy);
171
172
  http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/save", {
172
173
  id: props.configure.id,
@@ -52,7 +52,7 @@ const usePageContextStore = defineStore("pageDesignContextUtil", () => {
52
52
  return null;
53
53
  }
54
54
  for (let item of modelFields) {
55
- if (item.name == fieldName) {
55
+ if (item.name == fieldName || item.dbColumnName && item.dbColumnName === fieldName) {
56
56
  return item;
57
57
  }
58
58
  }
package/dist/es/style.css CHANGED
@@ -674,6 +674,10 @@ fieldset.amb-design-item-selected {
674
674
  [data-v-511b453b]::-webkit-scrollbar-thumb:hover {
675
675
  background-color: grey;
676
676
  }
677
+
678
+ .el-select__wrapper.is-disabled{
679
+ cursor: default;
680
+ }
677
681
  .el-tree-node__content {
678
682
  height: 34px !important;
679
683
  }
@@ -1910,6 +1914,10 @@ fieldset.amb-design-item-selected {
1910
1914
  padding: 10px;
1911
1915
  font-weight: bold;
1912
1916
  }
1917
+
1918
+ .el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
1919
+ cursor: default;
1920
+ }
1913
1921
  .el-tree-node__content {
1914
1922
  height: 34px !important;
1915
1923
  }
@@ -2528,10 +2536,6 @@ fieldset.amb-design-item-selected {
2528
2536
  padding: 10px;
2529
2537
  font-weight: bold;
2530
2538
  }
2531
-
2532
- .el-select__wrapper.is-disabled{
2533
- cursor: default;
2534
- }
2535
2539
  .el-tree-node__content {
2536
2540
  height: 34px !important;
2537
2541
  }
@@ -4386,10 +4390,6 @@ fieldset.amb-design-item-selected {
4386
4390
  padding: 10px;
4387
4391
  font-weight: bold;
4388
4392
  }
4389
-
4390
- .el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
4391
- cursor: default;
4392
- }
4393
4393
  .el-tree-node__content {
4394
4394
  height: 34px !important;
4395
4395
  }
@@ -16804,56 +16804,6 @@ fieldset.amb-design-item-selected {
16804
16804
  padding: 10px;
16805
16805
  font-weight: bold;
16806
16806
  }
16807
-
16808
- /*不显示列样式*/
16809
- .hiddenBorder {
16810
- border-right: solid 1px #ebebeb !important;
16811
- border-left: solid 1px #ebebeb !important;
16812
- background-color: #ebebeb !important;
16813
- }
16814
- /*选中列样式*/
16815
- .addBorder {
16816
- border-right: solid 1px #5893ef !important;
16817
- border-left: solid 1px #5893ef !important;
16818
- background-color: #5893ef !important;
16819
- color: #ffffff;
16820
- }
16821
- .ghost {
16822
- opacity: 0.5;
16823
- background: #c8ebfb;
16824
- }
16825
-
16826
- li[data-v-a555cba7] {
16827
- color: #333;
16828
- }
16829
- .context-menu[data-v-a555cba7] {
16830
- position: fixed;
16831
- background: #fff;
16832
- z-index: 999;
16833
- padding: 5px;
16834
- margin: 0;
16835
- margin-top: 30px;
16836
- }
16837
- .context-menu li[data-v-a555cba7] {
16838
- min-width: 75px;
16839
- height: 28px;
16840
- line-height: 28px;
16841
- text-align: left;
16842
- color: #1a1a1a;
16843
- cursor: pointer;
16844
- }
16845
- .context-menu li[data-v-a555cba7]:hover {
16846
- background: #5893ef;
16847
- color: #fff;
16848
- }
16849
- .context-menu[data-v-a555cba7] {
16850
- border: 1px solid #eee;
16851
- box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
16852
- border-radius: 5px;
16853
- }
16854
- li[data-v-a555cba7] {
16855
- list-style-type: none;
16856
- }
16857
16807
  .el-tree-node__content {
16858
16808
  height: 34px !important;
16859
16809
  }
@@ -17472,6 +17422,56 @@ fieldset.amb-design-item-selected {
17472
17422
  padding: 10px;
17473
17423
  font-weight: bold;
17474
17424
  }
17425
+
17426
+ /*不显示列样式*/
17427
+ .hiddenBorder {
17428
+ border-right: solid 1px #ebebeb !important;
17429
+ border-left: solid 1px #ebebeb !important;
17430
+ background-color: #ebebeb !important;
17431
+ }
17432
+ /*选中列样式*/
17433
+ .addBorder {
17434
+ border-right: solid 1px #5893ef !important;
17435
+ border-left: solid 1px #5893ef !important;
17436
+ background-color: #5893ef !important;
17437
+ color: #ffffff;
17438
+ }
17439
+ .ghost {
17440
+ opacity: 0.5;
17441
+ background: #c8ebfb;
17442
+ }
17443
+
17444
+ li[data-v-a555cba7] {
17445
+ color: #333;
17446
+ }
17447
+ .context-menu[data-v-a555cba7] {
17448
+ position: fixed;
17449
+ background: #fff;
17450
+ z-index: 999;
17451
+ padding: 5px;
17452
+ margin: 0;
17453
+ margin-top: 30px;
17454
+ }
17455
+ .context-menu li[data-v-a555cba7] {
17456
+ min-width: 75px;
17457
+ height: 28px;
17458
+ line-height: 28px;
17459
+ text-align: left;
17460
+ color: #1a1a1a;
17461
+ cursor: pointer;
17462
+ }
17463
+ .context-menu li[data-v-a555cba7]:hover {
17464
+ background: #5893ef;
17465
+ color: #fff;
17466
+ }
17467
+ .context-menu[data-v-a555cba7] {
17468
+ border: 1px solid #eee;
17469
+ box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
17470
+ border-radius: 5px;
17471
+ }
17472
+ li[data-v-a555cba7] {
17473
+ list-style-type: none;
17474
+ }
17475
17475
 
17476
17476
  .amb-design-attr-header[data-v-226997f7] {
17477
17477
  position: sticky;
@@ -17533,19 +17533,6 @@ fieldset.amb-design-item-selected {
17533
17533
  border: 1px solid rgba(88, 147, 239);
17534
17534
  }
17535
17535
 
17536
- .seleteSort[data-v-1fd3d630] {
17537
- border-radius: 5px;
17538
- border: 1px solid rgba(88, 147, 239);
17539
- }
17540
- [data-v-1fd3d630] .el-select__selection{
17541
- display: inline-block;
17542
- }
17543
-
17544
- .seleteSort[data-v-3336d6c5] {
17545
- border-radius: 5px;
17546
- border: 1px solid rgba(88, 147, 239);
17547
- }
17548
-
17549
17536
  .icon-set-center-body[data-v-181d1ce8]{
17550
17537
  display: grid;
17551
17538
  grid-template-columns:repeat(5,1fr);
@@ -17583,12 +17570,17 @@ fieldset.amb-design-item-selected {
17583
17570
  margin-bottom: 20px;
17584
17571
  }
17585
17572
 
17586
- .stateBtn[data-v-ae2798fb]{
17587
- display: flex;
17573
+ .seleteSort[data-v-3336d6c5] {
17574
+ border-radius: 5px;
17575
+ border: 1px solid rgba(88, 147, 239);
17576
+ }
17577
+
17578
+ .seleteSort[data-v-1fd3d630] {
17579
+ border-radius: 5px;
17580
+ border: 1px solid rgba(88, 147, 239);
17588
17581
  }
17589
- .stateText[data-v-ae2798fb]{
17590
- margin-left: 10px;
17591
- color: #7b7b7b;
17582
+ [data-v-1fd3d630] .el-select__selection{
17583
+ display: inline-block;
17592
17584
  }
17593
17585
 
17594
17586
  li[data-v-4fd4369c] {
@@ -17628,6 +17620,14 @@ li[data-v-4fd4369c] {
17628
17620
  list-style-type: none;
17629
17621
  }
17630
17622
 
17623
+ .stateBtn[data-v-ae2798fb]{
17624
+ display: flex;
17625
+ }
17626
+ .stateText[data-v-ae2798fb]{
17627
+ margin-left: 10px;
17628
+ color: #7b7b7b;
17629
+ }
17630
+
17631
17631
  .el-tag[data-v-665d3bf4]{
17632
17632
  margin-left: 10px;
17633
17633
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.1.74",
3
+ "version": "2.1.78",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -41,7 +41,7 @@
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
43
  "service-flow-designer": "2.1.59",
44
- "super-page-runtime": "2.1.72",
44
+ "super-page-runtime": "2.1.77",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",