hrp-ui-base 1.5.2 → 1.5.3
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/dist/components.cjs +2 -2
- package/dist/components.es.js +659 -660
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +60 -60
- package/dist/string-utils-BdXthP1I.cjs +1 -0
- package/dist/{string-utils-B1iXup7H.js → string-utils-CrDuYEn2.js} +58 -105
- package/dist/{transform-data--ruli7aE.cjs → transform-data-DIrvR94U.cjs} +3 -3
- package/dist/{transform-data-APk1LVKg.js → transform-data-Mhkx0O-Z.js} +88 -80
- package/dist/utils.cjs +1 -1
- package/dist/utils.es.js +52 -52
- package/package.json +1 -1
- package/src/utils/exitLogin.ts +26 -26
- package/dist/string-utils-BdintfxS.cjs +0 -1
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./transform-data
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./transform-data-DIrvR94U.cjs"),t=require("./string-utils-BdXthP1I.cjs");exports.Debounce=e.debounce;exports.SocketClass=e.Socket;exports.Throttle=e.throttle;exports.addWujieListener=e.addWujieListener;exports.debounceleading=e.debounceleading;exports.download=e.download;exports.exitLogin=e.exitLogin;exports.filterKey=e.filterKey;exports.forSureMounted=e.forSureMounted;exports.formatterHandler=e.formatterHandler;exports.getDictConfigs=e.getDictConfigs;exports.getFirstLevelPath=e.getFirstLevelPath;exports.getFirstMenuInList=e.getFirstMenuInList;exports.getModuleFirstMenuPath=e.getModuleFirstMenuPath;exports.getModuleNameByPathName=e.getModuleNameByPathName;exports.getPagePermit=e.getPagePermit;exports.getRouteExistIf=e.getRouteExistIf;exports.getUrlParam=e.getUrlParam;exports.isArray=e.isArray;exports.isExternal=e.isExternal;exports.isHavePermit=e.isHavePermit;exports.isHttp=e.isHttp;exports.isString=e.isString;exports.makeAccessPath=e.makeAccessPath;exports.phoneTableHeaderCellStyle=e.phoneTableHeaderCellStyle;exports.routerPush=e.routerPush;exports.scrollToErrorElement=e.scrollToErrorElement;exports.setDarkStyle=e.setDarkStyle;exports.setExitLoginRouter=e.setExitLoginRouter;exports.setFontSizeMode=e.setFontSizeMode;exports.setRouterUtilsContext=e.setRouterUtilsContext;exports.setWhiteStyle=e.setWhiteStyle;exports.tableFontCellStyle=e.tableFontCellStyle;exports.tableHeaderCellStyle=e.tableHeaderCellStyle;exports.toMainRouter=e.toMainRouter;exports.toNoPermitPage=e.toNoPermitPage;exports.transformData=e.transformData;exports.validAlphabets=e.validAlphabets;exports.validEmail=e.validEmail;exports.validLowerCase=e.validLowerCase;exports.validURL=e.validURL;exports.validUpperCase=e.validUpperCase;exports.validUsername=e.validUsername;exports.HttpUtil=t.HttpUtil;exports.IsPc=t.IsPc;exports.IsPhone=t.IsPhone;exports.ddWindowOpen=t.ddWindowOpen;exports.digitUppercase=t.digitUppercase;exports.downloadFile=t.downloadFile;exports.formatDecimal=t.formatDecimal;exports.formatTwoDecimal=t.formatTwoDecimal;exports.getEllipsis=t.getEllipsis;exports.getFileType=t.getFileType;exports.getProcessAppIdUrl=t.getProcessAppIdUrl;exports.highlightText=t.highlightText;exports.openEncodeUrl=t.openEncodeUrl;exports.setDingDingTitle=t.setDingDingTitle;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { d as s, S as t, t as i, a as l, b as o, c as r,
|
|
2
|
-
import { H as
|
|
1
|
+
import { d as s, S as t, t as i, a as l, b as o, c as r, e as n, f as d, g, h as m, i as p, j as u, k as c, l as h, m as P, n as f, o as y, p as S, q as v, r as x, s as C, u as D, v as E, w as U, x as b, y as F, z as H, A as L, B as M, C as I, D as T, E as w, F as A, G as R, H as k, I as N, J as j, K as W, L as z, M as B, N as K, O, P as q } from "./transform-data-Mhkx0O-Z.js";
|
|
2
|
+
import { H as J, I as Q, a as V, d as X, b as Y, c as Z, f as _, e as $, g as aa, h as ea, i as sa, j as ta, o as ia, s as la } from "./string-utils-CrDuYEn2.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Debounce,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
J as HttpUtil,
|
|
6
|
+
Q as IsPc,
|
|
7
|
+
V as IsPhone,
|
|
8
8
|
t as SocketClass,
|
|
9
9
|
i as Throttle,
|
|
10
10
|
l as addWujieListener,
|
|
11
|
-
|
|
11
|
+
X as ddWindowOpen,
|
|
12
12
|
o as debounceleading,
|
|
13
|
-
|
|
13
|
+
Y as digitUppercase,
|
|
14
14
|
r as download,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
15
|
+
Z as downloadFile,
|
|
16
|
+
n as exitLogin,
|
|
17
|
+
d as filterKey,
|
|
18
|
+
g as forSureMounted,
|
|
19
|
+
_ as formatDecimal,
|
|
20
|
+
$ as formatTwoDecimal,
|
|
21
|
+
m as formatterHandler,
|
|
22
|
+
p as getDictConfigs,
|
|
23
|
+
aa as getEllipsis,
|
|
24
|
+
ea as getFileType,
|
|
25
|
+
u as getFirstLevelPath,
|
|
26
|
+
c as getFirstMenuInList,
|
|
27
|
+
h as getModuleFirstMenuPath,
|
|
28
|
+
P as getModuleNameByPathName,
|
|
29
|
+
f as getPagePermit,
|
|
30
|
+
sa as getProcessAppIdUrl,
|
|
31
|
+
y as getRouteExistIf,
|
|
32
|
+
S as getUrlParam,
|
|
33
|
+
ta as highlightText,
|
|
34
|
+
v as isArray,
|
|
35
|
+
x as isExternal,
|
|
36
|
+
C as isHavePermit,
|
|
37
|
+
D as isHttp,
|
|
38
|
+
E as isString,
|
|
39
|
+
U as makeAccessPath,
|
|
40
|
+
ia as openEncodeUrl,
|
|
41
|
+
b as phoneTableHeaderCellStyle,
|
|
42
|
+
F as routerPush,
|
|
43
|
+
H as scrollToErrorElement,
|
|
44
|
+
L as setDarkStyle,
|
|
45
|
+
la as setDingDingTitle,
|
|
46
|
+
M as setExitLoginRouter,
|
|
47
|
+
I as setFontSizeMode,
|
|
48
|
+
T as setRouterUtilsContext,
|
|
49
|
+
w as setWhiteStyle,
|
|
50
|
+
A as tableFontCellStyle,
|
|
51
|
+
R as tableHeaderCellStyle,
|
|
52
52
|
k as toMainRouter,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
N as toNoPermitPage,
|
|
54
|
+
j as transformData,
|
|
55
|
+
W as validAlphabets,
|
|
56
|
+
z as validEmail,
|
|
57
|
+
B as validLowerCase,
|
|
58
|
+
K as validURL,
|
|
59
|
+
O as validUpperCase,
|
|
60
|
+
q as validUsername
|
|
61
61
|
};
|
package/package.json
CHANGED
package/src/utils/exitLogin.ts
CHANGED
|
@@ -27,32 +27,32 @@ const getCurrentFullPath = () => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const remind = debounce(() => {
|
|
30
|
-
alert("登录失效,请重新登录");
|
|
30
|
+
// alert("登录失效,请重新登录");
|
|
31
31
|
}, 1000, { leading: true, trailing: false })
|
|
32
32
|
export default function exitLogin(clear?: number) {
|
|
33
|
-
localStorage.setItem("preRoute", getCurrentFullPath());
|
|
34
|
-
localStorage.setItem("toRouter", window.location.search);
|
|
35
|
-
let toRouter = localStorage.getItem("toRouter")
|
|
36
|
-
let currentRouterInfo: any = localStorage.getItem("currentRouterInfo");
|
|
37
|
-
localStorage.setItem("toRouterObject", currentRouterInfo)
|
|
38
|
-
|
|
39
|
-
/**传递参数clear == 1表示退出登录 未传代表401 */
|
|
40
|
-
if (clear && clear === 1) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
localStorage.setItem("toRouter", window.location.search);
|
|
48
|
-
let path = getCurrentFullPath();
|
|
49
|
-
sessionStorage.setItem("preRoute", path);
|
|
50
|
-
|
|
51
|
-
window.localStorage.removeItem('TOKEN')
|
|
52
|
-
window.localStorage.removeItem('clientId')
|
|
53
|
-
remind()
|
|
54
|
-
// 使用setTimeout确保alert完全显示后再跳转
|
|
55
|
-
setTimeout(() => {
|
|
56
|
-
|
|
57
|
-
}, 100); // 100ms延迟足够确保alert显示
|
|
33
|
+
// localStorage.setItem("preRoute", getCurrentFullPath());
|
|
34
|
+
// localStorage.setItem("toRouter", window.location.search);
|
|
35
|
+
// let toRouter = localStorage.getItem("toRouter")
|
|
36
|
+
// let currentRouterInfo: any = localStorage.getItem("currentRouterInfo");
|
|
37
|
+
// localStorage.setItem("toRouterObject", currentRouterInfo)
|
|
38
|
+
//
|
|
39
|
+
// /**传递参数clear == 1表示退出登录 未传代表401 */
|
|
40
|
+
// if (clear && clear === 1) {
|
|
41
|
+
// window.sessionStorage.clear()
|
|
42
|
+
// window.localStorage.clear()
|
|
43
|
+
// window.location.href = getLoginUrl(); // 去登录页
|
|
44
|
+
// return;
|
|
45
|
+
// }
|
|
46
|
+
//
|
|
47
|
+
// localStorage.setItem("toRouter", window.location.search);
|
|
48
|
+
// let path = getCurrentFullPath();
|
|
49
|
+
// sessionStorage.setItem("preRoute", path);
|
|
50
|
+
//
|
|
51
|
+
// window.localStorage.removeItem('TOKEN')
|
|
52
|
+
// window.localStorage.removeItem('clientId')
|
|
53
|
+
// remind()
|
|
54
|
+
// // 使用setTimeout确保alert完全显示后再跳转
|
|
55
|
+
// setTimeout(() => {
|
|
56
|
+
// window.location.href = getLoginUrl();
|
|
57
|
+
// }, 100); // 100ms延迟足够确保alert显示
|
|
58
58
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty;var D=(t,o,e)=>o in t?R(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e;var m=(t,o,e)=>D(t,typeof o!="symbol"?o+"":o,e);const A=require("dingtalk-jsapi"),u=require("element-plus"),v=require("axios"),C=require("qs"),j=require("lodash"),g=require("vant"),J=require("sm-crypto"),L=t=>{if(A.env.platform!=="notInDingTalk")window.open(t+"/?ddtab=true","_blank");else if(window.oaTool&&window.oaTool.isOA){window.oaTool.openNewWindow(t);return}else window.open(t,"_blank")},M=t=>encodeURIComponent(t),q=t=>(t.indexOf("?")>-1&&(t.indexOf("/?")>-1?t=t.split("/?")[0]:t=t.split("?")[0]),t[t.length-1]==="/"&&(t=t.substring(0,t.length-1)),t),K=t=>{if(!(!t||typeof t!="string"))if(A.env.platform!=="notInDingTalk")A.biz.navigation.setTitle({title:t}),document.title=t;else if(window.oaTool&&window.oaTool.isOA){window.oaTool.setTitle(t);return}else document.title=t};function U(t){try{return new URL(t),t}catch{}const o=window.location.origin,e=window.location.pathname;t.startsWith("./")?t=t.substring(2):t.startsWith("/")&&(t=t.substring(1));const n=e.endsWith("/")?e:e.substring(0,e.lastIndexOf("/")+1);return o+n+t}const W=async t=>{let o="";try{o=(sessionStorage.getItem("userConfig")?JSON.parse(sessionStorage.getItem("userConfig")):null).fileUploadType}catch(n){console.log(n)}try{await navigator.clipboard.writeText(U(t.url)),console.log("URL 已复制到剪贴板:",U(t.url)),u.ElMessage.success("文件下载链接已写入剪切板,如遇系统无法下载,自行复制到浏览器打开链接即可下载!")}catch(n){console.error("无法写入剪贴板:",n)}let e=document.createElement("a");e.style="display: none",e.download=t.fileName,e.href=t.url,e.target="_blank",document.body.appendChild(e),e.click(),document.body.removeChild(e)},y=()=>{const t=navigator.userAgent.toLowerCase();return["android","iphone","ipad","ipod","harmonyos","openharmony","huawei","honor","symbianos","windows phone","mobile","webos","blackberry","opera mini","opera mobi","iemobile","wpdesktop"].some(n=>t.includes(n))},$=()=>!y(),B=["imd","agoal","scm","bms","coc","hws","fms","hrm","hrms","itrms","personalization","projectManagement"],H=()=>{const t=window.location.pathname.replace(/\/$/,"").split("/"),o=t[t.length-1];B.includes(o)&&t.pop();const e=t.join("/")||"/";return window.location.origin+(e.endsWith("/")?e:`${e}/`)},O=t=>{const o=`${H()}login/index.html`;return t?`${o}?host=${encodeURIComponent(t)}`:o};let w=null;const V=t=>{w=t},F=()=>{var t,o,e;return((o=(t=w==null?void 0:w.currentRoute)==null?void 0:t.value)==null?void 0:o.fullPath)||((e=window.location.hash)==null?void 0:e.replace(/^#/,""))||window.location.pathname+window.location.search},_=j.debounce(()=>{alert("登录失效,请重新登录")},1e3,{leading:!0,trailing:!1});function T(t){localStorage.setItem("preRoute",F()),localStorage.setItem("toRouter",window.location.search),localStorage.getItem("toRouter");let o=localStorage.getItem("currentRouterInfo");if(localStorage.setItem("toRouterObject",o),t&&t===1){window.sessionStorage.clear(),window.localStorage.clear(),window.location.href=O();return}localStorage.setItem("toRouter",window.location.search);let e=F();sessionStorage.setItem("preRoute",e),window.localStorage.removeItem("TOKEN"),window.localStorage.removeItem("clientId"),_(),setTimeout(()=>{window.location.href=O()},100)}const Z=(t,o)=>J.sm4.encrypt(t,G(o));function G(t){const o=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);n<128?o.push(n):n<2048?o.push(192|n>>6,128|n&63):n<55296||n>=57344?o.push(224|n>>12,128|n>>6&63,128|n&63):(e++,n=65536+((n&1023)<<10|t.charCodeAt(e)&1023),o.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63))}for(let e=0;e<o.length;e++){let n=o[e];n>127&&(o[e]=n-256)}return o}const X=function(){let t=localStorage.getItem("TOKEN")+"IhfN5d11Zk1ZC%Po"+Date.now();return Z(t,"*XeL#J@znVJ#sdSv")},Q=function(){return localStorage.getItem("TOKEN")},r=function(){return X()},P=window.location.origin+window.location.pathname+"api",i=v.create({timeout:18e5,baseURL:P});i.interceptors.request.use(t=>t);i.interceptors.response.use(t=>(y()?t.data.code==501||t.data.code==510?t.data.msg?g.showNotify({type:"danger",message:t.data.msg}):g.showNotify({type:"danger",message:"发生未知错误!"}):t.data.code==500?g.showNotify({type:"danger",message:"服务发生错误!"}):t.data.code==201?g.showNotify({type:"success",message:t.data.msg}):t.data.code===401&&T():t.data.code==501||t.data.code==510?t.data.msg?u.ElMessage({type:"error",dangerouslyUseHTMLString:!0,message:`<span style="word-break: break-all">${t.data.msg}</span>`,duration:5e3}):u.ElMessage.error("发生未知错误!"):t.data.code==500?u.ElMessageBox.alert(t.data.msg?t.data.msg:"服务发生错误","错误提示",{confirmButtonText:"确定",callback:()=>{}}):t.data.code==201?u.ElMessage({type:"success",dangerouslyUseHTMLString:!0,message:`<span style="word-break: break-all">${t.data.msg}</span>`,duration:5e3}):t.data.code===401&&T(),t.data),async t=>(t.response.status===401?T():y()?g.showNotify({type:"danger",message:"网络请求失败"}):u.ElMessage.error("网络请求失败"),Promise.reject(t.response)));class z{static get(o,e){return e&&(e=e||""),i({method:"get",url:o,params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static post(o,e){return e&&(e=e||""),i({method:"post",url:o,data:C.stringify(e),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r(),"Authorization-origin-Token":localStorage.getItem("TOKEN")}})}static postJson(o,e,n){return e&&(e=e||""),i({method:"post",url:o,data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r(),"Authorization-origin-Token":localStorage.getItem("TOKEN"),...n}})}static uploadOSS(o,e,n){return e&&(e=e||""),i({method:"post",url:o,data:e,headers:{"Content-Type":"multipart/form-data","Authorization-Token":r(),...n}})}static uploadOSSResident(o,e,n){return e&&(e=e||""),i({method:"post",url:o,data:e,headers:{"Content-Type":"multipart/form-data","Authorization-Token":Q(),...n}})}static exportFile(o,e){return e&&(e=e||""),i({method:"post",responseType:"arraybuffer",url:o,data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static put(o,e){return e&&(e=e||""),i({method:"put",url:o,data:C.stringify(e),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static putJson(o,e){return e&&(e=e||""),i({method:"put",url:o,data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static putFile(o,e,n){return e&&(e=e||""),i({method:"put",url:o,data:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r(),...n}})}static deleted(o,e){return e&&(e=e||""),i({method:"delete",url:o,data:C.stringify(e),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static deletedjson(o,e){return e&&(e=e||""),i({method:"delete",url:o,data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static downloadGet(o,e){return e&&(e=e||""),i({method:"get",url:o,responseType:"blob",params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static downloadPost(o,e){return e&&(e=e||""),i({method:"post",url:o,responseType:"blob",params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static download(o,e){return e&&(e=e||""),i({method:"post",url:o,responseType:"blob",data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static downloadPostJson(o,e){return e&&(e=e||""),i({method:"post",url:o,responseType:"blob",data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static downloadPut(o,e){return e&&(e=e||""),i({method:"put",url:o,responseType:"blob",params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static downloadPutJson(o,e){return e&&(e=e||""),i({method:"put",url:o,responseType:"blob",data:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8","Authorization-Token":r()}})}static downloadFile(o,e){return e&&(e=e||{}),i({method:"post",url:o,responseType:"blob",params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","Authorization-Token":r()}})}static uploadBase64(o,e,n){let s=new FormData;return s.append("file",e.file),s.append("modulesId",e.modulesId),i({method:"post",url:o,data:s,headers:{"Content-Type":"multipart/form-data","Authorization-Token":r(),...n}})}static postFormData(o,e,n){let s=new FormData;return e.files&&Array.isArray(e.files)&&e.files.forEach(c=>{s.append("files",c)}),e.submitWorkOrderParam&&s.append("submitWorkOrderParam",new Blob([JSON.stringify(e.submitWorkOrderParam)],{type:"application/json;charset=utf-8"})),i({method:"post",url:o,data:s,headers:{"Authorization-Token":r(),"Content-Type":"multipart/form-data",...n}})}}m(z,"baseUrl",P);class Y{constructor(){m(this,"havePermission",!1);m(this,"funPointIdList",[])}}const ee=(t,o)=>{const e=o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(e,"gi");return t.replace(n,c=>`<span style="color:var(--theme-normal-normal)">${c}</span>`)},te=t=>t.split("?")[0].substring(t.lastIndexOf(".")+1).toLowerCase(),oe=(t,o,e=0)=>{let n="";if(e>0)for(let s=0;s<e;s++)n+=".";return t.length>o?t.slice(0,o-e)+n:t};function ne(t){let o=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),e=new Array("","拾","佰","仟"),n=new Array("","万","亿","兆"),s=new Array("角","分","毫","厘"),c="元",E=1e15,p="",f="",a="",b=["",""],h,S,d,k,x,I,N;if(t==null)return"";if(t>=E)return"超出最大处理数字";if(t==0)return a=o[0]+c,a;if(t.toString().indexOf(".")==-1?(p=t.toString(),f="",c="元整"):(b=t.toString().split("."),p=b[0],f=b[1].substr(0,2)),parseInt(p,10)>0){h=0,S=p.length;for(let l=0;l<S;l++)d=p.substr(l,1),k=S-l-1,x=k/4,I=k%4,d=="0"?h++:(h>0&&(a+=o[0]),h=0,a+=o[parseInt(d)]+e[I]),I==0&&h<4&&(a+=n[x]);a+=c}if(f!=""){N=f.length;for(let l=0;l<N;l++)d=f.substr(l,1),d!="0"&&(a+=o[Number(d)]+s[l])}return a==""&&(a+=o[0]+c),a}function ie(t){const o=parseFloat(t.toString());if(isNaN(o))return t;const e=o.toString();return(e.split(".")[1]||"").length>11?o.toFixed(11):e}function re(t){const o=parseFloat(t.toString());return isNaN(o)?0:Number(Math.round(o*100)/100)}exports.FunPointVo=Y;exports.HttpUtil=z;exports.IsPc=$;exports.IsPhone=y;exports.ddWindowOpen=L;exports.digitUppercase=ne;exports.downloadFile=W;exports.exitLogin=T;exports.formatDecimal=ie;exports.formatTwoDecimal=re;exports.getEllipsis=oe;exports.getFileType=te;exports.getProcessAppIdUrl=q;exports.highlightText=ee;exports.openEncodeUrl=M;exports.setDingDingTitle=K;exports.setExitLoginRouter=V;
|