@fmdeui/fmui 1.0.160 → 1.0.162
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/dirverSelectDialog.vue.d.ts +72 -0
- package/es/components/fm-autocomplete/component/guideSelectDialog.vue.d.ts +72 -0
- package/es/components/fm-autocomplete/index.d.ts +176 -0
- package/es/components/fm-autocomplete/index.vue.d.ts +352 -0
- package/es/components/select-table/index.d.ts +50 -5
- package/es/components/select-table/src/index.vue.d.ts +21 -3
- package/es/components/select-table/src/type.d.ts +4 -0
- package/es/packages/api/index.mjs +1 -1
- package/es/packages/components/fm-autocomplete/component/accountSelectDialog2.vue.mjs +2 -2
- package/es/packages/components/fm-autocomplete/component/dirverSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/dirverSelectDialog2.vue.mjs +334 -0
- package/es/packages/components/fm-autocomplete/component/guideSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/guideSelectDialog2.vue.mjs +322 -0
- package/es/packages/components/fm-autocomplete/component/linSelectDialog2.vue.mjs +2 -2
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.mjs +2 -2
- package/es/packages/components/fm-autocomplete/component/supplierUserSelectDialog2.vue.mjs +2 -2
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +38 -2
- package/es/packages/components/select-table/src/index2.vue.mjs +114 -25
- package/index.js +1026 -261
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +1027 -262
- package/lib/components/fm-autocomplete/component/dirverSelectDialog.vue.d.ts +72 -0
- package/lib/components/fm-autocomplete/component/guideSelectDialog.vue.d.ts +72 -0
- package/lib/components/fm-autocomplete/index.d.ts +176 -0
- package/lib/components/fm-autocomplete/index.vue.d.ts +352 -0
- package/lib/components/select-table/index.d.ts +50 -5
- package/lib/components/select-table/src/index.vue.d.ts +21 -3
- package/lib/components/select-table/src/type.d.ts +4 -0
- package/lib/packages/api/index.js +1 -1
- package/lib/packages/components/fm-autocomplete/component/accountSelectDialog2.vue.js +2 -2
- package/lib/packages/components/fm-autocomplete/component/dirverSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/dirverSelectDialog2.vue.js +338 -0
- package/lib/packages/components/fm-autocomplete/component/guideSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/guideSelectDialog2.vue.js +326 -0
- package/lib/packages/components/fm-autocomplete/component/linSelectDialog2.vue.js +2 -2
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.js +2 -2
- package/lib/packages/components/fm-autocomplete/component/supplierUserSelectDialog2.vue.js +2 -2
- package/lib/packages/components/fm-autocomplete/index2.vue.js +38 -2
- package/lib/packages/components/select-table/src/index2.vue.js +113 -24
- 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/{version.css → make-installer.css} +0 -0
|
@@ -3,8 +3,13 @@ import { FSelectTableProps } from './src/type';
|
|
|
3
3
|
export * from './src/type';
|
|
4
4
|
export * from './src/ClickOutside';
|
|
5
5
|
export declare const FSelectTable: {
|
|
6
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<
|
|
6
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
7
|
+
id?: any;
|
|
8
|
+
name?: any;
|
|
9
|
+
} & FSelectTableProps> & Readonly<{
|
|
7
10
|
"onPage-change"?: ((val: any) => any) | undefined;
|
|
11
|
+
"onUpdate:id"?: ((value: any) => any) | undefined;
|
|
12
|
+
"onUpdate:name"?: ((value: any) => any) | undefined;
|
|
8
13
|
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
|
|
9
14
|
onRadioChange?: ((row: any, value: any) => any) | undefined;
|
|
10
15
|
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
|
|
@@ -72,6 +77,10 @@ export declare const FSelectTable: {
|
|
|
72
77
|
readonly multipleDisableDelete: boolean;
|
|
73
78
|
readonly tableLoading: boolean;
|
|
74
79
|
readonly loadingTxt: string;
|
|
80
|
+
readonly apiService: string | undefined;
|
|
81
|
+
readonly apiAction: string;
|
|
82
|
+
readonly queryParams: Record<string, any>;
|
|
83
|
+
readonly responseFormatter: Function;
|
|
75
84
|
} & {
|
|
76
85
|
readonly value: boolean;
|
|
77
86
|
readonly remote: boolean;
|
|
@@ -108,7 +117,10 @@ export declare const FSelectTable: {
|
|
|
108
117
|
fQueryConditionRef: Ref<any, any>;
|
|
109
118
|
selectRef: Ref<any, any>;
|
|
110
119
|
selectTable: Ref<any, any>;
|
|
111
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
120
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
121
|
+
"update:id": (value: any) => any;
|
|
122
|
+
"update:name": (value: any) => any;
|
|
123
|
+
} & {
|
|
112
124
|
"page-change": (val: any) => any;
|
|
113
125
|
selectionChange: (val: any[], ids: any[]) => any;
|
|
114
126
|
radioChange: (row: any, value: any) => any;
|
|
@@ -133,6 +145,8 @@ export declare const FSelectTable: {
|
|
|
133
145
|
filterMethod: Function;
|
|
134
146
|
modelValue: any;
|
|
135
147
|
inputWidth: number;
|
|
148
|
+
apiService: string;
|
|
149
|
+
apiAction: string;
|
|
136
150
|
filterable: boolean;
|
|
137
151
|
isShowPagination: boolean;
|
|
138
152
|
useVirtual: boolean;
|
|
@@ -171,6 +185,8 @@ export declare const FSelectTable: {
|
|
|
171
185
|
multipleDisableDelete: boolean;
|
|
172
186
|
tableLoading: boolean;
|
|
173
187
|
loadingTxt: string;
|
|
188
|
+
queryParams: Record<string, any>;
|
|
189
|
+
responseFormatter: Function;
|
|
174
190
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, any, any, ComponentProvideOptions, {
|
|
175
191
|
P: {};
|
|
176
192
|
B: {};
|
|
@@ -178,8 +194,13 @@ export declare const FSelectTable: {
|
|
|
178
194
|
C: {};
|
|
179
195
|
M: {};
|
|
180
196
|
Defaults: {};
|
|
181
|
-
}, Readonly<
|
|
197
|
+
}, Readonly<{
|
|
198
|
+
id?: any;
|
|
199
|
+
name?: any;
|
|
200
|
+
} & FSelectTableProps> & Readonly<{
|
|
182
201
|
"onPage-change"?: ((val: any) => any) | undefined;
|
|
202
|
+
"onUpdate:id"?: ((value: any) => any) | undefined;
|
|
203
|
+
"onUpdate:name"?: ((value: any) => any) | undefined;
|
|
183
204
|
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
|
|
184
205
|
onRadioChange?: ((row: any, value: any) => any) | undefined;
|
|
185
206
|
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
|
|
@@ -247,6 +268,10 @@ export declare const FSelectTable: {
|
|
|
247
268
|
readonly multipleDisableDelete: boolean;
|
|
248
269
|
readonly tableLoading: boolean;
|
|
249
270
|
readonly loadingTxt: string;
|
|
271
|
+
readonly apiService: string | undefined;
|
|
272
|
+
readonly apiAction: string;
|
|
273
|
+
readonly queryParams: Record<string, any>;
|
|
274
|
+
readonly responseFormatter: Function;
|
|
250
275
|
} & {
|
|
251
276
|
readonly value: boolean;
|
|
252
277
|
readonly remote: boolean;
|
|
@@ -299,6 +324,8 @@ export declare const FSelectTable: {
|
|
|
299
324
|
filterMethod: Function;
|
|
300
325
|
modelValue: any;
|
|
301
326
|
inputWidth: number;
|
|
327
|
+
apiService: string;
|
|
328
|
+
apiAction: string;
|
|
302
329
|
filterable: boolean;
|
|
303
330
|
isShowPagination: boolean;
|
|
304
331
|
useVirtual: boolean;
|
|
@@ -337,12 +364,19 @@ export declare const FSelectTable: {
|
|
|
337
364
|
multipleDisableDelete: boolean;
|
|
338
365
|
tableLoading: boolean;
|
|
339
366
|
loadingTxt: string;
|
|
367
|
+
queryParams: Record<string, any>;
|
|
368
|
+
responseFormatter: Function;
|
|
340
369
|
}>;
|
|
341
370
|
__isFragment?: never;
|
|
342
371
|
__isTeleport?: never;
|
|
343
372
|
__isSuspense?: never;
|
|
344
|
-
} & ComponentOptionsBase<Readonly<
|
|
373
|
+
} & ComponentOptionsBase<Readonly<{
|
|
374
|
+
id?: any;
|
|
375
|
+
name?: any;
|
|
376
|
+
} & FSelectTableProps> & Readonly<{
|
|
345
377
|
"onPage-change"?: ((val: any) => any) | undefined;
|
|
378
|
+
"onUpdate:id"?: ((value: any) => any) | undefined;
|
|
379
|
+
"onUpdate:name"?: ((value: any) => any) | undefined;
|
|
346
380
|
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
|
|
347
381
|
onRadioChange?: ((row: any, value: any) => any) | undefined;
|
|
348
382
|
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
|
|
@@ -410,6 +444,10 @@ export declare const FSelectTable: {
|
|
|
410
444
|
readonly multipleDisableDelete: boolean;
|
|
411
445
|
readonly tableLoading: boolean;
|
|
412
446
|
readonly loadingTxt: string;
|
|
447
|
+
readonly apiService: string | undefined;
|
|
448
|
+
readonly apiAction: string;
|
|
449
|
+
readonly queryParams: Record<string, any>;
|
|
450
|
+
readonly responseFormatter: Function;
|
|
413
451
|
} & {
|
|
414
452
|
readonly value: boolean;
|
|
415
453
|
readonly remote: boolean;
|
|
@@ -446,7 +484,10 @@ export declare const FSelectTable: {
|
|
|
446
484
|
fQueryConditionRef: Ref<any, any>;
|
|
447
485
|
selectRef: Ref<any, any>;
|
|
448
486
|
selectTable: Ref<any, any>;
|
|
449
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
487
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
488
|
+
"update:id": (value: any) => any;
|
|
489
|
+
"update:name": (value: any) => any;
|
|
490
|
+
} & {
|
|
450
491
|
"page-change": (val: any) => any;
|
|
451
492
|
selectionChange: (val: any[], ids: any[]) => any;
|
|
452
493
|
radioChange: (row: any, value: any) => any;
|
|
@@ -471,6 +512,8 @@ export declare const FSelectTable: {
|
|
|
471
512
|
filterMethod: Function;
|
|
472
513
|
modelValue: any;
|
|
473
514
|
inputWidth: number;
|
|
515
|
+
apiService: string;
|
|
516
|
+
apiAction: string;
|
|
474
517
|
filterable: boolean;
|
|
475
518
|
isShowPagination: boolean;
|
|
476
519
|
useVirtual: boolean;
|
|
@@ -509,6 +552,8 @@ export declare const FSelectTable: {
|
|
|
509
552
|
multipleDisableDelete: boolean;
|
|
510
553
|
tableLoading: boolean;
|
|
511
554
|
loadingTxt: string;
|
|
555
|
+
queryParams: Record<string, any>;
|
|
556
|
+
responseFormatter: Function;
|
|
512
557
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
513
558
|
$slots: any;
|
|
514
559
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FSelectTableProps } from './type';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = FSelectTableProps;
|
|
3
4
|
export type Emits = {
|
|
4
5
|
(event: "page-change", val: any): void;
|
|
5
6
|
(event: "selectionChange", val: any[], ids: any[]): void;
|
|
@@ -10,9 +11,13 @@ export type Emits = {
|
|
|
10
11
|
(event: "input-clear"): void;
|
|
11
12
|
(event: "input-click"): void;
|
|
12
13
|
};
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
'id'?: any;
|
|
16
|
+
'name'?: any;
|
|
17
|
+
} & __VLS_Props;
|
|
13
18
|
declare function __VLS_template(): any;
|
|
14
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: DefineComponent<
|
|
20
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
16
21
|
focus: () => void;
|
|
17
22
|
blur: () => void;
|
|
18
23
|
clear: () => void;
|
|
@@ -72,6 +77,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
|
|
|
72
77
|
readonly multipleDisableDelete: boolean;
|
|
73
78
|
readonly tableLoading: boolean;
|
|
74
79
|
readonly loadingTxt: string;
|
|
80
|
+
readonly apiService: string | undefined;
|
|
81
|
+
readonly apiAction: string;
|
|
82
|
+
readonly queryParams: Record<string, any>;
|
|
83
|
+
readonly responseFormatter: Function;
|
|
75
84
|
} & {
|
|
76
85
|
readonly value: boolean;
|
|
77
86
|
readonly remote: boolean;
|
|
@@ -108,7 +117,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
|
|
|
108
117
|
fQueryConditionRef: Ref<any, any>;
|
|
109
118
|
selectRef: Ref<any, any>;
|
|
110
119
|
selectTable: Ref<any, any>;
|
|
111
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
120
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
121
|
+
"update:id": (value: any) => any;
|
|
122
|
+
"update:name": (value: any) => any;
|
|
123
|
+
} & {
|
|
112
124
|
"page-change": (val: any) => any;
|
|
113
125
|
selectionChange: (val: any[], ids: any[]) => any;
|
|
114
126
|
radioChange: (row: any, value: any) => any;
|
|
@@ -117,8 +129,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
|
|
|
117
129
|
"input-blur": () => any;
|
|
118
130
|
"input-clear": () => any;
|
|
119
131
|
"input-click": () => any;
|
|
120
|
-
}, string, PublicProps, Readonly<
|
|
132
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
121
133
|
"onPage-change"?: ((val: any) => any) | undefined;
|
|
134
|
+
"onUpdate:id"?: ((value: any) => any) | undefined;
|
|
135
|
+
"onUpdate:name"?: ((value: any) => any) | undefined;
|
|
122
136
|
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
|
|
123
137
|
onRadioChange?: ((row: any, value: any) => any) | undefined;
|
|
124
138
|
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
|
|
@@ -142,6 +156,8 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
|
|
|
142
156
|
filterMethod: Function;
|
|
143
157
|
modelValue: any;
|
|
144
158
|
inputWidth: number;
|
|
159
|
+
apiService: string;
|
|
160
|
+
apiAction: string;
|
|
145
161
|
filterable: boolean;
|
|
146
162
|
isShowPagination: boolean;
|
|
147
163
|
useVirtual: boolean;
|
|
@@ -180,6 +196,8 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
|
|
|
180
196
|
multipleDisableDelete: boolean;
|
|
181
197
|
tableLoading: boolean;
|
|
182
198
|
loadingTxt: string;
|
|
199
|
+
queryParams: Record<string, any>;
|
|
200
|
+
responseFormatter: Function;
|
|
183
201
|
}, {}, {}, {}, string, ComponentProvideOptions, false, any, any>;
|
|
184
202
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
185
203
|
export default _default;
|
|
@@ -53,4 +53,8 @@ export interface FSelectTableProps {
|
|
|
53
53
|
multipleDisableDelete?: boolean;
|
|
54
54
|
tableLoading?: boolean;
|
|
55
55
|
loadingTxt?: string;
|
|
56
|
+
apiService?: string | undefined;
|
|
57
|
+
apiAction?: string | undefined;
|
|
58
|
+
queryParams?: Record<string, any>;
|
|
59
|
+
responseFormatter?: Function;
|
|
56
60
|
}
|
|
@@ -205,13 +205,13 @@ const CurrencyData = [
|
|
|
205
205
|
}
|
|
206
206
|
];
|
|
207
207
|
const COST_CATEGORIES = [
|
|
208
|
+
{ code: "GUIDE", type: 10, name: "\u6D3E\u5BFC\u6E38", icon: "\u{1F468}\u200D", color: "#f5222d", bg: "#fff1f0" },
|
|
208
209
|
{ code: "HOTEL", type: 8, name: "\u623F\u8D39", icon: "\u{1F3E8}", color: "#165dff", bg: "#e8f3ff" },
|
|
209
210
|
{ code: "MEAL", type: 13, name: "\u9910\u8D39", icon: "\u{1F37D}\uFE0F", color: "#fa8c16", bg: "#fff7e6" },
|
|
210
211
|
{ code: "BUS", type: 12, name: "\u8F66\u8D39", icon: "\u{1F68C}", color: "#722ed1", bg: "#f9f0ff" },
|
|
211
212
|
{ code: "TICKET", type: 3, name: "\u7968\u52A1", icon: "\u{1F3AB}", color: "#13c2c2", bg: "#e6fffb" },
|
|
212
213
|
{ code: "SCENIC", type: 11, name: "\u666F\u70B9", icon: "\uFE0F\u{1F3DE}\uFE0F", color: "#52c41a", bg: "#f6ffed" },
|
|
213
214
|
{ code: "INSURE", type: 9, name: "\u4FDD\u9669", icon: "\u{1F6E1}\uFE0F", color: "#eb2f96", bg: "#fff0f6" },
|
|
214
|
-
//{ code: 'GUIDE',type:10, name: '导服', icon: '👨', color: '#f5222d', bg: '#fff1f0' },
|
|
215
215
|
{ code: "VISA", type: 15, name: "\u7B7E\u8BC1", icon: "\u{1F4CB}", color: "#faad14", bg: "#fffbe6" },
|
|
216
216
|
{ code: "SHIP", type: 14, name: "\u6E38\u8239", icon: "\u{1F6A2}", color: "#0ea5e9", bg: "#e0f2fe" },
|
|
217
217
|
{ code: "TOPLAN", type: 6, name: "\u5730\u63A5", icon: "\u{1F91D}", color: "#1890ff", bg: "#e6f7ff" },
|
|
@@ -296,7 +296,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
296
296
|
/* STABLE */
|
|
297
297
|
}, 8, ["data"]),
|
|
298
298
|
vue.createVNode(_component_el_pagination, {
|
|
299
|
-
|
|
299
|
+
"current-page": state.queryParams.page,
|
|
300
300
|
"page-size": state.queryParams.pageSize,
|
|
301
301
|
total: state.queryParams.total,
|
|
302
302
|
"page-sizes": [10, 20, 50, 100],
|
|
@@ -305,7 +305,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
305
305
|
onCurrentChange: handleCurrentChange,
|
|
306
306
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
307
307
|
style: { "padding-bottom": "8px" }
|
|
308
|
-
}, null, 8, ["
|
|
308
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
309
309
|
]),
|
|
310
310
|
_: 1
|
|
311
311
|
/* STABLE */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var dirverSelectDialog_vue_vue_type_script_setup_true_lang = require('./dirverSelectDialog2.vue.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = dirverSelectDialog_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../api/index.js');
|
|
7
|
+
var index = require('../../../api/base/index.js');
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
10
|
+
const _hoisted_2 = { style: { "margin-top": "10px" } };
|
|
11
|
+
const _hoisted_3 = { class: "dialog-footer" };
|
|
12
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
__name: "dirverSelectDialog",
|
|
14
|
+
props: {
|
|
15
|
+
visible: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false
|
|
18
|
+
},
|
|
19
|
+
title: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
data: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
},
|
|
27
|
+
userService: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "autoRes"
|
|
30
|
+
},
|
|
31
|
+
userAction: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "dirverTable"
|
|
34
|
+
},
|
|
35
|
+
userParams: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: () => {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:visible", "change"],
|
|
42
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
43
|
+
let emits = __emit;
|
|
44
|
+
const props = __props;
|
|
45
|
+
const dataList = vue.ref([]);
|
|
46
|
+
let checkedUsersList = vue.ref([]);
|
|
47
|
+
const state = vue.reactive({
|
|
48
|
+
total: 0,
|
|
49
|
+
pdata: null,
|
|
50
|
+
queryParams: {
|
|
51
|
+
orgId: -1,
|
|
52
|
+
page: 1,
|
|
53
|
+
pageSize: 50
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
let visibleDialog = vue.computed({
|
|
57
|
+
get() {
|
|
58
|
+
return props.visible;
|
|
59
|
+
},
|
|
60
|
+
set() {
|
|
61
|
+
closeDialog();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
vue.onMounted(async () => {
|
|
65
|
+
});
|
|
66
|
+
const resetQuery = () => {
|
|
67
|
+
state.queryParams = {};
|
|
68
|
+
handleQuery();
|
|
69
|
+
};
|
|
70
|
+
const getUserList = async () => {
|
|
71
|
+
var _a, _b, _c, _d;
|
|
72
|
+
let res = await index.useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
|
|
73
|
+
dataList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
74
|
+
state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
|
|
75
|
+
};
|
|
76
|
+
async function handleQuery() {
|
|
77
|
+
state.queryParams.pageNum = 1;
|
|
78
|
+
await getUserList();
|
|
79
|
+
}
|
|
80
|
+
function handleSelectUser(row) {
|
|
81
|
+
if (!row || row.id == "") return;
|
|
82
|
+
emits("change", row);
|
|
83
|
+
}
|
|
84
|
+
const handledbclick = (row) => {
|
|
85
|
+
handleSelectUser(row);
|
|
86
|
+
};
|
|
87
|
+
const handleSizeChange = (val) => {
|
|
88
|
+
state.queryParams.pageSize = val;
|
|
89
|
+
handleQuery();
|
|
90
|
+
};
|
|
91
|
+
const handleCurrentChange = (val) => {
|
|
92
|
+
state.queryParams.page = val;
|
|
93
|
+
handleQuery();
|
|
94
|
+
};
|
|
95
|
+
const closeDialog = () => {
|
|
96
|
+
checkedUsersList.value = [];
|
|
97
|
+
emits("update:visible", false);
|
|
98
|
+
};
|
|
99
|
+
__expose({
|
|
100
|
+
handleQuery
|
|
101
|
+
});
|
|
102
|
+
return (_ctx, _cache) => {
|
|
103
|
+
const _component_ele_Edit = vue.resolveComponent("ele-Edit");
|
|
104
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
105
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
106
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
107
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
|
108
|
+
const _component_el_button_group = vue.resolveComponent("el-button-group");
|
|
109
|
+
const _component_el_form = vue.resolveComponent("el-form");
|
|
110
|
+
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
111
|
+
const _component_ele_Plus = vue.resolveComponent("ele-Plus");
|
|
112
|
+
const _component_el_table = vue.resolveComponent("el-table");
|
|
113
|
+
const _component_el_pagination = vue.resolveComponent("el-pagination");
|
|
114
|
+
const _component_el_card = vue.resolveComponent("el-card");
|
|
115
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
|
116
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
|
117
|
+
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
118
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
119
|
+
modelValue: vue.unref(visibleDialog),
|
|
120
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
121
|
+
style: { "width": "70vw" },
|
|
122
|
+
"append-to-body": "",
|
|
123
|
+
draggable: "",
|
|
124
|
+
"close-on-click-modal": false
|
|
125
|
+
}, {
|
|
126
|
+
header: vue.withCtx(() => [
|
|
127
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
128
|
+
vue.createVNode(_component_el_icon, {
|
|
129
|
+
size: "16",
|
|
130
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
131
|
+
}, {
|
|
132
|
+
default: vue.withCtx(() => [
|
|
133
|
+
vue.createVNode(_component_ele_Edit)
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
/* STABLE */
|
|
137
|
+
}),
|
|
138
|
+
vue.createElementVNode(
|
|
139
|
+
"span",
|
|
140
|
+
null,
|
|
141
|
+
vue.toDisplayString(_ctx.$t("\u9009\u62E9")) + vue.toDisplayString(_ctx.$t(__props.title)),
|
|
142
|
+
1
|
|
143
|
+
/* TEXT */
|
|
144
|
+
)
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
footer: vue.withCtx(() => [
|
|
148
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
149
|
+
vue.createVNode(_component_el_button, {
|
|
150
|
+
icon: "ele-CircleCloseFilled",
|
|
151
|
+
onClick: closeDialog
|
|
152
|
+
}, {
|
|
153
|
+
default: vue.withCtx(() => [
|
|
154
|
+
vue.createTextVNode(
|
|
155
|
+
vue.toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
156
|
+
1
|
|
157
|
+
/* TEXT */
|
|
158
|
+
)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
/* STABLE */
|
|
162
|
+
}),
|
|
163
|
+
vue.createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
164
|
+
])
|
|
165
|
+
]),
|
|
166
|
+
default: vue.withCtx(() => [
|
|
167
|
+
vue.createVNode(_component_el_row, { gutter: 10 }, {
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
vue.createVNode(_component_el_col, { span: 24 }, {
|
|
170
|
+
default: vue.withCtx(() => [
|
|
171
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
172
|
+
vue.createVNode(_component_el_form, {
|
|
173
|
+
model: state.queryParams,
|
|
174
|
+
ref: "queryRef",
|
|
175
|
+
inline: true
|
|
176
|
+
}, {
|
|
177
|
+
default: vue.withCtx(() => [
|
|
178
|
+
vue.createVNode(_component_el_form_item, {
|
|
179
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
180
|
+
}, {
|
|
181
|
+
default: vue.withCtx(() => [
|
|
182
|
+
vue.createVNode(_component_el_input, {
|
|
183
|
+
modelValue: state.queryParams.keyword,
|
|
184
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
|
|
185
|
+
clearable: "",
|
|
186
|
+
style: { "width": "150px" },
|
|
187
|
+
onKeyup: vue.withKeys(handleQuery, ["enter"])
|
|
188
|
+
}, null, 8, ["modelValue"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
/* STABLE */
|
|
192
|
+
}, 8, ["label"]),
|
|
193
|
+
vue.createVNode(_component_el_form_item, null, {
|
|
194
|
+
default: vue.withCtx(() => [
|
|
195
|
+
vue.createVNode(_component_el_button_group, null, {
|
|
196
|
+
default: vue.withCtx(() => [
|
|
197
|
+
vue.createVNode(_component_el_button, {
|
|
198
|
+
type: "primary",
|
|
199
|
+
icon: "ele-Search",
|
|
200
|
+
onClick: handleQuery
|
|
201
|
+
}, {
|
|
202
|
+
default: vue.withCtx(() => [
|
|
203
|
+
vue.createTextVNode(
|
|
204
|
+
vue.toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
205
|
+
1
|
|
206
|
+
/* TEXT */
|
|
207
|
+
)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
/* STABLE */
|
|
211
|
+
}),
|
|
212
|
+
vue.createVNode(_component_el_button, {
|
|
213
|
+
icon: "ele-Refresh",
|
|
214
|
+
onClick: resetQuery
|
|
215
|
+
}, {
|
|
216
|
+
default: vue.withCtx(() => [
|
|
217
|
+
vue.createTextVNode(
|
|
218
|
+
vue.toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
219
|
+
1
|
|
220
|
+
/* TEXT */
|
|
221
|
+
)
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
/* STABLE */
|
|
225
|
+
})
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
/* STABLE */
|
|
229
|
+
}),
|
|
230
|
+
vue.createCommentVNode(' <el-button type="primary" icon="ele-DArrowRight" plain style="margin-left: 10px" @click="handleSelectAllUser"> \u5168\u9009 </el-button> ')
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
/* STABLE */
|
|
234
|
+
})
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
/* STABLE */
|
|
238
|
+
}, 8, ["model"]),
|
|
239
|
+
vue.createVNode(_component_el_card, {
|
|
240
|
+
class: "full-table",
|
|
241
|
+
shadow: "hover"
|
|
242
|
+
}, {
|
|
243
|
+
default: vue.withCtx(() => [
|
|
244
|
+
vue.createVNode(_component_el_table, {
|
|
245
|
+
ref: "refTable",
|
|
246
|
+
data: dataList.value,
|
|
247
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
248
|
+
onRowDblclick: handledbclick
|
|
249
|
+
}, {
|
|
250
|
+
default: vue.withCtx(() => [
|
|
251
|
+
vue.createVNode(_component_el_table_column, {
|
|
252
|
+
label: _ctx.$t("\u540D\u79F0"),
|
|
253
|
+
prop: "name",
|
|
254
|
+
align: "center",
|
|
255
|
+
"show-overflow-tooltip": true
|
|
256
|
+
}, null, 8, ["label"]),
|
|
257
|
+
vue.createVNode(_component_el_table_column, {
|
|
258
|
+
label: _ctx.$t("\u7535\u8BDD"),
|
|
259
|
+
prop: "phone",
|
|
260
|
+
align: "center",
|
|
261
|
+
"show-overflow-tooltip": true
|
|
262
|
+
}, null, 8, ["label"]),
|
|
263
|
+
vue.createVNode(_component_el_table_column, {
|
|
264
|
+
label: _ctx.$t("\u8F66\u724C"),
|
|
265
|
+
prop: "license",
|
|
266
|
+
align: "center",
|
|
267
|
+
"show-overflow-tooltip": true
|
|
268
|
+
}, null, 8, ["label"]),
|
|
269
|
+
vue.createVNode(_component_el_table_column, {
|
|
270
|
+
label: _ctx.$t("\u5EA7\u4F4D\u6570"),
|
|
271
|
+
prop: "seats",
|
|
272
|
+
align: "center",
|
|
273
|
+
"show-overflow-tooltip": true
|
|
274
|
+
}, null, 8, ["label"]),
|
|
275
|
+
vue.createVNode(_component_el_table_column, {
|
|
276
|
+
label: _ctx.$t("\u64CD\u4F5C"),
|
|
277
|
+
width: "60",
|
|
278
|
+
align: "center"
|
|
279
|
+
}, {
|
|
280
|
+
default: vue.withCtx((scope) => [
|
|
281
|
+
vue.createVNode(_component_el_button, {
|
|
282
|
+
link: "",
|
|
283
|
+
type: "primary",
|
|
284
|
+
onClick: ($event) => handleSelectUser(scope.row)
|
|
285
|
+
}, {
|
|
286
|
+
default: vue.withCtx(() => [
|
|
287
|
+
vue.createVNode(_component_el_icon, null, {
|
|
288
|
+
default: vue.withCtx(() => [
|
|
289
|
+
vue.createVNode(_component_ele_Plus)
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
/* STABLE */
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
/* STABLE */
|
|
297
|
+
}, 8, ["onClick"])
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
/* STABLE */
|
|
301
|
+
}, 8, ["label"])
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
/* STABLE */
|
|
305
|
+
}, 8, ["data"]),
|
|
306
|
+
vue.createVNode(_component_el_pagination, {
|
|
307
|
+
"current-page": state.queryParams.page,
|
|
308
|
+
"page-size": state.queryParams.pageSize,
|
|
309
|
+
total: state.queryParams.total,
|
|
310
|
+
"page-sizes": [10, 20, 50, 100],
|
|
311
|
+
background: "",
|
|
312
|
+
onSizeChange: handleSizeChange,
|
|
313
|
+
onCurrentChange: handleCurrentChange,
|
|
314
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
315
|
+
style: { "padding-bottom": "8px" }
|
|
316
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
/* STABLE */
|
|
320
|
+
})
|
|
321
|
+
])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
})
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
/* STABLE */
|
|
329
|
+
})
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
/* STABLE */
|
|
333
|
+
}, 8, ["modelValue"]);
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var guideSelectDialog_vue_vue_type_script_setup_true_lang = require('./guideSelectDialog2.vue.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = guideSelectDialog_vue_vue_type_script_setup_true_lang.default;
|