@fmdeui/fmui 1.0.93 → 1.0.94
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/components/fm-autocomplete/component/userSelectDialog.vue.d.ts +63 -0
- package/es/components/fm-autocomplete/index.d.ts +121 -160
- package/es/components/fm-autocomplete/index.vue.d.ts +64 -16
- package/es/packages/components/fm-autocomplete/component/userSelectDialog.vue2.mjs +94 -63
- package/es/packages/components/fm-autocomplete/index.vue2.mjs +56 -20
- package/index.js +158 -92
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +158 -92
- package/lib/components/fm-autocomplete/component/userSelectDialog.vue.d.ts +63 -0
- package/lib/components/fm-autocomplete/index.d.ts +121 -160
- package/lib/components/fm-autocomplete/index.vue.d.ts +64 -16
- package/lib/packages/components/fm-autocomplete/component/userSelectDialog.vue2.js +93 -62
- package/lib/packages/components/fm-autocomplete/index.vue2.js +55 -19
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{make-installer.css → component.css} +0 -0
- /package/lib/{make-installer.css → version.css} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createBlock, isRef, unref, withCtx, createVNode, createElementVNode, withKeys, createTextVNode, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createBlock, isRef, unref, withCtx, createVNode, createElementVNode, toDisplayString, withKeys, createTextVNode, createCommentVNode } from 'vue';
|
|
2
2
|
import '../../../api/index.mjs';
|
|
3
3
|
import { useBaseApi } from '../../../api/base/index.mjs';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
6
|
-
const _hoisted_2 = { style: { "margin-
|
|
7
|
-
const _hoisted_3 = {
|
|
6
|
+
const _hoisted_2 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
7
|
+
const _hoisted_3 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
8
|
+
const _hoisted_4 = { style: { "margin-top": "10px" } };
|
|
9
|
+
const _hoisted_5 = { class: "dialog-footer" };
|
|
8
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
11
|
__name: "userSelectDialog",
|
|
10
12
|
props: {
|
|
@@ -12,9 +14,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
14
|
type: Boolean,
|
|
13
15
|
default: false
|
|
14
16
|
},
|
|
17
|
+
title: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
15
21
|
data: {
|
|
16
22
|
type: Array,
|
|
17
23
|
default: () => []
|
|
24
|
+
},
|
|
25
|
+
orgService: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "sysOrg"
|
|
28
|
+
},
|
|
29
|
+
orgAction: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "tree"
|
|
32
|
+
},
|
|
33
|
+
orgparas: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => {
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
userService: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "sysUser"
|
|
41
|
+
},
|
|
42
|
+
userAction: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "page"
|
|
45
|
+
},
|
|
46
|
+
userParams: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => {
|
|
49
|
+
}
|
|
18
50
|
}
|
|
19
51
|
},
|
|
20
52
|
emits: ["update:visible", "change"],
|
|
@@ -52,7 +84,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
84
|
};
|
|
53
85
|
const getUserList = async () => {
|
|
54
86
|
var _a, _b, _c, _d;
|
|
55
|
-
let res = await useBaseApi(
|
|
87
|
+
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
|
|
56
88
|
userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
57
89
|
state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
|
|
58
90
|
};
|
|
@@ -113,28 +145,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
145
|
_: 1
|
|
114
146
|
/* STABLE */
|
|
115
147
|
}),
|
|
116
|
-
|
|
148
|
+
createElementVNode(
|
|
117
149
|
"span",
|
|
118
150
|
null,
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
/*
|
|
122
|
-
)
|
|
151
|
+
toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
|
|
152
|
+
1
|
|
153
|
+
/* TEXT */
|
|
154
|
+
)
|
|
123
155
|
])
|
|
124
156
|
]),
|
|
125
157
|
footer: withCtx(() => [
|
|
126
|
-
createElementVNode("div",
|
|
158
|
+
createElementVNode("div", _hoisted_5, [
|
|
127
159
|
createVNode(_component_el_button, {
|
|
128
160
|
icon: "ele-CircleCloseFilled",
|
|
129
161
|
onClick: closeDialog
|
|
130
162
|
}, {
|
|
131
|
-
default: withCtx(() => [
|
|
163
|
+
default: withCtx(() => [
|
|
132
164
|
createTextVNode(
|
|
133
|
-
"\u53D6\u6D88",
|
|
134
|
-
|
|
135
|
-
/*
|
|
165
|
+
toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
166
|
+
1
|
|
167
|
+
/* TEXT */
|
|
136
168
|
)
|
|
137
|
-
])
|
|
169
|
+
]),
|
|
138
170
|
_: 1
|
|
139
171
|
/* STABLE */
|
|
140
172
|
}),
|
|
@@ -146,45 +178,44 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
178
|
default: withCtx(() => [
|
|
147
179
|
createVNode(_component_el_col, { span: 6 }, {
|
|
148
180
|
default: withCtx(() => [
|
|
149
|
-
|
|
181
|
+
createElementVNode(
|
|
150
182
|
"p",
|
|
151
|
-
|
|
152
|
-
"\u673A\u6784",
|
|
153
|
-
|
|
154
|
-
/*
|
|
155
|
-
)
|
|
156
|
-
createVNode(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
512
|
|
165
|
-
/* NEED_PATCH */
|
|
166
|
-
)
|
|
183
|
+
_hoisted_2,
|
|
184
|
+
toDisplayString(_ctx.$t("\u673A\u6784")),
|
|
185
|
+
1
|
|
186
|
+
/* TEXT */
|
|
187
|
+
),
|
|
188
|
+
createVNode(_component_FmTree, {
|
|
189
|
+
ref: "orgTreeRef",
|
|
190
|
+
apiService: __props.orgService,
|
|
191
|
+
apiAction: __props.orgAction,
|
|
192
|
+
paras: __props.orgparas,
|
|
193
|
+
onNodeClick: handleNodeChange,
|
|
194
|
+
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
195
|
+
}, null, 8, ["apiService", "apiAction", "paras"])
|
|
167
196
|
]),
|
|
168
197
|
_: 1
|
|
169
198
|
/* STABLE */
|
|
170
199
|
}),
|
|
171
200
|
createVNode(_component_el_col, { span: 18 }, {
|
|
172
201
|
default: withCtx(() => [
|
|
173
|
-
|
|
202
|
+
createElementVNode(
|
|
174
203
|
"p",
|
|
175
|
-
|
|
176
|
-
"\
|
|
177
|
-
|
|
178
|
-
/*
|
|
179
|
-
)
|
|
180
|
-
createElementVNode("div",
|
|
204
|
+
_hoisted_3,
|
|
205
|
+
toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
206
|
+
1
|
|
207
|
+
/* TEXT */
|
|
208
|
+
),
|
|
209
|
+
createElementVNode("div", _hoisted_4, [
|
|
181
210
|
createVNode(_component_el_form, {
|
|
182
211
|
model: state.queryParams,
|
|
183
212
|
ref: "queryRef",
|
|
184
213
|
inline: true
|
|
185
214
|
}, {
|
|
186
215
|
default: withCtx(() => [
|
|
187
|
-
createVNode(_component_el_form_item, {
|
|
216
|
+
createVNode(_component_el_form_item, {
|
|
217
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
218
|
+
}, {
|
|
188
219
|
default: withCtx(() => [
|
|
189
220
|
createVNode(_component_el_input, {
|
|
190
221
|
modelValue: state.queryParams.keyword,
|
|
@@ -196,7 +227,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
196
227
|
]),
|
|
197
228
|
_: 1
|
|
198
229
|
/* STABLE */
|
|
199
|
-
}),
|
|
230
|
+
}, 8, ["label"]),
|
|
200
231
|
createVNode(_component_el_form_item, null, {
|
|
201
232
|
default: withCtx(() => [
|
|
202
233
|
createVNode(_component_el_button_group, null, {
|
|
@@ -206,13 +237,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
237
|
icon: "ele-Search",
|
|
207
238
|
onClick: handleQuery
|
|
208
239
|
}, {
|
|
209
|
-
default: withCtx(() => [
|
|
240
|
+
default: withCtx(() => [
|
|
210
241
|
createTextVNode(
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
/*
|
|
242
|
+
toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
243
|
+
1
|
|
244
|
+
/* TEXT */
|
|
214
245
|
)
|
|
215
|
-
])
|
|
246
|
+
]),
|
|
216
247
|
_: 1
|
|
217
248
|
/* STABLE */
|
|
218
249
|
}),
|
|
@@ -220,13 +251,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
251
|
icon: "ele-Refresh",
|
|
221
252
|
onClick: resetQuery
|
|
222
253
|
}, {
|
|
223
|
-
default: withCtx(() => [
|
|
254
|
+
default: withCtx(() => [
|
|
224
255
|
createTextVNode(
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
/*
|
|
256
|
+
toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
257
|
+
1
|
|
258
|
+
/* TEXT */
|
|
228
259
|
)
|
|
229
|
-
])
|
|
260
|
+
]),
|
|
230
261
|
_: 1
|
|
231
262
|
/* STABLE */
|
|
232
263
|
})
|
|
@@ -282,41 +313,41 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
282
313
|
/* STABLE */
|
|
283
314
|
}),
|
|
284
315
|
createVNode(_component_el_table_column, {
|
|
285
|
-
label: "\u8D26\u53F7\u540D\u79F0",
|
|
316
|
+
label: _ctx.$t("\u8D26\u53F7\u540D\u79F0"),
|
|
286
317
|
prop: "account",
|
|
287
318
|
align: "center",
|
|
288
319
|
"show-overflow-tooltip": true
|
|
289
|
-
}),
|
|
320
|
+
}, null, 8, ["label"]),
|
|
290
321
|
createVNode(_component_el_table_column, {
|
|
291
|
-
label: "\u771F\u5B9E\u59D3\u540D",
|
|
322
|
+
label: _ctx.$t("\u771F\u5B9E\u59D3\u540D"),
|
|
292
323
|
prop: "realName",
|
|
293
324
|
align: "center",
|
|
294
325
|
"show-overflow-tooltip": true
|
|
295
|
-
}),
|
|
326
|
+
}, null, 8, ["label"]),
|
|
296
327
|
createVNode(_component_el_table_column, {
|
|
297
|
-
label: "\u8054\u7CFB\u65B9\u5F0F",
|
|
328
|
+
label: _ctx.$t("\u8054\u7CFB\u65B9\u5F0F"),
|
|
298
329
|
prop: "phone",
|
|
299
330
|
align: "center",
|
|
300
331
|
"show-overflow-tooltip": true
|
|
301
|
-
}),
|
|
332
|
+
}, null, 8, ["label"]),
|
|
302
333
|
createVNode(_component_el_table_column, {
|
|
303
|
-
label: "\u5C97\u4F4D",
|
|
334
|
+
label: _ctx.$t("\u5C97\u4F4D"),
|
|
304
335
|
prop: "posName",
|
|
305
336
|
align: "center",
|
|
306
337
|
"show-overflow-tooltip": true
|
|
307
|
-
}),
|
|
338
|
+
}, null, 8, ["label"]),
|
|
308
339
|
createVNode(_component_el_table_column, {
|
|
309
|
-
label: "\u5DE5\u53F7",
|
|
340
|
+
label: _ctx.$t("\u5DE5\u53F7"),
|
|
310
341
|
prop: "jobNum",
|
|
311
342
|
align: "center",
|
|
312
343
|
"show-overflow-tooltip": true
|
|
313
|
-
}),
|
|
344
|
+
}, null, 8, ["label"]),
|
|
314
345
|
createVNode(_component_el_table_column, {
|
|
315
|
-
label: "\u6240\u5C5E\u673A\u6784",
|
|
346
|
+
label: _ctx.$t("\u6240\u5C5E\u673A\u6784"),
|
|
316
347
|
prop: "orgName",
|
|
317
348
|
align: "center",
|
|
318
349
|
"show-overflow-tooltip": true
|
|
319
|
-
})
|
|
350
|
+
}, null, 8, ["label"])
|
|
320
351
|
]),
|
|
321
352
|
_: 1
|
|
322
353
|
/* STABLE */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, ref, resolveComponent, openBlock, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, useModel, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, withModifiers, unref, createElementVNode, toDisplayString, mergeModels } from 'vue';
|
|
2
2
|
import { Search } from '@element-plus/icons-vue';
|
|
3
3
|
import '../../api/index.mjs';
|
|
4
4
|
import './component/userSelectDialog.vue.mjs';
|
|
@@ -55,6 +55,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
type: Number,
|
|
56
56
|
default: 0
|
|
57
57
|
},
|
|
58
|
+
title: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
},
|
|
58
62
|
params: {
|
|
59
63
|
type: Object,
|
|
60
64
|
default: () => {
|
|
@@ -75,6 +79,33 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
79
|
type: Object,
|
|
76
80
|
default: () => {
|
|
77
81
|
}
|
|
82
|
+
},
|
|
83
|
+
orgService: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: "sysOrg"
|
|
86
|
+
},
|
|
87
|
+
orgAction: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "list"
|
|
90
|
+
},
|
|
91
|
+
orgparas: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default: () => {
|
|
94
|
+
id: 0;
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
userService: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "sysUser"
|
|
100
|
+
},
|
|
101
|
+
userAction: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: "page"
|
|
104
|
+
},
|
|
105
|
+
userParams: {
|
|
106
|
+
type: Object,
|
|
107
|
+
default: () => {
|
|
108
|
+
}
|
|
78
109
|
}
|
|
79
110
|
}, {
|
|
80
111
|
"name": {
|
|
@@ -150,26 +181,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
181
|
)
|
|
151
182
|
]),
|
|
152
183
|
append: withCtx(() => [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
184
|
+
createVNode(_component_el_icon, {
|
|
185
|
+
color: "#E6A23C",
|
|
186
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(unref(Search))
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
/* STABLE */
|
|
193
|
+
}),
|
|
194
|
+
createVNode(_sfc_main$1, {
|
|
195
|
+
visible: visibleopenDialog.value,
|
|
196
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
197
|
+
orgService: __props.orgService,
|
|
198
|
+
orgAction: __props.orgAction,
|
|
199
|
+
orgparas: __props.orgparas,
|
|
200
|
+
title: __props.title,
|
|
201
|
+
userService: __props.userService,
|
|
202
|
+
userAction: __props.userAction,
|
|
203
|
+
userParams: __props.userParams,
|
|
204
|
+
onChange: handleSelectDialogChange
|
|
205
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])
|
|
170
206
|
]),
|
|
171
|
-
_:
|
|
172
|
-
/*
|
|
207
|
+
_: 1
|
|
208
|
+
/* STABLE */
|
|
173
209
|
}, 8, ["modelValue", "placeholder"]);
|
|
174
210
|
};
|
|
175
211
|
}
|