@fmdeui/fmui 1.0.156 → 1.0.157
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-inputdropdown/index.d.ts +9 -0
- package/es/components/fm-inputdropdown/index.vue.d.ts +15 -0
- package/es/packages/components/fm-inputdropdown/index2.vue.mjs +9 -2
- package/es/packages/stores/ainputdropdow.mjs +2 -2
- package/es/stores/ainputdropdow.d.ts +3 -3
- package/index.js +12 -5
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +12 -5
- package/lib/components/fm-inputdropdown/index.d.ts +9 -0
- package/lib/components/fm-inputdropdown/index.vue.d.ts +15 -0
- package/lib/packages/components/fm-inputdropdown/index2.vue.js +9 -2
- package/lib/packages/stores/ainputdropdow.js +2 -2
- package/lib/stores/ainputdropdow.d.ts +3 -3
- 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/{defaults.css → version.css} +0 -0
|
@@ -70,6 +70,10 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
70
70
|
};
|
|
71
71
|
default: never[];
|
|
72
72
|
};
|
|
73
|
+
bizType: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
73
77
|
freshSize: {
|
|
74
78
|
type: (NumberConstructor | StringConstructor)[];
|
|
75
79
|
default: number;
|
|
@@ -159,6 +163,10 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
159
163
|
};
|
|
160
164
|
default: never[];
|
|
161
165
|
};
|
|
166
|
+
bizType: {
|
|
167
|
+
type: NumberConstructor;
|
|
168
|
+
default: number;
|
|
169
|
+
};
|
|
162
170
|
freshSize: {
|
|
163
171
|
type: (NumberConstructor | StringConstructor)[];
|
|
164
172
|
default: number;
|
|
@@ -189,6 +197,7 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
189
197
|
apiAction: string;
|
|
190
198
|
basecode: string;
|
|
191
199
|
multibasecode: any[];
|
|
200
|
+
bizType: number;
|
|
192
201
|
freshSize: string | number;
|
|
193
202
|
autoLoadData: boolean;
|
|
194
203
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -88,6 +88,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
88
88
|
};
|
|
89
89
|
default: never[];
|
|
90
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* 业务类型
|
|
93
|
+
*/
|
|
94
|
+
bizType: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
91
98
|
freshSize: {
|
|
92
99
|
type: (NumberConstructor | StringConstructor)[];
|
|
93
100
|
default: number;
|
|
@@ -198,6 +205,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
198
205
|
};
|
|
199
206
|
default: never[];
|
|
200
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
* 业务类型
|
|
210
|
+
*/
|
|
211
|
+
bizType: {
|
|
212
|
+
type: NumberConstructor;
|
|
213
|
+
default: number;
|
|
214
|
+
};
|
|
201
215
|
freshSize: {
|
|
202
216
|
type: (NumberConstructor | StringConstructor)[];
|
|
203
217
|
default: number;
|
|
@@ -231,6 +245,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
231
245
|
apiAction: string;
|
|
232
246
|
basecode: string;
|
|
233
247
|
multibasecode: any[];
|
|
248
|
+
bizType: number;
|
|
234
249
|
freshSize: string | number;
|
|
235
250
|
autoLoadData: boolean;
|
|
236
251
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -72,6 +72,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
type: Array,
|
|
73
73
|
default: []
|
|
74
74
|
},
|
|
75
|
+
/**
|
|
76
|
+
* 业务类型
|
|
77
|
+
*/
|
|
78
|
+
bizType: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 0
|
|
81
|
+
},
|
|
75
82
|
freshSize: {
|
|
76
83
|
type: [Number, String],
|
|
77
84
|
default: 20
|
|
@@ -115,13 +122,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
122
|
const handClick = async () => {
|
|
116
123
|
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
117
124
|
const useBaseApi = usefminputdropdownstore();
|
|
118
|
-
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
125
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode, props.bizType);
|
|
119
126
|
}
|
|
120
127
|
};
|
|
121
128
|
const handRestdata = async () => {
|
|
122
129
|
if (props.basecode && props.basecode != "") {
|
|
123
130
|
const useBaseApi = usefminputdropdownstore();
|
|
124
|
-
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
131
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, [], props.bizType);
|
|
125
132
|
}
|
|
126
133
|
};
|
|
127
134
|
return (_ctx, _cache) => {
|
|
@@ -7,14 +7,14 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
|
|
|
7
7
|
const state = reactive({
|
|
8
8
|
optionsData: {}
|
|
9
9
|
});
|
|
10
|
-
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
|
|
10
|
+
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = [], bizType = 0) => {
|
|
11
11
|
var _a, _b;
|
|
12
12
|
if (!reload) {
|
|
13
13
|
if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
|
|
14
14
|
return state.optionsData[basecode];
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
17
|
+
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(",") + "&bizType=" + bizType);
|
|
18
18
|
if (multibasecode.length > 0) {
|
|
19
19
|
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
20
20
|
multibasecode.forEach((p) => {
|
|
@@ -3,15 +3,15 @@ export declare const usefminputdropdownstore: StoreDefinition<"fminputdropdownst
|
|
|
3
3
|
state: {
|
|
4
4
|
optionsData: any;
|
|
5
5
|
};
|
|
6
|
-
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any
|
|
6
|
+
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
|
|
7
7
|
}, "state">, Pick<{
|
|
8
8
|
state: {
|
|
9
9
|
optionsData: any;
|
|
10
10
|
};
|
|
11
|
-
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any
|
|
11
|
+
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
|
|
12
12
|
}, never>, Pick<{
|
|
13
13
|
state: {
|
|
14
14
|
optionsData: any;
|
|
15
15
|
};
|
|
16
|
-
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any
|
|
16
|
+
getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
|
|
17
17
|
}, "getOptionsData">>;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.157 */
|
|
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) :
|
|
@@ -4060,14 +4060,14 @@
|
|
|
4060
4060
|
const state = vue.reactive({
|
|
4061
4061
|
optionsData: {}
|
|
4062
4062
|
});
|
|
4063
|
-
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
|
|
4063
|
+
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = [], bizType = 0) => {
|
|
4064
4064
|
var _a, _b;
|
|
4065
4065
|
if (!reload) {
|
|
4066
4066
|
if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
|
|
4067
4067
|
return state.optionsData[basecode];
|
|
4068
4068
|
}
|
|
4069
4069
|
}
|
|
4070
|
-
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
4070
|
+
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(",") + "&bizType=" + bizType);
|
|
4071
4071
|
if (multibasecode.length > 0) {
|
|
4072
4072
|
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
4073
4073
|
multibasecode.forEach((p) => {
|
|
@@ -27264,6 +27264,13 @@
|
|
|
27264
27264
|
type: Array,
|
|
27265
27265
|
default: []
|
|
27266
27266
|
},
|
|
27267
|
+
/**
|
|
27268
|
+
* 业务类型
|
|
27269
|
+
*/
|
|
27270
|
+
bizType: {
|
|
27271
|
+
type: Number,
|
|
27272
|
+
default: 0
|
|
27273
|
+
},
|
|
27267
27274
|
freshSize: {
|
|
27268
27275
|
type: [Number, String],
|
|
27269
27276
|
default: 20
|
|
@@ -27307,13 +27314,13 @@
|
|
|
27307
27314
|
const handClick = async () => {
|
|
27308
27315
|
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
27309
27316
|
const useBaseApi = usefminputdropdownstore();
|
|
27310
|
-
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
27317
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode, props.bizType);
|
|
27311
27318
|
}
|
|
27312
27319
|
};
|
|
27313
27320
|
const handRestdata = async () => {
|
|
27314
27321
|
if (props.basecode && props.basecode != "") {
|
|
27315
27322
|
const useBaseApi = usefminputdropdownstore();
|
|
27316
|
-
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
27323
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, [], props.bizType);
|
|
27317
27324
|
}
|
|
27318
27325
|
};
|
|
27319
27326
|
return (_ctx, _cache) => {
|