@jeecg/online 1.0.1
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/AuthButtonConfig.js +140 -0
- package/AuthButtonTree.js +183 -0
- package/AuthDataConfig.js +243 -0
- package/AuthDataTree.js +160 -0
- package/AuthFieldConfig.js +167 -0
- package/AuthFieldTree.js +273 -0
- package/AuthManagerDrawer.js +125 -0
- package/AuthSetterModal.js +317 -0
- package/CgformCopyList.js +253 -0
- package/CgformModal.js +748 -0
- package/CgreportModal.js +673 -0
- package/ChartAutoRender.js +69 -0
- package/ChartDoubleRender.js +154 -0
- package/ChartSingleRender.js +132 -0
- package/ChartTabsRender.js +218 -0
- package/CheckDictTable.js +121 -0
- package/CodeGeneratorModal.js +293 -0
- package/CustomButtonList.js +413 -0
- package/DBAttributeTable.js +278 -0
- package/DbToOnlineModal.js +190 -0
- package/EnhanceJavaModal.js +304 -0
- package/EnhanceJsHistory.js +231 -0
- package/EnhanceJsModal.js +293 -0
- package/EnhanceSqlModal.js +305 -0
- package/ErrorTip.js +21 -0
- package/ExtendConfigModal.js +142 -0
- package/FieldTable.js +185 -0
- package/FileSelectModal.js +102 -0
- package/ForeignKeyTable.js +78 -0
- package/FormSchemaFactory.js +938 -0
- package/GraphreportAutoChart.js +352 -0
- package/GraphreportList.js +239 -0
- package/GraphreportModal.js +559 -0
- package/IndexTable.js +96 -0
- package/JOnlineSearchSelect.js +107 -0
- package/LICENSE +7 -0
- package/LeftDepart.js +96 -0
- package/LeftRole.js +95 -0
- package/LeftUser.js +114 -0
- package/ModalFormDemo.js +84 -0
- package/OnlineAutoList.js +410 -0
- package/OnlineAutoModal.js +265 -0
- package/OnlineAutoTreeList.js +513 -0
- package/OnlineCustomModal.js +269 -0
- package/OnlineForm.js +809 -0
- package/OnlineQueryForm.js +442 -0
- package/OnlineSearchFormItem.js +428 -0
- package/OnlineSelectCascade.js +217 -0
- package/OnlineSubForm.js +200 -0
- package/OnlineSuperQuery.js +912 -0
- package/OnlineSuperQueryValComponent.js +8 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
- package/PageAttributeTable.js +242 -0
- package/ParamsTable.js +71 -0
- package/ProcessOnlineForm.js +183 -0
- package/QueryTable.js +128 -0
- package/README.md +23 -0
- package/_arrayPush.js +276 -0
- package/auth.api.js +43 -0
- package/auth.data.js +144 -0
- package/cgform.data.js +235 -0
- package/cloneDeep.js +475 -0
- package/enhance.api.js +120 -0
- package/enhance.data.js +196 -0
- package/graphreport.api.js +23 -0
- package/index.js +64 -0
- package/index2.js +336 -0
- package/index3.js +799 -0
- package/isArray.js +47 -0
- package/main.index.js +6 -0
- package/package.json +6 -0
- package/pick.js +238 -0
- package/style.css +1 -0
- package/toString.js +31 -0
- package/useAutoForm.js +4274 -0
- package/useCgformList.js +353 -0
- package/useChartRender.js +405 -0
- package/useMessageOnline.js +71 -0
- package/useOnlineTest.js +26866 -0
- package/useSchemas.js +505 -0
- package/useTableColumns.js +1154 -0
- package/useTableSync.js +105 -0
|
@@ -0,0 +1,912 @@
|
|
|
1
|
+
import { ref, reactive, toRaw, watch, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, withCtx, createVNode, Teleport, createCommentVNode, normalizeClass, withDirectives, vShow, renderList, toDisplayString, pushScopeId, popScopeId, createTextVNode } from "vue";
|
|
2
|
+
import { useModalInner, BasicModal, useModal } from "/@/components/Modal";
|
|
3
|
+
import { randomString } from "/@/utils/common/compUtils";
|
|
4
|
+
import { useMessage } from "/@/hooks/web/useMessage";
|
|
5
|
+
import { Modal, Divider } from "ant-design-vue";
|
|
6
|
+
import { createLocalStorage } from "/@/utils/cache";
|
|
7
|
+
import { useRoute } from "vue-router";
|
|
8
|
+
import { b as FORM_VIEW_TO_QUERY_VIEW, F as FormSchemaFactory } from "./FormSchemaFactory.js";
|
|
9
|
+
import { _ as _sfc_main$1 } from "./OnlineSuperQueryValComponent.vue_vue_type_script_lang.js";
|
|
10
|
+
import { MinusCircleOutlined, PlusOutlined, FileTextOutlined, CloseCircleOutlined, AppstoreTwoTone } from "@ant-design/icons-vue";
|
|
11
|
+
import { _ as _export_sfc } from "./index.js";
|
|
12
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
13
|
+
import "/@/components/Form/src/componentMap";
|
|
14
|
+
import "/@/components/Form/src/helper";
|
|
15
|
+
import "/@/utils/is";
|
|
16
|
+
import "./toString.js";
|
|
17
|
+
import "./isArray.js";
|
|
18
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
19
|
+
const SAVE_CODE_PRE = "JSuperQuerySaved_";
|
|
20
|
+
function useSuperQuery() {
|
|
21
|
+
const { createMessage: $message } = useMessage();
|
|
22
|
+
const formRef = ref();
|
|
23
|
+
const dynamicRowValues = reactive({
|
|
24
|
+
values: []
|
|
25
|
+
});
|
|
26
|
+
const matchType = ref("and");
|
|
27
|
+
const [registerModal, { setModalProps }] = useModalInner(() => {
|
|
28
|
+
setModalProps({ confirmLoading: false });
|
|
29
|
+
});
|
|
30
|
+
const view2QueryViewMap = Object.assign({}, { "link_down": "text" }, FORM_VIEW_TO_QUERY_VIEW);
|
|
31
|
+
function handleSubmit() {
|
|
32
|
+
console.log("handleSubmit", dynamicRowValues.values);
|
|
33
|
+
}
|
|
34
|
+
function handleCancel() {
|
|
35
|
+
}
|
|
36
|
+
function setFormModel(key, value, item) {
|
|
37
|
+
console.log("setFormModel", key, value);
|
|
38
|
+
item["val"] = value;
|
|
39
|
+
}
|
|
40
|
+
const fieldProperties = ref({});
|
|
41
|
+
const fieldTreeData = ref([]);
|
|
42
|
+
function init(json) {
|
|
43
|
+
let { allFields, treeData } = getAllFields(json);
|
|
44
|
+
fieldProperties.value = allFields;
|
|
45
|
+
fieldTreeData.value = treeData;
|
|
46
|
+
}
|
|
47
|
+
function addOne(index) {
|
|
48
|
+
let item = {
|
|
49
|
+
field: void 0,
|
|
50
|
+
rule: "eq",
|
|
51
|
+
val: "",
|
|
52
|
+
key: randomString(16)
|
|
53
|
+
};
|
|
54
|
+
if (index === false) {
|
|
55
|
+
dynamicRowValues.values = [];
|
|
56
|
+
dynamicRowValues.values.push(item);
|
|
57
|
+
} else if (index === true) {
|
|
58
|
+
if (dynamicRowValues.values.length == 0) {
|
|
59
|
+
dynamicRowValues.values.push(item);
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
62
|
+
dynamicRowValues.values.splice(++index, 0, item);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function removeOne(item) {
|
|
66
|
+
let arr = toRaw(dynamicRowValues.values);
|
|
67
|
+
let index = -1;
|
|
68
|
+
for (let i = 0; i < arr.length; i++) {
|
|
69
|
+
if (item.key == arr[i].key) {
|
|
70
|
+
index = i;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (index != -1) {
|
|
75
|
+
dynamicRowValues.values.splice(index, 1);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const defaultInput = {
|
|
79
|
+
field: "val",
|
|
80
|
+
label: "\u6D4B\u8BD5",
|
|
81
|
+
component: "Input"
|
|
82
|
+
};
|
|
83
|
+
function getSchema(item, index) {
|
|
84
|
+
let map = fieldProperties.value;
|
|
85
|
+
let prop = map[item.field];
|
|
86
|
+
if (!prop) {
|
|
87
|
+
return defaultInput;
|
|
88
|
+
}
|
|
89
|
+
if (view2QueryViewMap[prop.view]) {
|
|
90
|
+
prop.view = view2QueryViewMap[prop.view];
|
|
91
|
+
}
|
|
92
|
+
let temp = FormSchemaFactory.createFormSchema(item.field, prop);
|
|
93
|
+
temp.noChange();
|
|
94
|
+
temp.asSearchForm();
|
|
95
|
+
temp.updateField(item.field + index);
|
|
96
|
+
const setFieldValue = (values) => {
|
|
97
|
+
item["val"] = values[item.field];
|
|
98
|
+
};
|
|
99
|
+
temp.setFunctionForFieldValue(setFieldValue);
|
|
100
|
+
let schema = temp.getFormItemSchema();
|
|
101
|
+
return schema;
|
|
102
|
+
}
|
|
103
|
+
const saveTreeData = ref("");
|
|
104
|
+
const $ls = createLocalStorage();
|
|
105
|
+
const saveInfo = reactive({
|
|
106
|
+
visible: false,
|
|
107
|
+
title: "",
|
|
108
|
+
content: "",
|
|
109
|
+
saveCode: ""
|
|
110
|
+
});
|
|
111
|
+
const loading = ref(false);
|
|
112
|
+
const route = useRoute();
|
|
113
|
+
watch(() => route.fullPath, (val) => {
|
|
114
|
+
console.log("fullpath", val);
|
|
115
|
+
initSaveQueryInfoCode();
|
|
116
|
+
});
|
|
117
|
+
const currentPageSavedArray = ref([]);
|
|
118
|
+
watch(() => currentPageSavedArray.value, (val) => {
|
|
119
|
+
let temp = [];
|
|
120
|
+
if (val && val.length > 0) {
|
|
121
|
+
val.map((item) => {
|
|
122
|
+
let key = randomString(16);
|
|
123
|
+
temp.push({
|
|
124
|
+
title: item.title,
|
|
125
|
+
slots: { icon: "custom" },
|
|
126
|
+
value: key
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
saveTreeData.value = temp;
|
|
131
|
+
}, { immediate: true, deep: true });
|
|
132
|
+
function initSaveQueryInfoCode() {
|
|
133
|
+
let code = SAVE_CODE_PRE + route.fullPath;
|
|
134
|
+
saveInfo.saveCode = code;
|
|
135
|
+
let list = $ls.get(code);
|
|
136
|
+
if (list && list instanceof Array) {
|
|
137
|
+
currentPageSavedArray.value = list;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
initSaveQueryInfoCode();
|
|
141
|
+
function handleSave() {
|
|
142
|
+
let fieldArray = getQueryInfo();
|
|
143
|
+
if (!fieldArray) {
|
|
144
|
+
$message.warning("\u7A7A\u6761\u4EF6\u4E0D\u80FD\u4FDD\u5B58");
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
let content = JSON.stringify(fieldArray);
|
|
148
|
+
openSaveInfoModal(content);
|
|
149
|
+
}
|
|
150
|
+
function openSaveInfoModal(content) {
|
|
151
|
+
saveInfo.visible = true;
|
|
152
|
+
saveInfo.title = "";
|
|
153
|
+
saveInfo.content = content;
|
|
154
|
+
}
|
|
155
|
+
function doSaveQueryInfo() {
|
|
156
|
+
let { title, content, saveCode } = saveInfo;
|
|
157
|
+
let index = getTitleIndex(title);
|
|
158
|
+
if (index >= 0) {
|
|
159
|
+
Modal.confirm({
|
|
160
|
+
title: "\u63D0\u793A",
|
|
161
|
+
content: `${title} \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u8986\u76D6\uFF1F`,
|
|
162
|
+
okText: "\u786E\u8BA4",
|
|
163
|
+
cancelText: "\u53D6\u6D88",
|
|
164
|
+
onOk: () => {
|
|
165
|
+
currentPageSavedArray.value.splice(index, 1, {
|
|
166
|
+
content,
|
|
167
|
+
title,
|
|
168
|
+
type: matchType.value
|
|
169
|
+
});
|
|
170
|
+
$ls.set(saveCode, currentPageSavedArray.value);
|
|
171
|
+
saveInfo.visible = false;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
} else {
|
|
175
|
+
currentPageSavedArray.value.push({
|
|
176
|
+
content,
|
|
177
|
+
title,
|
|
178
|
+
type: matchType.value
|
|
179
|
+
});
|
|
180
|
+
$ls.set(saveCode, currentPageSavedArray.value);
|
|
181
|
+
saveInfo.visible = false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function getTitleIndex(title) {
|
|
185
|
+
let savedArray = currentPageSavedArray.value;
|
|
186
|
+
let index = -1;
|
|
187
|
+
for (let i = 0; i < savedArray.length; i++) {
|
|
188
|
+
if (savedArray[i].title == title) {
|
|
189
|
+
index = i;
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return index;
|
|
194
|
+
}
|
|
195
|
+
function getQueryInfo(isEmit = false) {
|
|
196
|
+
let arr = dynamicRowValues.values;
|
|
197
|
+
if (!arr || arr.length == 0) {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
let fieldArray = [];
|
|
201
|
+
let fieldProps = fieldProperties.value;
|
|
202
|
+
for (let item of arr) {
|
|
203
|
+
if (item.field && (item.val || item.val === 0) && item.rule) {
|
|
204
|
+
let tempVal = toRaw(item.val);
|
|
205
|
+
if (tempVal instanceof Array) {
|
|
206
|
+
tempVal = tempVal.join(",");
|
|
207
|
+
}
|
|
208
|
+
let obj = {
|
|
209
|
+
field: item.field,
|
|
210
|
+
rule: item.rule,
|
|
211
|
+
val: tempVal
|
|
212
|
+
};
|
|
213
|
+
if (isEmit === true) {
|
|
214
|
+
let prop = fieldProps[item.field];
|
|
215
|
+
if (prop) {
|
|
216
|
+
obj["type"] = prop.view;
|
|
217
|
+
obj["dbType"] = prop.type;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
fieldArray.push(obj);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (fieldArray.length == 0) {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
return fieldArray;
|
|
227
|
+
}
|
|
228
|
+
function handleTreeSelect(key, { node }) {
|
|
229
|
+
console.log(key, node);
|
|
230
|
+
let title = node.dataRef.title;
|
|
231
|
+
let arr = currentPageSavedArray.value.filter((item) => item.title == title);
|
|
232
|
+
if (arr && arr.length > 0) {
|
|
233
|
+
let { content, type } = arr[0];
|
|
234
|
+
let data = JSON.parse(content);
|
|
235
|
+
let rowsValues = [];
|
|
236
|
+
for (let item of data) {
|
|
237
|
+
rowsValues.push(Object.assign({}, { key: randomString(16) }, item));
|
|
238
|
+
}
|
|
239
|
+
dynamicRowValues.values = rowsValues;
|
|
240
|
+
matchType.value = type;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function handleRemoveSaveInfo(title) {
|
|
244
|
+
console.log(title);
|
|
245
|
+
let index = getTitleIndex(title);
|
|
246
|
+
if (index >= 0) {
|
|
247
|
+
currentPageSavedArray.value.splice(index, 1);
|
|
248
|
+
$ls.set(saveInfo.saveCode, currentPageSavedArray.value);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function getAllFields(json) {
|
|
252
|
+
const { properties, table, title } = json;
|
|
253
|
+
let allFields = {};
|
|
254
|
+
let order = 1;
|
|
255
|
+
let treeData = [];
|
|
256
|
+
let mainNode = {
|
|
257
|
+
title,
|
|
258
|
+
value: table,
|
|
259
|
+
disabled: true,
|
|
260
|
+
children: []
|
|
261
|
+
};
|
|
262
|
+
treeData.push(mainNode);
|
|
263
|
+
Object.keys(properties).map((field) => {
|
|
264
|
+
let item = properties[field];
|
|
265
|
+
if (item.view == "table") {
|
|
266
|
+
let subProps = item["properties"];
|
|
267
|
+
let subTableOrder = order * 100;
|
|
268
|
+
let subNode = {
|
|
269
|
+
title: item.title,
|
|
270
|
+
value: field,
|
|
271
|
+
disabled: true,
|
|
272
|
+
children: []
|
|
273
|
+
};
|
|
274
|
+
Object.keys(subProps).map((subField) => {
|
|
275
|
+
let subItem = subProps[subField];
|
|
276
|
+
subItem["order"] = subTableOrder + subItem["order"];
|
|
277
|
+
let subFieldKey = field + "@" + subField;
|
|
278
|
+
allFields[subFieldKey] = subItem;
|
|
279
|
+
subNode.children.push({
|
|
280
|
+
title: subItem.title,
|
|
281
|
+
value: subFieldKey,
|
|
282
|
+
isLeaf: true,
|
|
283
|
+
order: subItem["order"]
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
orderField(subNode);
|
|
287
|
+
treeData.push(subNode);
|
|
288
|
+
order++;
|
|
289
|
+
} else {
|
|
290
|
+
let fieldKey = table + "@" + field;
|
|
291
|
+
allFields[fieldKey] = item;
|
|
292
|
+
mainNode.children.push({
|
|
293
|
+
title: item.title,
|
|
294
|
+
value: fieldKey,
|
|
295
|
+
isLeaf: true,
|
|
296
|
+
order: item.order
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
orderField(mainNode);
|
|
301
|
+
return { allFields, treeData };
|
|
302
|
+
}
|
|
303
|
+
function orderField(data) {
|
|
304
|
+
let arr = data.children;
|
|
305
|
+
arr.sort(function(a, b) {
|
|
306
|
+
return a.order - b.order;
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function initDefaultValues(values) {
|
|
310
|
+
const { params, matchType: matchType2 } = values;
|
|
311
|
+
if (params) {
|
|
312
|
+
let rowsValues = [];
|
|
313
|
+
for (let item of params) {
|
|
314
|
+
rowsValues.push(Object.assign({}, { key: randomString(16) }, item));
|
|
315
|
+
}
|
|
316
|
+
dynamicRowValues.values = rowsValues;
|
|
317
|
+
matchType2.value = matchType2;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return {
|
|
321
|
+
formRef,
|
|
322
|
+
init,
|
|
323
|
+
dynamicRowValues,
|
|
324
|
+
matchType,
|
|
325
|
+
registerModal,
|
|
326
|
+
handleSubmit,
|
|
327
|
+
handleCancel,
|
|
328
|
+
handleSave,
|
|
329
|
+
doSaveQueryInfo,
|
|
330
|
+
saveInfo,
|
|
331
|
+
saveTreeData,
|
|
332
|
+
handleRemoveSaveInfo,
|
|
333
|
+
handleTreeSelect,
|
|
334
|
+
fieldTreeData,
|
|
335
|
+
addOne,
|
|
336
|
+
removeOne,
|
|
337
|
+
setFormModel,
|
|
338
|
+
getSchema,
|
|
339
|
+
loading,
|
|
340
|
+
getQueryInfo,
|
|
341
|
+
initDefaultValues
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
var OnlineSuperQuery_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
345
|
+
const _sfc_main = {
|
|
346
|
+
name: "OnlineSuperQuery",
|
|
347
|
+
props: {
|
|
348
|
+
config: {
|
|
349
|
+
type: Object,
|
|
350
|
+
default: []
|
|
351
|
+
},
|
|
352
|
+
status: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
default: false
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
components: {
|
|
358
|
+
BasicModal,
|
|
359
|
+
MinusCircleOutlined,
|
|
360
|
+
PlusOutlined,
|
|
361
|
+
OnlineSuperQueryValComponent: _sfc_main$1,
|
|
362
|
+
FileTextOutlined,
|
|
363
|
+
CloseCircleOutlined,
|
|
364
|
+
AppstoreTwoTone,
|
|
365
|
+
Divider
|
|
366
|
+
},
|
|
367
|
+
emits: ["search"],
|
|
368
|
+
setup(props, { emit }) {
|
|
369
|
+
const [registerFormModal, formModal] = useModal();
|
|
370
|
+
const { createMessage: $message } = useMessage();
|
|
371
|
+
function handleCancel() {
|
|
372
|
+
formModal.closeModal();
|
|
373
|
+
}
|
|
374
|
+
function handleSubmit() {
|
|
375
|
+
console.log("handleSubmit", dynamicRowValues.values);
|
|
376
|
+
let dataArray = getQueryInfo(true);
|
|
377
|
+
if (dataArray && dataArray.length > 0) {
|
|
378
|
+
emit("search", dataArray, matchType.value);
|
|
379
|
+
} else {
|
|
380
|
+
$message.warning("\u7A7A\u6761\u4EF6\u65E0\u6CD5\u67E5\u8BE2\uFF01");
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function handleReset() {
|
|
384
|
+
dynamicRowValues.values = [];
|
|
385
|
+
addOne(false);
|
|
386
|
+
emit("search", [], matchType.value);
|
|
387
|
+
}
|
|
388
|
+
const {
|
|
389
|
+
formRef,
|
|
390
|
+
init,
|
|
391
|
+
dynamicRowValues,
|
|
392
|
+
matchType,
|
|
393
|
+
registerModal,
|
|
394
|
+
handleSave,
|
|
395
|
+
doSaveQueryInfo,
|
|
396
|
+
saveInfo,
|
|
397
|
+
saveTreeData,
|
|
398
|
+
handleTreeSelect,
|
|
399
|
+
handleRemoveSaveInfo,
|
|
400
|
+
fieldTreeData,
|
|
401
|
+
addOne,
|
|
402
|
+
removeOne,
|
|
403
|
+
setFormModel,
|
|
404
|
+
getSchema,
|
|
405
|
+
loading,
|
|
406
|
+
getQueryInfo,
|
|
407
|
+
initDefaultValues
|
|
408
|
+
} = useSuperQuery();
|
|
409
|
+
const superQueryFlag = ref(false);
|
|
410
|
+
watch(() => props.status, (val) => {
|
|
411
|
+
superQueryFlag.value = val;
|
|
412
|
+
}, { immediate: true });
|
|
413
|
+
function handleOpen() {
|
|
414
|
+
formModal.openModal();
|
|
415
|
+
addOne(true);
|
|
416
|
+
}
|
|
417
|
+
function getPopupContainer() {
|
|
418
|
+
return document.getElementsByClassName("jee-super-query-form")[0];
|
|
419
|
+
}
|
|
420
|
+
function onFinish(a) {
|
|
421
|
+
console.log("onfinish", a);
|
|
422
|
+
}
|
|
423
|
+
function handleChangeField(item) {
|
|
424
|
+
item["val"] = "";
|
|
425
|
+
}
|
|
426
|
+
return {
|
|
427
|
+
formRef,
|
|
428
|
+
registerFormModal,
|
|
429
|
+
init,
|
|
430
|
+
handleChangeField,
|
|
431
|
+
dynamicRowValues,
|
|
432
|
+
matchType,
|
|
433
|
+
registerModal,
|
|
434
|
+
handleSubmit,
|
|
435
|
+
handleCancel,
|
|
436
|
+
handleSave,
|
|
437
|
+
handleReset,
|
|
438
|
+
doSaveQueryInfo,
|
|
439
|
+
saveInfo,
|
|
440
|
+
saveTreeData,
|
|
441
|
+
handleTreeSelect,
|
|
442
|
+
handleRemoveSaveInfo,
|
|
443
|
+
fieldTreeData,
|
|
444
|
+
addOne,
|
|
445
|
+
removeOne,
|
|
446
|
+
setFormModel,
|
|
447
|
+
getSchema,
|
|
448
|
+
loading,
|
|
449
|
+
onFinish,
|
|
450
|
+
getPopupContainer,
|
|
451
|
+
superQueryFlag,
|
|
452
|
+
handleOpen,
|
|
453
|
+
initDefaultValues
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
const _withScopeId = (n) => (pushScopeId("data-v-08fc9755"), n = n(), popScopeId(), n);
|
|
458
|
+
const _hoisted_1 = { class: "j-super-query-button" };
|
|
459
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "\u5DF2\u6709\u9AD8\u7EA7\u67E5\u8BE2\u6761\u4EF6\u751F\u6548", -1));
|
|
460
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "\u9AD8\u7EA7\u67E5\u8BE2", -1));
|
|
461
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" \u9AD8\u7EA7\u67E5\u8BE2 ");
|
|
462
|
+
const _hoisted_5 = { style: { "float": "left" } };
|
|
463
|
+
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
|
|
464
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58\u67E5\u8BE2\u6761\u4EF6");
|
|
465
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
466
|
+
const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
467
|
+
const _hoisted_10 = { slot: "description" };
|
|
468
|
+
const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "\u6CA1\u6709\u4EFB\u4F55\u67E5\u8BE2\u6761\u4EF6", -1));
|
|
469
|
+
const _hoisted_12 = /* @__PURE__ */ createTextVNode("AND\uFF08\u6240\u6709\u6761\u4EF6\u90FD\u8981\u6C42\u5339\u914D\uFF09");
|
|
470
|
+
const _hoisted_13 = /* @__PURE__ */ createTextVNode("OR\uFF08\u6761\u4EF6\u4E2D\u7684\u4EFB\u610F\u4E00\u4E2A\u5339\u914D\uFF09");
|
|
471
|
+
const _hoisted_14 = /* @__PURE__ */ createTextVNode("\u7B49\u4E8E");
|
|
472
|
+
const _hoisted_15 = /* @__PURE__ */ createTextVNode("\u6A21\u7CCA");
|
|
473
|
+
const _hoisted_16 = /* @__PURE__ */ createTextVNode("\u4EE5..\u5F00\u59CB");
|
|
474
|
+
const _hoisted_17 = /* @__PURE__ */ createTextVNode("\u4EE5..\u7ED3\u5C3E");
|
|
475
|
+
const _hoisted_18 = /* @__PURE__ */ createTextVNode("\u5728...\u4E2D");
|
|
476
|
+
const _hoisted_19 = /* @__PURE__ */ createTextVNode("\u4E0D\u7B49\u4E8E");
|
|
477
|
+
const _hoisted_20 = /* @__PURE__ */ createTextVNode("\u5927\u4E8E");
|
|
478
|
+
const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u5927\u4E8E\u7B49\u4E8E");
|
|
479
|
+
const _hoisted_22 = /* @__PURE__ */ createTextVNode("\u5C0F\u4E8E");
|
|
480
|
+
const _hoisted_23 = /* @__PURE__ */ createTextVNode("\u5C0F\u4E8E\u7B49\u4E8E");
|
|
481
|
+
const _hoisted_24 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "\u4FDD\u5B58\u7684\u67E5\u8BE2", -1));
|
|
482
|
+
const _hoisted_25 = ["title"];
|
|
483
|
+
const _hoisted_26 = { class: "icon-cancle" };
|
|
484
|
+
const _hoisted_27 = { style: { "height": "80px", "line-height": "75px", "width": "100%", "text-align": "center" } };
|
|
485
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
486
|
+
const _component_divider = resolveComponent("divider");
|
|
487
|
+
const _component_AppstoreTwoTone = resolveComponent("AppstoreTwoTone");
|
|
488
|
+
const _component_a_button = resolveComponent("a-button");
|
|
489
|
+
const _component_a_button_group = resolveComponent("a-button-group");
|
|
490
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
491
|
+
const _component_a_divider = resolveComponent("a-divider");
|
|
492
|
+
const _component_a_empty = resolveComponent("a-empty");
|
|
493
|
+
const _component_a_select_option = resolveComponent("a-select-option");
|
|
494
|
+
const _component_a_select = resolveComponent("a-select");
|
|
495
|
+
const _component_a_form_item = resolveComponent("a-form-item");
|
|
496
|
+
const _component_a_col = resolveComponent("a-col");
|
|
497
|
+
const _component_a_row = resolveComponent("a-row");
|
|
498
|
+
const _component_a_tree_select = resolveComponent("a-tree-select");
|
|
499
|
+
const _component_online_super_query_val_component = resolveComponent("online-super-query-val-component");
|
|
500
|
+
const _component_PlusOutlined = resolveComponent("PlusOutlined");
|
|
501
|
+
const _component_MinusCircleOutlined = resolveComponent("MinusCircleOutlined");
|
|
502
|
+
const _component_a_space = resolveComponent("a-space");
|
|
503
|
+
const _component_a_form = resolveComponent("a-form");
|
|
504
|
+
const _component_close_circle_outlined = resolveComponent("close-circle-outlined");
|
|
505
|
+
const _component_file_text_outlined = resolveComponent("file-text-outlined");
|
|
506
|
+
const _component_a_tree = resolveComponent("a-tree");
|
|
507
|
+
const _component_a_card = resolveComponent("a-card");
|
|
508
|
+
const _component_BasicModal = resolveComponent("BasicModal");
|
|
509
|
+
const _component_a_input = resolveComponent("a-input");
|
|
510
|
+
const _component_a_modal = resolveComponent("a-modal");
|
|
511
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
512
|
+
createElementVNode("div", _hoisted_1, [
|
|
513
|
+
$setup.superQueryFlag ? (openBlock(), createBlock(_component_a_tooltip, {
|
|
514
|
+
key: 0,
|
|
515
|
+
mouseLeaveDelay: 0.2
|
|
516
|
+
}, {
|
|
517
|
+
title: withCtx(() => [
|
|
518
|
+
_hoisted_2,
|
|
519
|
+
createVNode(_component_divider, {
|
|
520
|
+
type: "vertical",
|
|
521
|
+
style: { "background-color": "#fff" }
|
|
522
|
+
}),
|
|
523
|
+
createElementVNode("a", {
|
|
524
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $setup.handleReset && $setup.handleReset(...args))
|
|
525
|
+
}, "\u6E05\u7A7A")
|
|
526
|
+
]),
|
|
527
|
+
default: withCtx(() => [
|
|
528
|
+
createVNode(_component_a_button_group, null, {
|
|
529
|
+
default: withCtx(() => [
|
|
530
|
+
createVNode(_component_a_button, {
|
|
531
|
+
type: "primary",
|
|
532
|
+
onClick: $setup.handleOpen
|
|
533
|
+
}, {
|
|
534
|
+
default: withCtx(() => [
|
|
535
|
+
createVNode(_component_AppstoreTwoTone, { spin: true }),
|
|
536
|
+
_hoisted_3
|
|
537
|
+
]),
|
|
538
|
+
_: 1
|
|
539
|
+
}, 8, ["onClick"])
|
|
540
|
+
]),
|
|
541
|
+
_: 1
|
|
542
|
+
})
|
|
543
|
+
]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 8, ["mouseLeaveDelay"])) : (openBlock(), createBlock(_component_a_button, {
|
|
546
|
+
key: 1,
|
|
547
|
+
type: "primary",
|
|
548
|
+
preIcon: "ant-design:filter-outlined",
|
|
549
|
+
onClick: $setup.handleOpen
|
|
550
|
+
}, {
|
|
551
|
+
default: withCtx(() => [
|
|
552
|
+
_hoisted_4
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
}, 8, ["onClick"]))
|
|
556
|
+
]),
|
|
557
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
558
|
+
createVNode(_component_BasicModal, {
|
|
559
|
+
title: "\u9AD8\u7EA7\u67E5\u8BE2\u6784\u9020\u5668",
|
|
560
|
+
canFullscreen: false,
|
|
561
|
+
width: 1050,
|
|
562
|
+
onRegister: $setup.registerFormModal,
|
|
563
|
+
onOk: $setup.handleSubmit
|
|
564
|
+
}, {
|
|
565
|
+
footer: withCtx(() => [
|
|
566
|
+
createElementVNode("div", _hoisted_5, [
|
|
567
|
+
createVNode(_component_a_button, {
|
|
568
|
+
loading: $setup.loading,
|
|
569
|
+
onClick: $setup.handleReset
|
|
570
|
+
}, {
|
|
571
|
+
default: withCtx(() => [
|
|
572
|
+
_hoisted_6
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
}, 8, ["loading", "onClick"]),
|
|
576
|
+
createVNode(_component_a_button, {
|
|
577
|
+
loading: $setup.loading,
|
|
578
|
+
onClick: $setup.handleSave
|
|
579
|
+
}, {
|
|
580
|
+
default: withCtx(() => [
|
|
581
|
+
_hoisted_7
|
|
582
|
+
]),
|
|
583
|
+
_: 1
|
|
584
|
+
}, 8, ["loading", "onClick"])
|
|
585
|
+
]),
|
|
586
|
+
createVNode(_component_a_button, {
|
|
587
|
+
key: "submit",
|
|
588
|
+
type: "primary",
|
|
589
|
+
onClick: $setup.handleSubmit
|
|
590
|
+
}, {
|
|
591
|
+
default: withCtx(() => [
|
|
592
|
+
_hoisted_8
|
|
593
|
+
]),
|
|
594
|
+
_: 1
|
|
595
|
+
}, 8, ["onClick"]),
|
|
596
|
+
createVNode(_component_a_button, {
|
|
597
|
+
key: "back",
|
|
598
|
+
onClick: $setup.handleCancel
|
|
599
|
+
}, {
|
|
600
|
+
default: withCtx(() => [
|
|
601
|
+
_hoisted_9
|
|
602
|
+
]),
|
|
603
|
+
_: 1
|
|
604
|
+
}, 8, ["onClick"])
|
|
605
|
+
]),
|
|
606
|
+
default: withCtx(() => [
|
|
607
|
+
$setup.dynamicRowValues.values.length == 0 ? (openBlock(), createBlock(_component_a_empty, { key: 0 }, {
|
|
608
|
+
default: withCtx(() => [
|
|
609
|
+
createElementVNode("div", _hoisted_10, [
|
|
610
|
+
_hoisted_11,
|
|
611
|
+
createVNode(_component_a_divider, { type: "vertical" }),
|
|
612
|
+
createElementVNode("a", {
|
|
613
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $setup.addOne(-1))
|
|
614
|
+
}, "\u70B9\u51FB\u65B0\u589E")
|
|
615
|
+
])
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
})) : createCommentVNode("", true),
|
|
619
|
+
createVNode(_component_a_row, {
|
|
620
|
+
class: normalizeClass("j-super-query-modal-content")
|
|
621
|
+
}, {
|
|
622
|
+
default: withCtx(() => [
|
|
623
|
+
createVNode(_component_a_col, {
|
|
624
|
+
sm: 24,
|
|
625
|
+
md: 18
|
|
626
|
+
}, {
|
|
627
|
+
default: withCtx(() => [
|
|
628
|
+
withDirectives(createVNode(_component_a_row, null, {
|
|
629
|
+
default: withCtx(() => [
|
|
630
|
+
createVNode(_component_a_col, {
|
|
631
|
+
md: 12,
|
|
632
|
+
xs: 24
|
|
633
|
+
}, {
|
|
634
|
+
default: withCtx(() => [
|
|
635
|
+
createVNode(_component_a_form_item, {
|
|
636
|
+
label: "\u8FC7\u6EE4\u6761\u4EF6\u5339\u914D",
|
|
637
|
+
labelCol: { md: 6, xs: 24 },
|
|
638
|
+
wrapperCol: { md: 18, xs: 24 },
|
|
639
|
+
style: { "width": "100%" }
|
|
640
|
+
}, {
|
|
641
|
+
default: withCtx(() => [
|
|
642
|
+
createVNode(_component_a_select, {
|
|
643
|
+
value: $setup.matchType,
|
|
644
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => $setup.matchType = $event),
|
|
645
|
+
getPopupContainer: (node) => node.parentNode,
|
|
646
|
+
style: { "width": "100%" }
|
|
647
|
+
}, {
|
|
648
|
+
default: withCtx(() => [
|
|
649
|
+
createVNode(_component_a_select_option, { value: "and" }, {
|
|
650
|
+
default: withCtx(() => [
|
|
651
|
+
_hoisted_12
|
|
652
|
+
]),
|
|
653
|
+
_: 1
|
|
654
|
+
}),
|
|
655
|
+
createVNode(_component_a_select_option, { value: "or" }, {
|
|
656
|
+
default: withCtx(() => [
|
|
657
|
+
_hoisted_13
|
|
658
|
+
]),
|
|
659
|
+
_: 1
|
|
660
|
+
})
|
|
661
|
+
]),
|
|
662
|
+
_: 1
|
|
663
|
+
}, 8, ["value", "getPopupContainer"])
|
|
664
|
+
]),
|
|
665
|
+
_: 1
|
|
666
|
+
})
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
})
|
|
670
|
+
]),
|
|
671
|
+
_: 1
|
|
672
|
+
}, 512), [
|
|
673
|
+
[vShow, $setup.dynamicRowValues.values.length > 0]
|
|
674
|
+
]),
|
|
675
|
+
withDirectives(createVNode(_component_a_form, {
|
|
676
|
+
ref: "formRef",
|
|
677
|
+
class: normalizeClass("jee-super-query-form"),
|
|
678
|
+
model: $setup.dynamicRowValues,
|
|
679
|
+
onFinish: $setup.onFinish
|
|
680
|
+
}, {
|
|
681
|
+
default: withCtx(() => [
|
|
682
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.dynamicRowValues.values, (item, index) => {
|
|
683
|
+
return openBlock(), createBlock(_component_a_space, {
|
|
684
|
+
key: item.key,
|
|
685
|
+
style: { "display": "flex", "margin-bottom": "8px" },
|
|
686
|
+
align: "baseline"
|
|
687
|
+
}, {
|
|
688
|
+
default: withCtx(() => [
|
|
689
|
+
createVNode(_component_a_form_item, {
|
|
690
|
+
name: ["values", index, "field"],
|
|
691
|
+
style: { "width": "180px" }
|
|
692
|
+
}, {
|
|
693
|
+
default: withCtx(() => [
|
|
694
|
+
createVNode(_component_a_tree_select, {
|
|
695
|
+
style: { "width": "100%" },
|
|
696
|
+
placeholder: "\u8BF7\u9009\u62E9\u5B57\u6BB5",
|
|
697
|
+
value: item.field,
|
|
698
|
+
"onUpdate:value": ($event) => item.field = $event,
|
|
699
|
+
"show-search": "",
|
|
700
|
+
"tree-node-filter-prop": "title",
|
|
701
|
+
"allow-clear": "",
|
|
702
|
+
"tree-default-expand-all": "",
|
|
703
|
+
"dropdown-style": { maxHeight: "180px", overflow: "auto" },
|
|
704
|
+
onChange: ($event) => $setup.handleChangeField(item),
|
|
705
|
+
"tree-data": $setup.fieldTreeData
|
|
706
|
+
}, null, 8, ["value", "onUpdate:value", "onChange", "tree-data"])
|
|
707
|
+
]),
|
|
708
|
+
_: 2
|
|
709
|
+
}, 1032, ["name"]),
|
|
710
|
+
createVNode(_component_a_form_item, {
|
|
711
|
+
name: ["values", index, "rule"],
|
|
712
|
+
style: { "width": "180px" }
|
|
713
|
+
}, {
|
|
714
|
+
default: withCtx(() => [
|
|
715
|
+
createVNode(_component_a_select, {
|
|
716
|
+
style: { "width": "100%" },
|
|
717
|
+
placeholder: "\u8BF7\u9009\u62E9\u5339\u914D\u89C4\u5219",
|
|
718
|
+
value: item.rule,
|
|
719
|
+
"onUpdate:value": ($event) => item.rule = $event
|
|
720
|
+
}, {
|
|
721
|
+
default: withCtx(() => [
|
|
722
|
+
createVNode(_component_a_select_option, { value: "eq" }, {
|
|
723
|
+
default: withCtx(() => [
|
|
724
|
+
_hoisted_14
|
|
725
|
+
]),
|
|
726
|
+
_: 1
|
|
727
|
+
}),
|
|
728
|
+
createVNode(_component_a_select_option, { value: "like" }, {
|
|
729
|
+
default: withCtx(() => [
|
|
730
|
+
_hoisted_15
|
|
731
|
+
]),
|
|
732
|
+
_: 1
|
|
733
|
+
}),
|
|
734
|
+
createVNode(_component_a_select_option, { value: "right_like" }, {
|
|
735
|
+
default: withCtx(() => [
|
|
736
|
+
_hoisted_16
|
|
737
|
+
]),
|
|
738
|
+
_: 1
|
|
739
|
+
}),
|
|
740
|
+
createVNode(_component_a_select_option, { value: "left_like" }, {
|
|
741
|
+
default: withCtx(() => [
|
|
742
|
+
_hoisted_17
|
|
743
|
+
]),
|
|
744
|
+
_: 1
|
|
745
|
+
}),
|
|
746
|
+
createVNode(_component_a_select_option, { value: "in" }, {
|
|
747
|
+
default: withCtx(() => [
|
|
748
|
+
_hoisted_18
|
|
749
|
+
]),
|
|
750
|
+
_: 1
|
|
751
|
+
}),
|
|
752
|
+
createVNode(_component_a_select_option, { value: "ne" }, {
|
|
753
|
+
default: withCtx(() => [
|
|
754
|
+
_hoisted_19
|
|
755
|
+
]),
|
|
756
|
+
_: 1
|
|
757
|
+
}),
|
|
758
|
+
createVNode(_component_a_select_option, { value: "gt" }, {
|
|
759
|
+
default: withCtx(() => [
|
|
760
|
+
_hoisted_20
|
|
761
|
+
]),
|
|
762
|
+
_: 1
|
|
763
|
+
}),
|
|
764
|
+
createVNode(_component_a_select_option, { value: "ge" }, {
|
|
765
|
+
default: withCtx(() => [
|
|
766
|
+
_hoisted_21
|
|
767
|
+
]),
|
|
768
|
+
_: 1
|
|
769
|
+
}),
|
|
770
|
+
createVNode(_component_a_select_option, { value: "lt" }, {
|
|
771
|
+
default: withCtx(() => [
|
|
772
|
+
_hoisted_22
|
|
773
|
+
]),
|
|
774
|
+
_: 1
|
|
775
|
+
}),
|
|
776
|
+
createVNode(_component_a_select_option, { value: "le" }, {
|
|
777
|
+
default: withCtx(() => [
|
|
778
|
+
_hoisted_23
|
|
779
|
+
]),
|
|
780
|
+
_: 1
|
|
781
|
+
})
|
|
782
|
+
]),
|
|
783
|
+
_: 2
|
|
784
|
+
}, 1032, ["value", "onUpdate:value"])
|
|
785
|
+
]),
|
|
786
|
+
_: 2
|
|
787
|
+
}, 1032, ["name"]),
|
|
788
|
+
createVNode(_component_a_form_item, {
|
|
789
|
+
name: ["values", index, "val"],
|
|
790
|
+
style: { "width": "280px" }
|
|
791
|
+
}, {
|
|
792
|
+
default: withCtx(() => [
|
|
793
|
+
createVNode(_component_online_super_query_val_component, {
|
|
794
|
+
style: { "width": "100%" },
|
|
795
|
+
schema: $setup.getSchema(item, index),
|
|
796
|
+
formModel: item,
|
|
797
|
+
setFormModel: (key, value) => {
|
|
798
|
+
$setup.setFormModel(key, value, item);
|
|
799
|
+
}
|
|
800
|
+
}, null, 8, ["schema", "formModel", "setFormModel"])
|
|
801
|
+
]),
|
|
802
|
+
_: 2
|
|
803
|
+
}, 1032, ["name"]),
|
|
804
|
+
createVNode(_component_a_form_item, null, {
|
|
805
|
+
default: withCtx(() => [
|
|
806
|
+
createVNode(_component_a_button, {
|
|
807
|
+
onClick: ($event) => $setup.addOne(index),
|
|
808
|
+
style: { "margin-right": "6px" }
|
|
809
|
+
}, {
|
|
810
|
+
default: withCtx(() => [
|
|
811
|
+
createVNode(_component_PlusOutlined)
|
|
812
|
+
]),
|
|
813
|
+
_: 2
|
|
814
|
+
}, 1032, ["onClick"]),
|
|
815
|
+
createVNode(_component_a_button, {
|
|
816
|
+
onClick: ($event) => $setup.removeOne(item)
|
|
817
|
+
}, {
|
|
818
|
+
default: withCtx(() => [
|
|
819
|
+
createVNode(_component_MinusCircleOutlined)
|
|
820
|
+
]),
|
|
821
|
+
_: 2
|
|
822
|
+
}, 1032, ["onClick"])
|
|
823
|
+
]),
|
|
824
|
+
_: 2
|
|
825
|
+
}, 1024)
|
|
826
|
+
]),
|
|
827
|
+
_: 2
|
|
828
|
+
}, 1024);
|
|
829
|
+
}), 128))
|
|
830
|
+
]),
|
|
831
|
+
_: 1
|
|
832
|
+
}, 8, ["model", "onFinish"]), [
|
|
833
|
+
[vShow, $setup.dynamicRowValues.values.length > 0]
|
|
834
|
+
])
|
|
835
|
+
]),
|
|
836
|
+
_: 1
|
|
837
|
+
}),
|
|
838
|
+
createVNode(_component_a_col, {
|
|
839
|
+
sm: 24,
|
|
840
|
+
md: 6
|
|
841
|
+
}, {
|
|
842
|
+
default: withCtx(() => [
|
|
843
|
+
createVNode(_component_a_card, {
|
|
844
|
+
class: "j-super-query-history-card",
|
|
845
|
+
bordered: true
|
|
846
|
+
}, {
|
|
847
|
+
title: withCtx(() => [
|
|
848
|
+
_hoisted_24
|
|
849
|
+
]),
|
|
850
|
+
default: withCtx(() => [
|
|
851
|
+
$setup.saveTreeData.length === 0 ? (openBlock(), createBlock(_component_a_empty, {
|
|
852
|
+
key: 0,
|
|
853
|
+
class: "j-super-query-history-empty",
|
|
854
|
+
description: "\u6CA1\u6709\u4FDD\u5B58\u4EFB\u4F55\u67E5\u8BE2"
|
|
855
|
+
})) : (openBlock(), createBlock(_component_a_tree, {
|
|
856
|
+
key: 1,
|
|
857
|
+
class: "j-super-query-history-tree",
|
|
858
|
+
treeData: $setup.saveTreeData,
|
|
859
|
+
selectedKeys: [],
|
|
860
|
+
"show-icon": true,
|
|
861
|
+
onSelect: $setup.handleTreeSelect
|
|
862
|
+
}, {
|
|
863
|
+
title: withCtx(({ title }) => [
|
|
864
|
+
createElementVNode("div", null, [
|
|
865
|
+
createElementVNode("span", { title }, toDisplayString(title.length > 10 ? title.substring(0, 10) + "..." : title), 9, _hoisted_25),
|
|
866
|
+
createElementVNode("span", _hoisted_26, [
|
|
867
|
+
createVNode(_component_close_circle_outlined, {
|
|
868
|
+
onClick: ($event) => $setup.handleRemoveSaveInfo(title)
|
|
869
|
+
}, null, 8, ["onClick"])
|
|
870
|
+
])
|
|
871
|
+
])
|
|
872
|
+
]),
|
|
873
|
+
custom: withCtx(() => [
|
|
874
|
+
createVNode(_component_file_text_outlined)
|
|
875
|
+
]),
|
|
876
|
+
_: 1
|
|
877
|
+
}, 8, ["treeData", "onSelect"]))
|
|
878
|
+
]),
|
|
879
|
+
_: 1
|
|
880
|
+
})
|
|
881
|
+
]),
|
|
882
|
+
_: 1
|
|
883
|
+
})
|
|
884
|
+
]),
|
|
885
|
+
_: 1
|
|
886
|
+
})
|
|
887
|
+
]),
|
|
888
|
+
_: 1
|
|
889
|
+
}, 8, ["onRegister", "onOk"])
|
|
890
|
+
])),
|
|
891
|
+
createVNode(_component_a_modal, {
|
|
892
|
+
title: "\u8BF7\u8F93\u5165\u4FDD\u5B58\u7684\u540D\u79F0",
|
|
893
|
+
visible: $setup.saveInfo.visible,
|
|
894
|
+
onCancel: _cache[4] || (_cache[4] = ($event) => $setup.saveInfo.visible = false),
|
|
895
|
+
onOk: $setup.doSaveQueryInfo
|
|
896
|
+
}, {
|
|
897
|
+
default: withCtx(() => [
|
|
898
|
+
createElementVNode("div", _hoisted_27, [
|
|
899
|
+
createVNode(_component_a_input, {
|
|
900
|
+
value: $setup.saveInfo.title,
|
|
901
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => $setup.saveInfo.title = $event),
|
|
902
|
+
style: { "width": "90%" },
|
|
903
|
+
placeholder: "\u8BF7\u8F93\u5165\u4FDD\u5B58\u7684\u540D\u79F0"
|
|
904
|
+
}, null, 8, ["value"])
|
|
905
|
+
])
|
|
906
|
+
]),
|
|
907
|
+
_: 1
|
|
908
|
+
}, 8, ["visible", "onOk"])
|
|
909
|
+
], 64);
|
|
910
|
+
}
|
|
911
|
+
var OnlineSuperQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-08fc9755"]]);
|
|
912
|
+
export { OnlineSuperQuery as default };
|