super-page-designer 2.1.52 → 2.1.58

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 (50) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +13 -22
  2. package/dist/es/components/design/utils/chart-design-util.js +17 -1
  3. package/dist/es/components/design/utils/data-table-util.js +11 -9
  4. package/dist/es/components/design/utils/form-design-util.js +5 -0
  5. package/dist/es/components/design/utils/page-explore-util.js +0 -1
  6. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +5 -5
  7. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +60 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue.js +22 -0
  9. package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue2.js +4 -0
  10. package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +89 -23
  11. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +13 -5
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +347 -0
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue2.js +4 -0
  16. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +1 -4
  18. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +77 -50
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
  20. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  21. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -734
  22. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
  23. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +9 -2
  24. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +2 -2
  25. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -11
  26. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +31 -5
  27. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  28. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +5 -37
  29. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  30. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +45 -15
  31. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
  32. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +3 -2
  33. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  34. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +5 -3
  35. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  36. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
  37. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
  38. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +4 -3
  39. package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +11 -1
  40. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +2 -1
  41. package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +2 -2
  42. package/dist/es/components/design/views/assemblys/object-design.vue.js +14 -13
  43. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +45 -1
  44. package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +30 -1
  45. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +3 -3
  46. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -14
  47. package/dist/es/style.css +82 -82
  48. package/package.json +6 -5
  49. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +0 -205
  50. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +0 -4
@@ -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
  };
@@ -165,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
165
  onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
166
166
  }, {
167
167
  default: withCtx(() => [
168
- createTextVNode("Cancel")
168
+ createTextVNode("取消")
169
169
  ]),
170
170
  _: 1
171
171
  }),
@@ -174,7 +174,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
174
174
  onClick: _cache[3] || (_cache[3] = ($event) => dialogVisible.value = false)
175
175
  }, {
176
176
  default: withCtx(() => [
177
- createTextVNode(" Confirm ")
177
+ createTextVNode(" 确定 ")
178
178
  ]),
179
179
  _: 1
180
180
  })
@@ -232,9 +232,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
232
232
  title: "跳转条件",
233
233
  buttonText: "设置条件",
234
234
  list: _ctx.linkPage[currentEditIndex.value].conditions,
235
+ tableConfigure: _ctx.tableConfigure,
235
236
  ref_key: "conditionRef",
236
237
  ref: conditionRef
237
- }, null, 8, ["list"])) : _ctx.linkPage[currentEditIndex.value].jumpConditionType === "customFunc" ? (openBlock(), createBlock(_component_el_select, {
238
+ }, null, 8, ["list", "tableConfigure"])) : _ctx.linkPage[currentEditIndex.value].jumpConditionType === "customFunc" ? (openBlock(), createBlock(_component_el_select, {
238
239
  key: 1,
239
240
  modelValue: _ctx.linkPage[currentEditIndex.value].customFunc,
240
241
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.linkPage[currentEditIndex.value].customFunc = $event),
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode } from "vue";
2
2
  import { getUuidv4 } from "../../../../utils/common-util.js";
3
3
  import BindVariable from "../../common/common-variable-bind.vue.js";
4
+ import { getModelOptionsByFields } from "../../../../utils/page-table-util.js";
4
5
  const _hoisted_1 = { style: { "text-align": "center", "margin": "0px -8px", "padding-top": "4px", "padding-left": "2px" } };
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "parameter-table",
@@ -8,12 +9,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  data: {
9
10
  type: Array,
10
11
  default: () => []
12
+ },
13
+ tableConfigure: {
14
+ type: Object,
15
+ default: () => []
11
16
  }
12
17
  },
13
18
  emits: ["dataChange"],
14
19
  setup(__props, { emit: __emit }) {
15
20
  const props = __props;
16
21
  const emit = __emit;
22
+ const rowModelOptions = ref(null);
23
+ if (props.tableConfigure) {
24
+ rowModelOptions.value = getModelOptionsByFields(props.tableConfigure.modelFields);
25
+ }
17
26
  const tableData = ref([]);
18
27
  tableData.value = props.data;
19
28
  if (!tableData.value || tableData.value.length == 0) {
@@ -148,8 +157,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
157
  default: withCtx((scope) => [
149
158
  createVNode(BindVariable, {
150
159
  modelValue: scope.row.paramValue,
160
+ objModelOptions: rowModelOptions.value,
151
161
  "onUpdate:modelValue": (val) => afterBindLabelVariable(val, scope.row)
152
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
162
+ }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])
153
163
  ]),
154
164
  _: 1
155
165
  }),
@@ -515,8 +515,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
515
515
  })) : createCommentVNode("", true),
516
516
  createVNode(_sfc_main$4, {
517
517
  data: linkPage.value.jumpPageAdditional,
518
+ tableConfigure: _ctx.tableConfigure,
518
519
  onDataChange: ParameterDataChange
519
- }, null, 8, ["data"]),
520
+ }, null, 8, ["data", "tableConfigure"]),
520
521
  createVNode(_sfc_main$5, { linkPage: linkPage.value }, null, 8, ["linkPage"]),
521
522
  createVNode(_sfc_main$6, {
522
523
  ref_key: "selectPageDialog",
@@ -85,8 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
85
  }, {
86
86
  default: withCtx(() => [
87
87
  createVNode(_component_el_input, {
88
- modelValue: __props.configure.props.base.name,
89
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.base.name = $event),
88
+ modelValue: __props.configure.props.base.customControl,
89
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.base.customControl = $event),
90
90
  placeholder: "请输入"
91
91
  }, null, 8, ["modelValue"])
92
92
  ]),
@@ -96,7 +96,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  const bindEvents = props.configure.events.filter((event) => {
97
97
  return !event.isStandard && event.jsContent || event.isStandard && event.eventName;
98
98
  });
99
- console.log("bindEvents=========", bindEvents);
100
99
  if (!props.configure.runtime) {
101
100
  props.configure.runtime = {};
102
101
  }
@@ -192,19 +191,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
191
  });
193
192
  }
194
193
  if (props.pageDesign.props) {
195
- watch(() => props.pageDesign.props.activeWorkflow, (newValue, oldValue) => {
196
- if (newValue) {
197
- const requiredRules = props.configure.props && props.configure.props.rules ? props.configure.props.rules.filter((item) => item.required) : null;
198
- if (requiredRules && requiredRules.length > 0) {
199
- requiredRules.forEach((item) => {
200
- item.required = false;
201
- });
202
- }
203
- if (props.configure.props && props.configure.props.verification && props.configure.props.verification.required) {
204
- props.configure.props.verification.required = false;
194
+ watch(
195
+ () => props.pageDesign.props.activeWorkflow,
196
+ (newValue, oldValue) => {
197
+ if (newValue) {
198
+ const requiredRules = props.configure.props && props.configure.props.rules ? props.configure.props.rules.filter((item) => item.required) : null;
199
+ if (requiredRules && requiredRules.length > 0) {
200
+ requiredRules.forEach((item) => {
201
+ item.required = false;
202
+ });
203
+ }
204
+ if (props.configure.props && props.configure.props.verification && props.configure.props.verification.required) {
205
+ props.configure.props.verification.required = false;
206
+ }
205
207
  }
206
208
  }
207
- });
209
+ );
208
210
  }
209
211
  const thisRef = ref(null);
210
212
  const designStyle = ref({});
@@ -279,7 +281,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
279
281
  };
280
282
  }
281
283
  designClass.value = tempStyle[dimentions + "_class"];
282
- console.log("outerStyle1", styleConf, tempStyle);
283
284
  return style;
284
285
  });
285
286
  watch(props.selectWidget, (newValue) => {
@@ -128,6 +128,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
128
  const _component_el_input = resolveComponent("el-input");
129
129
  const _component_el_text = resolveComponent("el-text");
130
130
  const _component_el_collapse_item = resolveComponent("el-collapse-item");
131
+ const _component_el_table_column = resolveComponent("el-table-column");
132
+ const _component_Delete = resolveComponent("Delete");
133
+ const _component_el_icon = resolveComponent("el-icon");
134
+ const _component_el_table = resolveComponent("el-table");
131
135
  const _component_el_collapse = resolveComponent("el-collapse");
132
136
  const _component_el_form = resolveComponent("el-form");
133
137
  return openBlock(), createBlock(_component_el_form, {
@@ -259,7 +263,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
259
263
  ]),
260
264
  _: 1
261
265
  }),
262
- createVNode(_sfc_main$1, { configure: _ctx.configure }, null, 8, ["configure"])
266
+ createVNode(_sfc_main$1, { configure: _ctx.configure }, null, 8, ["configure"]),
267
+ createVNode(_component_el_collapse_item, {
268
+ title: "图表初始化查询服务",
269
+ name: "pagePermissions",
270
+ class: "amb-design-attr-group-header"
271
+ }, {
272
+ default: withCtx(() => [
273
+ createVNode(_component_el_table, {
274
+ data: _ctx.configure.initChartServiceConfigs,
275
+ style: { "width": "100%", "margin-bottom": "8px" }
276
+ }, {
277
+ default: withCtx(() => [
278
+ createVNode(_component_el_table_column, {
279
+ label: "组件uuid",
280
+ align: "center",
281
+ prop: "uuid"
282
+ }),
283
+ createVNode(_component_el_table_column, {
284
+ label: "操作",
285
+ align: "center"
286
+ }, {
287
+ default: withCtx((scope) => [
288
+ createVNode(_component_el_icon, {
289
+ size: "14",
290
+ style: { "color": "#5893ef", "cursor": "pointer" },
291
+ onClick: ($event) => _ctx.configure.initChartServiceConfigs.splice(scope.$index, 1)
292
+ }, {
293
+ default: withCtx(() => [
294
+ createVNode(_component_Delete)
295
+ ]),
296
+ _: 2
297
+ }, 1032, ["onClick"])
298
+ ]),
299
+ _: 1
300
+ })
301
+ ]),
302
+ _: 1
303
+ }, 8, ["data"])
304
+ ]),
305
+ _: 1
306
+ })
263
307
  ]),
264
308
  _: 1
265
309
  }, 8, ["modelValue"]),
@@ -1,10 +1,11 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, toDisplayString, Fragment, renderList, unref, createElementVNode, createTextVNode, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, toDisplayString, Fragment, renderList, createCommentVNode, unref, createElementVNode, createTextVNode } from "vue";
2
2
  import { Plus, Minus } from "@element-plus/icons";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import { v4 } from "uuid";
5
5
  const _hoisted_1 = { key: 0 };
6
6
  const _hoisted_2 = { key: 0 };
7
7
  const _hoisted_3 = { key: 0 };
8
+ const _hoisted_4 = { key: 0 };
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  __name: "variable-dialog",
10
11
  props: {
@@ -115,6 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
116
  const _component_el_input = resolveComponent("el-input");
116
117
  const _component_el_option = resolveComponent("el-option");
117
118
  const _component_el_select = resolveComponent("el-select");
119
+ const _component_el_input_number = resolveComponent("el-input-number");
118
120
  const _component_el_button = resolveComponent("el-button");
119
121
  const _component_el_tooltip = resolveComponent("el-tooltip");
120
122
  const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
@@ -205,6 +207,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
207
  ]),
206
208
  _: 1
207
209
  }),
210
+ createVNode(_component_el_table_column, {
211
+ prop: "defaultValue",
212
+ width: "130",
213
+ label: "类型"
214
+ }, {
215
+ default: withCtx((scope) => [
216
+ !scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(scope.row.defaultValue), 1)) : scope.row.type === "string" ? (openBlock(), createBlock(_component_el_input, {
217
+ key: 1,
218
+ modelValue: scope.row.defaultValue,
219
+ "onUpdate:modelValue": ($event) => scope.row.defaultValue = $event,
220
+ placeholder: ""
221
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : scope.row.type === "int" ? (openBlock(), createBlock(_component_el_input_number, {
222
+ key: 2,
223
+ modelValue: scope.row.defaultValue,
224
+ "onUpdate:modelValue": ($event) => scope.row.defaultValue = $event,
225
+ "controls-position": "right",
226
+ placeholder: ""
227
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : scope.row.type === "number" ? (openBlock(), createBlock(_component_el_input, {
228
+ key: 3,
229
+ modelValue: scope.row.defaultValue,
230
+ "onUpdate:modelValue": ($event) => scope.row.defaultValue = $event,
231
+ type: "number",
232
+ placeholder: ""
233
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
234
+ ]),
235
+ _: 1
236
+ }),
208
237
  createVNode(_component_el_table_column, {
209
238
  align: "right",
210
239
  width: 90
@@ -87,13 +87,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  }
88
88
  function changeFieldName(index, row, propDbName) {
89
89
  const item = props.fieldMap[propDbName];
90
- if (item.type === "date") {
90
+ if (item && item.type === "date") {
91
91
  tableData.value[index].isDate = true;
92
92
  } else {
93
93
  tableData.value[index].isDate = false;
94
94
  }
95
- row.propName = item.name;
96
- row.dataType = item.dataType;
95
+ row.propName = item ? item.name : null;
96
+ row.dataType = item ? item.dataType : null;
97
97
  operationArr.value[index] = getOperators(item);
98
98
  }
99
99
  function savebuttonSetting() {
@@ -8,13 +8,14 @@ import { useDraggable } from "vue-draggable-plus";
8
8
  const _hoisted_1 = { key: 0 };
9
9
  const _hoisted_2 = { key: 0 };
10
10
  const _hoisted_3 = { key: 0 };
11
- const _hoisted_4 = { key: 0 };
12
- const _hoisted_5 = { style: { "display": "flex" } };
13
- const _hoisted_6 = { key: 0 };
11
+ const _hoisted_4 = { style: { "display": "flex" } };
12
+ const _hoisted_5 = { key: 0 };
13
+ const _hoisted_6 = { style: { "display": "flex" } };
14
14
  const _hoisted_7 = { key: 0 };
15
- const _hoisted_8 = ["title"];
16
- const _hoisted_9 = { key: 0 };
15
+ const _hoisted_8 = { key: 0 };
16
+ const _hoisted_9 = ["title"];
17
17
  const _hoisted_10 = { key: 0 };
18
+ const _hoisted_11 = { key: 0 };
18
19
  const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  __name: "quick-add-fields",
20
21
  props: {
@@ -26,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  setup(__props, { expose: __expose }) {
27
28
  const props = __props;
28
29
  const allEditState = ref(null);
30
+ const allExporEditState = ref(null);
29
31
  ref([]);
30
32
  const thisRef = ref(null);
31
33
  onMounted(() => {
@@ -171,6 +173,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
171
173
  }
172
174
  });
173
175
  }
176
+ function exporEditState() {
177
+ if (!props.model.fieldInfos || props.model.fieldInfos.length == 0) {
178
+ return;
179
+ }
180
+ const message = allExporEditState.value ? "确定全部设置为可导出吗?" : "确定要全部取消可导出吗?";
181
+ ElMessageBox.confirm(message, "确认", {
182
+ confirmButtonText: "确定",
183
+ cancelButtonText: "取消",
184
+ type: "warning"
185
+ }).then(({ value }) => {
186
+ for (let f of props.model.fieldInfos) {
187
+ if (allExporEditState.value) {
188
+ if (!f.exportable) {
189
+ f.exportable = true;
190
+ }
191
+ } else {
192
+ f.exportable = false;
193
+ }
194
+ }
195
+ });
196
+ }
174
197
  function removeAll() {
175
198
  ElMessageBox.confirm("确定要全部清除吗?", "确认", {
176
199
  confirmButtonText: "确定",
@@ -310,8 +333,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
310
333
  const _component_el_option = resolveComponent("el-option");
311
334
  const _component_el_select = resolveComponent("el-select");
312
335
  const _component_el_input = resolveComponent("el-input");
313
- const _component_el_switch = resolveComponent("el-switch");
314
336
  const _component_el_checkbox = resolveComponent("el-checkbox");
337
+ const _component_el_switch = resolveComponent("el-switch");
315
338
  const _component_el_table = resolveComponent("el-table");
316
339
  return openBlock(), createBlock(_component_el_table, {
317
340
  size: "small",
@@ -470,8 +493,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
470
493
  label: "导出",
471
494
  width: "120"
472
495
  }, {
496
+ header: withCtx(() => [
497
+ createElementVNode("div", _hoisted_4, [
498
+ createTextVNode(" 导出 "),
499
+ withDirectives(createVNode(_component_el_checkbox, {
500
+ modelValue: allExporEditState.value,
501
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => allExporEditState.value = $event),
502
+ value: "1",
503
+ label: "全部可导出",
504
+ size: "small",
505
+ style: { "margin-left": "6px" },
506
+ onChange: exporEditState
507
+ }, null, 8, ["modelValue"]), [
508
+ [vShow, __props.model.pageType == "list"]
509
+ ])
510
+ ])
511
+ ]),
473
512
  default: withCtx((scope) => [
474
- scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_4, toDisplayString(scope.row.exportable), 1)) : (openBlock(), createBlock(_component_el_switch, {
513
+ scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_5, toDisplayString(scope.row.exportable), 1)) : (openBlock(), createBlock(_component_el_switch, {
475
514
  key: 1,
476
515
  modelValue: scope.row.exportable,
477
516
  "onUpdate:modelValue": ($event) => scope.row.exportable = $event
@@ -484,11 +523,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
484
523
  width: "120"
485
524
  }, {
486
525
  header: withCtx(() => [
487
- createElementVNode("div", _hoisted_5, [
526
+ createElementVNode("div", _hoisted_6, [
488
527
  createTextVNode(" 组件 "),
489
528
  withDirectives(createVNode(_component_el_checkbox, {
490
529
  modelValue: allEditState.value,
491
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => allEditState.value = $event),
530
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => allEditState.value = $event),
492
531
  value: "1",
493
532
  label: "全部可编辑",
494
533
  size: "small",
@@ -500,7 +539,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
500
539
  ])
501
540
  ]),
502
541
  default: withCtx((scope) => [
503
- scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_6, toDisplayString(scope.row.componentName), 1)) : (openBlock(), createBlock(_component_el_select, {
542
+ scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_7, toDisplayString(scope.row.componentName), 1)) : (openBlock(), createBlock(_component_el_select, {
504
543
  key: 1,
505
544
  size: "small",
506
545
  modelValue: scope.row.componentName,
@@ -528,7 +567,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
528
567
  width: "70"
529
568
  }, {
530
569
  default: withCtx((scope) => [
531
- scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_7, toDisplayString(scope.row.state), 1)) : (openBlock(), createBlock(_component_el_select, {
570
+ scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_8, toDisplayString(scope.row.state), 1)) : (openBlock(), createBlock(_component_el_select, {
532
571
  key: 1,
533
572
  size: "small",
534
573
  disabled: !scope.row.componentName,
@@ -560,7 +599,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
560
599
  scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", {
561
600
  key: 0,
562
601
  title: scope.row.valid
563
- }, toDisplayString(scope.row.valid), 9, _hoisted_8)) : (openBlock(), createBlock(_component_el_select, {
602
+ }, toDisplayString(scope.row.valid), 9, _hoisted_9)) : (openBlock(), createBlock(_component_el_select, {
564
603
  key: 1,
565
604
  disabled: !scope.row.componentName,
566
605
  size: "small",
@@ -592,7 +631,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
592
631
  width: "75"
593
632
  }, {
594
633
  default: withCtx((scope) => [
595
- scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_9, toDisplayString(scope.row.width), 1)) : (openBlock(), createBlock(_component_el_select, {
634
+ scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_10, toDisplayString(scope.row.width), 1)) : (openBlock(), createBlock(_component_el_select, {
596
635
  key: 1,
597
636
  size: "small",
598
637
  modelValue: scope.row.width,
@@ -620,7 +659,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
620
659
  width: "70"
621
660
  }, {
622
661
  default: withCtx((scope) => [
623
- scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_10, toDisplayString(scope.row.align), 1)) : (openBlock(), createBlock(_component_el_select, {
662
+ scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_11, toDisplayString(scope.row.align), 1)) : (openBlock(), createBlock(_component_el_select, {
624
663
  key: 1,
625
664
  size: "small",
626
665
  modelValue: scope.row.align,