@yqg/permission 1.0.6 → 1.0.7
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/{apply-modal-BPixNFpD.js → apply-modal-CSJJ0Pps.js} +3 -3
- package/dist/{checkbox-item-DZpRo3sl.js → checkbox-item-DbnsBPLJ.js} +3 -3
- package/dist/{index-CSrTBn_D.js → index-DRSRvQ6T.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/{yqg-permission-Ki1ZjjJV.js → yqg-permission-DxNe92_b.js} +5 -5
- package/package.json +1 -1
- package/src/axios/index.ts +1 -1
- package/src/i18n/en-US.ts +1 -1
- package/src/i18n/zh-CH.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as w, c as E, y as je, d as Y, f as te, w as le, s as V, o as Ee, p as bt, e as xt, j as Me, v as Va, F as ye, m as tn, A as nn, H as Ha, q as rn, h as Ie, r as an, G as Rt, u as G, V as Wa, x as En, W as Ga, K as ve, L as mt, z as st, R as Ce, X as jt, Q as Ve, O as Lt, P as Dt, N as xe, M as Mn, Y as _n, Z as ka, U as Ua } from "./index-
|
|
2
|
-
import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as Ae, Z as uo, $ as cn, a0 as kr, a1 as co, a2 as Ye, a3 as dn, a4 as fn, a5 as Ur, a6 as mn, a7 as fo, a8 as Xr, a9 as mo, aa as po, ab as go, ac as be, ad as de, ae as qt, af as vo, ag as he, ah as Pe, ai as St, aj as Vt, ak as ho, al as Ht, am as Kr, an as yo, ao as bo, ap as xo, aq as Co, ar as $o, as as wo, at as So, au as Yr, av as Oo, aw as Ge, ax as pn, ay as ut, az as Ao, aA as Rn, aB as Po, aC as jn, aD as Te, aE as Io, aF as gn, aG as Fo, aH as To, aI as Qr, aJ as Ln, aK as Dn, aL as Tt, aM as gt, aN as Zr, aO as Eo, aP as zn, aQ as Mo, aR as _o, aS as No, aT as Bo, aU as Ro, aV as vt, aW as jo, aX as Lo, aY as Jr, aZ as Do, a_ as zo, a$ as qo, b0 as Vo, b1 as Ho, b2 as Wo, b3 as Go, b4 as re, b5 as ko, b6 as Uo, b7 as Xo, b8 as qn, b9 as Vn, ba as Ko } from "./yqg-permission-
|
|
1
|
+
import { k as w, c as E, y as je, d as Y, f as te, w as le, s as V, o as Ee, p as bt, e as xt, j as Me, v as Va, F as ye, m as tn, A as nn, H as Ha, q as rn, h as Ie, r as an, G as Rt, u as G, V as Wa, x as En, W as Ga, K as ve, L as mt, z as st, R as Ce, X as jt, Q as Ve, O as Lt, P as Dt, N as xe, M as Mn, Y as _n, Z as ka, U as Ua } from "./index-DRSRvQ6T.js";
|
|
2
|
+
import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as Ae, Z as uo, $ as cn, a0 as kr, a1 as co, a2 as Ye, a3 as dn, a4 as fn, a5 as Ur, a6 as mn, a7 as fo, a8 as Xr, a9 as mo, aa as po, ab as go, ac as be, ad as de, ae as qt, af as vo, ag as he, ah as Pe, ai as St, aj as Vt, ak as ho, al as Ht, am as Kr, an as yo, ao as bo, ap as xo, aq as Co, ar as $o, as as wo, at as So, au as Yr, av as Oo, aw as Ge, ax as pn, ay as ut, az as Ao, aA as Rn, aB as Po, aC as jn, aD as Te, aE as Io, aF as gn, aG as Fo, aH as To, aI as Qr, aJ as Ln, aK as Dn, aL as Tt, aM as gt, aN as Zr, aO as Eo, aP as zn, aQ as Mo, aR as _o, aS as No, aT as Bo, aU as Ro, aV as vt, aW as jo, aX as Lo, aY as Jr, aZ as Do, a_ as zo, a$ as qo, b0 as Vo, b1 as Ho, b2 as Wo, b3 as Go, b4 as re, b5 as ko, b6 as Uo, b7 as Xo, b8 as qn, b9 as Vn, ba as Ko } from "./yqg-permission-DxNe92_b.js";
|
|
3
3
|
function Hn(e) {
|
|
4
4
|
return typeof e == "object" && e != null && e.nodeType === 1;
|
|
5
5
|
}
|
|
@@ -6678,7 +6678,7 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6678
6678
|
emits: /* @__PURE__ */ _n(["onSubmit", "onSuccess"], ["update:modelValue"]),
|
|
6679
6679
|
setup(e, { emit: t }) {
|
|
6680
6680
|
const n = Ua(
|
|
6681
|
-
() => import("./checkbox-item-
|
|
6681
|
+
() => import("./checkbox-item-DbnsBPLJ.js")
|
|
6682
6682
|
), r = [
|
|
6683
6683
|
re("applyReason1"),
|
|
6684
6684
|
re("applyReason2"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as ce, c as R, f as he, k as y, i as Yn, v as Zt, e as Ue, p as Je, b as en, s as G, w as ae, h as Me, o as $e, P as be, F as Ke, j as Ye, W as Gn, r as Le, I as Xn, G as gt, y as ze, a as kn, z as xe, K as Se, R as ke, N as ge, O as Fe, L as _e, u as ie, Q as ve, M as Ne, _ as Ht } from "./index-
|
|
2
|
-
import { _ as w, Q as qn, P as A, G as Y, F as ue, bb as Qn, aE as Jn, aw as tn, bc as ht, aP as K, E as bt, R as We, an as nn, bd as Oe, be as Ce, aD as Ze, bf as Zn, bg as we, bh as _t, bi as Bt, bj as zt, I as eo, a6 as to, a7 as no, bk as oo, au as lo, C as on, K as de, Y as yt, bl as mt, L as Te, bm as ln, J as io, bn as ao, ai as ro, a2 as so, aG as uo, bo as co, N as fo, aH as mo, am as po, aV as vo, bp as go, aL as ho, bq as bo, O as Kt, ae as Be, ad as yo, ag as So, b4 as Ie, br as wo, b6 as qe, b7 as Io } from "./yqg-permission-
|
|
3
|
-
import { p as St, S as Co, T as rt, C as xo, Q as Oo } from "./apply-modal-
|
|
1
|
+
import { d as ce, c as R, f as he, k as y, i as Yn, v as Zt, e as Ue, p as Je, b as en, s as G, w as ae, h as Me, o as $e, P as be, F as Ke, j as Ye, W as Gn, r as Le, I as Xn, G as gt, y as ze, a as kn, z as xe, K as Se, R as ke, N as ge, O as Fe, L as _e, u as ie, Q as ve, M as Ne, _ as Ht } from "./index-DRSRvQ6T.js";
|
|
2
|
+
import { _ as w, Q as qn, P as A, G as Y, F as ue, bb as Qn, aE as Jn, aw as tn, bc as ht, aP as K, E as bt, R as We, an as nn, bd as Oe, be as Ce, aD as Ze, bf as Zn, bg as we, bh as _t, bi as Bt, bj as zt, I as eo, a6 as to, a7 as no, bk as oo, au as lo, C as on, K as de, Y as yt, bl as mt, L as Te, bm as ln, J as io, bn as ao, ai as ro, a2 as so, aG as uo, bo as co, N as fo, aH as mo, am as po, aV as vo, bp as go, aL as ho, bq as bo, O as Kt, ae as Be, ad as yo, ag as So, b4 as Ie, br as wo, b6 as qe, b7 as Io } from "./yqg-permission-DxNe92_b.js";
|
|
3
|
+
import { p as St, S as Co, T as rt, C as xo, Q as Oo } from "./apply-modal-CSJJ0Pps.js";
|
|
4
4
|
function Wt(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
|
@@ -6069,7 +6069,7 @@ function bu() {
|
|
|
6069
6069
|
If();
|
|
6070
6070
|
}
|
|
6071
6071
|
process.env.NODE_ENV !== "production" && bu();
|
|
6072
|
-
const Ou = /* @__PURE__ */ vc(() => import("./yqg-permission-
|
|
6072
|
+
const Ou = /* @__PURE__ */ vc(() => import("./yqg-permission-DxNe92_b.js").then((e) => e.bs)), Du = (e) => {
|
|
6073
6073
|
customElements.define(
|
|
6074
6074
|
e,
|
|
6075
6075
|
/* @__PURE__ */ iu(Ou, {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-debef759]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-debef759]{margin:10px}.crane-margin-right10[data-v-debef759]{margin-right:10px}.yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-f3d62522]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-f3d62522]{display:flex;align-items:center}.crane-step-icon[data-v-f3d62522]{margin:0 8px;height:auto;max-width:none}.crane-flex-center[data-v-95656202]{display:flex;align-items:center}.crane-checkbox-line[data-v-95656202]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-95656202]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-95656202]{max-width:346px}.crane-tag-position[data-v-95656202]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-95656202]{margin-right:0}.crane-margin-left-4[data-v-95656202]{margin-left:4px}.crane-margin-right-4[data-v-95656202]{margin-right:4px}.crane-margin-left-12[data-v-95656202]{margin-left:12px}.crane-disabled-color[data-v-95656202]{color:#c9cdd4}.crane-week-color[data-v-95656202]{color:#86909c}.crane-text-overflow[data-v-95656202]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { $ as f } from "./index-
|
|
2
|
+
import { $ as f } from "./index-DRSRvQ6T.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|
package/dist/index.umd.cjs
CHANGED
|
@@ -268,4 +268,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
268
268
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[pb]=this[pb]={accessors:{}}).accessors,r=this.prototype;function i(a){const l=$a(a);o[l]||(BL(r,a),o[l]=!0)}return W.isArray(t)?t.forEach(i):i(t),this}}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Gt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),W.freezeMethods(Gt);function md(e,t){const n=this||za,o=t||n,r=Gt.from(o.headers);let i=o.data;return W.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function hb(e){return!!(e&&e.__CANCEL__)}function vi(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(vi,De,{__CANCEL__:!0});function mb(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QL(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let A=i,f=0;for(;A!==r;)f+=n[A++],A=A%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const d=c&&u-c;return d?Math.round(f*1e3/d):void 0}}function SL(e,t){let n=0,o=1e3/t,r,i;const a=(u,c=Date.now())=>{n=c,r=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),A=c-n;A>=o?a(u,c):(r=u,i||(i=setTimeout(()=>{i=null,a(r)},o-A)))},()=>r&&a(r)]}const ic=(e,t,n=3)=>{let o=0;const r=QL(50,250);return SL(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-o,u=r(s),c=a<=l;o=a;const A={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(A)},n)},vb=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Cb=e=>(...t)=>W.asap(()=>e(...t)),xL=Wt.hasStandardBrowserEnv?function(){const t=Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent),n=document.createElement("a");let o;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const l=W.isString(a)?r(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),OL=Wt.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(o)&&a.push("path="+o),W.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Eb(e,t){return e&&!PL(t)?DL(e,t):t}const yb=e=>e instanceof Gt?{...e}:e;function Pr(e,t){t=t||{};const n={};function o(u,c,A){return W.isPlainObject(u)&&W.isPlainObject(c)?W.merge.call({caseless:A},u,c):W.isPlainObject(c)?W.merge({},c):W.isArray(c)?c.slice():c}function r(u,c,A){if(W.isUndefined(c)){if(!W.isUndefined(u))return o(void 0,u,A)}else return o(u,c,A)}function i(u,c){if(!W.isUndefined(c))return o(void 0,c)}function a(u,c){if(W.isUndefined(c)){if(!W.isUndefined(u))return o(void 0,u)}else return o(void 0,c)}function l(u,c,A){if(A in t)return o(u,c);if(A in e)return o(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>r(yb(u),yb(c),!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(c){const A=s[c]||r,f=A(e[c],t[c],c);W.isUndefined(f)&&A!==l||(n[c]=f)}),n}const bb=e=>{const t=Pr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=Gt.from(a),t.url=Ab(Eb(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(W.isFormData(n)){if(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[u,...c]=s?s.split(";").map(A=>A.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Wt.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(t)),o||o!==!1&&xL(t.url))){const u=r&&i&&OL.read(i);u&&a.set(r,u)}return t},TL=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=bb(e);let i=r.data;const a=Gt.from(r.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=r,c,A,f,d,g;function p(){d&&d(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let C=new XMLHttpRequest;C.open(r.method.toUpperCase(),r.url,!0),C.timeout=r.timeout;function E(){if(!C)return;const v=Gt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),m={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:v,config:e,request:C};mb(function(y){n(y),p()},function(y){o(y),p()},m),C=null}"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(E)},C.onabort=function(){C&&(o(new De("Request aborted",De.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(new De("Network Error",De.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const m=r.transitional||db;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),o(new De(b,m.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,C)),C=null},i===void 0&&a.setContentType(null),"setRequestHeader"in C&&W.forEach(a.toJSON(),function(b,m){C.setRequestHeader(m,b)}),W.isUndefined(r.withCredentials)||(C.withCredentials=!!r.withCredentials),l&&l!=="json"&&(C.responseType=r.responseType),u&&([f,g]=ic(u,!0),C.addEventListener("progress",f)),s&&C.upload&&([A,d]=ic(s),C.upload.addEventListener("progress",A),C.upload.addEventListener("loadend",d)),(r.cancelToken||r.signal)&&(c=v=>{C&&(o(!v||v.type?new vi(null,e,C):v),C.abort(),C=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const B=wL(r.url);if(B&&Wt.protocols.indexOf(B)===-1){o(new De("Unsupported protocol "+B+":",De.ERR_BAD_REQUEST,e));return}C.send(i||null)})},NL=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,r;const i=function(u){if(!r){r=!0,l();const c=u instanceof Error?u:this.reason;o.abort(c instanceof De?c:new vi(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:s}=o;return s.unsubscribe=()=>W.asap(l),s}},ML=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},HL=async function*(e,t){for await(const n of RL(e))yield*ML(n,t)},RL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},Ib=(e,t,n,o)=>{const r=HL(e,t);let i=0,a,l=s=>{a||(a=!0,o&&o(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await r.next();if(u){l(),s.close();return}let A=c.byteLength;if(n){let f=i+=A;n(f)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),r.return()}},{highWaterMark:2})},ac=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bb=ac&&typeof ReadableStream=="function",FL=ac&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LL=Bb&&wb(()=>{let e=!1;const t=new Request(Wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qb=64*1024,vd=Bb&&wb(()=>W.isReadableStream(new Response("").body)),lc={stream:vd&&(e=>e.body)};ac&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!lc[t]&&(lc[t]=W.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,o)})})})(new Response);const jL=async e=>{if(e==null)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e))return(await new Request(Wt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(W.isArrayBufferView(e)||W.isArrayBuffer(e))return e.byteLength;if(W.isURLSearchParams(e)&&(e=e+""),W.isString(e))return(await FL(e)).byteLength},zL=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return n??jL(t)},Cd={http:lL,xhr:TL,fetch:ac&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:c,withCredentials:A="same-origin",fetchOptions:f}=bb(e);u=u?(u+"").toLowerCase():"text";let d=NL([r,i&&i.toAbortSignal()],a),g;const p=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let C;try{if(s&&LL&&n!=="get"&&n!=="head"&&(C=await zL(c,o))!==0){let m=new Request(t,{method:"POST",body:o,duplex:"half"}),w;if(W.isFormData(o)&&(w=m.headers.get("content-type"))&&c.setContentType(w),m.body){const[y,S]=vb(C,ic(Cb(s)));o=Ib(m.body,Qb,y,S)}}W.isString(A)||(A=A?"include":"omit");const E="credentials"in Request.prototype;g=new Request(t,{...f,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:o,duplex:"half",credentials:E?A:void 0});let B=await fetch(g);const v=vd&&(u==="stream"||u==="response");if(vd&&(l||v&&p)){const m={};["status","statusText","headers"].forEach(O=>{m[O]=B[O]});const w=W.toFiniteNumber(B.headers.get("content-length")),[y,S]=l&&vb(w,ic(Cb(l),!0))||[];B=new Response(Ib(B.body,Qb,y,()=>{S&&S(),p&&p()}),m)}u=u||"text";let b=await lc[W.findKey(lc,u)||"text"](B,e);return!v&&p&&p(),await new Promise((m,w)=>{mb(m,w,{data:b,headers:Gt.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:g})})}catch(E){throw p&&p(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,g),{cause:E.cause||E}):De.from(E,E&&E.code,e,g)}})};W.forEach(Cd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sb=e=>`- ${e}`,$L=e=>W.isFunction(e)||e===null||e===!1,xb={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let i=0;i<t;i++){n=e[i];let a;if(o=n,!$L(n)&&(o=Cd[(a=String(n)).toLowerCase()],o===void 0))throw new De(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+i]=o}if(!o){const i=Object.entries(r).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
269
269
|
`+i.map(Sb).join(`
|
|
270
270
|
`):" "+Sb(i[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Cd};function Ed(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vi(null,e)}function Ob(e){return Ed(e),e.headers=Gt.from(e.headers),e.data=md.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xb.getAdapter(e.adapter||za.adapter)(e).then(function(o){return Ed(e),o.data=md.call(e,e.transformResponse,o),o.headers=Gt.from(o.headers),o},function(o){return hb(o)||(Ed(e),o&&o.response&&(o.response.data=md.call(e,e.transformResponse,o.response),o.response.headers=Gt.from(o.response.headers))),Promise.reject(o)})}const Pb="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Db={};yd.transitional=function(t,n,o){function r(i,a){return"[Axios v"+Pb+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new De(r(a," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Db[a]&&(Db[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function kL(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new De("option "+i+" must be "+s,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+i,De.ERR_BAD_OPTION)}}const bd={assertOptions:kL,validators:yd},Yo=bd.validators;class Dr{constructor(t){this.defaults=t,this.interceptors={request:new fb,response:new fb}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
271
|
-
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pr(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&bd.assertOptions(o,{silentJSONParsing:Yo.transitional(Yo.boolean),forcedJSONParsing:Yo.transitional(Yo.boolean),clarifyTimeoutError:Yo.transitional(Yo.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:bd.assertOptions(r,{encode:Yo.function,serialize:Yo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&W.merge(i.common,i[n.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Gt.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(s=s&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,A=0,f;if(!s){const g=[Ob.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);A<f;)c=c.then(g[A++],g[A++]);return c}f=l.length;let d=n;for(A=0;A<f;){const g=l[A++],p=l[A++];try{d=g(d)}catch(C){p.call(this,C);break}}try{c=Ob.call(this,d)}catch(g){return Promise.reject(g)}for(A=0,f=u.length;A<f;)c=c.then(u[A++],u[A++]);return c}getUri(t){t=Pr(this.defaults,t);const n=Eb(t.baseURL,t.url);return Ab(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){Dr.prototype[t]=function(n,o){return this.request(Pr(o||{},{method:t,url:n,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,l){return this.request(Pr(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Dr.prototype[t]=n(),Dr.prototype[t+"Form"]=n(!0)});class Id{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new vi(i,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Id(function(r){t=r}),cancel:t}}}function VL(e){return function(n){return e.apply(null,n)}}function _L(e){return W.isObject(e)&&e.isAxiosError===!0}const Bd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bd).forEach(([e,t])=>{Bd[t]=e});function Tb(e){const t=new Dr(e),n=X0(Dr.prototype.request,t);return W.extend(n,Dr.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Tb(Pr(e,r))},n}const ot=Tb(za);ot.Axios=Dr,ot.CanceledError=vi,ot.CancelToken=Id,ot.isCancel=hb,ot.VERSION=Pb,ot.toFormData=oc,ot.AxiosError=De,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=VL,ot.isAxiosError=_L,ot.mergeConfig=Pr,ot.AxiosHeaders=Gt,ot.formToJSON=e=>gb(W.isHTMLForm(e)?new FormData(e):e),ot.getAdapter=xb.getAdapter,ot.HttpStatusCode=Bd,ot.default=ot;const YL=0,UL=10008;ot.defaults.withCredentials=!0,ot.defaults.headers.common["Accept-Language"]=localStorage.getItem("permission_locale"),ot.interceptors.response.use(e=>{var i,a;const{status:t}=(e==null?void 0:e.data)||{},n=(e==null?void 0:e.data)||{},{code:o,detail:r}=t||{};if(((i=e==null?void 0:e.config)==null?void 0:i.responseType)==="blob")if(((a=e==null?void 0:e.data)==null?void 0:a.type)==="application/json"){const l=new FileReader;return l.readAsText(e.data,"utf-8"),l.onload=()=>{var u;const s=JSON.parse(l.result);Zn.info((u=s==null?void 0:s.status)==null?void 0:u.detail)},Promise.reject()}else return e;if(e.headers&&e.headers["content-type"]==="image/jpeg")return e;switch(o){case YL:return Promise.resolve(n);case UL:return Promise.reject(n);default:return Zn.error(r),Promise.reject(n)}},e=>{var n,o;const t=((o=(n=e==null?void 0:e.data)==null?void 0:n.status)==null?void 0:o.detail)||"Unknown error";return Zn.error(t),Promise.reject(e)});const wd="/admin/crane",Qd={getPermissions:e=>ot.get(`${wd}/permission/apply`,{params:e}),getFlowPreview:e=>ot.post(`${wd}/permission/apply/oa/flow/submit/preview`,e),submitApply:e=>ot.post(`${wd}/permission/apply/oa/flow/submit`,e)},Nb={"zh-CN":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReason1:"新入职员工申请",applyReason2:"临时项目",applyReason3:"数据查询与分析",applyReasonPlaceholder:"请尽可能详细描述申请理由",cancel:"取消",submit:"确定",close:"关闭",viewApprovalDetail:"查看审批详情",applyMore:"继续申请其他权限",successTips:"已提交申请,审批通过后可拥有相关权限",resoultTitle:"操作结果反馈",start:"发起",end:"结束",noNeed:"无需审批",adaptDepartment:"适用部门",noApprovalProcess:"无审批流程",excessTips:"一次最多可申请{number}个权限",unavailableTips:"您暂无权限查看/操作该页面,请点击按钮进行申请",appliedTips:"权限已申请,正在{status}...",unapplyTips:"您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",callManager:"如有需要请联系系统管理员",manager:"系统管理员",availableTime:"有效期",selectPlaceholder:"请选择权限点",reasonPlaceholder:"请输入申请理由",maxCountTips:"一次最多只可申请{count}个权限",maxLengthTips:"最多{length}个字符",lastDays:"{count}天后到期",taday:"今天到期",availiables:{SEVEN_DAYS:"7天",THIRTY_DAYS:"30天",SIXTY_DAYS:"60天",NINETY_DAYS:"90天",FOREVER:"永久有效"},levels:{L1:"低",L2:"中",L3:"高"},status:{PENDING:"审批中",NO:"不可申请",OWNER:"永久拥有",TEMP_OWNER:"临时拥有"},operationType:{QUERY:"查询",MANAGE:"操作"}},"en-US":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReason1:"新入职员工申请",applyReason2:"临时项目",applyReason3:"数据查询与分析",applyReasonPlaceholder:"请尽可能详细描述申请理由",cancel:"取消",submit:"确定",close:"关闭",viewApprovalDetail:"查看审批详情",applyMore:"继续申请其他权限",successTips:"已提交申请,审批通过后可拥有相关权限",resoultTitle:"操作结果反馈",start:"发起",end:"结束",noNeed:"无需审批",adaptDepartment:"适用部门",noApprovalProcess:"无审批流程",excessTips:"一次最多可申请{number}个权限",unavailableTips:"您暂无权限查看/操作该页面,请点击按钮进行申请",appliedTips:"权限已申请,正在{status}...",unapplyTips:"您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",callManager:"如有需要请联系系统管理员",manager:"系统管理员",availableTime:"有效期",selectPlaceholder:"请选择权限点",reasonPlaceholder:"请输入申请理由",maxCountTips:"一次最多只可申请{count}个权限",maxLengthTips:"最多{length}个字符",lastDays:"{count}天后到期",taday:"今天到期",availiables:{SEVEN_DAYS:"7天",THIRTY_DAYS:"30天",SIXTY_DAYS:"60天",NINETY_DAYS:"90天",FOREVER:"永久有效"},levels:{L1:"低",L2:"中",L3:"高"},status:{PENDING:"审批中",NO:"不可申请",OWNER:"永久拥有",TEMP_OWNER:"临时拥有"},operationType:{QUERY:"查询",MANAGE:"操作"}}},Pe=(e,t)=>{const n=localStorage.getItem("permission_locale")||"en-US",o=e.split(".");let r=Nb[n]||Nb["en-US"];for(let i=0;i<o.length;i++)r=r[o[i]];return t&&Object.keys(t).forEach(i=>{r=r.replace(new RegExp(`{${i}}`,"g"),t[i])}),r||e},WL=(e,t)=>{let n=null;return function(){n||(n=setTimeout(()=>{e(arguments),n=null},t*1e3))}},GL=e=>{const t=Pe(e);return Object.keys(t).map(n=>({label:t[n],value:n}))},XL={class:"crane-wraper"},KL=["src"],JL={class:"crane-margin10"},qL=["src"],ZL={class:"crane-margin10"},e5=["innerHTML"],t5={key:2,class:"crane-wraper"},n5=["src"],o5={class:"crane-margin10"},r5={style:{"max-width":"400px"}},i5={style:{color:"#1677ff"}},a5=ae({__name:"yqg-permission",props:{workNumber:{type:String,default:""},permissions:{type:[String,Array],default:[]},businessCode:{type:String,default:""},locale:{type:String,default:"zh-CN"},color:{type:String,default:"#1677ff"},type:{type:String,default:"default"}},emits:["onSuccess"],setup(e,{emit:t}){const n=zc(()=>Promise.resolve().then(()=>v5)),o={DEFAULT:"DEFAULT",PENDING:"PENDING",NO:"NO"},r=e,i=t,a=Ae(!1),l=Ae();let s=Ae([]),u=Ae({imageUrl:qs,status:""});const c=P(()=>Array.isArray(r.permissions)?r.permissions:r.permissions.split(",")),A=C=>{const E=[],B=m=>{m.forEach(w=>{w.children?B(w.children):E.push(w)})};B(C);const v=[null,"TEMP_OWNER","PENDING","OWNER","NO"],b=["L1","L2","L3"];return E.sort((m,w)=>v.indexOf(m.businessApplyType)-v.indexOf(w.businessApplyType)||b.indexOf(m.securityLevel)-b.indexOf(w.securityLevel)),E},f=C=>{var v,b;if(!C.length)return{imageUrl:qs,status:""};const E=C.find(m=>m.businessApplyType===o.PENDING),B=C.every(m=>m.businessApplyType===o.NO);return E?(l.value=E,{imageUrl:y6,status:o.PENDING,tips:Pe("status.PENDING"),url:E.oaFlowUrl}):B?{imageUrl:qs,status:o.NO,tips:(b=(v=C[0].admin)==null?void 0:v.map(m=>`${m.name}(${m.departmentName})`))==null?void 0:b.join("、")}:{imageUrl:qs,status:o.DEFAULT}},d=()=>{var C;console.log(l.value),(C=l.value)!=null&&C.oaFlowUrl&&window.open(l.value.oaFlowUrl)},g=async()=>{if(!c.value.length||!r.businessCode||!r.workNumber)return;const C={businessCode:r.businessCode,features:c.value.toString(),workNumber:r.workNumber};let E=await Qd.getPermissions(C);s.value=A(E.body||[]),u.value=f(s.value)},p=()=>{g(),a.value=!a.value};return Ge(g),me(()=>r.locale,(C,E)=>{C!==E&&localStorage.setItem("permission_locale",r.locale)},{immediate:!0}),(C,E)=>c.value.length?(Fe(),Vt(ce(Sr),{key:0,prefixCls:"yqg-permission",theme:{token:{colorPrimary:r.color}}},{default:ke(()=>[lt("div",XL,[e.type==="text"?(Fe(),Vt(ce(hi),{key:0,onClick:p},{default:ke(()=>[vt(Ye(ce(Pe)("permissionApply")),1)]),_:1})):e.type==="custom"?(Fe(),bt("div",{key:1,onClick:p},[IB(C.$slots,"custom",{},void 0,!0)])):(Fe(),bt(xe,{key:2},[ce(u).status===o.DEFAULT?(Fe(),bt(xe,{key:0},[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,KL),lt("div",JL,Ye(ce(Pe)("unavailableTips")),1),lt("div",null,[I(ce(zn),{type:"primary",onClick:p},{default:ke(()=>[vt("+ "+Ye(ce(Pe)("applyPermission")),1)]),_:1})])],64)):gn("",!0),ce(u).status===o.PENDING?(Fe(),bt(xe,{key:1},[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,qL),lt("div",ZL,[lt("span",{class:"crane-unapply",innerHTML:ce(Pe)("appliedTips",{status:`<style>.crane-unapply span {color: orange;}</style><span>${ce(u).tips}</span>`})},null,8,e5)]),lt("div",null,[I(ce(zn),{class:"crane-margin-right10",onClick:d},{default:ke(()=>[vt(Ye(ce(Pe)("viewApprovalDetail")),1)]),_:1}),I(ce(zn),{type:"primary",onClick:p},{default:ke(()=>[vt("+ "+Ye(ce(Pe)("applyMore")),1)]),_:1})])],64)):gn("",!0),ce(u).status===o.NO?(Fe(),bt("div",t5,[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,n5),lt("div",o5,[vt(Ye(ce(Pe)("unapplyTips"))+" ",1),I(ce(ci),null,{content:ke(()=>[lt("div",r5,Ye(ce(Pe)("manager"))+": "+Ye(ce(u).tips),1)]),default:ke(()=>[lt("span",i5,Ye(ce(Pe)("callManager")),1)]),_:1})])])):gn("",!0)],64))]),I(ce(n),{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=B=>a.value=B),permissionList:ce(s),workNumber:e.workNumber,businessCode:e.businessCode,onOnSuccess:E[1]||(E[1]=()=>i("onSuccess")),onOnSubmit:g},null,8,["modelValue","permissionList","workNumber","businessCode"])]),_:3},8,["theme"])):gn("",!0)}}),Sd=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},l5=Object.freeze(Object.defineProperty({__proto__:null,default:Sd(a5,[["__scopeId","data-v-debef759"]])},Symbol.toStringTag,{value:"Module"})),s5=ae({__name:"success-modal",setup(e,{expose:t}){const[n,o]=Yt.useModal();return t({countDown:(i,a)=>{let l=10;const s=n.confirm({title:Pe("resoultTitle"),content:Pe("successTips"),cancelText:`${Pe("close")}(${l}s)`,okText:`${Pe("viewApprovalDetail")}>>`,wrapClassName:"yqg-permission-modal-wrap",icon:I(yo,{style:"color: #52c41a;"}),onOk:()=>{window.open(i),s.destroy(),a&&a(),window.YQG_PERMISSION_CALLBACK&&window.YQG_PERMISSION_CALLBACK(),!window.YQG_PERMISSION_CALLBACK&&!a&&location.reload()},onCancel:()=>{s.destroy(),a&&a(),window.YQG_PERMISSION_CALLBACK&&window.YQG_PERMISSION_CALLBACK(),!window.YQG_PERMISSION_CALLBACK&&!a&&location.reload()}}),u=setInterval(()=>{l-=1,s.update({cancelText:`${Pe("close")}(${l}s)`})},1e3);setTimeout(()=>{clearInterval(u),s.destroy()},l*1e3)}}),(i,a)=>(Fe(),Vt(ce(o)))}}),c5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAGCAYAAADHYm6gAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACASURBVHgBrY/BDUBAEEX/DicnJ66UoAQdcEd0oAQ6oQOtKGGPjquBHbPhInHbfclPZjLJmxnAg2zg2eVvRvBAMS4wlrznvRg5/czgSdbxIpZZchChPTelg4hfeSOmVUpDEWonV/nAk7zTwBMGCjzRSYQqthYlBbhbFNpJZYFx/Q2MWyJuE54BvwAAAABJRU5ErkJggg==",u5={key:0,class:"crane-step-wraper"},A5={style:{"white-space":"nowrap"}},f5={style:{"max-width":"400px"}},d5=["src"],g5={key:1},p5={key:2},h5=Sd(ae({__name:"approval-steps",props:{stepNodes:{type:Array,required:!0,default:()=>[]}},setup(e){const n=Kt(e,"stepNodes"),o=r=>r===n.value.length-1?`[${Pe("end")}]`:r===0?`[${Pe("start")}]`:"";return(r,i)=>{var a,l;return((a=n.value)==null?void 0:a.length)>1?(Fe(),bt("div",u5,[(Fe(!0),bt(xe,null,kc(n.value,(s,u)=>{var c;return Fe(),bt("div",{key:s.auditorName,class:"crane-step-node"},[lt("span",A5,[vt(Ye(s.auditorName)+" ",1),(c=s.employeeNameList)!=null&&c.length?(Fe(),Vt(ce(ci),{key:0},{content:ke(()=>[lt("div",f5,Ye(s.employeeNameList.join("、")),1)]),default:ke(()=>[I(ce(Ts),{style:{margin:"0 2px",color:"#1677ff"}})]),_:2},1024)):gn("",!0),vt(" "+Ye(o(u)),1)]),u!==n.value.length-1?(Fe(),bt("img",{key:0,src:ce(c5),class:"crane-step-icon"},null,8,d5)):gn("",!0)])}),128))])):((l=n.value)==null?void 0:l.length)===1?(Fe(),bt("span",g5,Ye(ce(Pe)("noNeed")),1)):(Fe(),bt("span",p5,"-"))}}}),[["__scopeId","data-v-f3d62522"]]),m5={style:{"margin-top":"4px"}},v5=Object.freeze(Object.defineProperty({__proto__:null,default:ae({__name:"apply-modal",props:$g({permissionList:{type:Array,default:()=>[]},businessCode:{type:String,default:""},workNumber:{type:String,default:""}},{modelValue:{required:!0,default:!1},modelModifiers:{}}),emits:$g(["onSubmit","onSuccess"],["update:modelValue"]),setup(e,{emit:t}){const n=zc(()=>Promise.resolve().then(()=>O5)),o=[Pe("applyReason1"),Pe("applyReason2"),Pe("applyReason3")],r=e,i=t,a=ow(e,"modelValue"),l=Ae(!1),s=Kt(r,"permissionList"),u=Kt(r,"businessCode"),c=Kt(r,"workNumber"),A=Ae(),f=Ae();let d=Ae([]);const g=at({applyBusinessCode:u.value,roleIds:[],roleVoList:[],applyReason:"",submitWorkNumber:c.value}),p=v=>{g.applyReason.includes(v)||(!g.applyReason||g.applyReason.endsWith("、")?g.applyReason+=v:g.applyReason+=`、${v}`,f.value.validateFields(["applyReason"]))},C=async()=>{if(g.roleIds.length>5)return Zn.warning(Pe("maxCountTips",{count:5}));f.value.validate().then(async()=>{var w,y;l.value=!0;const v=E();let b=await Qd.submitApply(v);const m=(w=b==null?void 0:b.body)==null?void 0:w.oaFlowUrl;a.value=!1,l.value=!1,i("onSubmit"),(y=A.value)==null||y.countDown(m,()=>i("onSuccess"))})},E=()=>(g.roleVoList=g.roleIds.map(v=>{var b;return{roleId:v,validTime:(b=s.value.find(m=>m.roleId===v))==null?void 0:b.validTime}}),g),B=WL(async()=>{var m;if(g.roleIds.length>5)return;if(!g.roleIds.length){d.value=[];return}const v=E();let b=await Qd.getFlowPreview(v);d.value=((m=b==null?void 0:b.body)==null?void 0:m.nodes)||[]},0);return me(()=>g.roleIds,v=>{v.length>5&&(g.roleIds.pop(),Zn.warning(Pe("maxCountTips",{count:5})))}),me(()=>a.value,v=>{var b;v&&((b=f.value)==null||b.resetFields(),d.value=[])}),(v,b)=>(Fe(),Vt(ce(Yt),{open:a.value,"onUpdate:open":b[2]||(b[2]=m=>a.value=m),title:ce(Pe)("permissionApply"),width:"800px",onOk:C,okText:ce(Pe)("submit"),maskClosable:!1,"ok-button-props":{loading:l.value},cancelText:ce(Pe)("cancel")},{default:ke(()=>[I(ce(Vo),{ref_key:"formRef",ref:f,model:g,labelCol:{span:4},wrapperCol:{span:19}},{default:ke(()=>[I(ce(_s),{label:ce(Pe)("applyPermission"),name:"roleIds",rules:[{required:!0,message:ce(Pe)("selectPlaceholder")}]},{default:ke(()=>[I(ce(Ys),{value:g.roleIds,"onUpdate:value":b[0]||(b[0]=m=>g.roleIds=m),style:{display:"block"},onChange:ce(B)},{default:ke(()=>[(Fe(!0),bt(xe,null,kc(s.value,m=>(Fe(),Vt(ce(n),{key:m.roleId,item:m,checkedIds:g.roleIds,onChangeTime:ce(B)},null,8,["item","checkedIds","onChangeTime"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label","rules"]),I(ce(_s),{name:"applyReason",label:ce(Pe)("applyReason"),rules:[{required:!0,message:ce(Pe)("reasonPlaceholder"),trigger:["change","blur"]},{max:300,message:ce(Pe)("maxLengthTips",{length:300}),trigger:["change","blur"]}]},{default:ke(()=>[I(ce(ed),{value:g.applyReason,"onUpdate:value":b[1]||(b[1]=m=>g.applyReason=m),valueModifiers:{trim:!0},"show-count":"",maxlength:300,placeholder:ce(Pe)("applyReasonPlaceholder"),"auto-size":{minRows:2,maxRows:5}},null,8,["value","placeholder"]),lt("div",m5,[(Fe(),bt(xe,null,kc(o,m=>I(ce(_o),{bordered:!1,style:{cursor:"pointer"},onClick:w=>p(m),key:m},{default:ke(()=>[vt(Ye(m),1)]),_:2},1032,["onClick"])),64))])]),_:1},8,["label","rules"]),I(ce(_s),{label:ce(Pe)("approvalProcess")},{default:ke(()=>[I(h5,{stepNodes:ce(d)},null,8,["stepNodes"])]),_:1},8,["label"])]),_:1},8,["model"]),I(s5,{ref_key:"successModal",ref:A},null,512)]),_:1},8,["open","title","okText","ok-button-props","cancelText"]))}})},Symbol.toStringTag,{value:"Module"})),C5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBlVNLTgJBEK1qOrjtI4w34AhwAuQEZBJc4yyVBbCRxE2HrZoQT4CcAI7AEeYIbDUM5asGZYj0KJX0J1WvX9eXqUIm/qUpbNp6ZzHT+yzNY1iOGR796w2sc1w3B5Ujoc5D1ns/hzcxImb2OPJPqV3rwn0NYh/DR4mEJBGhxShLN7pEZAF1EsPbmAExr7C1kad9KGy6oF/RpR6R1FIGkzAvw4KPqqv4OC4jP3N1LpZ6R55aGiJd7JES4SF+CquK5JdHWnKE48o6YenjcCw8PtGTbMqtwGWSQ9/8X0p9ZY+M7DShLNKCOq9m2Cb7Ahy9P1N+m1eNgsrEz7AXJ7qQ7Cf/3IBLw71rxQzApIIkUUyAsgzDWyXSEhdcm2tY6N4xuqXxDTwrsCkGXT/VPtuyWSqHuaJtQ8cBuUkH2e0IgDcAmzEeteHD6SDr3eHMoHLKYT/IruuIF0PaR+UczjaIc4rLGpguRmfFTN1dUNncHAZyDEUoP0iclV0nxgLbz+joG32rxeGTJKKs6uFfXaw50XDK2C8hpcmbpfjHLAAAAABJRU5ErkJggg==",E5={class:"crane-checkbox-line"},y5={class:"crane-flex-center crane-checkbox-label"},b5={class:"crane-text-overflow"},I5={key:0},B5={key:1},w5={class:"crane-flex-center crane-margin-left-4"},Q5=["src"],S5={class:"crane-week-color crane-margin-left-4"},x5={key:2,class:"crane-week-color crane-margin-left-12"},O5=Object.freeze(Object.defineProperty({__proto__:null,default:Sd(ae({__name:"checkbox-item",props:{item:{type:Object,default:()=>{}},checkedIds:{type:Array,default:[]},onChangeTime:{type:Function,default:()=>{}}},setup(e){const t={L1:{color:"green",text:Pe("levels.L1")},L2:{color:"orange",text:Pe("levels.L2")},L3:{color:"red",text:Pe("levels.L3")}};let n=e;const o=GL("availiables"),r=Pe("status"),i=Ae(""),a=u=>{const c={L1:"SIXTY_DAYS",L2:"THIRTY_DAYS",L3:"SEVEN_DAYS"},{relatedDepartmentIds:A=[],curDepartmentId:f=0,securityLevel:d}=u;return A.includes(f)?u.validTime="NINETY_DAYS":u.validTime=c[d],u.validTime},l=u=>{n.item.validTime=u,n.onChangeTime()},s=u=>{u.target.checked&&(i.value=a(n.item))};return(u,c)=>(Fe(),bt("div",E5,[I(ce(fi),{value:e.item.roleId,disabled:["OWNER","PENDING","NO"].includes(ce(n).item.businessApplyType),onChange:s},{default:ke(()=>[lt("div",y5,[e.item.securityLevel?(Fe(),Vt(ce(_o),{key:0,bordered:!1,color:t[e.item.securityLevel].color,class:"crane-tag-position"},{default:ke(()=>[vt(Ye(t[e.item.securityLevel].text),1)]),_:1},8,["color"])):gn("",!0),lt("span",null,Ye(ce(Pe)(`operationType.${e.item.operationType}`))+"| ",1),I(ce(ci),null,{content:ke(()=>[vt(Ye(e.item.name),1)]),default:ke(()=>[lt("span",b5,Ye(e.item.name),1)]),_:1}),e.item.businessApplyType&&e.item.businessApplyType!=="TEMP_OWNER"?(Fe(),Vt(ce(_o),{key:1,bordered:!1,class:Bi(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING","TEMP_OWNER"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:ke(()=>[vt(Ye(ce(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):gn("",!0),I(ce(ci),null,{content:ke(()=>{var A,f,d,g;return[((f=(A=e.item)==null?void 0:A.ownStatusVO)==null?void 0:f.dayDiff)>0?(Fe(),bt("span",I5,Ye(ce(Pe)("lastDays",{count:(g=(d=e.item)==null?void 0:d.ownStatusVO)==null?void 0:g.dayDiff})),1)):(Fe(),bt("span",B5,Ye(ce(Pe)("taday")),1))]}),default:ke(()=>[e.item.businessApplyType==="TEMP_OWNER"?(Fe(),Vt(ce(_o),{key:0,bordered:!1,class:Bi(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:ke(()=>[vt(Ye(ce(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):gn("",!0)]),_:1})])]),_:1},8,["value","disabled"]),e.item.desc?(Fe(),Vt(ce(ci),{key:0},{content:ke(()=>[vt(Ye(e.item.desc),1)]),default:ke(()=>[I(ce(Vs),{class:"crane-week-color"})]),_:1})):gn("",!0),e.item.relatedDepartments?(Fe(),Vt(ce(ci),{key:1},{content:ke(()=>[vt(Ye(ce(Pe)("adaptDepartment"))+":"+Ye(e.item.relatedDepartments.map(A=>A.name).join("、")),1)]),default:ke(()=>[lt("span",w5,[lt("img",{src:ce(C5),height:"14",width:"14"},null,8,Q5),lt("span",S5,Ye(e.item.relatedDepartments.length),1)])]),_:1})):gn("",!0),e.checkedIds.includes(e.item.roleId)?(Fe(),bt("span",x5,[vt(Ye(ce(Pe)("availableTime"))+": ",1),I(ce(qn),{value:i.value,"onUpdate:value":c[0]||(c[0]=A=>i.value=A),style:{width:"100px"},options:ce(o),onChange:l,size:"small"},null,8,["value","options"])])):gn("",!0)]))}}),[["__scopeId","data-v-95656202"]])},Symbol.toStringTag,{value:"Module"}));return uQ});
|
|
271
|
+
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pr(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&bd.assertOptions(o,{silentJSONParsing:Yo.transitional(Yo.boolean),forcedJSONParsing:Yo.transitional(Yo.boolean),clarifyTimeoutError:Yo.transitional(Yo.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:bd.assertOptions(r,{encode:Yo.function,serialize:Yo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&W.merge(i.common,i[n.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Gt.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(s=s&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,A=0,f;if(!s){const g=[Ob.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);A<f;)c=c.then(g[A++],g[A++]);return c}f=l.length;let d=n;for(A=0;A<f;){const g=l[A++],p=l[A++];try{d=g(d)}catch(C){p.call(this,C);break}}try{c=Ob.call(this,d)}catch(g){return Promise.reject(g)}for(A=0,f=u.length;A<f;)c=c.then(u[A++],u[A++]);return c}getUri(t){t=Pr(this.defaults,t);const n=Eb(t.baseURL,t.url);return Ab(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){Dr.prototype[t]=function(n,o){return this.request(Pr(o||{},{method:t,url:n,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,l){return this.request(Pr(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Dr.prototype[t]=n(),Dr.prototype[t+"Form"]=n(!0)});class Id{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new vi(i,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Id(function(r){t=r}),cancel:t}}}function VL(e){return function(n){return e.apply(null,n)}}function _L(e){return W.isObject(e)&&e.isAxiosError===!0}const Bd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bd).forEach(([e,t])=>{Bd[t]=e});function Tb(e){const t=new Dr(e),n=X0(Dr.prototype.request,t);return W.extend(n,Dr.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Tb(Pr(e,r))},n}const ot=Tb(za);ot.Axios=Dr,ot.CanceledError=vi,ot.CancelToken=Id,ot.isCancel=hb,ot.VERSION=Pb,ot.toFormData=oc,ot.AxiosError=De,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=VL,ot.isAxiosError=_L,ot.mergeConfig=Pr,ot.AxiosHeaders=Gt,ot.formToJSON=e=>gb(W.isHTMLForm(e)?new FormData(e):e),ot.getAdapter=xb.getAdapter,ot.HttpStatusCode=Bd,ot.default=ot;const YL=0,UL=10008;ot.defaults.withCredentials=!0,ot.defaults.headers.common["Accept-Language"]=localStorage.getItem("permission_locale"),ot.interceptors.response.use(e=>{var i,a;const{status:t}=(e==null?void 0:e.data)||{},n=(e==null?void 0:e.data)||{},{code:o,detail:r}=t||{};if(((i=e==null?void 0:e.config)==null?void 0:i.responseType)==="blob")if(((a=e==null?void 0:e.data)==null?void 0:a.type)==="application/json"){const l=new FileReader;return l.readAsText(e.data,"utf-8"),l.onload=()=>{var u;const s=JSON.parse(l.result);Zn.info((u=s==null?void 0:s.status)==null?void 0:u.detail)},Promise.reject()}else return e;if(e.headers&&e.headers["content-type"]==="image/jpeg")return e;switch(o){case YL:return Promise.resolve(n);case UL:return Promise.reject(n);default:return Zn.error(r),Promise.reject(n)}},e=>{var n,o;const t=((o=(n=e==null?void 0:e.data)==null?void 0:n.status)==null?void 0:o.detail)||"Unknown error";return Zn.error(t),Promise.reject(e)});const wd="/crane",Qd={getPermissions:e=>ot.get(`${wd}/permission/apply`,{params:e}),getFlowPreview:e=>ot.post(`${wd}/permission/apply/oa/flow/submit/preview`,e),submitApply:e=>ot.post(`${wd}/permission/apply/oa/flow/submit`,e)},Nb={"zh-CN":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReason1:"新入职员工申请",applyReason2:"临时项目",applyReason3:"数据查询与分析",applyReasonPlaceholder:"请尽可能详细描述申请理由",cancel:"取消",submit:"确定",close:"关闭",viewApprovalDetail:"查看审批详情",applyMore:"继续申请其他权限",successTips:"已提交申请,审批通过后可拥有相关权限",resoultTitle:"操作结果反馈",start:"发起",end:"结束",noNeed:"无需审批",adaptDepartment:"适用部门",noApprovalProcess:"无审批流程",excessTips:"一次最多可申请{number}个权限",unavailableTips:"您暂无权限查看/操作该页面,请点击下方按钮进行申请",appliedTips:"权限已申请,正在{status}...",unapplyTips:"您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",callManager:"如有需要请联系系统管理员",manager:"系统管理员",availableTime:"有效期",selectPlaceholder:"请选择权限点",reasonPlaceholder:"请输入申请理由",maxCountTips:"一次最多只可申请{count}个权限",maxLengthTips:"最多{length}个字符",lastDays:"{count}天后到期",taday:"今天到期",availiables:{SEVEN_DAYS:"7天",THIRTY_DAYS:"30天",SIXTY_DAYS:"60天",NINETY_DAYS:"90天",FOREVER:"永久有效"},levels:{L1:"低",L2:"中",L3:"高"},status:{PENDING:"审批中",NO:"不可申请",OWNER:"永久拥有",TEMP_OWNER:"临时拥有"},operationType:{QUERY:"查询",MANAGE:"操作"}},"en-US":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReason1:"新入职员工申请",applyReason2:"临时项目",applyReason3:"数据查询与分析",applyReasonPlaceholder:"请尽可能详细描述申请理由",cancel:"取消",submit:"确定",close:"关闭",viewApprovalDetail:"查看审批详情",applyMore:"继续申请其他权限",successTips:"已提交申请,审批通过后可拥有相关权限",resoultTitle:"操作结果反馈",start:"发起",end:"结束",noNeed:"无需审批",adaptDepartment:"适用部门",noApprovalProcess:"无审批流程",excessTips:"一次最多可申请{number}个权限",unavailableTips:"您暂无权限查看/操作该页面,请点击下方按钮进行申请",appliedTips:"权限已申请,正在{status}...",unapplyTips:"您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",callManager:"如有需要请联系系统管理员",manager:"系统管理员",availableTime:"有效期",selectPlaceholder:"请选择权限点",reasonPlaceholder:"请输入申请理由",maxCountTips:"一次最多只可申请{count}个权限",maxLengthTips:"最多{length}个字符",lastDays:"{count}天后到期",taday:"今天到期",availiables:{SEVEN_DAYS:"7天",THIRTY_DAYS:"30天",SIXTY_DAYS:"60天",NINETY_DAYS:"90天",FOREVER:"永久有效"},levels:{L1:"低",L2:"中",L3:"高"},status:{PENDING:"审批中",NO:"不可申请",OWNER:"永久拥有",TEMP_OWNER:"临时拥有"},operationType:{QUERY:"查询",MANAGE:"操作"}}},Pe=(e,t)=>{const n=localStorage.getItem("permission_locale")||"en-US",o=e.split(".");let r=Nb[n]||Nb["en-US"];for(let i=0;i<o.length;i++)r=r[o[i]];return t&&Object.keys(t).forEach(i=>{r=r.replace(new RegExp(`{${i}}`,"g"),t[i])}),r||e},WL=(e,t)=>{let n=null;return function(){n||(n=setTimeout(()=>{e(arguments),n=null},t*1e3))}},GL=e=>{const t=Pe(e);return Object.keys(t).map(n=>({label:t[n],value:n}))},XL={class:"crane-wraper"},KL=["src"],JL={class:"crane-margin10"},qL=["src"],ZL={class:"crane-margin10"},e5=["innerHTML"],t5={key:2,class:"crane-wraper"},n5=["src"],o5={class:"crane-margin10"},r5={style:{"max-width":"400px"}},i5={style:{color:"#1677ff"}},a5=ae({__name:"yqg-permission",props:{workNumber:{type:String,default:""},permissions:{type:[String,Array],default:[]},businessCode:{type:String,default:""},locale:{type:String,default:"zh-CN"},color:{type:String,default:"#1677ff"},type:{type:String,default:"default"}},emits:["onSuccess"],setup(e,{emit:t}){const n=zc(()=>Promise.resolve().then(()=>v5)),o={DEFAULT:"DEFAULT",PENDING:"PENDING",NO:"NO"},r=e,i=t,a=Ae(!1),l=Ae();let s=Ae([]),u=Ae({imageUrl:qs,status:""});const c=P(()=>Array.isArray(r.permissions)?r.permissions:r.permissions.split(",")),A=C=>{const E=[],B=m=>{m.forEach(w=>{w.children?B(w.children):E.push(w)})};B(C);const v=[null,"TEMP_OWNER","PENDING","OWNER","NO"],b=["L1","L2","L3"];return E.sort((m,w)=>v.indexOf(m.businessApplyType)-v.indexOf(w.businessApplyType)||b.indexOf(m.securityLevel)-b.indexOf(w.securityLevel)),E},f=C=>{var v,b;if(!C.length)return{imageUrl:qs,status:""};const E=C.find(m=>m.businessApplyType===o.PENDING),B=C.every(m=>m.businessApplyType===o.NO);return E?(l.value=E,{imageUrl:y6,status:o.PENDING,tips:Pe("status.PENDING"),url:E.oaFlowUrl}):B?{imageUrl:qs,status:o.NO,tips:(b=(v=C[0].admin)==null?void 0:v.map(m=>`${m.name}(${m.departmentName})`))==null?void 0:b.join("、")}:{imageUrl:qs,status:o.DEFAULT}},d=()=>{var C;console.log(l.value),(C=l.value)!=null&&C.oaFlowUrl&&window.open(l.value.oaFlowUrl)},g=async()=>{if(!c.value.length||!r.businessCode||!r.workNumber)return;const C={businessCode:r.businessCode,features:c.value.toString(),workNumber:r.workNumber};let E=await Qd.getPermissions(C);s.value=A(E.body||[]),u.value=f(s.value)},p=()=>{g(),a.value=!a.value};return Ge(g),me(()=>r.locale,(C,E)=>{C!==E&&localStorage.setItem("permission_locale",r.locale)},{immediate:!0}),(C,E)=>c.value.length?(Fe(),Vt(ce(Sr),{key:0,prefixCls:"yqg-permission",theme:{token:{colorPrimary:r.color}}},{default:ke(()=>[lt("div",XL,[e.type==="text"?(Fe(),Vt(ce(hi),{key:0,onClick:p},{default:ke(()=>[vt(Ye(ce(Pe)("permissionApply")),1)]),_:1})):e.type==="custom"?(Fe(),bt("div",{key:1,onClick:p},[IB(C.$slots,"custom",{},void 0,!0)])):(Fe(),bt(xe,{key:2},[ce(u).status===o.DEFAULT?(Fe(),bt(xe,{key:0},[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,KL),lt("div",JL,Ye(ce(Pe)("unavailableTips")),1),lt("div",null,[I(ce(zn),{type:"primary",onClick:p},{default:ke(()=>[vt("+ "+Ye(ce(Pe)("applyPermission")),1)]),_:1})])],64)):gn("",!0),ce(u).status===o.PENDING?(Fe(),bt(xe,{key:1},[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,qL),lt("div",ZL,[lt("span",{class:"crane-unapply",innerHTML:ce(Pe)("appliedTips",{status:`<style>.crane-unapply span {color: orange;}</style><span>${ce(u).tips}</span>`})},null,8,e5)]),lt("div",null,[I(ce(zn),{class:"crane-margin-right10",onClick:d},{default:ke(()=>[vt(Ye(ce(Pe)("viewApprovalDetail")),1)]),_:1}),I(ce(zn),{type:"primary",onClick:p},{default:ke(()=>[vt("+ "+Ye(ce(Pe)("applyMore")),1)]),_:1})])],64)):gn("",!0),ce(u).status===o.NO?(Fe(),bt("div",t5,[lt("img",{src:ce(u).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,n5),lt("div",o5,[vt(Ye(ce(Pe)("unapplyTips"))+" ",1),I(ce(ci),null,{content:ke(()=>[lt("div",r5,Ye(ce(Pe)("manager"))+": "+Ye(ce(u).tips),1)]),default:ke(()=>[lt("span",i5,Ye(ce(Pe)("callManager")),1)]),_:1})])])):gn("",!0)],64))]),I(ce(n),{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=B=>a.value=B),permissionList:ce(s),workNumber:e.workNumber,businessCode:e.businessCode,onOnSuccess:E[1]||(E[1]=()=>i("onSuccess")),onOnSubmit:g},null,8,["modelValue","permissionList","workNumber","businessCode"])]),_:3},8,["theme"])):gn("",!0)}}),Sd=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},l5=Object.freeze(Object.defineProperty({__proto__:null,default:Sd(a5,[["__scopeId","data-v-debef759"]])},Symbol.toStringTag,{value:"Module"})),s5=ae({__name:"success-modal",setup(e,{expose:t}){const[n,o]=Yt.useModal();return t({countDown:(i,a)=>{let l=10;const s=n.confirm({title:Pe("resoultTitle"),content:Pe("successTips"),cancelText:`${Pe("close")}(${l}s)`,okText:`${Pe("viewApprovalDetail")}>>`,wrapClassName:"yqg-permission-modal-wrap",icon:I(yo,{style:"color: #52c41a;"}),onOk:()=>{window.open(i),s.destroy(),a&&a(),window.YQG_PERMISSION_CALLBACK&&window.YQG_PERMISSION_CALLBACK(),!window.YQG_PERMISSION_CALLBACK&&!a&&location.reload()},onCancel:()=>{s.destroy(),a&&a(),window.YQG_PERMISSION_CALLBACK&&window.YQG_PERMISSION_CALLBACK(),!window.YQG_PERMISSION_CALLBACK&&!a&&location.reload()}}),u=setInterval(()=>{l-=1,s.update({cancelText:`${Pe("close")}(${l}s)`})},1e3);setTimeout(()=>{clearInterval(u),s.destroy()},l*1e3)}}),(i,a)=>(Fe(),Vt(ce(o)))}}),c5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAGCAYAAADHYm6gAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACASURBVHgBrY/BDUBAEEX/DicnJ66UoAQdcEd0oAQ6oQOtKGGPjquBHbPhInHbfclPZjLJmxnAg2zg2eVvRvBAMS4wlrznvRg5/czgSdbxIpZZchChPTelg4hfeSOmVUpDEWonV/nAk7zTwBMGCjzRSYQqthYlBbhbFNpJZYFx/Q2MWyJuE54BvwAAAABJRU5ErkJggg==",u5={key:0,class:"crane-step-wraper"},A5={style:{"white-space":"nowrap"}},f5={style:{"max-width":"400px"}},d5=["src"],g5={key:1},p5={key:2},h5=Sd(ae({__name:"approval-steps",props:{stepNodes:{type:Array,required:!0,default:()=>[]}},setup(e){const n=Kt(e,"stepNodes"),o=r=>r===n.value.length-1?`[${Pe("end")}]`:r===0?`[${Pe("start")}]`:"";return(r,i)=>{var a,l;return((a=n.value)==null?void 0:a.length)>1?(Fe(),bt("div",u5,[(Fe(!0),bt(xe,null,kc(n.value,(s,u)=>{var c;return Fe(),bt("div",{key:s.auditorName,class:"crane-step-node"},[lt("span",A5,[vt(Ye(s.auditorName)+" ",1),(c=s.employeeNameList)!=null&&c.length?(Fe(),Vt(ce(ci),{key:0},{content:ke(()=>[lt("div",f5,Ye(s.employeeNameList.join("、")),1)]),default:ke(()=>[I(ce(Ts),{style:{margin:"0 2px",color:"#1677ff"}})]),_:2},1024)):gn("",!0),vt(" "+Ye(o(u)),1)]),u!==n.value.length-1?(Fe(),bt("img",{key:0,src:ce(c5),class:"crane-step-icon"},null,8,d5)):gn("",!0)])}),128))])):((l=n.value)==null?void 0:l.length)===1?(Fe(),bt("span",g5,Ye(ce(Pe)("noNeed")),1)):(Fe(),bt("span",p5,"-"))}}}),[["__scopeId","data-v-f3d62522"]]),m5={style:{"margin-top":"4px"}},v5=Object.freeze(Object.defineProperty({__proto__:null,default:ae({__name:"apply-modal",props:$g({permissionList:{type:Array,default:()=>[]},businessCode:{type:String,default:""},workNumber:{type:String,default:""}},{modelValue:{required:!0,default:!1},modelModifiers:{}}),emits:$g(["onSubmit","onSuccess"],["update:modelValue"]),setup(e,{emit:t}){const n=zc(()=>Promise.resolve().then(()=>O5)),o=[Pe("applyReason1"),Pe("applyReason2"),Pe("applyReason3")],r=e,i=t,a=ow(e,"modelValue"),l=Ae(!1),s=Kt(r,"permissionList"),u=Kt(r,"businessCode"),c=Kt(r,"workNumber"),A=Ae(),f=Ae();let d=Ae([]);const g=at({applyBusinessCode:u.value,roleIds:[],roleVoList:[],applyReason:"",submitWorkNumber:c.value}),p=v=>{g.applyReason.includes(v)||(!g.applyReason||g.applyReason.endsWith("、")?g.applyReason+=v:g.applyReason+=`、${v}`,f.value.validateFields(["applyReason"]))},C=async()=>{if(g.roleIds.length>5)return Zn.warning(Pe("maxCountTips",{count:5}));f.value.validate().then(async()=>{var w,y;l.value=!0;const v=E();let b=await Qd.submitApply(v);const m=(w=b==null?void 0:b.body)==null?void 0:w.oaFlowUrl;a.value=!1,l.value=!1,i("onSubmit"),(y=A.value)==null||y.countDown(m,()=>i("onSuccess"))})},E=()=>(g.roleVoList=g.roleIds.map(v=>{var b;return{roleId:v,validTime:(b=s.value.find(m=>m.roleId===v))==null?void 0:b.validTime}}),g),B=WL(async()=>{var m;if(g.roleIds.length>5)return;if(!g.roleIds.length){d.value=[];return}const v=E();let b=await Qd.getFlowPreview(v);d.value=((m=b==null?void 0:b.body)==null?void 0:m.nodes)||[]},0);return me(()=>g.roleIds,v=>{v.length>5&&(g.roleIds.pop(),Zn.warning(Pe("maxCountTips",{count:5})))}),me(()=>a.value,v=>{var b;v&&((b=f.value)==null||b.resetFields(),d.value=[])}),(v,b)=>(Fe(),Vt(ce(Yt),{open:a.value,"onUpdate:open":b[2]||(b[2]=m=>a.value=m),title:ce(Pe)("permissionApply"),width:"800px",onOk:C,okText:ce(Pe)("submit"),maskClosable:!1,"ok-button-props":{loading:l.value},cancelText:ce(Pe)("cancel")},{default:ke(()=>[I(ce(Vo),{ref_key:"formRef",ref:f,model:g,labelCol:{span:4},wrapperCol:{span:19}},{default:ke(()=>[I(ce(_s),{label:ce(Pe)("applyPermission"),name:"roleIds",rules:[{required:!0,message:ce(Pe)("selectPlaceholder")}]},{default:ke(()=>[I(ce(Ys),{value:g.roleIds,"onUpdate:value":b[0]||(b[0]=m=>g.roleIds=m),style:{display:"block"},onChange:ce(B)},{default:ke(()=>[(Fe(!0),bt(xe,null,kc(s.value,m=>(Fe(),Vt(ce(n),{key:m.roleId,item:m,checkedIds:g.roleIds,onChangeTime:ce(B)},null,8,["item","checkedIds","onChangeTime"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label","rules"]),I(ce(_s),{name:"applyReason",label:ce(Pe)("applyReason"),rules:[{required:!0,message:ce(Pe)("reasonPlaceholder"),trigger:["change","blur"]},{max:300,message:ce(Pe)("maxLengthTips",{length:300}),trigger:["change","blur"]}]},{default:ke(()=>[I(ce(ed),{value:g.applyReason,"onUpdate:value":b[1]||(b[1]=m=>g.applyReason=m),valueModifiers:{trim:!0},"show-count":"",maxlength:300,placeholder:ce(Pe)("applyReasonPlaceholder"),"auto-size":{minRows:2,maxRows:5}},null,8,["value","placeholder"]),lt("div",m5,[(Fe(),bt(xe,null,kc(o,m=>I(ce(_o),{bordered:!1,style:{cursor:"pointer"},onClick:w=>p(m),key:m},{default:ke(()=>[vt(Ye(m),1)]),_:2},1032,["onClick"])),64))])]),_:1},8,["label","rules"]),I(ce(_s),{label:ce(Pe)("approvalProcess")},{default:ke(()=>[I(h5,{stepNodes:ce(d)},null,8,["stepNodes"])]),_:1},8,["label"])]),_:1},8,["model"]),I(s5,{ref_key:"successModal",ref:A},null,512)]),_:1},8,["open","title","okText","ok-button-props","cancelText"]))}})},Symbol.toStringTag,{value:"Module"})),C5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBlVNLTgJBEK1qOrjtI4w34AhwAuQEZBJc4yyVBbCRxE2HrZoQT4CcAI7AEeYIbDUM5asGZYj0KJX0J1WvX9eXqUIm/qUpbNp6ZzHT+yzNY1iOGR796w2sc1w3B5Ujoc5D1ns/hzcxImb2OPJPqV3rwn0NYh/DR4mEJBGhxShLN7pEZAF1EsPbmAExr7C1kad9KGy6oF/RpR6R1FIGkzAvw4KPqqv4OC4jP3N1LpZ6R55aGiJd7JES4SF+CquK5JdHWnKE48o6YenjcCw8PtGTbMqtwGWSQ9/8X0p9ZY+M7DShLNKCOq9m2Cb7Ahy9P1N+m1eNgsrEz7AXJ7qQ7Cf/3IBLw71rxQzApIIkUUyAsgzDWyXSEhdcm2tY6N4xuqXxDTwrsCkGXT/VPtuyWSqHuaJtQ8cBuUkH2e0IgDcAmzEeteHD6SDr3eHMoHLKYT/IruuIF0PaR+UczjaIc4rLGpguRmfFTN1dUNncHAZyDEUoP0iclV0nxgLbz+joG32rxeGTJKKs6uFfXaw50XDK2C8hpcmbpfjHLAAAAABJRU5ErkJggg==",E5={class:"crane-checkbox-line"},y5={class:"crane-flex-center crane-checkbox-label"},b5={class:"crane-text-overflow"},I5={key:0},B5={key:1},w5={class:"crane-flex-center crane-margin-left-4"},Q5=["src"],S5={class:"crane-week-color crane-margin-left-4"},x5={key:2,class:"crane-week-color crane-margin-left-12"},O5=Object.freeze(Object.defineProperty({__proto__:null,default:Sd(ae({__name:"checkbox-item",props:{item:{type:Object,default:()=>{}},checkedIds:{type:Array,default:[]},onChangeTime:{type:Function,default:()=>{}}},setup(e){const t={L1:{color:"green",text:Pe("levels.L1")},L2:{color:"orange",text:Pe("levels.L2")},L3:{color:"red",text:Pe("levels.L3")}};let n=e;const o=GL("availiables"),r=Pe("status"),i=Ae(""),a=u=>{const c={L1:"SIXTY_DAYS",L2:"THIRTY_DAYS",L3:"SEVEN_DAYS"},{relatedDepartmentIds:A=[],curDepartmentId:f=0,securityLevel:d}=u;return A.includes(f)?u.validTime="NINETY_DAYS":u.validTime=c[d],u.validTime},l=u=>{n.item.validTime=u,n.onChangeTime()},s=u=>{u.target.checked&&(i.value=a(n.item))};return(u,c)=>(Fe(),bt("div",E5,[I(ce(fi),{value:e.item.roleId,disabled:["OWNER","PENDING","NO"].includes(ce(n).item.businessApplyType),onChange:s},{default:ke(()=>[lt("div",y5,[e.item.securityLevel?(Fe(),Vt(ce(_o),{key:0,bordered:!1,color:t[e.item.securityLevel].color,class:"crane-tag-position"},{default:ke(()=>[vt(Ye(t[e.item.securityLevel].text),1)]),_:1},8,["color"])):gn("",!0),lt("span",null,Ye(ce(Pe)(`operationType.${e.item.operationType}`))+"| ",1),I(ce(ci),null,{content:ke(()=>[vt(Ye(e.item.name),1)]),default:ke(()=>[lt("span",b5,Ye(e.item.name),1)]),_:1}),e.item.businessApplyType&&e.item.businessApplyType!=="TEMP_OWNER"?(Fe(),Vt(ce(_o),{key:1,bordered:!1,class:Bi(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING","TEMP_OWNER"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:ke(()=>[vt(Ye(ce(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):gn("",!0),I(ce(ci),null,{content:ke(()=>{var A,f,d,g;return[((f=(A=e.item)==null?void 0:A.ownStatusVO)==null?void 0:f.dayDiff)>0?(Fe(),bt("span",I5,Ye(ce(Pe)("lastDays",{count:(g=(d=e.item)==null?void 0:d.ownStatusVO)==null?void 0:g.dayDiff})),1)):(Fe(),bt("span",B5,Ye(ce(Pe)("taday")),1))]}),default:ke(()=>[e.item.businessApplyType==="TEMP_OWNER"?(Fe(),Vt(ce(_o),{key:0,bordered:!1,class:Bi(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:ke(()=>[vt(Ye(ce(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):gn("",!0)]),_:1})])]),_:1},8,["value","disabled"]),e.item.desc?(Fe(),Vt(ce(ci),{key:0},{content:ke(()=>[vt(Ye(e.item.desc),1)]),default:ke(()=>[I(ce(Vs),{class:"crane-week-color"})]),_:1})):gn("",!0),e.item.relatedDepartments?(Fe(),Vt(ce(ci),{key:1},{content:ke(()=>[vt(Ye(ce(Pe)("adaptDepartment"))+":"+Ye(e.item.relatedDepartments.map(A=>A.name).join("、")),1)]),default:ke(()=>[lt("span",w5,[lt("img",{src:ce(C5),height:"14",width:"14"},null,8,Q5),lt("span",S5,Ye(e.item.relatedDepartments.length),1)])]),_:1})):gn("",!0),e.checkedIds.includes(e.item.roleId)?(Fe(),bt("span",x5,[vt(Ye(ce(Pe)("availableTime"))+": ",1),I(ce(qn),{value:i.value,"onUpdate:value":c[0]||(c[0]=A=>i.value=A),style:{width:"100px"},options:ce(o),onChange:l,size:"small"},null,8,["value","options"])])):gn("",!0)]))}}),[["__scopeId","data-v-95656202"]])},Symbol.toStringTag,{value:"Module"}));return uQ});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Qe, i as Kn, C as ug, T as Gs, d as k, r as Xe, o as Pe, a as Vn, b as MA, w as V, g as st, p as fe, c as D, e as pe, f as G, u as K, s as Y, h as Se, j as Ge, t as gg, k as I, l as qt, m as Ws, n as fg, q as qn, v as Ks, x as Zt, y as Fe, z as dg, A as pg, B as Pi, D as Cg, E as Vs, G as RA, H as qs, I as Bg, J as hg, K as Bt, L as Si, M as co, N as ht, O as He, P as En, Q as nt, R as vn, S as Eg, U as vg } from "./index-
|
|
1
|
+
import { F as Qe, i as Kn, C as ug, T as Gs, d as k, r as Xe, o as Pe, a as Vn, b as MA, w as V, g as st, p as fe, c as D, e as pe, f as G, u as K, s as Y, h as Se, j as Ge, t as gg, k as I, l as qt, m as Ws, n as fg, q as qn, v as Ks, x as Zt, y as Fe, z as dg, A as pg, B as Pi, D as Cg, E as Vs, G as RA, H as qs, I as Bg, J as hg, K as Bt, L as Si, M as co, N as ht, O as He, P as En, Q as nt, R as vn, S as Eg, U as vg } from "./index-DRSRvQ6T.js";
|
|
2
2
|
function Mn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Mn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -16416,7 +16416,7 @@ ne.interceptors.response.use(
|
|
|
16416
16416
|
return pt.error(t), Promise.reject(e);
|
|
16417
16417
|
}
|
|
16418
16418
|
);
|
|
16419
|
-
const Wr = "/
|
|
16419
|
+
const Wr = "/crane", Gy = {
|
|
16420
16420
|
getPermissions: (e) => ne.get(`${Wr}/permission/apply`, { params: e }),
|
|
16421
16421
|
getFlowPreview: (e) => ne.post(`${Wr}/permission/apply/oa/flow/submit/preview`, e),
|
|
16422
16422
|
submitApply: (e) => ne.post(`${Wr}/permission/apply/oa/flow/submit`, e)
|
|
@@ -16442,7 +16442,7 @@ const Wr = "/admin/crane", Gy = {
|
|
|
16442
16442
|
adaptDepartment: "适用部门",
|
|
16443
16443
|
noApprovalProcess: "无审批流程",
|
|
16444
16444
|
excessTips: "一次最多可申请{number}个权限",
|
|
16445
|
-
unavailableTips: "
|
|
16445
|
+
unavailableTips: "您暂无权限查看/操作该页面,请点击下方按钮进行申请",
|
|
16446
16446
|
appliedTips: "权限已申请,正在{status}...",
|
|
16447
16447
|
unapplyTips: "您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",
|
|
16448
16448
|
callManager: "如有需要请联系系统管理员",
|
|
@@ -16498,7 +16498,7 @@ const Wr = "/admin/crane", Gy = {
|
|
|
16498
16498
|
adaptDepartment: "适用部门",
|
|
16499
16499
|
noApprovalProcess: "无审批流程",
|
|
16500
16500
|
excessTips: "一次最多可申请{number}个权限",
|
|
16501
|
-
unavailableTips: "
|
|
16501
|
+
unavailableTips: "您暂无权限查看/操作该页面,请点击下方按钮进行申请",
|
|
16502
16502
|
appliedTips: "权限已申请,正在{status}...",
|
|
16503
16503
|
unapplyTips: "您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,",
|
|
16504
16504
|
callManager: "如有需要请联系系统管理员",
|
|
@@ -16590,7 +16590,7 @@ const Wr = "/admin/crane", Gy = {
|
|
|
16590
16590
|
emits: ["onSuccess"],
|
|
16591
16591
|
setup(e, { emit: t }) {
|
|
16592
16592
|
const n = vg(
|
|
16593
|
-
() => import("./apply-modal-
|
|
16593
|
+
() => import("./apply-modal-CSJJ0Pps.js").then((h) => h.a)
|
|
16594
16594
|
), o = {
|
|
16595
16595
|
DEFAULT: "DEFAULT",
|
|
16596
16596
|
PENDING: "PENDING",
|
package/package.json
CHANGED
package/src/axios/index.ts
CHANGED
package/src/i18n/en-US.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
adaptDepartment: '适用部门',
|
|
21
21
|
noApprovalProcess: '无审批流程',
|
|
22
22
|
excessTips: '一次最多可申请{number}个权限',
|
|
23
|
-
unavailableTips: '
|
|
23
|
+
unavailableTips: '您暂无权限查看/操作该页面,请点击下方按钮进行申请',
|
|
24
24
|
appliedTips: '权限已申请,正在{status}...',
|
|
25
25
|
unapplyTips: '您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,',
|
|
26
26
|
callManager: '如有需要请联系系统管理员',
|
package/src/i18n/zh-CH.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
adaptDepartment: '适用部门',
|
|
21
21
|
noApprovalProcess: '无审批流程',
|
|
22
22
|
excessTips: '一次最多可申请{number}个权限',
|
|
23
|
-
unavailableTips: '
|
|
23
|
+
unavailableTips: '您暂无权限查看/操作该页面,请点击下方按钮进行申请',
|
|
24
24
|
appliedTips: '权限已申请,正在{status}...',
|
|
25
25
|
unapplyTips: '您暂无权限查看/操作该页面,且该页面中没有您可以申请的权限,',
|
|
26
26
|
callManager: '如有需要请联系系统管理员',
|