yahee-components 0.0.30 → 0.0.32
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/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +228 -282
- package/es/complex-search/complex-search.vue2.js +130 -2
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +39 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/country-platform-shop-condition/style/index.css +3 -4
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/drop-down-condition/style/index.css +21 -12
- package/es/image-upload/image-upload.vue.js +76 -113
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +91 -209
- package/es/left-condition/left-condition.vue2.js +152 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/operation-log/operation-log-content.vue.js +78 -88
- package/es/operation-log/operation-log-content.vue2.js +35 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -179
- package/es/operation-log/operation-log-form.vue2.js +100 -2
- package/es/operation-log/operation-log.vue.js +183 -221
- package/es/operation-log/operation-log.vue2.js +133 -2
- package/es/packages/components/api/log-server.js +4 -4
- package/es/packages/components/api/upload-server.js +5 -5
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/style.css +24 -16
- package/es/utils/translate.js +13 -13
- package/lib/country-platform-shop-condition/style/index.css +3 -4
- package/lib/drop-down-condition/style/index.css +21 -12
- package/lib/style.css +24 -16
- package/package.json +1 -1
- package/types/src/installs.d.ts +2 -1
- package/types/src/operation-log/index.d.ts +2 -1
- package/types/src/operation-log/operation-log-form.vue.d.ts +3 -3
- package/types/src/operation-log/operation-log.d.ts +2 -1
- package/types/src/operation-log/operation-log.vue.d.ts +2 -1
|
@@ -1,299 +1,245 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
specialOptions: T,
|
|
47
|
-
showWithinFilterCheckbox: A,
|
|
48
|
-
placeholderText: X,
|
|
49
|
-
normalOptions: Y,
|
|
50
|
-
showSelect: j,
|
|
51
|
-
searchItem: s
|
|
52
|
-
} = re(N), y = i(q.value || "integrated"), m = i(""), p = i(!1), S = i(!1), h = i(!1), _ = i(null), n = i({ searchType: "WHOLE_SEARCH", searchContent: "" }), J = {
|
|
53
|
-
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
54
|
-
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
55
|
-
}, M = [
|
|
56
|
-
{
|
|
57
|
-
value: "integrated",
|
|
58
|
-
label: "综合搜索"
|
|
59
|
-
}
|
|
60
|
-
], Q = () => {
|
|
61
|
-
h.value = !0;
|
|
62
|
-
}, I = () => {
|
|
63
|
-
h.value = !1;
|
|
64
|
-
}, Z = () => {
|
|
65
|
-
p.value || (delete s.value.putSearch, d("filterChangeGrandson", s.value));
|
|
66
|
-
}, $ = () => s.value, V = () => {
|
|
67
|
-
m.value ? le() : d("filterChangeGrandson", $());
|
|
68
|
-
}, ee = (c, a) => {
|
|
69
|
-
const e = { ...c };
|
|
70
|
-
return w.map(T.value, (u) => u.key).includes(a.filterKey) ? T.value.forEach((u) => delete e[u.key]) : delete e[a.filterKey], e;
|
|
71
|
-
};
|
|
72
|
-
function K(c) {
|
|
73
|
-
w.forEach(c, (a) => {
|
|
74
|
-
ee(s.value, a);
|
|
75
|
-
const { checkedValues: e, filterKey: u } = a;
|
|
76
|
-
w.isEmpty(e) || (Y.value.includes(u) ? s.value[u] = e[0] : s.value[u] = e);
|
|
77
|
-
}), d("filterChangeGrandson", s.value);
|
|
78
|
-
}
|
|
79
|
-
const le = () => {
|
|
80
|
-
p.value ? K([
|
|
81
|
-
{
|
|
82
|
-
filterKey: "putSearch",
|
|
83
|
-
checkedValues: m.value
|
|
84
|
-
}
|
|
85
|
-
]) : d("filterChangeGrandson", {
|
|
86
|
-
putSearch: m.value
|
|
87
|
-
});
|
|
88
|
-
}, ae = () => {
|
|
89
|
-
_.value.validate((c) => {
|
|
90
|
-
c && (S.value = !0, p.value ? K([
|
|
91
|
-
{
|
|
92
|
-
filterKey: "putSearch",
|
|
93
|
-
checkedValues: n.value.searchContent
|
|
94
|
-
}
|
|
95
|
-
]) : d("filterChangeGrandson", {
|
|
96
|
-
putSearch: n.value.searchContent
|
|
97
|
-
}), h.value = !1, S.value = !1);
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
return (c, a) => (r(), f(l(ie), { locale: l(D) }, {
|
|
101
|
-
default: t(() => [
|
|
102
|
-
C("div", ye, [
|
|
103
|
-
o(l(G), {
|
|
104
|
-
modelValue: m.value,
|
|
105
|
-
"onUpdate:modelValue": a[2] || (a[2] = (e) => m.value = e),
|
|
106
|
-
placeholder: l(X),
|
|
107
|
-
class: "input-with-select",
|
|
108
|
-
clearable: "",
|
|
109
|
-
maxlength: "30",
|
|
110
|
-
onChange: V,
|
|
111
|
-
onKeyup: se(V, ["enter"]),
|
|
112
|
-
onPaste: l(P)
|
|
113
|
-
}, ne({
|
|
114
|
-
append: t(() => [
|
|
115
|
-
o(l(ce), {
|
|
116
|
-
size: "12",
|
|
117
|
-
color: "#3366cc",
|
|
118
|
-
style: { cursor: "pointer" },
|
|
119
|
-
class: "icon-cusor",
|
|
120
|
-
onClick: V
|
|
1
|
+
import E from "./complex-search.vue2.js";
|
|
2
|
+
import { openBlock as n, createBlock as t, withCtx as o, createElementVNode as c, createVNode as r, withKeys as f, createSlots as S, createElementBlock as m, Fragment as i, renderList as h, createTextVNode as u, toDisplayString as d, createCommentVNode as s } from "vue";
|
|
3
|
+
import b from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const y = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" }, C = { class: "dialog-footer" };
|
|
5
|
+
function V(B, a, k, e, w, v) {
|
|
6
|
+
return n(), t(e.ElConfigProvider, { locale: e.locale }, {
|
|
7
|
+
default: o(() => [
|
|
8
|
+
c("div", y, [
|
|
9
|
+
r(e.ElInput, {
|
|
10
|
+
modelValue: e.putSearch,
|
|
11
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => e.putSearch = l),
|
|
12
|
+
placeholder: e.placeholderText,
|
|
13
|
+
class: "input-with-select",
|
|
14
|
+
clearable: "",
|
|
15
|
+
maxlength: "30",
|
|
16
|
+
onChange: e.handleSearch,
|
|
17
|
+
onKeyup: f(e.handleSearch, ["enter"]),
|
|
18
|
+
onPaste: e.pasteFormat
|
|
19
|
+
}, S({
|
|
20
|
+
append: o(() => [
|
|
21
|
+
r(e.ElIcon, {
|
|
22
|
+
size: "12",
|
|
23
|
+
color: "#3366cc",
|
|
24
|
+
style: { cursor: "pointer" },
|
|
25
|
+
class: "icon-cusor",
|
|
26
|
+
onClick: e.handleSearch
|
|
27
|
+
}, {
|
|
28
|
+
default: o(() => [
|
|
29
|
+
r(e.Search)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
/* STABLE */
|
|
33
|
+
})
|
|
34
|
+
]),
|
|
35
|
+
_: 2
|
|
36
|
+
/* DYNAMIC */
|
|
37
|
+
}, [
|
|
38
|
+
e.showSelect ? {
|
|
39
|
+
name: "prepend",
|
|
40
|
+
fn: o(() => [
|
|
41
|
+
r(e.ElSelect, {
|
|
42
|
+
modelValue: e.selectedSearchType,
|
|
43
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => e.selectedSearchType = l),
|
|
44
|
+
size: "small",
|
|
45
|
+
class: "custom-select"
|
|
121
46
|
}, {
|
|
122
|
-
default:
|
|
123
|
-
|
|
47
|
+
default: o(() => [
|
|
48
|
+
(n(!0), m(
|
|
49
|
+
i,
|
|
50
|
+
null,
|
|
51
|
+
h(e.options, (l) => (n(), t(e.ElOption, {
|
|
52
|
+
key: l.label,
|
|
53
|
+
label: l.label,
|
|
54
|
+
value: l.value
|
|
55
|
+
}, null, 8, ["label", "value"]))),
|
|
56
|
+
128
|
|
57
|
+
/* KEYED_FRAGMENT */
|
|
58
|
+
))
|
|
124
59
|
]),
|
|
125
60
|
_: 1
|
|
126
|
-
|
|
61
|
+
/* STABLE */
|
|
62
|
+
}, 8, ["modelValue"])
|
|
127
63
|
]),
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
64
|
+
key: "0"
|
|
65
|
+
} : {
|
|
66
|
+
name: "prepend",
|
|
67
|
+
fn: o(() => [
|
|
68
|
+
r(e.ElSelect, {
|
|
69
|
+
modelValue: e.selectedSearchType,
|
|
70
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => e.selectedSearchType = l),
|
|
71
|
+
size: "small",
|
|
72
|
+
class: "custom-select",
|
|
73
|
+
disabled: ""
|
|
74
|
+
}, {
|
|
75
|
+
default: o(() => [
|
|
76
|
+
(n(), m(
|
|
77
|
+
i,
|
|
78
|
+
null,
|
|
79
|
+
h(e.defalutOptions, (l) => r(e.ElOption, {
|
|
80
|
+
key: l.label,
|
|
81
|
+
label: l.label,
|
|
82
|
+
value: l.value
|
|
83
|
+
}, null, 8, ["label", "value"])),
|
|
84
|
+
64
|
|
85
|
+
/* STABLE_FRAGMENT */
|
|
86
|
+
))
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
/* STABLE */
|
|
90
|
+
}, 8, ["modelValue"])
|
|
91
|
+
]),
|
|
92
|
+
key: "1"
|
|
93
|
+
}
|
|
94
|
+
]), 1032, ["modelValue", "placeholder", "onPaste"]),
|
|
95
|
+
c("div", F, [
|
|
96
|
+
e.showWithinFilterCheckbox ? (n(), t(e.ElCheckbox, {
|
|
97
|
+
key: 0,
|
|
98
|
+
modelValue: e.isWithinFilterOptions,
|
|
99
|
+
"onUpdate:modelValue": a[3] || (a[3] = (l) => e.isWithinFilterOptions = l),
|
|
100
|
+
onChange: e.searchWithinFilterOptions
|
|
101
|
+
}, {
|
|
102
|
+
default: o(() => a[7] || (a[7] = [
|
|
103
|
+
u(d("在筛选条件内查询"))
|
|
104
|
+
])),
|
|
105
|
+
_: 1
|
|
106
|
+
/* STABLE */
|
|
107
|
+
}, 8, ["modelValue"])) : s("v-if", !0),
|
|
108
|
+
e.showPatchSearch ? (n(), t(e.ElLink, {
|
|
109
|
+
key: 1,
|
|
110
|
+
type: "primary",
|
|
111
|
+
onClick: e.showBatchSearchDialog
|
|
112
|
+
}, {
|
|
113
|
+
default: o(() => a[8] || (a[8] = [
|
|
114
|
+
u(d("批量查询"))
|
|
115
|
+
])),
|
|
116
|
+
_: 1
|
|
117
|
+
/* STABLE */
|
|
118
|
+
})) : s("v-if", !0)
|
|
119
|
+
])
|
|
120
|
+
]),
|
|
121
|
+
r(e.ElDialog, {
|
|
122
|
+
modelValue: e.showBatchSearch,
|
|
123
|
+
"onUpdate:modelValue": a[6] || (a[6] = (l) => e.showBatchSearch = l),
|
|
124
|
+
title: "批量查询",
|
|
125
|
+
width: "30%",
|
|
126
|
+
"before-close": e.handleBatchSearchClose,
|
|
127
|
+
"append-to-body": !0,
|
|
128
|
+
draggable: ""
|
|
129
|
+
}, {
|
|
130
|
+
footer: o(() => [
|
|
131
|
+
c("div", C, [
|
|
132
|
+
r(e.ElButton, {
|
|
133
|
+
type: "primary",
|
|
134
|
+
loading: e.confirmLoading,
|
|
135
|
+
onClick: e.confirmSearch
|
|
179
136
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
137
|
+
default: o(() => a[10] || (a[10] = [
|
|
138
|
+
u(d("确认"))
|
|
182
139
|
])),
|
|
183
140
|
_: 1
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}, {
|
|
190
|
-
default: t(() => a[8] || (a[8] = [
|
|
191
|
-
g(v("批量查询"))
|
|
141
|
+
/* STABLE */
|
|
142
|
+
}, 8, ["loading"]),
|
|
143
|
+
r(e.ElButton, { onClick: e.handleBatchSearchClose }, {
|
|
144
|
+
default: o(() => a[11] || (a[11] = [
|
|
145
|
+
u(d("关闭"))
|
|
192
146
|
])),
|
|
193
147
|
_: 1
|
|
194
|
-
|
|
148
|
+
/* STABLE */
|
|
149
|
+
})
|
|
195
150
|
])
|
|
196
151
|
]),
|
|
197
|
-
o(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
default: t(() => a[10] || (a[10] = [
|
|
214
|
-
g(v("确认"))
|
|
152
|
+
default: o(() => [
|
|
153
|
+
r(e.ElForm, {
|
|
154
|
+
ref: "batchSearchFormRef",
|
|
155
|
+
model: e.batchSearchForm,
|
|
156
|
+
rules: e.rules
|
|
157
|
+
}, {
|
|
158
|
+
default: o(() => [
|
|
159
|
+
r(e.ElRow, { class: "row-class" }, {
|
|
160
|
+
default: o(() => a[9] || (a[9] = [
|
|
161
|
+
c(
|
|
162
|
+
"span",
|
|
163
|
+
null,
|
|
164
|
+
d("综合搜索"),
|
|
165
|
+
-1
|
|
166
|
+
/* HOISTED */
|
|
167
|
+
)
|
|
215
168
|
])),
|
|
216
169
|
_: 1
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
170
|
+
/* STABLE */
|
|
171
|
+
}),
|
|
172
|
+
r(e.ElRow, { class: "row-class" }, {
|
|
173
|
+
default: o(() => [
|
|
174
|
+
r(e.ElFormItem, { prop: "searchType" }, {
|
|
175
|
+
default: o(() => [
|
|
176
|
+
r(e.ElSelect, {
|
|
177
|
+
modelValue: e.batchSearchForm.searchType,
|
|
178
|
+
"onUpdate:modelValue": a[4] || (a[4] = (l) => e.batchSearchForm.searchType = l),
|
|
179
|
+
size: "small",
|
|
180
|
+
class: "custom-select"
|
|
181
|
+
}, {
|
|
182
|
+
default: o(() => [
|
|
183
|
+
(n(!0), m(
|
|
184
|
+
i,
|
|
185
|
+
null,
|
|
186
|
+
h(e.options, (l) => (n(), t(e.ElOption, {
|
|
187
|
+
key: l.label,
|
|
188
|
+
label: l.label,
|
|
189
|
+
value: l.value
|
|
190
|
+
}, null, 8, ["label", "value"]))),
|
|
191
|
+
128
|
|
192
|
+
/* KEYED_FRAGMENT */
|
|
193
|
+
))
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
/* STABLE */
|
|
197
|
+
}, 8, ["modelValue"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
/* STABLE */
|
|
201
|
+
})
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
/* STABLE */
|
|
205
|
+
}),
|
|
206
|
+
r(e.ElRow, { class: "row-class" }, {
|
|
207
|
+
default: o(() => [
|
|
208
|
+
r(e.ElFormItem, {
|
|
209
|
+
prop: "searchContent",
|
|
210
|
+
style: { width: "100%" }
|
|
211
|
+
}, {
|
|
212
|
+
default: o(() => [
|
|
213
|
+
r(e.ElInput, {
|
|
214
|
+
modelValue: e.batchSearchForm.searchContent,
|
|
215
|
+
"onUpdate:modelValue": a[5] || (a[5] = (l) => e.batchSearchForm.searchContent = l),
|
|
216
|
+
placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
|
|
217
|
+
type: "textarea",
|
|
218
|
+
rows: 5,
|
|
219
|
+
onPaste: e.pasteFormat
|
|
220
|
+
}, null, 8, ["modelValue", "onPaste"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
/* STABLE */
|
|
224
|
+
})
|
|
225
|
+
]),
|
|
222
226
|
_: 1
|
|
227
|
+
/* STABLE */
|
|
223
228
|
})
|
|
224
|
-
])
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
_: 1
|
|
239
|
-
}),
|
|
240
|
-
o(l(B), { class: "row-class" }, {
|
|
241
|
-
default: t(() => [
|
|
242
|
-
o(l(L), { prop: "searchType" }, {
|
|
243
|
-
default: t(() => [
|
|
244
|
-
o(l(x), {
|
|
245
|
-
modelValue: n.value.searchType,
|
|
246
|
-
"onUpdate:modelValue": a[4] || (a[4] = (e) => n.value.searchType = e),
|
|
247
|
-
size: "small",
|
|
248
|
-
class: "custom-select"
|
|
249
|
-
}, {
|
|
250
|
-
default: t(() => [
|
|
251
|
-
(r(!0), b(k, null, E(l(O), (e) => (r(), f(l(F), {
|
|
252
|
-
key: e.label,
|
|
253
|
-
label: e.label,
|
|
254
|
-
value: e.value
|
|
255
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 8, ["modelValue"])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
})
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}),
|
|
265
|
-
o(l(B), { class: "row-class" }, {
|
|
266
|
-
default: t(() => [
|
|
267
|
-
o(l(L), {
|
|
268
|
-
prop: "searchContent",
|
|
269
|
-
style: { width: "100%" }
|
|
270
|
-
}, {
|
|
271
|
-
default: t(() => [
|
|
272
|
-
o(l(G), {
|
|
273
|
-
modelValue: n.value.searchContent,
|
|
274
|
-
"onUpdate:modelValue": a[5] || (a[5] = (e) => n.value.searchContent = e),
|
|
275
|
-
placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
|
|
276
|
-
type: "textarea",
|
|
277
|
-
rows: 5,
|
|
278
|
-
onPaste: l(P)
|
|
279
|
-
}, null, 8, ["modelValue", "onPaste"])
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
})
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
})
|
|
286
|
-
]),
|
|
287
|
-
_: 1
|
|
288
|
-
}, 8, ["model"])
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
}, 8, ["modelValue"])
|
|
292
|
-
]),
|
|
293
|
-
_: 1
|
|
294
|
-
}, 8, ["locale"]));
|
|
295
|
-
}
|
|
296
|
-
});
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
/* STABLE */
|
|
232
|
+
}, 8, ["model"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
/* STABLE */
|
|
236
|
+
}, 8, ["modelValue"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
/* STABLE */
|
|
240
|
+
}, 8, ["locale"]);
|
|
241
|
+
}
|
|
242
|
+
const _ = /* @__PURE__ */ b(E, [["render", V], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
|
|
297
243
|
export {
|
|
298
|
-
|
|
244
|
+
_ as default
|
|
299
245
|
};
|
|
@@ -1,4 +1,132 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as L, mergeDefaults as V, toRefs as j, ref as a } from "vue";
|
|
2
|
+
import f from "../_virtual/lodash.js";
|
|
3
|
+
import { defaultComplexSearchProps as H } from "./props.js";
|
|
4
|
+
import { ElInput as z, ElCheckbox as Y, ElSelect as J, ElDialog as M, ElIcon as N, ElForm as Q, ElFormItem as U, ElRow as X, ElButton as Z, ElOption as $, ElLink as ee, ElConfigProvider as te } from "element-plus";
|
|
5
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/checkbox.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/tag.scss";
|
|
9
|
+
import "element-plus/theme-chalk/src/option.scss";
|
|
10
|
+
import "element-plus/theme-chalk/src/option-group.scss";
|
|
11
|
+
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
12
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
13
|
+
import "element-plus/theme-chalk/src/select.scss";
|
|
14
|
+
import "element-plus/theme-chalk/src/dialog.scss";
|
|
15
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
16
|
+
import "element-plus/theme-chalk/src/form.scss";
|
|
17
|
+
import "element-plus/theme-chalk/src/form-item.scss";
|
|
18
|
+
import "element-plus/theme-chalk/src/row.scss";
|
|
19
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
20
|
+
import "element-plus/theme-chalk/src/link.scss";
|
|
21
|
+
import "element-plus/theme-chalk/src/config-provider.scss";
|
|
22
|
+
import { Search as re } from "@element-plus/icons-vue";
|
|
23
|
+
import ae from "../node_modules/.pnpm/element-plus@2.9.1_vue@3.5.13_typescript@5.7.2_/node_modules/element-plus/es/locale/lang/zh-cn.js";
|
|
24
|
+
const ke = /* @__PURE__ */ L({
|
|
25
|
+
name: "YaheeComplexSearch",
|
|
26
|
+
__name: "complex-search",
|
|
27
|
+
props: /* @__PURE__ */ V({
|
|
28
|
+
pasteFormat: { type: Function, required: !1 },
|
|
29
|
+
defaultSearch: { type: String, required: !1 },
|
|
30
|
+
options: { type: Array, required: !1 },
|
|
31
|
+
placeholderText: { type: String, required: !1 },
|
|
32
|
+
showPatchSearch: { type: Boolean, required: !1 },
|
|
33
|
+
showWithinFilterCheckbox: { type: Boolean, required: !1 },
|
|
34
|
+
specialOptions: { type: Array, required: !1 },
|
|
35
|
+
normalOptions: { type: Array, required: !1 },
|
|
36
|
+
showSelect: { type: Boolean, required: !1 },
|
|
37
|
+
searchItem: { type: Object, required: !1 }
|
|
38
|
+
}, H()),
|
|
39
|
+
emits: ["filterChangeGrandson"],
|
|
40
|
+
setup(b, { expose: q, emit: x }) {
|
|
41
|
+
q();
|
|
42
|
+
const O = ae, o = x, d = b, {
|
|
43
|
+
defaultSearch: g,
|
|
44
|
+
pasteFormat: _,
|
|
45
|
+
options: k,
|
|
46
|
+
showPatchSearch: w,
|
|
47
|
+
specialOptions: u,
|
|
48
|
+
showWithinFilterCheckbox: I,
|
|
49
|
+
placeholderText: B,
|
|
50
|
+
normalOptions: S,
|
|
51
|
+
showSelect: P,
|
|
52
|
+
searchItem: e
|
|
53
|
+
} = j(d), G = a(g.value || "integrated"), i = a(""), s = a(!1), p = a(!1), c = a(!1), E = a(null), h = a({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
|
|
54
|
+
selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
|
|
55
|
+
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
56
|
+
}, R = [
|
|
57
|
+
{
|
|
58
|
+
value: "integrated",
|
|
59
|
+
label: "综合搜索"
|
|
60
|
+
}
|
|
61
|
+
], T = () => {
|
|
62
|
+
c.value = !0;
|
|
63
|
+
}, W = () => {
|
|
64
|
+
c.value = !1;
|
|
65
|
+
}, A = () => {
|
|
66
|
+
s.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value));
|
|
67
|
+
}, v = () => e.value, D = () => {
|
|
68
|
+
i.value ? C() : o("filterChangeGrandson", v());
|
|
69
|
+
}, y = (l, n) => {
|
|
70
|
+
const t = { ...l };
|
|
71
|
+
return f.map(u.value, (r) => r.key).includes(n.filterKey) ? u.value.forEach((r) => delete t[r.key]) : delete t[n.filterKey], t;
|
|
72
|
+
};
|
|
73
|
+
function m(l) {
|
|
74
|
+
f.forEach(l, (n) => {
|
|
75
|
+
y(e.value, n);
|
|
76
|
+
const { checkedValues: t, filterKey: r } = n;
|
|
77
|
+
f.isEmpty(t) || (S.value.includes(r) ? e.value[r] = t[0] : e.value[r] = t);
|
|
78
|
+
}), o("filterChangeGrandson", e.value);
|
|
79
|
+
}
|
|
80
|
+
const C = () => {
|
|
81
|
+
s.value ? m([
|
|
82
|
+
{
|
|
83
|
+
filterKey: "putSearch",
|
|
84
|
+
checkedValues: i.value
|
|
85
|
+
}
|
|
86
|
+
]) : o("filterChangeGrandson", {
|
|
87
|
+
putSearch: i.value
|
|
88
|
+
});
|
|
89
|
+
}, F = { locale: O, emit: o, props: d, defaultSearch: g, pasteFormat: _, options: k, showPatchSearch: w, specialOptions: u, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: S, showSelect: P, searchItem: e, selectedSearchType: G, putSearch: i, isWithinFilterOptions: s, confirmLoading: p, showBatchSearch: c, batchSearchFormRef: E, batchSearchForm: h, rules: K, defalutOptions: R, showBatchSearchDialog: T, handleBatchSearchClose: W, searchWithinFilterOptions: A, getSearchItem: v, handleSearch: D, deleteExistProperty: y, filterChange: m, handlePutSearch: C, confirmSearch: () => {
|
|
90
|
+
E.value.validate((l) => {
|
|
91
|
+
l && (p.value = !0, s.value ? m([
|
|
92
|
+
{
|
|
93
|
+
filterKey: "putSearch",
|
|
94
|
+
checkedValues: h.value.searchContent
|
|
95
|
+
}
|
|
96
|
+
]) : o("filterChangeGrandson", {
|
|
97
|
+
putSearch: h.value.searchContent
|
|
98
|
+
}), c.value = !1, p.value = !1);
|
|
99
|
+
});
|
|
100
|
+
}, get ElInput() {
|
|
101
|
+
return z;
|
|
102
|
+
}, get ElCheckbox() {
|
|
103
|
+
return Y;
|
|
104
|
+
}, get ElSelect() {
|
|
105
|
+
return J;
|
|
106
|
+
}, get ElDialog() {
|
|
107
|
+
return M;
|
|
108
|
+
}, get ElIcon() {
|
|
109
|
+
return N;
|
|
110
|
+
}, get ElForm() {
|
|
111
|
+
return Q;
|
|
112
|
+
}, get ElFormItem() {
|
|
113
|
+
return U;
|
|
114
|
+
}, get ElRow() {
|
|
115
|
+
return X;
|
|
116
|
+
}, get ElButton() {
|
|
117
|
+
return Z;
|
|
118
|
+
}, get ElOption() {
|
|
119
|
+
return $;
|
|
120
|
+
}, get ElLink() {
|
|
121
|
+
return ee;
|
|
122
|
+
}, get ElConfigProvider() {
|
|
123
|
+
return te;
|
|
124
|
+
}, get Search() {
|
|
125
|
+
return re;
|
|
126
|
+
} };
|
|
127
|
+
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
2
130
|
export {
|
|
3
|
-
|
|
131
|
+
ke as default
|
|
4
132
|
};
|