@fmdeui/fmui 1.0.95 → 1.0.96
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 +9 -0
- package/es/components/fmtree/index.d.ts +9 -0
- package/es/components/fmtree/index.vue.d.ts +15 -0
- package/es/packages/components/fm-autocomplete/component/userSelectDialog.vue2.mjs +16 -7
- package/es/packages/components/fm-autocomplete/index.vue2.mjs +7 -7
- package/es/packages/components/fmtree/index.vue2.mjs +8 -1
- package/index.js +32 -16
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +32 -16
- package/lib/components/fm-autocomplete/component/userSelectDialog.vue.d.ts +9 -0
- package/lib/components/fmtree/index.d.ts +9 -0
- package/lib/components/fmtree/index.vue.d.ts +15 -0
- package/lib/packages/components/fm-autocomplete/component/userSelectDialog.vue2.js +16 -7
- package/lib/packages/components/fm-autocomplete/index.vue2.js +7 -7
- package/lib/packages/components/fmtree/index.vue2.js +8 -1
- 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/{version.css → make-installer.css} +0 -0
- /package/lib/{version.css → component.css} +0 -0
|
@@ -20,6 +20,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
+
orgPost: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
23
27
|
orgparas: {
|
|
24
28
|
type: ObjectConstructor;
|
|
25
29
|
default: () => void;
|
|
@@ -60,6 +64,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
60
64
|
type: StringConstructor;
|
|
61
65
|
default: string;
|
|
62
66
|
};
|
|
67
|
+
orgPost: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
63
71
|
orgparas: {
|
|
64
72
|
type: ObjectConstructor;
|
|
65
73
|
default: () => void;
|
|
@@ -85,6 +93,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
85
93
|
visible: boolean;
|
|
86
94
|
orgService: string;
|
|
87
95
|
orgAction: string;
|
|
96
|
+
orgPost: boolean;
|
|
88
97
|
orgparas: Record<string, any>;
|
|
89
98
|
userService: string;
|
|
90
99
|
userAction: string;
|
|
@@ -13,6 +13,10 @@ export declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
isPost: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
16
20
|
paras: {
|
|
17
21
|
type: ObjectConstructor;
|
|
18
22
|
default: null;
|
|
@@ -81,6 +85,10 @@ export declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
|
81
85
|
type: StringConstructor;
|
|
82
86
|
default: string;
|
|
83
87
|
};
|
|
88
|
+
isPost: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
84
92
|
paras: {
|
|
85
93
|
type: ObjectConstructor;
|
|
86
94
|
default: null;
|
|
@@ -129,6 +137,7 @@ export declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
|
129
137
|
placeholder: string;
|
|
130
138
|
apiService: string;
|
|
131
139
|
apiAction: string;
|
|
140
|
+
isPost: boolean;
|
|
132
141
|
paras: Record<string, any>;
|
|
133
142
|
nodeKey: string;
|
|
134
143
|
defaultProps: Record<string, any>;
|
|
@@ -19,6 +19,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* 是否POST请求
|
|
24
|
+
*/
|
|
25
|
+
isPost: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
22
29
|
paras: {
|
|
23
30
|
type: ObjectConstructor;
|
|
24
31
|
default: null;
|
|
@@ -93,6 +100,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
93
100
|
type: StringConstructor;
|
|
94
101
|
default: string;
|
|
95
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* 是否POST请求
|
|
105
|
+
*/
|
|
106
|
+
isPost: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
96
110
|
paras: {
|
|
97
111
|
type: ObjectConstructor;
|
|
98
112
|
default: null;
|
|
@@ -141,6 +155,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
141
155
|
placeholder: string;
|
|
142
156
|
apiService: string;
|
|
143
157
|
apiAction: string;
|
|
158
|
+
isPost: boolean;
|
|
144
159
|
paras: Record<string, any>;
|
|
145
160
|
nodeKey: string;
|
|
146
161
|
defaultProps: Record<string, any>;
|
|
@@ -24,11 +24,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
orgService: {
|
|
26
26
|
type: String,
|
|
27
|
-
default: "
|
|
27
|
+
default: "autoRes"
|
|
28
28
|
},
|
|
29
29
|
orgAction: {
|
|
30
30
|
type: String,
|
|
31
|
-
default: "
|
|
31
|
+
default: "userOrgList"
|
|
32
|
+
},
|
|
33
|
+
orgPost: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
32
36
|
},
|
|
33
37
|
orgparas: {
|
|
34
38
|
type: Object,
|
|
@@ -37,11 +41,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
41
|
},
|
|
38
42
|
userService: {
|
|
39
43
|
type: String,
|
|
40
|
-
default: "
|
|
44
|
+
default: "autoRes"
|
|
41
45
|
},
|
|
42
46
|
userAction: {
|
|
43
47
|
type: String,
|
|
44
|
-
default: "
|
|
48
|
+
default: "UserTable"
|
|
45
49
|
},
|
|
46
50
|
userParams: {
|
|
47
51
|
type: Object,
|
|
@@ -96,6 +100,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
100
|
if (!row || row.id == "") return;
|
|
97
101
|
emits("change", { id: row.id, name: row.realName, data: row });
|
|
98
102
|
}
|
|
103
|
+
const handledbclick = (row) => {
|
|
104
|
+
handleSelectUser(row);
|
|
105
|
+
};
|
|
99
106
|
const handleSizeChange = (val) => {
|
|
100
107
|
state.queryParams.pageSize = val;
|
|
101
108
|
handleQuery();
|
|
@@ -189,10 +196,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
196
|
ref: "orgTreeRef",
|
|
190
197
|
apiService: __props.orgService,
|
|
191
198
|
apiAction: __props.orgAction,
|
|
192
|
-
|
|
199
|
+
isPost: __props.orgPost,
|
|
200
|
+
apiparas: __props.orgparas,
|
|
193
201
|
onNodeClick: handleNodeChange,
|
|
194
202
|
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
195
|
-
}, null, 8, ["apiService", "apiAction", "
|
|
203
|
+
}, null, 8, ["apiService", "apiAction", "isPost", "apiparas"])
|
|
196
204
|
]),
|
|
197
205
|
_: 1
|
|
198
206
|
/* STABLE */
|
|
@@ -282,7 +290,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
282
290
|
createVNode(_component_el_table, {
|
|
283
291
|
ref: "refTable",
|
|
284
292
|
data: userList.value,
|
|
285
|
-
style: { "height": "calc(70vh - 96px)" }
|
|
293
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
294
|
+
onRowDblclick: handledbclick
|
|
286
295
|
}, {
|
|
287
296
|
default: withCtx(() => [
|
|
288
297
|
createVNode(_component_el_table_column, {
|
|
@@ -21,14 +21,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
*/
|
|
22
22
|
atoService: {
|
|
23
23
|
type: String,
|
|
24
|
-
default: "
|
|
24
|
+
default: "autoRes"
|
|
25
25
|
},
|
|
26
26
|
/**
|
|
27
27
|
* ato service 下的方法
|
|
28
28
|
*/
|
|
29
29
|
atoAction: {
|
|
30
30
|
type: String,
|
|
31
|
-
default: "
|
|
31
|
+
default: "autoUser"
|
|
32
32
|
},
|
|
33
33
|
top: {
|
|
34
34
|
type: Number,
|
|
@@ -36,7 +36,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
},
|
|
37
37
|
searchsize: {
|
|
38
38
|
type: Number,
|
|
39
|
-
default:
|
|
39
|
+
default: 22
|
|
40
40
|
},
|
|
41
41
|
/**
|
|
42
42
|
* 值的属性值
|
|
@@ -86,11 +86,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
},
|
|
87
87
|
orgService: {
|
|
88
88
|
type: String,
|
|
89
|
-
default: "
|
|
89
|
+
default: "autoRes"
|
|
90
90
|
},
|
|
91
91
|
orgAction: {
|
|
92
92
|
type: String,
|
|
93
|
-
default: "
|
|
93
|
+
default: "userOrgList"
|
|
94
94
|
},
|
|
95
95
|
orgparas: {
|
|
96
96
|
type: Object,
|
|
@@ -100,11 +100,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
},
|
|
101
101
|
userService: {
|
|
102
102
|
type: String,
|
|
103
|
-
default: "
|
|
103
|
+
default: "autoRes"
|
|
104
104
|
},
|
|
105
105
|
userAction: {
|
|
106
106
|
type: String,
|
|
107
|
-
default: "
|
|
107
|
+
default: "UserTable"
|
|
108
108
|
},
|
|
109
109
|
userParams: {
|
|
110
110
|
type: Object,
|
|
@@ -29,6 +29,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
type: String,
|
|
30
30
|
default: ""
|
|
31
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* 是否POST请求
|
|
34
|
+
*/
|
|
35
|
+
isPost: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
32
39
|
paras: {
|
|
33
40
|
type: Object,
|
|
34
41
|
default: null
|
|
@@ -81,7 +88,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
88
|
const fetchTreeData = async (showLoading = true) => {
|
|
82
89
|
var _a, _b;
|
|
83
90
|
if (showLoading) state.loading = true;
|
|
84
|
-
var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
91
|
+
var res = props.isPost ? await useBaseApi(props.apiService).post(props.paras, props.apiAction) : await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
85
92
|
state.folderData = (_a = res.data.result) != null ? _a : [];
|
|
86
93
|
if (showLoading) state.loading = false;
|
|
87
94
|
const rtreeData = (_b = res.data.result) != null ? _b : [];
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.96 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -26969,11 +26969,15 @@
|
|
|
26969
26969
|
},
|
|
26970
26970
|
orgService: {
|
|
26971
26971
|
type: String,
|
|
26972
|
-
default: "
|
|
26972
|
+
default: "autoRes"
|
|
26973
26973
|
},
|
|
26974
26974
|
orgAction: {
|
|
26975
26975
|
type: String,
|
|
26976
|
-
default: "
|
|
26976
|
+
default: "userOrgList"
|
|
26977
|
+
},
|
|
26978
|
+
orgPost: {
|
|
26979
|
+
type: Boolean,
|
|
26980
|
+
default: true
|
|
26977
26981
|
},
|
|
26978
26982
|
orgparas: {
|
|
26979
26983
|
type: Object,
|
|
@@ -26982,11 +26986,11 @@
|
|
|
26982
26986
|
},
|
|
26983
26987
|
userService: {
|
|
26984
26988
|
type: String,
|
|
26985
|
-
default: "
|
|
26989
|
+
default: "autoRes"
|
|
26986
26990
|
},
|
|
26987
26991
|
userAction: {
|
|
26988
26992
|
type: String,
|
|
26989
|
-
default: "
|
|
26993
|
+
default: "UserTable"
|
|
26990
26994
|
},
|
|
26991
26995
|
userParams: {
|
|
26992
26996
|
type: Object,
|
|
@@ -27041,6 +27045,9 @@
|
|
|
27041
27045
|
if (!row || row.id == "") return;
|
|
27042
27046
|
emits("change", { id: row.id, name: row.realName, data: row });
|
|
27043
27047
|
}
|
|
27048
|
+
const handledbclick = (row) => {
|
|
27049
|
+
handleSelectUser(row);
|
|
27050
|
+
};
|
|
27044
27051
|
const handleSizeChange = (val) => {
|
|
27045
27052
|
state.queryParams.pageSize = val;
|
|
27046
27053
|
handleQuery();
|
|
@@ -27134,10 +27141,11 @@
|
|
|
27134
27141
|
ref: "orgTreeRef",
|
|
27135
27142
|
apiService: __props.orgService,
|
|
27136
27143
|
apiAction: __props.orgAction,
|
|
27137
|
-
|
|
27144
|
+
isPost: __props.orgPost,
|
|
27145
|
+
apiparas: __props.orgparas,
|
|
27138
27146
|
onNodeClick: handleNodeChange,
|
|
27139
27147
|
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
27140
|
-
}, null, 8, ["apiService", "apiAction", "
|
|
27148
|
+
}, null, 8, ["apiService", "apiAction", "isPost", "apiparas"])
|
|
27141
27149
|
]),
|
|
27142
27150
|
_: 1
|
|
27143
27151
|
/* STABLE */
|
|
@@ -27227,7 +27235,8 @@
|
|
|
27227
27235
|
vue.createVNode(_component_el_table, {
|
|
27228
27236
|
ref: "refTable",
|
|
27229
27237
|
data: userList.value,
|
|
27230
|
-
style: { "height": "calc(70vh - 96px)" }
|
|
27238
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
27239
|
+
onRowDblclick: handledbclick
|
|
27231
27240
|
}, {
|
|
27232
27241
|
default: vue.withCtx(() => [
|
|
27233
27242
|
vue.createVNode(_component_el_table_column, {
|
|
@@ -27345,14 +27354,14 @@
|
|
|
27345
27354
|
*/
|
|
27346
27355
|
atoService: {
|
|
27347
27356
|
type: String,
|
|
27348
|
-
default: "
|
|
27357
|
+
default: "autoRes"
|
|
27349
27358
|
},
|
|
27350
27359
|
/**
|
|
27351
27360
|
* ato service 下的方法
|
|
27352
27361
|
*/
|
|
27353
27362
|
atoAction: {
|
|
27354
27363
|
type: String,
|
|
27355
|
-
default: "
|
|
27364
|
+
default: "autoUser"
|
|
27356
27365
|
},
|
|
27357
27366
|
top: {
|
|
27358
27367
|
type: Number,
|
|
@@ -27360,7 +27369,7 @@
|
|
|
27360
27369
|
},
|
|
27361
27370
|
searchsize: {
|
|
27362
27371
|
type: Number,
|
|
27363
|
-
default:
|
|
27372
|
+
default: 22
|
|
27364
27373
|
},
|
|
27365
27374
|
/**
|
|
27366
27375
|
* 值的属性值
|
|
@@ -27410,11 +27419,11 @@
|
|
|
27410
27419
|
},
|
|
27411
27420
|
orgService: {
|
|
27412
27421
|
type: String,
|
|
27413
|
-
default: "
|
|
27422
|
+
default: "autoRes"
|
|
27414
27423
|
},
|
|
27415
27424
|
orgAction: {
|
|
27416
27425
|
type: String,
|
|
27417
|
-
default: "
|
|
27426
|
+
default: "userOrgList"
|
|
27418
27427
|
},
|
|
27419
27428
|
orgparas: {
|
|
27420
27429
|
type: Object,
|
|
@@ -27423,11 +27432,11 @@
|
|
|
27423
27432
|
},
|
|
27424
27433
|
userService: {
|
|
27425
27434
|
type: String,
|
|
27426
|
-
default: "
|
|
27435
|
+
default: "autoRes"
|
|
27427
27436
|
},
|
|
27428
27437
|
userAction: {
|
|
27429
27438
|
type: String,
|
|
27430
|
-
default: "
|
|
27439
|
+
default: "UserTable"
|
|
27431
27440
|
},
|
|
27432
27441
|
userParams: {
|
|
27433
27442
|
type: Object,
|
|
@@ -27586,6 +27595,13 @@
|
|
|
27586
27595
|
type: String,
|
|
27587
27596
|
default: ""
|
|
27588
27597
|
},
|
|
27598
|
+
/**
|
|
27599
|
+
* 是否POST请求
|
|
27600
|
+
*/
|
|
27601
|
+
isPost: {
|
|
27602
|
+
type: Boolean,
|
|
27603
|
+
default: false
|
|
27604
|
+
},
|
|
27589
27605
|
paras: {
|
|
27590
27606
|
type: Object,
|
|
27591
27607
|
default: null
|
|
@@ -27638,7 +27654,7 @@
|
|
|
27638
27654
|
const fetchTreeData = async (showLoading = true) => {
|
|
27639
27655
|
var _a, _b;
|
|
27640
27656
|
if (showLoading) state.loading = true;
|
|
27641
|
-
var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
27657
|
+
var res = props.isPost ? await useBaseApi(props.apiService).post(props.paras, props.apiAction) : await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
27642
27658
|
state.folderData = (_a = res.data.result) != null ? _a : [];
|
|
27643
27659
|
if (showLoading) state.loading = false;
|
|
27644
27660
|
const rtreeData = (_b = res.data.result) != null ? _b : [];
|