@fmdeui/fmui 1.0.142 → 1.0.144
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/component.mjs +2 -1
- package/es/components/fm-autocomplete/autoext.vue.d.ts +843 -0
- package/es/components/fm-autocomplete/component/accountSelectDialog.vue.d.ts +4 -1
- package/es/components/fm-autocomplete/component/subjectSelectDialog.vue.d.ts +4 -1
- package/es/components/fm-autocomplete/component/userSelectDialog.vue.d.ts +4 -1
- package/es/components/fm-autocomplete/index.d.ts +803 -0
- package/es/packages/components/fm-autocomplete/autoext.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/autoext2.vue.mjs +348 -0
- package/es/packages/components/fm-autocomplete/component/accountSelectDialog2.vue.mjs +4 -2
- package/es/packages/components/fm-autocomplete/component/linSelectDialog2.vue.mjs +0 -1
- package/es/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.mjs +4 -2
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.mjs +0 -1
- package/es/packages/components/fm-autocomplete/component/supplierUserSelectDialog2.vue.mjs +0 -1
- package/es/packages/components/fm-autocomplete/component/userSelectDialog2.vue.mjs +6 -4
- package/es/packages/components/fm-autocomplete/index.mjs +4 -1
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +1 -1
- package/es/packages/components/index.mjs +1 -1
- package/index.js +439 -104
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +439 -104
- package/lib/component.js +1 -0
- package/lib/components/fm-autocomplete/autoext.vue.d.ts +843 -0
- package/lib/components/fm-autocomplete/component/accountSelectDialog.vue.d.ts +4 -1
- package/lib/components/fm-autocomplete/component/subjectSelectDialog.vue.d.ts +4 -1
- package/lib/components/fm-autocomplete/component/userSelectDialog.vue.d.ts +4 -1
- package/lib/components/fm-autocomplete/index.d.ts +803 -0
- package/lib/packages/components/fm-autocomplete/autoext.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/autoext2.vue.js +352 -0
- package/lib/packages/components/fm-autocomplete/component/accountSelectDialog2.vue.js +4 -2
- package/lib/packages/components/fm-autocomplete/component/linSelectDialog2.vue.js +0 -1
- package/lib/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.js +4 -2
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.js +0 -1
- package/lib/packages/components/fm-autocomplete/component/supplierUserSelectDialog2.vue.js +0 -1
- package/lib/packages/components/fm-autocomplete/component/userSelectDialog2.vue.js +6 -4
- package/lib/packages/components/fm-autocomplete/index.js +4 -0
- package/lib/packages/components/fm-autocomplete/index2.vue.js +1 -1
- package/lib/packages/components/index.js +1 -0
- 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/{lib → es}/version.css +0 -0
- /package/{es/make-installer.css → lib/defaults.css} +0 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { defineComponent, useModel, ref, nextTick, resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, toDisplayString, createVNode, withModifiers, unref, createCommentVNode, mergeModels } from 'vue';
|
|
2
|
+
import { Search } from '@element-plus/icons-vue';
|
|
3
|
+
import '../../api/index.mjs';
|
|
4
|
+
import './component/userSelectDialog.vue.mjs';
|
|
5
|
+
import './component/supplierSelectDialog.vue.mjs';
|
|
6
|
+
import './component/supplierUserSelectDialog.vue.mjs';
|
|
7
|
+
import './component/accountSelectDialog.vue.mjs';
|
|
8
|
+
import './component/subjectSelectDialog.vue.mjs';
|
|
9
|
+
import './component/linSelectDialog.vue.mjs';
|
|
10
|
+
import { useBaseApi } from '../../api/base/index.mjs';
|
|
11
|
+
import _sfc_main$1 from './component/userSelectDialog2.vue.mjs';
|
|
12
|
+
import _sfc_main$2 from './component/supplierUserSelectDialog2.vue.mjs';
|
|
13
|
+
import _sfc_main$3 from './component/supplierSelectDialog2.vue.mjs';
|
|
14
|
+
import _sfc_main$4 from './component/accountSelectDialog2.vue.mjs';
|
|
15
|
+
import _sfc_main$5 from './component/subjectSelectDialog2.vue.mjs';
|
|
16
|
+
import _sfc_main$6 from './component/linSelectDialog2.vue.mjs';
|
|
17
|
+
|
|
18
|
+
const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
19
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
...{
|
|
21
|
+
name: "FmAutocompleteExt"
|
|
22
|
+
},
|
|
23
|
+
__name: "autoext",
|
|
24
|
+
props: /* @__PURE__ */ mergeModels({
|
|
25
|
+
placeholder: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "\u8BF7\u8F93\u5165\u5FEB\u901F\u641C\u7D22\u9009\u62E9"
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* ato service name
|
|
31
|
+
*/
|
|
32
|
+
atoService: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "autoRes"
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* ato service 下的方法
|
|
38
|
+
*/
|
|
39
|
+
atoAction: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "autoUser"
|
|
42
|
+
},
|
|
43
|
+
top: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 15
|
|
46
|
+
},
|
|
47
|
+
searchsize: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 22
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* 值的属性标签
|
|
53
|
+
*/
|
|
54
|
+
vName: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "name"
|
|
57
|
+
},
|
|
58
|
+
vGroup: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: () => []
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* 过滤出来显示的名称 加上属性标签
|
|
64
|
+
*/
|
|
65
|
+
vLabel: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* 查询业务表ID
|
|
71
|
+
*/
|
|
72
|
+
qId: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: 0
|
|
75
|
+
},
|
|
76
|
+
title: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: ""
|
|
79
|
+
},
|
|
80
|
+
params: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: () => {
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 供应商单位 3-- 银行账户 4--科目 5--线路
|
|
87
|
+
* @default 0
|
|
88
|
+
*/
|
|
89
|
+
openType: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 0
|
|
92
|
+
},
|
|
93
|
+
orgService: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "autoRes"
|
|
96
|
+
},
|
|
97
|
+
orgAction: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "userOrgList"
|
|
100
|
+
},
|
|
101
|
+
userService: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: "autoRes"
|
|
104
|
+
},
|
|
105
|
+
userAction: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: "UserTable"
|
|
108
|
+
},
|
|
109
|
+
subjectService: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "autoRes"
|
|
112
|
+
},
|
|
113
|
+
subjectAction: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "subjectTable"
|
|
116
|
+
},
|
|
117
|
+
accountService: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "autoRes"
|
|
120
|
+
},
|
|
121
|
+
accountAction: {
|
|
122
|
+
type: String,
|
|
123
|
+
default: "accountTable"
|
|
124
|
+
},
|
|
125
|
+
refresh: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: true
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
"modelValue": {},
|
|
131
|
+
"modelModifiers": {}
|
|
132
|
+
}),
|
|
133
|
+
emits: /* @__PURE__ */ mergeModels(["select", "reset"], ["update:modelValue"]),
|
|
134
|
+
setup(__props, { emit: __emit }) {
|
|
135
|
+
const modelValue = useModel(__props, "modelValue");
|
|
136
|
+
const props = __props;
|
|
137
|
+
const visibleopenDialog = ref(false);
|
|
138
|
+
const tableUserDialogRef = ref();
|
|
139
|
+
const tableSupplierUserDialogRef = ref();
|
|
140
|
+
const tableAccountDialogRef = ref();
|
|
141
|
+
const tableSubjectDialogRef = ref();
|
|
142
|
+
const tableLineDialogRef = ref();
|
|
143
|
+
const tableSupplierDialogRef = ref();
|
|
144
|
+
const emit = __emit;
|
|
145
|
+
const querySearchAsync = async (queryString, cb) => {
|
|
146
|
+
var _a;
|
|
147
|
+
resetValue();
|
|
148
|
+
const postdata = { keywork: queryString, id: props.qId, ...props.params };
|
|
149
|
+
const res = await useBaseApi(props.atoService).post(postdata, props.atoAction);
|
|
150
|
+
const data = (_a = res.data.result) != null ? _a : [];
|
|
151
|
+
if (data.length === 0) {
|
|
152
|
+
return cb([]);
|
|
153
|
+
}
|
|
154
|
+
const results = data.map((item) => ({
|
|
155
|
+
...item,
|
|
156
|
+
displayText: `${item[props.vName]}`
|
|
157
|
+
// 自定义展示格式
|
|
158
|
+
//fullData: item // 保留原始对象
|
|
159
|
+
}));
|
|
160
|
+
cb(results);
|
|
161
|
+
};
|
|
162
|
+
const handleSelect = (item) => {
|
|
163
|
+
for (let keyitem of props.vGroup) {
|
|
164
|
+
if (!item[keyitem.key]) {
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
modelValue.value[keyitem.key] = item[keyitem.key];
|
|
168
|
+
}
|
|
169
|
+
emit("select", item);
|
|
170
|
+
};
|
|
171
|
+
const resetValue = () => {
|
|
172
|
+
for (let item of props.vGroup) {
|
|
173
|
+
if (!item.key || item.key === "name") {
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
modelValue.value[item.key] = item.value;
|
|
177
|
+
}
|
|
178
|
+
emit("reset");
|
|
179
|
+
};
|
|
180
|
+
const handleSelectDialogChange = (item) => {
|
|
181
|
+
visibleopenDialog.value = false;
|
|
182
|
+
for (let keyitem of props.vGroup) {
|
|
183
|
+
if (!item[keyitem.key]) {
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
modelValue.value[keyitem.key] = item[keyitem.key];
|
|
187
|
+
}
|
|
188
|
+
emit("select", item);
|
|
189
|
+
};
|
|
190
|
+
const handleRefresh = async () => {
|
|
191
|
+
var _a;
|
|
192
|
+
await nextTick();
|
|
193
|
+
if (props.openType == 0) {
|
|
194
|
+
if (tableUserDialogRef.value) {
|
|
195
|
+
tableUserDialogRef.value.handleQuery();
|
|
196
|
+
}
|
|
197
|
+
} else if (props.openType == 1) {
|
|
198
|
+
if (tableSupplierUserDialogRef.value) {
|
|
199
|
+
tableSupplierUserDialogRef.value.handleQuery();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (props.openType == 2) {
|
|
203
|
+
if (tableSupplierDialogRef.value) {
|
|
204
|
+
tableSupplierDialogRef.value.handleQuery();
|
|
205
|
+
}
|
|
206
|
+
} else if (props.openType == 3) {
|
|
207
|
+
if (tableAccountDialogRef.value) {
|
|
208
|
+
tableAccountDialogRef.value.handleQuery();
|
|
209
|
+
}
|
|
210
|
+
} else if (props.openType == 4) {
|
|
211
|
+
if (tableSubjectDialogRef.value) {
|
|
212
|
+
tableSubjectDialogRef.value.handleQuery();
|
|
213
|
+
}
|
|
214
|
+
} else if (props.openType == 5) {
|
|
215
|
+
(_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
return (_ctx, _cache) => {
|
|
219
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
220
|
+
const _component_el_autocomplete = resolveComponent("el-autocomplete");
|
|
221
|
+
return openBlock(), createBlock(_component_el_autocomplete, {
|
|
222
|
+
modelValue: modelValue.value.name,
|
|
223
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => modelValue.value.name = $event),
|
|
224
|
+
debounce: 500,
|
|
225
|
+
"fetch-suggestions": querySearchAsync,
|
|
226
|
+
placeholder: props.placeholder,
|
|
227
|
+
"trigger-on-focus": false,
|
|
228
|
+
onSelect: handleSelect,
|
|
229
|
+
style: { "margin-top": "-2px" }
|
|
230
|
+
}, createSlots({
|
|
231
|
+
default: withCtx(({ item }) => [
|
|
232
|
+
createElementVNode(
|
|
233
|
+
"div",
|
|
234
|
+
_hoisted_1,
|
|
235
|
+
toDisplayString(item[__props.vName]) + " " + toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
|
|
236
|
+
1
|
|
237
|
+
/* TEXT */
|
|
238
|
+
)
|
|
239
|
+
]),
|
|
240
|
+
_: 2
|
|
241
|
+
/* DYNAMIC */
|
|
242
|
+
}, [
|
|
243
|
+
__props.openType > -1 ? {
|
|
244
|
+
name: "suffix",
|
|
245
|
+
fn: withCtx(() => [
|
|
246
|
+
createVNode(_component_el_icon, {
|
|
247
|
+
color: "#E6A23C",
|
|
248
|
+
size: __props.searchsize,
|
|
249
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
250
|
+
visibleopenDialog.value = true;
|
|
251
|
+
if (props.refresh) {
|
|
252
|
+
handleRefresh();
|
|
253
|
+
}
|
|
254
|
+
}, ["stop"]))
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
createVNode(unref(Search))
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
/* STABLE */
|
|
261
|
+
}, 8, ["size"]),
|
|
262
|
+
__props.openType == 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
263
|
+
key: 0,
|
|
264
|
+
ref_key: "tableUserDialogRef",
|
|
265
|
+
ref: tableUserDialogRef,
|
|
266
|
+
visible: visibleopenDialog.value,
|
|
267
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
268
|
+
orgService: __props.orgService,
|
|
269
|
+
orgAction: __props.orgAction,
|
|
270
|
+
orgparas: __props.params,
|
|
271
|
+
title: __props.title,
|
|
272
|
+
userService: __props.userService,
|
|
273
|
+
userAction: __props.userAction,
|
|
274
|
+
userParams: __props.params,
|
|
275
|
+
onChange: handleSelectDialogChange
|
|
276
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
277
|
+
__props.openType == 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
278
|
+
key: 1,
|
|
279
|
+
ref_key: "tableSupplierUserDialogRef",
|
|
280
|
+
ref: tableSupplierUserDialogRef,
|
|
281
|
+
visible: visibleopenDialog.value,
|
|
282
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
283
|
+
title: __props.title,
|
|
284
|
+
userService: __props.userService,
|
|
285
|
+
userAction: __props.userAction,
|
|
286
|
+
userParams: __props.params,
|
|
287
|
+
onChange: handleSelectDialogChange
|
|
288
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
289
|
+
__props.openType == 2 ? (openBlock(), createBlock(_sfc_main$3, {
|
|
290
|
+
key: 2,
|
|
291
|
+
ref_key: "tableSupplierDialogRef",
|
|
292
|
+
ref: tableSupplierDialogRef,
|
|
293
|
+
visible: visibleopenDialog.value,
|
|
294
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
|
|
295
|
+
title: __props.title,
|
|
296
|
+
userService: __props.userService,
|
|
297
|
+
userAction: __props.userAction,
|
|
298
|
+
userParams: __props.params,
|
|
299
|
+
onChange: handleSelectDialogChange
|
|
300
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
301
|
+
createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
|
|
302
|
+
__props.openType == 3 ? (openBlock(), createBlock(_sfc_main$4, {
|
|
303
|
+
key: 3,
|
|
304
|
+
ref_key: "tableAccountDialogRef",
|
|
305
|
+
ref: tableAccountDialogRef,
|
|
306
|
+
visible: visibleopenDialog.value,
|
|
307
|
+
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
|
|
308
|
+
title: __props.title,
|
|
309
|
+
userService: __props.accountService,
|
|
310
|
+
userAction: __props.accountAction,
|
|
311
|
+
userParams: __props.params,
|
|
312
|
+
onChange: handleSelectDialogChange
|
|
313
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
314
|
+
createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
|
|
315
|
+
__props.openType == 4 ? (openBlock(), createBlock(_sfc_main$5, {
|
|
316
|
+
key: 4,
|
|
317
|
+
ref_key: "tableSubjectDialogRef",
|
|
318
|
+
ref: tableSubjectDialogRef,
|
|
319
|
+
visible: visibleopenDialog.value,
|
|
320
|
+
"onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
|
|
321
|
+
title: __props.title,
|
|
322
|
+
subjectService: __props.subjectService,
|
|
323
|
+
subjectAction: __props.subjectAction,
|
|
324
|
+
subjectParams: __props.params,
|
|
325
|
+
onChange: handleSelectDialogChange
|
|
326
|
+
}, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : createCommentVNode("v-if", true),
|
|
327
|
+
createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
|
|
328
|
+
__props.openType == 5 ? (openBlock(), createBlock(_sfc_main$6, {
|
|
329
|
+
key: 5,
|
|
330
|
+
ref_key: "tableLineDialogRef",
|
|
331
|
+
ref: tableLineDialogRef,
|
|
332
|
+
visible: visibleopenDialog.value,
|
|
333
|
+
"onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
|
|
334
|
+
title: __props.title,
|
|
335
|
+
userService: __props.userService,
|
|
336
|
+
userAction: __props.userAction,
|
|
337
|
+
userParams: __props.params,
|
|
338
|
+
onChange: handleSelectDialogChange
|
|
339
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
340
|
+
]),
|
|
341
|
+
key: "0"
|
|
342
|
+
} : void 0
|
|
343
|
+
]), 1032, ["modelValue", "placeholder"]);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
export { _sfc_main as default };
|
|
@@ -35,7 +35,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["update:visible", "change"],
|
|
38
|
-
setup(__props, { emit: __emit }) {
|
|
38
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
39
|
let emits = __emit;
|
|
40
40
|
const props = __props;
|
|
41
41
|
const userList = ref([]);
|
|
@@ -56,7 +56,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
onMounted(async () => {
|
|
59
|
-
await getUserList();
|
|
60
59
|
});
|
|
61
60
|
const resetQuery = () => {
|
|
62
61
|
state.queryParams = {};
|
|
@@ -91,6 +90,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
90
|
checkedUsersList.value = [];
|
|
92
91
|
emits("update:visible", false);
|
|
93
92
|
};
|
|
93
|
+
__expose({
|
|
94
|
+
handleQuery
|
|
95
|
+
});
|
|
94
96
|
return (_ctx, _cache) => {
|
|
95
97
|
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
96
98
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -37,7 +37,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
emits: ["update:visible", "change"],
|
|
40
|
-
setup(__props, { emit: __emit }) {
|
|
40
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
41
41
|
let emits = __emit;
|
|
42
42
|
const props = __props;
|
|
43
43
|
let visibleDialog = computed({
|
|
@@ -57,7 +57,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
});
|
|
58
58
|
const tableList = ref([]);
|
|
59
59
|
onMounted(async () => {
|
|
60
|
-
await getTableList();
|
|
61
60
|
state.treeData = [{ id: 1, name: "\u8D44\u4EA7", code: "" }, { id: 2, name: "\u8D1F\u503A", code: "" }, { id: 3, name: "\u6743\u76CA", code: "" }, { id: 4, name: "\u6210\u672C", code: "" }, { id: 5, name: "\u635F\u76CA", code: "" }];
|
|
62
61
|
});
|
|
63
62
|
const getTableList = async () => {
|
|
@@ -86,6 +85,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
85
|
const closeDialog = () => {
|
|
87
86
|
emits("update:visible", false);
|
|
88
87
|
};
|
|
88
|
+
__expose({
|
|
89
|
+
handleQuery
|
|
90
|
+
});
|
|
89
91
|
return (_ctx, _cache) => {
|
|
90
92
|
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
91
93
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -53,7 +53,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
emits: ["update:visible", "change"],
|
|
56
|
-
setup(__props, { emit: __emit }) {
|
|
56
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
57
57
|
let emits = __emit;
|
|
58
58
|
const props = __props;
|
|
59
59
|
const userList = ref([]);
|
|
@@ -75,7 +75,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
onMounted(async () => {
|
|
78
|
-
await getUserList();
|
|
79
78
|
});
|
|
80
79
|
const resetQuery = () => {
|
|
81
80
|
state.queryParams = {};
|
|
@@ -118,6 +117,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
117
|
checkedUsersList.value = [];
|
|
119
118
|
emits("update:visible", false);
|
|
120
119
|
};
|
|
120
|
+
__expose({
|
|
121
|
+
handleQuery
|
|
122
|
+
});
|
|
121
123
|
return (_ctx, _cache) => {
|
|
122
124
|
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
123
125
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -365,7 +367,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
365
367
|
/* STABLE */
|
|
366
368
|
}, 8, ["data"]),
|
|
367
369
|
createVNode(_component_el_pagination, {
|
|
368
|
-
|
|
370
|
+
"current-page": state.queryParams.page,
|
|
369
371
|
"page-size": state.queryParams.pageSize,
|
|
370
372
|
total: state.queryParams.total,
|
|
371
373
|
"page-sizes": [10, 20, 50, 100],
|
|
@@ -374,7 +376,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
374
376
|
onCurrentChange: handleCurrentChange,
|
|
375
377
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
376
378
|
style: { "padding-bottom": "8px" }
|
|
377
|
-
}, null, 8, ["
|
|
379
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
378
380
|
]),
|
|
379
381
|
_: 1
|
|
380
382
|
/* STABLE */
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import './index.vue.mjs';
|
|
2
|
+
import './autoext.vue.mjs';
|
|
2
3
|
import _sfc_main from './index2.vue.mjs';
|
|
4
|
+
import _sfc_main$1 from './autoext2.vue.mjs';
|
|
3
5
|
|
|
4
6
|
const FmAutocomplete = _sfc_main;
|
|
7
|
+
const FmAutocompleteExt = _sfc_main$1;
|
|
5
8
|
|
|
6
|
-
export { FmAutocomplete };
|
|
9
|
+
export { FmAutocomplete, FmAutocompleteExt };
|
|
@@ -14,6 +14,6 @@ export { FModifyRecord } from './modifyRecord/index.mjs';
|
|
|
14
14
|
export { FmSelect } from './fm-select/index.mjs';
|
|
15
15
|
export { Fminputdropdown } from './fm-inputdropdown/index.mjs';
|
|
16
16
|
export { FmInputNumber } from './fm-inputnumber/index.mjs';
|
|
17
|
-
export { FmAutocomplete } from './fm-autocomplete/index.mjs';
|
|
17
|
+
export { FmAutocomplete, FmAutocompleteExt } from './fm-autocomplete/index.mjs';
|
|
18
18
|
export { Fmdatepicker } from './fm-datepicker/index.mjs';
|
|
19
19
|
export { FmPeriod } from './fm-period/index.mjs';
|