@fmdeui/fmui 1.0.115 → 1.0.116
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/index.mjs +1 -0
- package/es/packages/utils/gloabdata.mjs +29 -0
- package/es/packages/utils/index.mjs +1 -0
- package/es/utils/gloabdata.d.ts +24 -0
- package/es/utils/index.d.ts +1 -0
- package/index.js +32 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +30 -2
- package/lib/index.js +4 -0
- package/lib/packages/utils/gloabdata.js +33 -0
- package/lib/packages/utils/index.js +4 -0
- package/lib/utils/gloabdata.d.ts +24 -0
- package/lib/utils/index.d.ts +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/es/{make-installer.css → index.css} +0 -0
package/es/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import './packages/stores/index.mjs';
|
|
|
12
12
|
import './packages/hooks/index.mjs';
|
|
13
13
|
export { getCountryCode, i18n, iso_3166_1_CountryList, languageList, loadRemoteMessages, mergMessage, setupI18n } from './packages/locale/index.mjs';
|
|
14
14
|
export { version } from './version.mjs';
|
|
15
|
+
export { AppItem, getAppItemData, getAppItemText } from './packages/utils/gloabdata.mjs';
|
|
15
16
|
export { Local, Session } from './packages/utils/storage.mjs';
|
|
16
17
|
export { NextLoading } from './packages/utils/loading.mjs';
|
|
17
18
|
export { StringToObj } from './packages/utils/json-utils.mjs';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const AppItem = {
|
|
2
|
+
AccountInit: 100,
|
|
3
|
+
AccountJust: 101,
|
|
4
|
+
BookFare: 120,
|
|
5
|
+
BookOtherIn: 121,
|
|
6
|
+
BookOtherOut: 122,
|
|
7
|
+
CarTeam: 125
|
|
8
|
+
};
|
|
9
|
+
function getAppItemData(num = 125) {
|
|
10
|
+
const reldata = [
|
|
11
|
+
{ id: 100, name: "\u8D26\u6237\u521D\u59CB\u5316" },
|
|
12
|
+
{ id: 101, name: "\u8D26\u6237\u8C03\u8D26" },
|
|
13
|
+
{ id: 120, name: "\u8BA2\u5355\u6536\u6B3E" },
|
|
14
|
+
{ id: 121, name: "\u5176\u4ED6\u6536\u5165" },
|
|
15
|
+
{ id: 122, name: "\u5176\u4ED6\u652F\u51FA" },
|
|
16
|
+
{ id: 125, name: "\u4ED8\u8F66\u8D39" }
|
|
17
|
+
];
|
|
18
|
+
return reldata.filter((x) => x.id <= num);
|
|
19
|
+
}
|
|
20
|
+
function getAppItemText(id, num = 125) {
|
|
21
|
+
let data = getAppItemData(num);
|
|
22
|
+
let item = data.find((x) => x.id == id);
|
|
23
|
+
if (item) {
|
|
24
|
+
return item.name;
|
|
25
|
+
}
|
|
26
|
+
return "";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { AppItem, getAppItemData, getAppItemText };
|
|
@@ -16,6 +16,7 @@ import './md5Signature.mjs';
|
|
|
16
16
|
export { getFileUrl, showFileUrl } from './uploadfileurl.mjs';
|
|
17
17
|
export { accessTokenKey, axiosInstance, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, decryptJWT, getHeader, getJWTDate, getToken, reLoadLoginAccessToken, refreshAccessTokenKey, request2, default as service, sleep, tansParams } from './request.mjs';
|
|
18
18
|
export { saulVModel } from './saulVModel.mjs';
|
|
19
|
+
export { AppItem, getAppItemData, getAppItemText } from './gloabdata.mjs';
|
|
19
20
|
export { Local, Session } from './storage.mjs';
|
|
20
21
|
export { useChangeColor } from './theme.mjs';
|
|
21
22
|
export { judgementIdCard, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl } from './toolsValidate.mjs';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全局数据 业务类型
|
|
3
|
+
*/
|
|
4
|
+
export declare const AppItem: {
|
|
5
|
+
AccountInit: number;
|
|
6
|
+
AccountJust: number;
|
|
7
|
+
BookFare: number;
|
|
8
|
+
BookOtherIn: number;
|
|
9
|
+
BookOtherOut: number;
|
|
10
|
+
CarTeam: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 获取 业务数据类型下拉
|
|
14
|
+
*/
|
|
15
|
+
export declare function getAppItemData(num?: number): {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
}[];
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param id 业务类型id
|
|
22
|
+
* @returns 业务名称
|
|
23
|
+
*/
|
|
24
|
+
export declare function getAppItemText(id: number, num?: number): string;
|
package/es/utils/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.116 */
|
|
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) :
|
|
@@ -2573,6 +2573,34 @@
|
|
|
2573
2573
|
});
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
+
const AppItem = {
|
|
2577
|
+
AccountInit: 100,
|
|
2578
|
+
AccountJust: 101,
|
|
2579
|
+
BookFare: 120,
|
|
2580
|
+
BookOtherIn: 121,
|
|
2581
|
+
BookOtherOut: 122,
|
|
2582
|
+
CarTeam: 125
|
|
2583
|
+
};
|
|
2584
|
+
function getAppItemData(num = 125) {
|
|
2585
|
+
const reldata = [
|
|
2586
|
+
{ id: 100, name: "\u8D26\u6237\u521D\u59CB\u5316" },
|
|
2587
|
+
{ id: 101, name: "\u8D26\u6237\u8C03\u8D26" },
|
|
2588
|
+
{ id: 120, name: "\u8BA2\u5355\u6536\u6B3E" },
|
|
2589
|
+
{ id: 121, name: "\u5176\u4ED6\u6536\u5165" },
|
|
2590
|
+
{ id: 122, name: "\u5176\u4ED6\u652F\u51FA" },
|
|
2591
|
+
{ id: 125, name: "\u4ED8\u8F66\u8D39" }
|
|
2592
|
+
];
|
|
2593
|
+
return reldata.filter((x) => x.id <= num);
|
|
2594
|
+
}
|
|
2595
|
+
function getAppItemText(id, num = 125) {
|
|
2596
|
+
let data = getAppItemData(num);
|
|
2597
|
+
let item = data.find((x) => x.id == id);
|
|
2598
|
+
if (item) {
|
|
2599
|
+
return item.name;
|
|
2600
|
+
}
|
|
2601
|
+
return "";
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2576
2604
|
function useChangeColor() {
|
|
2577
2605
|
const hexToRgb = (str) => {
|
|
2578
2606
|
let hexs = "";
|
|
@@ -32798,6 +32826,7 @@
|
|
|
32798
32826
|
});
|
|
32799
32827
|
|
|
32800
32828
|
exports.AccountTypeEnum = AccountTypeEnum;
|
|
32829
|
+
exports.AppItem = AppItem;
|
|
32801
32830
|
exports.AppSysTypeData = AppSysTypeData;
|
|
32802
32831
|
exports.AppSysTypeEnum = AppSysTypeEnum;
|
|
32803
32832
|
exports.CurrencyData = CurrencyData;
|
|
@@ -32845,6 +32874,8 @@
|
|
|
32845
32874
|
exports.formatDate = formatDate;
|
|
32846
32875
|
exports.formatPast = formatPast;
|
|
32847
32876
|
exports.gcj02ToBd09 = gcj02ToBd09;
|
|
32877
|
+
exports.getAppItemData = getAppItemData;
|
|
32878
|
+
exports.getAppItemText = getAppItemText;
|
|
32848
32879
|
exports.getBdate = getBdate;
|
|
32849
32880
|
exports.getCountryCode = getCountryCode;
|
|
32850
32881
|
exports.getEdate = getEdate;
|