@fmdeui/fmui 1.0.115 → 1.0.117

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 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';
@@ -118,9 +118,8 @@ const useVxeTable = (opt, extras) => {
118
118
  // 设置使用服务端导出
119
119
  original: false,
120
120
  // 使用格式化后的数据
121
- filename: `${opt.name || "\u5217\u8868"}\u5BFC\u51FA_${dayjs().format("YYYYMMDDHHmmss")}`,
122
- modes: ["current", "selected", "all"]
123
- // 当前页、选中项、所有
121
+ filename: `${opt.name || "\u5217\u8868"}\u5BFC\u51FA_${dayjs().format("YYYYMMDDHHmmss")}`
122
+ //modes: ['current', 'all'], // 当前页、'selected',选中项、所有
124
123
  },
125
124
  pagerConfig: {
126
125
  enabled: true,
@@ -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;
@@ -16,6 +16,7 @@ export * from './md5Signature';
16
16
  export * from './uploadfileurl';
17
17
  export * from './request';
18
18
  export * from './saulVModel';
19
+ export * from './gloabdata';
19
20
  export * from './storage';
20
21
  export * from './theme';
21
22
  export * from './toolsValidate';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.115 */
1
+ /*! fmdeui-fmui v1.0.117 */
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 = "";
@@ -20560,9 +20588,8 @@
20560
20588
  // 设置使用服务端导出
20561
20589
  original: false,
20562
20590
  // 使用格式化后的数据
20563
- filename: `${opt.name || "\u5217\u8868"}\u5BFC\u51FA_${elementPlus.dayjs().format("YYYYMMDDHHmmss")}`,
20564
- modes: ["current", "selected", "all"]
20565
- // 当前页、选中项、所有
20591
+ filename: `${opt.name || "\u5217\u8868"}\u5BFC\u51FA_${elementPlus.dayjs().format("YYYYMMDDHHmmss")}`
20592
+ //modes: ['current', 'all'], // 当前页、'selected',选中项、所有
20566
20593
  },
20567
20594
  pagerConfig: {
20568
20595
  enabled: true,
@@ -32798,6 +32825,7 @@
32798
32825
  });
32799
32826
 
32800
32827
  exports.AccountTypeEnum = AccountTypeEnum;
32828
+ exports.AppItem = AppItem;
32801
32829
  exports.AppSysTypeData = AppSysTypeData;
32802
32830
  exports.AppSysTypeEnum = AppSysTypeEnum;
32803
32831
  exports.CurrencyData = CurrencyData;
@@ -32845,6 +32873,8 @@
32845
32873
  exports.formatDate = formatDate;
32846
32874
  exports.formatPast = formatPast;
32847
32875
  exports.gcj02ToBd09 = gcj02ToBd09;
32876
+ exports.getAppItemData = getAppItemData;
32877
+ exports.getAppItemText = getAppItemText;
32848
32878
  exports.getBdate = getBdate;
32849
32879
  exports.getCountryCode = getCountryCode;
32850
32880
  exports.getEdate = getEdate;