super-page-designer 2.0.67 → 2.0.73

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 (39) hide show
  1. package/dist/es/components/design/utils/form-design-util.js +6 -0
  2. package/dist/es/components/design/utils/page-table-util.js +17 -14
  3. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  4. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -702
  5. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +702 -1
  6. package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
  7. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +12 -0
  9. package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
  11. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -3
  12. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
  13. package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +10 -1
  15. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +4 -5
  16. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
  18. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +9 -1
  19. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
  20. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -217
  21. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +217 -1
  22. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +27 -8
  23. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +4 -4
  24. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +0 -1
  25. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +1 -0
  26. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -0
  27. package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +2 -2
  28. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +2 -2
  29. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +1 -1
  30. package/dist/es/components/design/views/assemblys/form/select/select-design.vue.js +1 -0
  31. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +2 -2
  32. package/dist/es/components/design/views/assemblys/form/select/select-design.vue3.js +1 -0
  33. package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue.js +1 -0
  34. package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue2.js +2 -2
  35. package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue3.js +1 -0
  36. package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +2 -2
  37. package/dist/es/stores/table-store.js +3 -1
  38. package/dist/es/style.css +110 -102
  39. package/package.json +4 -4
@@ -1,702 +1 @@
1
- import { defineComponent, ref, onMounted, onUnmounted, computed, watch, resolveComponent, openBlock, createElementBlock, toDisplayString, createBlock, withCtx, createVNode, withDirectives, withModifiers, unref, vShow, createElementVNode, createTextVNode, normalizeStyle, createCommentVNode, nextTick, pushScopeId, popScopeId } from "vue";
2
- import { CircleClose, Plus, InfoFilled, Search } from "@element-plus/icons-vue";
3
- import http from "agilebuilder-ui/src/utils/request";
4
- import { deepCopy, getUuidv4 } from "../../../utils/common-util.js";
5
- import { getTypeOptions, taskVarOptions, contextVarOptions } from "./common-variable-bind-option.js";
6
- import { usePageContextStore } from "../../../../../stores/page-store.js";
7
- import { tableField } from "../../../../../stores/table-store.js";
8
- const _withScopeId = (n) => (pushScopeId("data-v-48d27f9e"), n = n(), popScopeId(), n);
9
- const _hoisted_1 = { key: 0 };
10
- const _hoisted_2 = { style: { "margin-top": "10px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
11
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
12
- const _hoisted_4 = { style: { "font-size": "10px", "line-height": "40px" } };
13
- const _hoisted_5 = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
14
- const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
15
- const _hoisted_7 = {
16
- key: 0,
17
- style: { "display": "flex" }
18
- };
19
- const _hoisted_8 = ["title"];
20
- const _hoisted_9 = ["title"];
21
- const _hoisted_10 = { class: "totalStyle" };
22
- const _sfc_main = /* @__PURE__ */ defineComponent({
23
- ...{
24
- name: "ValueSetInput",
25
- inheritAttrs: false
26
- },
27
- __name: "common-variable-bind",
28
- props: {
29
- modelValue: {
30
- type: [String],
31
- default: null
32
- },
33
- paramTypes: {
34
- type: Array,
35
- default: () => []
36
- },
37
- size: {
38
- type: String,
39
- default: "small"
40
- },
41
- showLabel: {
42
- type: Boolean,
43
- default: false
44
- },
45
- // 是否需要方法参数
46
- needParams: {
47
- type: Boolean,
48
- default: false
49
- },
50
- isRange: {
51
- type: Boolean,
52
- default: false
53
- },
54
- isTable: {
55
- type: Boolean,
56
- default: false
57
- }
58
- },
59
- emits: ["update:modelValue"],
60
- setup(__props, { emit: __emit }) {
61
- const pageContextUtil = usePageContextStore();
62
- const emits = __emit;
63
- const props = __props;
64
- const popoverVisible = ref(false);
65
- const defalutValue = ref("");
66
- const inputRef = ref(null);
67
- const contentRef = ref(null);
68
- const typeOptions = ref([]);
69
- const showInput = ref(false);
70
- const labelValue = ref("");
71
- const paramType = ref("");
72
- const paramValue = ref("");
73
- const valueOptions = ref([]);
74
- const selectOptions = ref({});
75
- const searchValue = ref("");
76
- const popoverRef = ref(null);
77
- const selectInputType = ["context", "system", "task", "data", "page"];
78
- const tableFieldStore = tableField();
79
- onMounted(() => {
80
- window.addEventListener("click", handleClickOutside);
81
- const pageContext = pageContextUtil.pageContext;
82
- let hasTask = false;
83
- let hasData = false;
84
- if (props.isTable || pageContext && (!pageContext.pageType || pageContext.pageType == "form") && pageContext.tableName) {
85
- hasData = true;
86
- }
87
- if (pageContext && pageContext.workflowCode && hasData) {
88
- hasTask = true;
89
- }
90
- let newOptions = getTypeOptions(props.paramTypes, props.needParams);
91
- if (!hasData) {
92
- newOptions = newOptions.filter((item) => item.value != "data");
93
- }
94
- if (!hasTask) {
95
- newOptions = newOptions.filter((item) => item.value != "task");
96
- }
97
- typeOptions.value = newOptions;
98
- setSelectOptions();
99
- if (props.modelValue) {
100
- const [type, val] = props.modelValue.slice(0, props.modelValue.length - 1).slice(2).split(".");
101
- paramType.value = type;
102
- paramValue.value = val;
103
- if (selectInputType.includes(type)) {
104
- showInput.value = false;
105
- }
106
- setValueOptions(paramType.value);
107
- labelValue.value = formatter();
108
- defalutValue.value = props.modelValue;
109
- }
110
- if (!paramType.value) {
111
- paramType.value = newOptions.length > 0 ? newOptions[0].value : "";
112
- setValueOptions(paramType.value);
113
- }
114
- console.log("popoverRef", popoverRef.value);
115
- });
116
- onUnmounted(() => {
117
- window.removeEventListener("click", handleClickOutside);
118
- });
119
- let lastTarget = null;
120
- function handleClickOutside(event) {
121
- if (!popoverVisible.value) {
122
- return;
123
- }
124
- if (paramTypeCheck) {
125
- paramTypeCheck = false;
126
- return;
127
- }
128
- let popoverDom = null;
129
- if (contentRef.value) {
130
- popoverDom = contentRef.value.$el.parentNode;
131
- }
132
- if (!event.target || !popoverDom) {
133
- return;
134
- }
135
- if (event.target === lastTarget) {
136
- console.log("与最后的点击一致");
137
- return;
138
- }
139
- const inputDom = inputRef.value ? inputRef.value.input : null;
140
- if (inputDom && (event.target === inputDom || inputDom.contains(event.target))) {
141
- console.log("click contains input");
142
- return;
143
- }
144
- if (event.target === popoverDom || popoverDom.contains(event.target)) {
145
- console.log("click contains");
146
- lastTarget = event.target;
147
- } else {
148
- if (contentRef.value.$el) {
149
- console.log("contentRef.value.$el.contains", contentRef.value.$el.contains(event.target));
150
- }
151
- console.log("click contains--------not");
152
- if (popoverVisible.value) {
153
- closePopover(true);
154
- }
155
- }
156
- }
157
- const symbolUnits = ref([
158
- {
159
- label: "天",
160
- value: "d"
161
- },
162
- {
163
- label: "周",
164
- value: "w"
165
- },
166
- {
167
- label: "月",
168
- value: "m"
169
- },
170
- {
171
- label: "年",
172
- value: "y"
173
- }
174
- ]);
175
- const symbolUnitFormatter = (unit) => {
176
- const items = symbolUnits.value.filter((item) => {
177
- return item.value == unit;
178
- });
179
- if (items.length > 0) {
180
- return items[0].label;
181
- } else {
182
- return "";
183
- }
184
- };
185
- let popoverTimeout = null;
186
- function closePopover(immediate) {
187
- clearTimeout(popoverTimeout);
188
- if (immediate) {
189
- popoverVisible.value = false;
190
- } else {
191
- popoverTimeout = setTimeout(() => {
192
- popoverVisible.value = false;
193
- }, 2e3);
194
- }
195
- }
196
- function openPopover() {
197
- clearTimeout(popoverTimeout);
198
- popoverVisible.value = true;
199
- }
200
- const filterTableData = computed(
201
- () => (
202
- //等于System时为全部
203
- valueOptions.value.filter(
204
- (data) => !searchValue.value || paramType.value == "system" || data.label.toLowerCase().includes(searchValue.value.toLowerCase()) || data.value.toLowerCase().includes(searchValue.value.toLowerCase())
205
- )
206
- )
207
- );
208
- watch(searchValue, () => {
209
- if (paramType.value == "system") {
210
- querySystemParams();
211
- }
212
- });
213
- let lastSystemQuery = null;
214
- function querySystemParams() {
215
- if (lastSystemQuery == searchValue.value) {
216
- return;
217
- }
218
- const param = {
219
- query: searchValue.value
220
- };
221
- lastSystemQuery = searchValue.value;
222
- http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/system-params/query", param).then((results) => {
223
- const tempOptions = [];
224
- for (let result of results) {
225
- tempOptions.push({
226
- value: result.propKey,
227
- label: result.propKey + " (" + result.propValue + ")"
228
- });
229
- }
230
- selectOptions.value.systemVarOptions = tempOptions;
231
- if (paramType.value == "system") {
232
- setValueOptions(paramType.value);
233
- }
234
- });
235
- }
236
- const tableHeight = computed(() => {
237
- let height = 185;
238
- if (paramType.value == "page") {
239
- height = 170;
240
- }
241
- return height;
242
- });
243
- const searchWidthStyle = computed(() => {
244
- const style = {};
245
- if (paramType.value == "page") {
246
- style.width = "210px";
247
- }
248
- return style;
249
- });
250
- function setSelectOptions() {
251
- if (props.isTable) {
252
- selectOptions.value.dataModelOptions = tableFieldStore.fieldList;
253
- } else {
254
- selectOptions.value.dataModelOptions = pageContextUtil.pageContextVarOptions.dataOptions;
255
- }
256
- selectOptions.value.pageVarOptions = pageContextUtil.pageContextVarOptions.pageVarOptions;
257
- }
258
- function formatter() {
259
- if (props.modelValue) {
260
- return paramType.value + "." + getValueLabel(paramType.value, paramValue.value);
261
- }
262
- return props.modelValue;
263
- }
264
- let paramTypeCheck = false;
265
- function paramTypeChange(selParamType) {
266
- if (selParamType) {
267
- if (Array.isArray(selParamType)) {
268
- if (selParamType.length > 0) {
269
- selParamType = selParamType[0];
270
- }
271
- }
272
- }
273
- paramType.value = selParamType;
274
- paramValue.value = "";
275
- if (selectInputType.includes(selParamType)) {
276
- showInput.value = false;
277
- setValueOptions(selParamType);
278
- } else {
279
- showInput.value = true;
280
- }
281
- if (paramType.value == "system") {
282
- querySystemParams();
283
- }
284
- paramTypeCheck = true;
285
- }
286
- function setValueOptions(value) {
287
- if (value === "context") {
288
- let options = contextVarOptions;
289
- if (props.isRange) {
290
- options = deepCopy(options);
291
- for (let i = 0; i < options.length; i++) {
292
- let o = options[i];
293
- if (o.value == "currentDate") {
294
- options.splice(i + 1, 0, {
295
- value: "currentDate",
296
- symbolUnit: "d",
297
- symbol: "-",
298
- type: "range"
299
- });
300
- break;
301
- }
302
- }
303
- }
304
- valueOptions.value = options;
305
- } else if (value === "system") {
306
- valueOptions.value = selectOptions.value.systemVarOptions || [];
307
- } else if (value === "task") {
308
- valueOptions.value = taskVarOptions;
309
- } else if (value === "data") {
310
- valueOptions.value = selectOptions.value.dataModelOptions || [];
311
- } else if (value === "params") {
312
- valueOptions.value = selectOptions.value.paramsVarOptions || [];
313
- } else if (value === "page") {
314
- valueOptions.value = selectOptions.value.pageVarOptions || [];
315
- }
316
- }
317
- function clearSelect() {
318
- defalutValue.value = "";
319
- emits("update:modelValue", defalutValue.value);
320
- popoverRef.value.hide();
321
- }
322
- function selectRow(row) {
323
- if (row.type == "range") {
324
- if (row.symbolNum === "") {
325
- ElMessage.warning("周期不能为空!");
326
- return;
327
- }
328
- if (isNaN(row.symbolNum)) {
329
- ElMessage.warning("周期为无效的数字!");
330
- return;
331
- }
332
- if (row.symbolNum != "0") {
333
- paramValue.value = row.value + row.symbol + row.symbolNum + row.symbolUnit;
334
- } else {
335
- paramValue.value = row.value;
336
- }
337
- } else {
338
- paramValue.value = row.value;
339
- }
340
- defalutValue.value = "${" + paramType.value + "." + paramValue.value + "}";
341
- emits("update:modelValue", defalutValue.value, row.alias);
342
- closePopover(true);
343
- }
344
- function addRequestParam(paramName) {
345
- paramValue.value = paramName;
346
- addInputParams();
347
- }
348
- function addInputParams() {
349
- if (!paramValue.value) {
350
- ElMessage.warning("请输入参数名");
351
- return;
352
- }
353
- defalutValue.value = "${" + paramType.value + "." + paramValue.value + "}";
354
- emits("update:modelValue", defalutValue.value);
355
- closePopover(true);
356
- }
357
- function addPageParams() {
358
- searchValue.value = searchValue.value.trim();
359
- if (!searchValue.value) {
360
- ElMessage.warning("请输入参数名");
361
- return;
362
- }
363
- const tempValues = selectOptions.value.pageVarOptions || [];
364
- for (let t of tempValues) {
365
- if (t.value === searchValue.value) {
366
- ElMessage.warning("该变量已存在!");
367
- return;
368
- }
369
- }
370
- const variable = {
371
- code: getUuidv4(),
372
- name: searchValue.value,
373
- alias: searchValue.value,
374
- type: "string",
375
- defaultValue: ""
376
- };
377
- if (!pageContextUtil.pageContext.variables) {
378
- pageContextUtil.pageContext.variables = [];
379
- }
380
- pageContextUtil.pageContext.variables.push(variable);
381
- pageContextUtil.setPageContext(pageContextUtil.pageContext);
382
- selectOptions.value.pageVarOptions = pageContextUtil.pageContextVarOptions.pageVarOptions;
383
- valueOptions.value = selectOptions.value.pageVarOptions || [];
384
- paramValue.value = searchValue.value;
385
- defalutValue.value = "${" + paramType.value + "." + searchValue.value + "}";
386
- searchValue.value = "";
387
- emits("update:modelValue", defalutValue.value);
388
- closePopover(true);
389
- }
390
- function getValueLabel(valueType, value) {
391
- if (selectInputType.includes(valueType)) {
392
- if (valueType === "context" && value && value.startsWith("currentDate") && value.length > 11) {
393
- const str = value.substring(11);
394
- const symbol = str.substring(0, 1);
395
- const num = str.substring(1, str.length - 1);
396
- const unit = str.substring(str.length - 1);
397
- return num + symbolUnitFormatter(unit) + ("+" === symbol ? "后" : "前");
398
- }
399
- const option = valueOptions.value.find((item) => item.value === value);
400
- if (option) {
401
- return option.label;
402
- }
403
- }
404
- return value;
405
- }
406
- const tableRef = ref();
407
- function handSelectRow() {
408
- if (!props.showLabel && !showInput.value) {
409
- const index = filterTableData.value.findIndex((item) => item.value === paramValue.value);
410
- if (index > -1) {
411
- tableRef.value.setCurrentRow(filterTableData.value[index]);
412
- }
413
- }
414
- }
415
- function showPopover() {
416
- openPopover();
417
- nextTick(() => {
418
- setSelectOptions();
419
- if (paramType.value) {
420
- setValueOptions(paramType.value);
421
- }
422
- handSelectRow();
423
- });
424
- }
425
- return (_ctx, _cache) => {
426
- const _component_el_icon = resolveComponent("el-icon");
427
- const _component_el_input = resolveComponent("el-input");
428
- const _component_el_cascader_panel = resolveComponent("el-cascader-panel");
429
- const _component_el_col = resolveComponent("el-col");
430
- const _component_el_empty = resolveComponent("el-empty");
431
- const _component_el_button = resolveComponent("el-button");
432
- const _component_el_table_column = resolveComponent("el-table-column");
433
- const _component_el_option = resolveComponent("el-option");
434
- const _component_el_select = resolveComponent("el-select");
435
- const _component_el_table = resolveComponent("el-table");
436
- const _component_el_row = resolveComponent("el-row");
437
- const _component_el_popover = resolveComponent("el-popover");
438
- return __props.showLabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(defalutValue.value), 1)) : (openBlock(), createBlock(_component_el_popover, {
439
- key: 1,
440
- ref_key: "popoverRef",
441
- ref: popoverRef,
442
- visible: popoverVisible.value,
443
- width: 400
444
- }, {
445
- reference: withCtx(() => [
446
- createVNode(_component_el_input, {
447
- readonly: "",
448
- size: __props.size,
449
- title: defalutValue.value,
450
- ref_key: "inputRef",
451
- ref: inputRef,
452
- onClick: showPopover,
453
- formatter,
454
- modelValue: defalutValue.value,
455
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => defalutValue.value = $event),
456
- placeholder: "请选择"
457
- }, {
458
- suffix: withCtx(() => [
459
- withDirectives(createVNode(_component_el_icon, {
460
- style: { "cursor": "pointer" },
461
- onClick: withModifiers(clearSelect, ["stop"])
462
- }, {
463
- default: withCtx(() => [
464
- createVNode(unref(CircleClose))
465
- ]),
466
- _: 1
467
- }, 512), [
468
- [vShow, defalutValue.value]
469
- ])
470
- ]),
471
- _: 1
472
- }, 8, ["size", "title", "modelValue"])
473
- ]),
474
- default: withCtx(() => [
475
- createVNode(_component_el_row, {
476
- ref_key: "contentRef",
477
- ref: contentRef
478
- }, {
479
- default: withCtx(() => [
480
- createVNode(_component_el_col, { span: 8 }, {
481
- default: withCtx(() => [
482
- createVNode(_component_el_cascader_panel, {
483
- modelValue: paramType.value,
484
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => paramType.value = $event),
485
- onChange: paramTypeChange,
486
- props: { emitPath: true },
487
- size: "small",
488
- options: typeOptions.value,
489
- style: { "height": "240px", "width": "100%" }
490
- }, null, 8, ["modelValue", "options"])
491
- ]),
492
- _: 1
493
- }),
494
- !paramType.value ? (openBlock(), createBlock(_component_el_col, {
495
- key: 0,
496
- span: 16
497
- }, {
498
- default: withCtx(() => [
499
- createVNode(_component_el_empty, {
500
- description: "请选择类型",
501
- "image-size": 40
502
- })
503
- ]),
504
- _: 1
505
- })) : showInput.value ? (openBlock(), createBlock(_component_el_col, {
506
- key: 1,
507
- span: 16,
508
- style: { "padding-left": "10px" }
509
- }, {
510
- default: withCtx(() => [
511
- createVNode(_component_el_input, {
512
- style: { "width": "210px" },
513
- size: "small",
514
- modelValue: paramValue.value,
515
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => paramValue.value = $event),
516
- placeholder: "请手动输入"
517
- }, null, 8, ["modelValue"]),
518
- createVNode(_component_el_button, {
519
- style: { "float": "right" },
520
- onClick: addInputParams,
521
- size: "small",
522
- type: "primary",
523
- icon: unref(Plus),
524
- circle: ""
525
- }, null, 8, ["icon"]),
526
- createElementVNode("div", _hoisted_2, [
527
- createVNode(_component_el_icon, null, {
528
- default: withCtx(() => [
529
- createVNode(unref(InfoFilled))
530
- ]),
531
- _: 1
532
- }),
533
- _hoisted_3
534
- ]),
535
- withDirectives(createElementVNode("div", _hoisted_4, [
536
- createTextVNode(" 常用参数: "),
537
- createVNode(_component_el_button, {
538
- type: "primary",
539
- size: "small",
540
- onClick: _cache[3] || (_cache[3] = ($event) => addRequestParam("query"))
541
- }, {
542
- default: withCtx(() => [
543
- createTextVNode("query")
544
- ]),
545
- _: 1
546
- })
547
- ], 512), [
548
- [vShow, paramType.value == "request"]
549
- ])
550
- ]),
551
- _: 1
552
- })) : (openBlock(), createBlock(_component_el_col, {
553
- key: 2,
554
- span: 16,
555
- style: { "padding-left": "10px" }
556
- }, {
557
- default: withCtx(() => [
558
- createVNode(_component_el_input, {
559
- size: "small",
560
- modelValue: searchValue.value,
561
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => searchValue.value = $event),
562
- placeholder: "搜索",
563
- "suffix-icon": unref(Search),
564
- style: normalizeStyle([{ "margin-bottom": "5px", "height": "25px" }, searchWidthStyle.value])
565
- }, null, 8, ["modelValue", "suffix-icon", "style"]),
566
- withDirectives(createVNode(_component_el_button, {
567
- style: { "float": "right" },
568
- onClick: addPageParams,
569
- size: "small",
570
- type: "primary",
571
- icon: unref(Plus),
572
- circle: ""
573
- }, null, 8, ["icon"]), [
574
- [vShow, paramType.value == "page"]
575
- ]),
576
- withDirectives(createElementVNode("div", _hoisted_5, [
577
- createVNode(_component_el_icon, null, {
578
- default: withCtx(() => [
579
- createVNode(unref(InfoFilled))
580
- ]),
581
- _: 1
582
- }),
583
- _hoisted_6
584
- ], 512), [
585
- [vShow, paramType.value == "page"]
586
- ]),
587
- createVNode(_component_el_table, {
588
- ref_key: "tableRef",
589
- ref: tableRef,
590
- height: tableHeight.value,
591
- "show-header": false,
592
- size: "small",
593
- "current-row-key": "code",
594
- "row-key": "code",
595
- "tree-props": { children: "items" },
596
- "highlight-current-row": true,
597
- data: filterTableData.value
598
- }, {
599
- default: withCtx(() => [
600
- createVNode(_component_el_table_column, { width: "65" }, {
601
- default: withCtx((scope) => [
602
- createVNode(_component_el_button, {
603
- size: "small",
604
- onClick: ($event) => selectRow(scope.row)
605
- }, {
606
- default: withCtx(() => [
607
- createTextVNode(" 选择 ")
608
- ]),
609
- _: 2
610
- }, 1032, ["onClick"])
611
- ]),
612
- _: 1
613
- }),
614
- createVNode(_component_el_table_column, {
615
- label: "Date",
616
- prop: "label"
617
- }, {
618
- default: withCtx((scope) => [
619
- paramType.value == "context" && scope.row.type == "range" ? (openBlock(), createElementBlock("div", _hoisted_7, [
620
- createVNode(_component_el_input, {
621
- size: "small",
622
- modelValue: scope.row.symbolNum,
623
- "onUpdate:modelValue": ($event) => scope.row.symbolNum = $event,
624
- placeholder: "",
625
- style: { "width": "35px", "margin-left": "4px" }
626
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
627
- createVNode(_component_el_select, {
628
- size: "small",
629
- style: { "margin-left": "4px", "width": "50px" },
630
- modelValue: scope.row.symbolUnit,
631
- "onUpdate:modelValue": ($event) => scope.row.symbolUnit = $event,
632
- placeholder: ""
633
- }, {
634
- default: withCtx(() => [
635
- createVNode(_component_el_option, {
636
- label: "天",
637
- value: "d"
638
- }),
639
- createVNode(_component_el_option, {
640
- label: "周",
641
- value: "w"
642
- }),
643
- createVNode(_component_el_option, {
644
- label: "月",
645
- value: "m"
646
- }),
647
- createVNode(_component_el_option, {
648
- label: "年",
649
- value: "y"
650
- })
651
- ]),
652
- _: 2
653
- }, 1032, ["modelValue", "onUpdate:modelValue"]),
654
- createVNode(_component_el_select, {
655
- size: "small",
656
- style: { "margin-left": "4px", "width": "50px" },
657
- modelValue: scope.row.symbol,
658
- "onUpdate:modelValue": ($event) => scope.row.symbol = $event,
659
- placeholder: ""
660
- }, {
661
- default: withCtx(() => [
662
- createVNode(_component_el_option, {
663
- label: "前",
664
- value: "-"
665
- }),
666
- createVNode(_component_el_option, {
667
- label: "后",
668
- value: "+"
669
- })
670
- ]),
671
- _: 2
672
- }, 1032, ["modelValue", "onUpdate:modelValue"])
673
- ])) : createCommentVNode("", true),
674
- paramType.value == "data" ? (openBlock(), createElementBlock("span", {
675
- key: 1,
676
- title: scope.row.label + " " + scope.row.value
677
- }, toDisplayString(scope.row.label + " " + scope.row.value), 9, _hoisted_8)) : (openBlock(), createElementBlock("span", {
678
- key: 2,
679
- title: scope.row.label
680
- }, toDisplayString(scope.row.label), 9, _hoisted_9))
681
- ]),
682
- _: 1
683
- })
684
- ]),
685
- _: 1
686
- }, 8, ["height", "data"]),
687
- createElementVNode("div", _hoisted_10, "总计:" + toDisplayString(filterTableData.value.length), 1)
688
- ]),
689
- _: 1
690
- }))
691
- ]),
692
- _: 1
693
- }, 512)
694
- ]),
695
- _: 1
696
- }, 8, ["visible"]));
697
- };
698
- }
699
- });
700
- export {
701
- _sfc_main as default
702
- };
1
+