super-page-designer 2.0.31 → 2.0.34
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.
- package/dist/es/components/design/utils/assemblys-config.js +17 -0
- package/dist/es/components/design/utils/page-explore-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-explore-util.js +5 -17
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -487
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +686 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +55 -25
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +9 -106
- package/dist/es/components/design/views/design/page-design.vue.js +14 -20
- package/dist/es/components/design/views/design/view/attr-container.vue.js +23 -1
- package/dist/es/style.css +90 -90
- package/package.json +4 -4
|
@@ -2296,9 +2296,26 @@ function getFormComponentOptions() {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
|
+
function getComponentEventOptions(componentName) {
|
|
2300
|
+
if (componentName && componentName === "page") {
|
|
2301
|
+
return pageConf.events;
|
|
2302
|
+
}
|
|
2303
|
+
for (let assemblyGroup of assemblyGroups) {
|
|
2304
|
+
if (assemblyGroup.name === componentName) {
|
|
2305
|
+
return assemblyGroup.events;
|
|
2306
|
+
} else {
|
|
2307
|
+
for (let item of assemblyGroup.items) {
|
|
2308
|
+
if (item.name === componentName) {
|
|
2309
|
+
return item.events;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2299
2315
|
export {
|
|
2300
2316
|
assemblyGroups,
|
|
2301
2317
|
getAttrComponentByName,
|
|
2318
|
+
getComponentEventOptions,
|
|
2302
2319
|
getDesignComponentByName,
|
|
2303
2320
|
getDesignConfByName,
|
|
2304
2321
|
getFormComponentOptions,
|
|
@@ -11,7 +11,7 @@ function convertToExploreTreeDatas(designItems, searchItemName, cachePageItemMap
|
|
|
11
11
|
}
|
|
12
12
|
const treeItems = [];
|
|
13
13
|
for (let index = 0; index < designItems.length; index++) {
|
|
14
|
-
const treeItem = convertPageItemToTreeItem(designItems[index], searchItemName, cachePageItemMap
|
|
14
|
+
const treeItem = convertPageItemToTreeItem(designItems[index], searchItemName, cachePageItemMap);
|
|
15
15
|
if (treeItem) {
|
|
16
16
|
treeItems.push(treeItem);
|
|
17
17
|
}
|
|
@@ -23,16 +23,17 @@ function convertPageItemToTreeItem(pageItem, searchItemName, cachePageItemMap, e
|
|
|
23
23
|
const children = [];
|
|
24
24
|
if (pageItem.items && pageItem.items.length > 0) {
|
|
25
25
|
for (let index = 0; index < pageItem.items.length; index++) {
|
|
26
|
-
const childItem = convertPageItemToTreeItem(pageItem.items[index], searchItemName, cachePageItemMap
|
|
26
|
+
const childItem = convertPageItemToTreeItem(pageItem.items[index], searchItemName, cachePageItemMap);
|
|
27
27
|
if (childItem != null) {
|
|
28
28
|
children.push(childItem);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
const title = pageItem.props && pageItem.props.base ? pageItem.props.base.title : void 0;
|
|
32
33
|
let isHas = true;
|
|
33
34
|
if (children.length == 0 && searchItemName) {
|
|
34
35
|
isHas = false;
|
|
35
|
-
if (pageItem.type && pageItem.type.indexOf(searchItemName) > -1 || pageItem.label && pageItem.label.indexOf(searchItemName) > -1 || pageItem.name && pageItem.name.indexOf(searchItemName) > -1) {
|
|
36
|
+
if (pageItem.type && pageItem.type.indexOf(searchItemName) > -1 || pageItem.label && pageItem.label.indexOf(searchItemName) > -1 || pageItem.name && pageItem.name.indexOf(searchItemName) > -1 || title && title.indexOf(searchItemName) > -1) {
|
|
36
37
|
isHas = true;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -40,26 +41,13 @@ function convertPageItemToTreeItem(pageItem, searchItemName, cachePageItemMap, e
|
|
|
40
41
|
const treeItem = {
|
|
41
42
|
componentIndex: pageItem.componentIndex,
|
|
42
43
|
name: pageItem.name,
|
|
43
|
-
label: pageItem.label,
|
|
44
|
+
label: title ? title + "(" + pageItem.label + ")" : pageItem.label,
|
|
44
45
|
uuid: pageItem.uuid,
|
|
45
46
|
children
|
|
46
47
|
};
|
|
47
48
|
if (cachePageItemMap != null && pageItem.componentIndex) {
|
|
48
49
|
cachePageItemMap.value[pageItem.componentIndex] = pageItem;
|
|
49
50
|
}
|
|
50
|
-
if (eventResult != null && pageItem.componentIndex && pageItem.events) {
|
|
51
|
-
const filteredEvents = pageItem.events.filter((event) => event.eventName !== void 0 && event.eventName !== null && event.eventName !== "");
|
|
52
|
-
if (filteredEvents && filteredEvents.length > 0) {
|
|
53
|
-
filteredEvents.forEach((event) => {
|
|
54
|
-
event.componentName = pageItem.name;
|
|
55
|
-
event.componentLabel = pageItem.label;
|
|
56
|
-
event.componentUuid = pageItem.uuid;
|
|
57
|
-
event.componentProp = pageItem.prop;
|
|
58
|
-
event.componentIndex = pageItem.componentIndex;
|
|
59
|
-
});
|
|
60
|
-
eventResult.value = eventResult.value.concat(filteredEvents);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
51
|
return treeItem;
|
|
64
52
|
} else {
|
|
65
53
|
return null;
|
|
@@ -32,6 +32,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
+
isRange: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
35
39
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
40
|
"update:modelValue": (...args: any[]) => void;
|
|
37
41
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -68,6 +72,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
68
72
|
type: BooleanConstructor;
|
|
69
73
|
default: boolean;
|
|
70
74
|
};
|
|
75
|
+
isRange: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
71
79
|
}>> & {
|
|
72
80
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
73
81
|
}, {
|
|
@@ -76,5 +84,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
76
84
|
paramTypes: string[];
|
|
77
85
|
showLabel: boolean;
|
|
78
86
|
needParams: boolean;
|
|
87
|
+
isRange: boolean;
|
|
79
88
|
}, {}>;
|
|
80
89
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
2
|
-
import "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue3.js";
|
|
2
|
+
import "./common-variable-bind.vue2.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4f78abb"]]);
|
|
5
5
|
export {
|
|
6
6
|
BindVariable as default
|
|
7
7
|
};
|
|
@@ -1,487 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { CircleClose, Plus, InfoFilled, Search } from "@element-plus/icons-vue";
|
|
3
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
4
|
-
import { getUuidv4 } from "../../../utils/common-util.js";
|
|
5
|
-
import { getTypeOptions, contextVarOptions, taskVarOptions } from "./common-variable-bind-option.js";
|
|
6
|
-
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-ea40d1e1"), n = n(), popScopeId(), n);
|
|
8
|
-
const _hoisted_1 = { key: 0 };
|
|
9
|
-
const _hoisted_2 = { style: { "margin-top": "10px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
|
|
10
|
-
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
|
|
11
|
-
const _hoisted_4 = { style: { "font-size": "10px", "line-height": "40px" } };
|
|
12
|
-
const _hoisted_5 = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
|
|
13
|
-
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
|
|
14
|
-
const _hoisted_7 = ["title"];
|
|
15
|
-
const _hoisted_8 = { class: "totalStyle" };
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
...{
|
|
18
|
-
name: "ValueSetInput",
|
|
19
|
-
inheritAttrs: false
|
|
20
|
-
},
|
|
21
|
-
__name: "common-variable-bind",
|
|
22
|
-
props: {
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: [String],
|
|
25
|
-
default: null
|
|
26
|
-
},
|
|
27
|
-
paramTypes: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default: () => []
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "small"
|
|
34
|
-
},
|
|
35
|
-
showLabel: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: false
|
|
38
|
-
},
|
|
39
|
-
// 是否需要方法参数
|
|
40
|
-
needParams: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
emits: ["update:modelValue"],
|
|
46
|
-
setup(__props, { emit: __emit }) {
|
|
47
|
-
const pageContextUtil = usePageContextStore();
|
|
48
|
-
const emits = __emit;
|
|
49
|
-
const props = __props;
|
|
50
|
-
const defalutValue = ref("");
|
|
51
|
-
const typeOptions = ref([]);
|
|
52
|
-
const showInput = ref(false);
|
|
53
|
-
const labelValue = ref("");
|
|
54
|
-
const paramType = ref("");
|
|
55
|
-
const paramValue = ref("");
|
|
56
|
-
const valueOptions = ref([]);
|
|
57
|
-
const selectOptions = ref({});
|
|
58
|
-
const searchValue = ref("");
|
|
59
|
-
ref("");
|
|
60
|
-
const popoverRef = ref();
|
|
61
|
-
const selectInputType = ["context", "system", "task", "data", "page"];
|
|
62
|
-
onMounted(() => {
|
|
63
|
-
const pageContext = pageContextUtil.pageContext;
|
|
64
|
-
let hasTask = false;
|
|
65
|
-
let hasData = false;
|
|
66
|
-
if (pageContext && (!pageContext.pageType || pageContext.pageType == "form") && pageContext.tableName) {
|
|
67
|
-
hasData = true;
|
|
68
|
-
}
|
|
69
|
-
if (pageContext && pageContext.workflowCode && hasData) {
|
|
70
|
-
hasTask = true;
|
|
71
|
-
}
|
|
72
|
-
let newOptions = getTypeOptions(props.paramTypes, props.needParams);
|
|
73
|
-
if (!hasData) {
|
|
74
|
-
newOptions = newOptions.filter((item) => item.value != "data");
|
|
75
|
-
}
|
|
76
|
-
if (!hasTask) {
|
|
77
|
-
newOptions = newOptions.filter((item) => item.value != "task");
|
|
78
|
-
}
|
|
79
|
-
typeOptions.value = newOptions;
|
|
80
|
-
setSelectOptions();
|
|
81
|
-
if (props.modelValue) {
|
|
82
|
-
const [type, val] = props.modelValue.slice(0, props.modelValue.length - 1).slice(2).split(".");
|
|
83
|
-
paramType.value = type;
|
|
84
|
-
paramValue.value = val;
|
|
85
|
-
if (selectInputType.includes(type)) {
|
|
86
|
-
showInput.value = false;
|
|
87
|
-
}
|
|
88
|
-
setValueOptions(paramType.value);
|
|
89
|
-
labelValue.value = formatter();
|
|
90
|
-
defalutValue.value = props.modelValue;
|
|
91
|
-
}
|
|
92
|
-
if (!paramType.value) {
|
|
93
|
-
paramType.value = newOptions.length > 0 ? newOptions[0].value : "";
|
|
94
|
-
setValueOptions(paramType.value);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const filterTableData = computed(
|
|
98
|
-
() => (
|
|
99
|
-
//等于System时为全部
|
|
100
|
-
valueOptions.value.filter(
|
|
101
|
-
(data) => !searchValue.value || paramType.value == "system" || data.label.toLowerCase().includes(searchValue.value.toLowerCase()) || data.value.toLowerCase().includes(searchValue.value.toLowerCase())
|
|
102
|
-
)
|
|
103
|
-
)
|
|
104
|
-
);
|
|
105
|
-
watch(searchValue, () => {
|
|
106
|
-
if (paramType.value == "system") {
|
|
107
|
-
querySystemParams();
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
let lastSystemQuery = null;
|
|
111
|
-
function querySystemParams() {
|
|
112
|
-
if (lastSystemQuery == searchValue.value) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const param = {
|
|
116
|
-
query: searchValue.value
|
|
117
|
-
};
|
|
118
|
-
lastSystemQuery = searchValue.value;
|
|
119
|
-
http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/system-params/query", param).then((results) => {
|
|
120
|
-
const tempOptions = [];
|
|
121
|
-
for (let result of results) {
|
|
122
|
-
tempOptions.push({
|
|
123
|
-
value: result.propKey,
|
|
124
|
-
label: result.propKey + " (" + result.propValue + ")"
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
selectOptions.value.systemVarOptions = tempOptions;
|
|
128
|
-
if (paramType.value == "system") {
|
|
129
|
-
setValueOptions(paramType.value);
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
const tableHeight = computed(() => {
|
|
134
|
-
let height = 185;
|
|
135
|
-
if (paramType.value == "page") {
|
|
136
|
-
height = 170;
|
|
137
|
-
}
|
|
138
|
-
return height;
|
|
139
|
-
});
|
|
140
|
-
const searchWidthStyle = computed(() => {
|
|
141
|
-
const style = {};
|
|
142
|
-
if (paramType.value == "page") {
|
|
143
|
-
style.width = "210px";
|
|
144
|
-
}
|
|
145
|
-
return style;
|
|
146
|
-
});
|
|
147
|
-
function setSelectOptions() {
|
|
148
|
-
selectOptions.value.dataModelOptions = pageContextUtil.pageContextVarOptions.dataOptions;
|
|
149
|
-
selectOptions.value.pageVarOptions = pageContextUtil.pageContextVarOptions.pageVarOptions;
|
|
150
|
-
}
|
|
151
|
-
function formatter() {
|
|
152
|
-
if (props.modelValue) {
|
|
153
|
-
return paramType.value + "." + getValueLabel(paramType.value, paramValue.value);
|
|
154
|
-
}
|
|
155
|
-
return props.modelValue;
|
|
156
|
-
}
|
|
157
|
-
function paramTypeChange(selParamType) {
|
|
158
|
-
if (selParamType) {
|
|
159
|
-
if (Array.isArray(selParamType)) {
|
|
160
|
-
if (selParamType.length > 0) {
|
|
161
|
-
selParamType = selParamType[0];
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
paramType.value = selParamType;
|
|
166
|
-
paramValue.value = "";
|
|
167
|
-
if (selectInputType.includes(selParamType)) {
|
|
168
|
-
showInput.value = false;
|
|
169
|
-
setValueOptions(selParamType);
|
|
170
|
-
} else {
|
|
171
|
-
showInput.value = true;
|
|
172
|
-
}
|
|
173
|
-
if (paramType.value == "system") {
|
|
174
|
-
querySystemParams();
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function setValueOptions(value) {
|
|
178
|
-
if (value === "context") {
|
|
179
|
-
valueOptions.value = contextVarOptions;
|
|
180
|
-
} else if (value === "system") {
|
|
181
|
-
valueOptions.value = selectOptions.value.systemVarOptions || [];
|
|
182
|
-
} else if (value === "task") {
|
|
183
|
-
valueOptions.value = taskVarOptions;
|
|
184
|
-
} else if (value === "data") {
|
|
185
|
-
valueOptions.value = selectOptions.value.dataModelOptions || [];
|
|
186
|
-
} else if (value === "params") {
|
|
187
|
-
valueOptions.value = selectOptions.value.paramsVarOptions || [];
|
|
188
|
-
} else if (value === "page") {
|
|
189
|
-
valueOptions.value = selectOptions.value.pageVarOptions || [];
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function clearSelect() {
|
|
193
|
-
defalutValue.value = "";
|
|
194
|
-
emits("update:modelValue", defalutValue.value);
|
|
195
|
-
popoverRef.value.hide();
|
|
196
|
-
}
|
|
197
|
-
function selectRow(row) {
|
|
198
|
-
paramValue.value = row.value;
|
|
199
|
-
defalutValue.value = "${" + paramType.value + "." + row.value + "}";
|
|
200
|
-
emits("update:modelValue", defalutValue.value);
|
|
201
|
-
popoverRef.value.hide();
|
|
202
|
-
}
|
|
203
|
-
function addRequestParam(paramName) {
|
|
204
|
-
paramValue.value = paramName;
|
|
205
|
-
addInputParams();
|
|
206
|
-
}
|
|
207
|
-
function addInputParams() {
|
|
208
|
-
if (!paramValue.value) {
|
|
209
|
-
ElMessage.warning("请输入参数名");
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
defalutValue.value = "${" + paramType.value + "." + paramValue.value + "}";
|
|
213
|
-
emits("update:modelValue", defalutValue.value);
|
|
214
|
-
popoverRef.value.hide();
|
|
215
|
-
}
|
|
216
|
-
function addPageParams() {
|
|
217
|
-
searchValue.value = searchValue.value.trim();
|
|
218
|
-
if (!searchValue.value) {
|
|
219
|
-
ElMessage.warning("请输入参数名");
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
const tempValues = selectOptions.value.pageVarOptions || [];
|
|
223
|
-
for (let t of tempValues) {
|
|
224
|
-
if (t.value === searchValue.value) {
|
|
225
|
-
ElMessage.warning("该变量已存在!");
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
const variable = {
|
|
230
|
-
code: getUuidv4(),
|
|
231
|
-
name: searchValue.value,
|
|
232
|
-
alias: searchValue.value,
|
|
233
|
-
type: "string",
|
|
234
|
-
defaultValue: ""
|
|
235
|
-
};
|
|
236
|
-
if (!pageContextUtil.pageContext.variables) {
|
|
237
|
-
pageContextUtil.pageContext.variables = [];
|
|
238
|
-
}
|
|
239
|
-
pageContextUtil.pageContext.variables.push(variable);
|
|
240
|
-
pageContextUtil.setPageContext(pageContextUtil.pageContext);
|
|
241
|
-
selectOptions.value.pageVarOptions = pageContextUtil.pageContextVarOptions.pageVarOptions;
|
|
242
|
-
valueOptions.value = selectOptions.value.pageVarOptions || [];
|
|
243
|
-
paramValue.value = searchValue.value;
|
|
244
|
-
defalutValue.value = "${" + paramType.value + "." + searchValue.value + "}";
|
|
245
|
-
searchValue.value = "";
|
|
246
|
-
emits("update:modelValue", defalutValue.value);
|
|
247
|
-
popoverRef.value.hide();
|
|
248
|
-
}
|
|
249
|
-
function getValueLabel(valueType, value) {
|
|
250
|
-
if (selectInputType.includes(valueType)) {
|
|
251
|
-
const option = valueOptions.value.find((item) => item.value === value);
|
|
252
|
-
if (option) {
|
|
253
|
-
return option.label;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return value;
|
|
257
|
-
}
|
|
258
|
-
const tableRef = ref();
|
|
259
|
-
function handSelectRow() {
|
|
260
|
-
if (!props.showLabel && !showInput.value) {
|
|
261
|
-
const index = filterTableData.value.findIndex((item) => item.value === paramValue.value);
|
|
262
|
-
if (index > -1) {
|
|
263
|
-
tableRef.value.setCurrentRow(filterTableData.value[index]);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
function showPopover() {
|
|
268
|
-
nextTick(() => {
|
|
269
|
-
setSelectOptions();
|
|
270
|
-
if (paramType.value) {
|
|
271
|
-
setValueOptions(paramType.value);
|
|
272
|
-
}
|
|
273
|
-
handSelectRow();
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
return (_ctx, _cache) => {
|
|
277
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
278
|
-
const _component_el_input = resolveComponent("el-input");
|
|
279
|
-
const _component_el_cascader_panel = resolveComponent("el-cascader-panel");
|
|
280
|
-
const _component_el_col = resolveComponent("el-col");
|
|
281
|
-
const _component_el_empty = resolveComponent("el-empty");
|
|
282
|
-
const _component_el_button = resolveComponent("el-button");
|
|
283
|
-
const _component_el_table_column = resolveComponent("el-table-column");
|
|
284
|
-
const _component_el_table = resolveComponent("el-table");
|
|
285
|
-
const _component_el_row = resolveComponent("el-row");
|
|
286
|
-
const _component_el_popover = resolveComponent("el-popover");
|
|
287
|
-
return __props.showLabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(defalutValue.value), 1)) : (openBlock(), createBlock(_component_el_popover, {
|
|
288
|
-
key: 1,
|
|
289
|
-
ref_key: "popoverRef",
|
|
290
|
-
ref: popoverRef,
|
|
291
|
-
trigger: "click",
|
|
292
|
-
width: 400
|
|
293
|
-
}, {
|
|
294
|
-
reference: withCtx(() => [
|
|
295
|
-
createVNode(_component_el_input, {
|
|
296
|
-
readonly: "",
|
|
297
|
-
size: __props.size,
|
|
298
|
-
title: defalutValue.value,
|
|
299
|
-
onClick: showPopover,
|
|
300
|
-
formatter,
|
|
301
|
-
modelValue: defalutValue.value,
|
|
302
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => defalutValue.value = $event),
|
|
303
|
-
placeholder: "请选择"
|
|
304
|
-
}, {
|
|
305
|
-
suffix: withCtx(() => [
|
|
306
|
-
withDirectives(createVNode(_component_el_icon, {
|
|
307
|
-
style: { "cursor": "pointer" },
|
|
308
|
-
onClick: withModifiers(clearSelect, ["stop"])
|
|
309
|
-
}, {
|
|
310
|
-
default: withCtx(() => [
|
|
311
|
-
createVNode(unref(CircleClose))
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 512), [
|
|
315
|
-
[vShow, defalutValue.value]
|
|
316
|
-
])
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
}, 8, ["size", "title", "modelValue"])
|
|
320
|
-
]),
|
|
321
|
-
default: withCtx(() => [
|
|
322
|
-
createVNode(_component_el_row, null, {
|
|
323
|
-
default: withCtx(() => [
|
|
324
|
-
createVNode(_component_el_col, { span: 8 }, {
|
|
325
|
-
default: withCtx(() => [
|
|
326
|
-
createVNode(_component_el_cascader_panel, {
|
|
327
|
-
modelValue: paramType.value,
|
|
328
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => paramType.value = $event),
|
|
329
|
-
onChange: paramTypeChange,
|
|
330
|
-
props: { emitPath: true },
|
|
331
|
-
size: "small",
|
|
332
|
-
options: typeOptions.value,
|
|
333
|
-
style: { "height": "240px", "width": "100%" }
|
|
334
|
-
}, null, 8, ["modelValue", "options"])
|
|
335
|
-
]),
|
|
336
|
-
_: 1
|
|
337
|
-
}),
|
|
338
|
-
!paramType.value ? (openBlock(), createBlock(_component_el_col, {
|
|
339
|
-
key: 0,
|
|
340
|
-
span: 16
|
|
341
|
-
}, {
|
|
342
|
-
default: withCtx(() => [
|
|
343
|
-
createVNode(_component_el_empty, {
|
|
344
|
-
description: "请选择类型",
|
|
345
|
-
"image-size": 40
|
|
346
|
-
})
|
|
347
|
-
]),
|
|
348
|
-
_: 1
|
|
349
|
-
})) : showInput.value ? (openBlock(), createBlock(_component_el_col, {
|
|
350
|
-
key: 1,
|
|
351
|
-
span: 16,
|
|
352
|
-
style: { "padding-left": "10px" }
|
|
353
|
-
}, {
|
|
354
|
-
default: withCtx(() => [
|
|
355
|
-
createVNode(_component_el_input, {
|
|
356
|
-
style: { "width": "210px" },
|
|
357
|
-
size: "small",
|
|
358
|
-
modelValue: paramValue.value,
|
|
359
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => paramValue.value = $event),
|
|
360
|
-
placeholder: "请手动输入"
|
|
361
|
-
}, null, 8, ["modelValue"]),
|
|
362
|
-
createVNode(_component_el_button, {
|
|
363
|
-
style: { "float": "right" },
|
|
364
|
-
onClick: addInputParams,
|
|
365
|
-
size: "small",
|
|
366
|
-
type: "primary",
|
|
367
|
-
icon: unref(Plus),
|
|
368
|
-
circle: ""
|
|
369
|
-
}, null, 8, ["icon"]),
|
|
370
|
-
createElementVNode("div", _hoisted_2, [
|
|
371
|
-
createVNode(_component_el_icon, null, {
|
|
372
|
-
default: withCtx(() => [
|
|
373
|
-
createVNode(unref(InfoFilled))
|
|
374
|
-
]),
|
|
375
|
-
_: 1
|
|
376
|
-
}),
|
|
377
|
-
_hoisted_3
|
|
378
|
-
]),
|
|
379
|
-
withDirectives(createElementVNode("div", _hoisted_4, [
|
|
380
|
-
createTextVNode(" 常用参数: "),
|
|
381
|
-
createVNode(_component_el_button, {
|
|
382
|
-
type: "primary",
|
|
383
|
-
size: "small",
|
|
384
|
-
onClick: _cache[3] || (_cache[3] = ($event) => addRequestParam("query"))
|
|
385
|
-
}, {
|
|
386
|
-
default: withCtx(() => [
|
|
387
|
-
createTextVNode("query")
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
})
|
|
391
|
-
], 512), [
|
|
392
|
-
[vShow, paramType.value == "request"]
|
|
393
|
-
])
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
})) : (openBlock(), createBlock(_component_el_col, {
|
|
397
|
-
key: 2,
|
|
398
|
-
span: 16,
|
|
399
|
-
style: { "padding-left": "10px" }
|
|
400
|
-
}, {
|
|
401
|
-
default: withCtx(() => [
|
|
402
|
-
createVNode(_component_el_input, {
|
|
403
|
-
size: "small",
|
|
404
|
-
modelValue: searchValue.value,
|
|
405
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => searchValue.value = $event),
|
|
406
|
-
placeholder: "搜索",
|
|
407
|
-
"suffix-icon": unref(Search),
|
|
408
|
-
style: normalizeStyle([{ "margin-bottom": "5px", "height": "25px" }, searchWidthStyle.value])
|
|
409
|
-
}, null, 8, ["modelValue", "suffix-icon", "style"]),
|
|
410
|
-
withDirectives(createVNode(_component_el_button, {
|
|
411
|
-
style: { "float": "right" },
|
|
412
|
-
onClick: addPageParams,
|
|
413
|
-
size: "small",
|
|
414
|
-
type: "primary",
|
|
415
|
-
icon: unref(Plus),
|
|
416
|
-
circle: ""
|
|
417
|
-
}, null, 8, ["icon"]), [
|
|
418
|
-
[vShow, paramType.value == "page"]
|
|
419
|
-
]),
|
|
420
|
-
withDirectives(createElementVNode("div", _hoisted_5, [
|
|
421
|
-
createVNode(_component_el_icon, null, {
|
|
422
|
-
default: withCtx(() => [
|
|
423
|
-
createVNode(unref(InfoFilled))
|
|
424
|
-
]),
|
|
425
|
-
_: 1
|
|
426
|
-
}),
|
|
427
|
-
_hoisted_6
|
|
428
|
-
], 512), [
|
|
429
|
-
[vShow, paramType.value == "page"]
|
|
430
|
-
]),
|
|
431
|
-
createVNode(_component_el_table, {
|
|
432
|
-
ref_key: "tableRef",
|
|
433
|
-
ref: tableRef,
|
|
434
|
-
height: tableHeight.value,
|
|
435
|
-
"show-header": false,
|
|
436
|
-
size: "small",
|
|
437
|
-
"current-row-key": "code",
|
|
438
|
-
"row-key": "code",
|
|
439
|
-
"tree-props": { children: "items" },
|
|
440
|
-
"highlight-current-row": true,
|
|
441
|
-
data: filterTableData.value
|
|
442
|
-
}, {
|
|
443
|
-
default: withCtx(() => [
|
|
444
|
-
createVNode(_component_el_table_column, { width: "65" }, {
|
|
445
|
-
default: withCtx((scope) => [
|
|
446
|
-
createVNode(_component_el_button, {
|
|
447
|
-
size: "small",
|
|
448
|
-
onClick: ($event) => selectRow(scope.row)
|
|
449
|
-
}, {
|
|
450
|
-
default: withCtx(() => [
|
|
451
|
-
createTextVNode(" 选择 ")
|
|
452
|
-
]),
|
|
453
|
-
_: 2
|
|
454
|
-
}, 1032, ["onClick"])
|
|
455
|
-
]),
|
|
456
|
-
_: 1
|
|
457
|
-
}),
|
|
458
|
-
createVNode(_component_el_table_column, {
|
|
459
|
-
label: "Date",
|
|
460
|
-
prop: "label"
|
|
461
|
-
}, {
|
|
462
|
-
default: withCtx((scope) => [
|
|
463
|
-
createElementVNode("span", {
|
|
464
|
-
title: scope.row.label
|
|
465
|
-
}, toDisplayString(scope.row.label), 9, _hoisted_7)
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
})
|
|
469
|
-
]),
|
|
470
|
-
_: 1
|
|
471
|
-
}, 8, ["height", "data"]),
|
|
472
|
-
createElementVNode("div", _hoisted_8, "总计:" + toDisplayString(filterTableData.value.length), 1)
|
|
473
|
-
]),
|
|
474
|
-
_: 1
|
|
475
|
-
}))
|
|
476
|
-
]),
|
|
477
|
-
_: 1
|
|
478
|
-
})
|
|
479
|
-
]),
|
|
480
|
-
_: 1
|
|
481
|
-
}, 512));
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
export {
|
|
486
|
-
_sfc_main as default
|
|
487
|
-
};
|
|
1
|
+
|