@yqg/permission 1.0.13 → 1.0.14
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-k0PhOUNb.js → apply-modal-C7muXQrp.js} +3 -3
- package/dist/{checkbox-item-DX2x4K6g.js → checkbox-item-CeODGePH.js} +507 -504
- package/dist/{index-DbF_iwPz.js → index-Cw_sw4Q2.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +2 -2
- package/dist/{yqg-permission-C7skP6Hw.js → yqg-permission-D1jja6cu.js} +2 -2
- package/package.json +1 -1
- package/src/components/checkbox-item.vue +4 -2
|
@@ -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-D1jja6cu.js").then((e) => e.b8)), Du = (e) => {
|
|
6073
6073
|
customElements.define(
|
|
6074
6074
|
e,
|
|
6075
6075
|
/* @__PURE__ */ iu(Ou, {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-7167add1]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7167add1]{margin:10px}.crane-margin-right10[data-v-7167add1]{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-
|
|
2
|
-
import { a1 as f } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-7167add1]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7167add1]{margin:10px}.crane-margin-right10[data-v-7167add1]{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-fd07f471]{display:flex;align-items:center}.crane-checkbox-line[data-v-fd07f471]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-fd07f471]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-fd07f471]{max-width:346px}.crane-tag-position[data-v-fd07f471]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-fd07f471]{margin-right:0}.crane-margin-left-4[data-v-fd07f471]{margin-left:4px}.crane-margin-right-4[data-v-fd07f471]{margin-right:4px}.crane-margin-left-12[data-v-fd07f471]{margin-left:12px}.crane-disabled-color[data-v-fd07f471]{color:#c9cdd4}.crane-week-color[data-v-fd07f471]{color:#86909c}.crane-text-overflow[data-v-fd07f471]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { a1 as f } from "./index-Cw_sw4Q2.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-7167add1]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7167add1]{margin:10px}.crane-margin-right10[data-v-7167add1]{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-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-7167add1]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7167add1]{margin:10px}.crane-margin-right10[data-v-7167add1]{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-fd07f471]{display:flex;align-items:center}.crane-checkbox-line[data-v-fd07f471]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-fd07f471]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-fd07f471]{max-width:346px}.crane-tag-position[data-v-fd07f471]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-fd07f471]{margin-right:0}.crane-margin-left-4[data-v-fd07f471]{margin-left:4px}.crane-margin-right-4[data-v-fd07f471]{margin-right:4px}.crane-margin-left-12[data-v-fd07f471]{margin-left:12px}.crane-disabled-color[data-v-fd07f471]{color:#c9cdd4}.crane-week-color[data-v-fd07f471]{color:#86909c}.crane-text-overflow[data-v-fd07f471]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
2
|
(function(gt,Qe){typeof exports=="object"&&typeof module<"u"?module.exports=Qe():typeof define=="function"&&define.amd?define(Qe):(gt=typeof globalThis<"u"?globalThis:gt||self,gt["yqg-permission"]=Qe())})(this,function(){"use strict";var N5=Object.defineProperty;var M5=(gt,Qe,wn)=>Qe in gt?N5(gt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:wn}):gt[Qe]=wn;var Of=(gt,Qe,wn)=>M5(gt,typeof Qe!="symbol"?Qe+"":Qe,wn);/**
|
|
3
3
|
* @vue/shared v3.5.12
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -256,4 +256,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
256
256
|
`)}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[fb]=this[fb]={accessors:{}}).accessors,r=this.prototype;function i(a){const l=Ma(a);o[l]||(AL(r,a),o[l]=!0)}return W.isArray(t)?t.forEach(i):i(t),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),W.freezeMethods(Jt);function gf(e,t){const n=this||Na,o=t||n,r=Jt.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 gb(e){return!!(e&&e.__CANCEL__)}function Ci(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Ci,De,{__CANCEL__:!0});function pb(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 dL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fL(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,d=0;for(;A!==r;)d+=n[A++],A=A%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const f=c&&u-c;return f?Math.round(d*1e3/f):void 0}}function gL(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 tc=(e,t,n=3)=>{let o=0;const r=fL(50,250);return gL(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)},hb=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},mb=e=>(...t)=>W.asap(()=>e(...t)),pL=Kt.hasStandardBrowserEnv?function(){const t=Kt.navigator&&/(msie|trident)/i.test(Kt.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}}(),hL=Kt.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 mL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vb(e,t){return e&&!mL(t)?vL(e,t):t}const Cb=e=>e instanceof Jt?{...e}:e;function Tr(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(Cb(u),Cb(c),!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(c){const A=s[c]||r,d=A(e[c],t[c],c);W.isUndefined(d)&&A!==l||(n[c]=d)}),n}const Eb=e=>{const t=Tr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=Jt.from(a),t.url=cb(vb(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(Kt.hasStandardBrowserEnv||Kt.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(Kt.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(t)),o||o!==!1&&pL(t.url))){const u=r&&i&&hL.read(i);u&&a.set(r,u)}return t},CL=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=Eb(e);let i=r.data;const a=Jt.from(r.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=r,c,A,d,f,g;function p(){f&&f(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function h(){if(!v)return;const y=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};pb(function(C){n(C),p()},function(C){o(C),p()},E),v=null}"onloadend"in v?v.onloadend=h:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(h)},v.onabort=function(){v&&(o(new De("Request aborted",De.ECONNABORTED,e,v)),v=null)},v.onerror=function(){o(new De("Network Error",De.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let B=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Ab;r.timeoutErrorMessage&&(B=r.timeoutErrorMessage),o(new De(B,E.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&W.forEach(a.toJSON(),function(B,E){v.setRequestHeader(E,B)}),W.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),l&&l!=="json"&&(v.responseType=r.responseType),u&&([d,g]=tc(u,!0),v.addEventListener("progress",d)),s&&v.upload&&([A,f]=tc(s),v.upload.addEventListener("progress",A),v.upload.addEventListener("loadend",f)),(r.cancelToken||r.signal)&&(c=y=>{v&&(o(!y||y.type?new Ci(null,e,v):y),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const b=dL(r.url);if(b&&Kt.protocols.indexOf(b)===-1){o(new De("Unsupported protocol "+b+":",De.ERR_BAD_REQUEST,e));return}v.send(i||null)})},EL=(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 Ci(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}},yL=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},bL=async function*(e,t){for await(const n of BL(e))yield*yL(n,t)},BL=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()}},yb=(e,t,n,o)=>{const r=bL(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 d=i+=A;n(d)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),r.return()}},{highWaterMark:2})},nc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bb=nc&&typeof ReadableStream=="function",IL=nc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wL=bb&&Bb(()=>{let e=!1;const t=new Request(Kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ib=64*1024,pf=bb&&Bb(()=>W.isReadableStream(new Response("").body)),oc={stream:pf&&(e=>e.body)};nc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oc[t]&&(oc[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 SL=async e=>{if(e==null)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e))return(await new Request(Kt.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 IL(e)).byteLength},QL=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return n??SL(t)},hf={http:G3,xhr:CL,fetch:nc&&(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:d}=Eb(e);u=u?(u+"").toLowerCase():"text";let f=EL([r,i&&i.toAbortSignal()],a),g;const p=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(s&&wL&&n!=="get"&&n!=="head"&&(v=await QL(c,o))!==0){let E=new Request(t,{method:"POST",body:o,duplex:"half"}),w;if(W.isFormData(o)&&(w=E.headers.get("content-type"))&&c.setContentType(w),E.body){const[C,S]=hb(v,tc(mb(s)));o=yb(E.body,Ib,C,S)}}W.isString(A)||(A=A?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...d,signal:f,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:o,duplex:"half",credentials:h?A:void 0});let b=await fetch(g);const y=pf&&(u==="stream"||u==="response");if(pf&&(l||y&&p)){const E={};["status","statusText","headers"].forEach(x=>{E[x]=b[x]});const w=W.toFiniteNumber(b.headers.get("content-length")),[C,S]=l&&hb(w,tc(mb(l),!0))||[];b=new Response(yb(b.body,Ib,C,()=>{S&&S(),p&&p()}),E)}u=u||"text";let B=await oc[W.findKey(oc,u)||"text"](b,e);return!y&&p&&p(),await new Promise((E,w)=>{pb(E,w,{data:B,headers:Jt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(h){throw p&&p(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,g),{cause:h.cause||h}):De.from(h,h&&h.code,e,g)}})};W.forEach(hf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wb=e=>`- ${e}`,xL=e=>W.isFunction(e)||e===null||e===!1,Sb={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,!xL(n)&&(o=hf[(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 :
|
|
257
257
|
`+i.map(wb).join(`
|
|
258
258
|
`):" "+wb(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:hf};function mf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ci(null,e)}function Qb(e){return mf(e),e.headers=Jt.from(e.headers),e.data=gf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sb.getAdapter(e.adapter||Na.adapter)(e).then(function(o){return mf(e),o.data=gf.call(e,e.transformResponse,o),o.headers=Jt.from(o.headers),o},function(o){return gb(o)||(mf(e),o&&o.response&&(o.response.data=gf.call(e,e.transformResponse,o.response),o.response.headers=Jt.from(o.response.headers))),Promise.reject(o)})}const xb="1.7.7",vf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vf[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Ob={};vf.transitional=function(t,n,o){function r(i,a){return"[Axios v"+xb+"] 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&&!Ob[a]&&(Ob[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 OL(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 Cf={assertOptions:OL,validators:vf},Uo=Cf.validators;class Nr{constructor(t){this.defaults=t,this.interceptors={request:new ub,response:new ub}}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+=`
|
|
259
|
-
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tr(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Cf.assertOptions(o,{silentJSONParsing:Uo.transitional(Uo.boolean),forcedJSONParsing:Uo.transitional(Uo.boolean),clarifyTimeoutError:Uo.transitional(Uo.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:Cf.assertOptions(r,{encode:Uo.function,serialize:Uo.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=Jt.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,d;if(!s){const g=[Qb.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);A<d;)c=c.then(g[A++],g[A++]);return c}d=l.length;let f=n;for(A=0;A<d;){const g=l[A++],p=l[A++];try{f=g(f)}catch(v){p.call(this,v);break}}try{c=Qb.call(this,f)}catch(g){return Promise.reject(g)}for(A=0,d=u.length;A<d;)c=c.then(u[A++],u[A++]);return c}getUri(t){t=Tr(this.defaults,t);const n=vb(t.baseURL,t.url);return cb(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){Nr.prototype[t]=function(n,o){return this.request(Tr(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(Tr(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Nr.prototype[t]=n(),Nr.prototype[t+"Form"]=n(!0)});class Ef{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 Ci(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 Ef(function(r){t=r}),cancel:t}}}function PL(e){return function(n){return e.apply(null,n)}}function DL(e){return W.isObject(e)&&e.isAxiosError===!0}const yf={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(yf).forEach(([e,t])=>{yf[t]=e});function Pb(e){const t=new Nr(e),n=Wy(Nr.prototype.request,t);return W.extend(n,Nr.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Pb(Tr(e,r))},n}const rt=Pb(Na);rt.Axios=Nr,rt.CanceledError=Ci,rt.CancelToken=Ef,rt.isCancel=gb,rt.VERSION=xb,rt.toFormData=Zs,rt.AxiosError=De,rt.Cancel=rt.CanceledError,rt.all=function(t){return Promise.all(t)},rt.spread=PL,rt.isAxiosError=DL,rt.mergeConfig=Tr,rt.AxiosHeaders=Jt,rt.formToJSON=e=>db(W.isHTMLForm(e)?new FormData(e):e),rt.getAdapter=Sb.getAdapter,rt.HttpStatusCode=yf,rt.default=rt;const TL=0,NL=10008;rt.defaults.withCredentials=!0,rt.defaults.headers.common["Accept-Language"]=localStorage.getItem("permission_locale"),rt.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);jn.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 TL:return Promise.resolve(n);case NL:return Promise.reject(n);default:return jn.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 jn.error(t),Promise.reject(e)});const bf="/crane",Bf={getPermissions:e=>rt.get(`${bf}/permission/apply`,{params:e}),getFlowPreview:e=>rt.post(`${bf}/permission/apply/oa/flow/submit/preview`,e),submitApply:e=>rt.post(`${bf}/permission/apply/oa/flow/submit`,e)},Db={"zh-CN":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReasonPlaceholder:"请尽可能详细描述申请理由({number}字以内)",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:"今天到期",clickToApply:"点击申请权限",noPermissionTips:"该菜单下暂无权限点",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:"审批流程",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:"今天到期",clickToApply:"点击申请菜单",noPermissionTips:"该菜单下暂无权限点",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:"操作"}}},Te=(e,t)=>{const n=localStorage.getItem("permission_locale")||"en-US",o=e.split(".");let r=Db[n]||Db["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},ML=(e,t)=>{let n=null;return function(){n||(n=setTimeout(()=>{e(arguments),n=null},t*1e3))}},HL=e=>{const t=Te(e);return Object.keys(t).map(n=>({label:t[n],value:n}))};function RL(e,t){const n=ae(0),o=ae(!1),r=ae(0),i=ae(0),a=ae(0),l=ae(null);me(()=>e.top,g=>{n.value=g},{immediate:!0});const s=g=>{const p=g.getBoundingClientRect();return{x:p.left,y:p.top}},u=(g,p,v)=>{const{innerWidth:h,innerHeight:b}=window,y=v.getBoundingClientRect(),B=Math.min(Math.max(g,0),h-y.width),E=Math.min(Math.max(p,0),b-y.height);return{x:B,y:E}},c=(g,p)=>{if(!o.value)return;const v=document.querySelector(".yqg-permission-tooltip");v&&(v.style.display="none");const{clientX:h,clientY:b}=g,{x:y,y:B}=u(h-r.value+i.value,b-n.value+a.value,p);p.style.left=`${y}px`,p.style.top=`${B}px`},A=(g,p)=>{if(!o.value)return;g.preventDefault(),g.stopPropagation();const{x:v,y:h}=s(p);if(Math.abs(h-a.value)<10&&Math.abs(v-i.value)<10){t(),o.value=!1;return}o.value=!1;const{clientY:b}=g,{x:y,y:B}=u(i.value,b-n.value+a.value,p);p.style.transition="all 0.3s",p.style.left=`${y}px`,p.style.top=`${B}px`,document.removeEventListener("mousemove",E=>c(E,p)),document.removeEventListener("mouseup",E=>A(E,p))},d=(g,p)=>{o.value=!0,g.preventDefault(),g.stopPropagation(),r.value=g.clientX,n.value=g.clientY;const{x:v,y:h}=s(p);i.value=v,a.value=h,p.style.transition="none",document.addEventListener("mousemove",b=>c(b,p)),document.addEventListener("mouseup",b=>A(b,p))};return(()=>{Ve(()=>{var p;const g=(p=l.value)==null?void 0:p.$el;g&&g.addEventListener("mousedown",v=>d(v,g))}),Ke(()=>{var p;const g=(p=l.value)==null?void 0:p.$el;g&&g.removeEventListener("mousedown",v=>d(v,g))})})(),{currentTop:n,dragElement:l}}const FL={class:"crane-wraper"},LL=["src"],jL=["src"],$L={class:"crane-margin10"},zL=["src"],kL={class:"crane-margin10"},VL=["innerHTML"],_L={key:2,class:"crane-wraper"},YL=["src"],UL={class:"crane-margin10"},WL={style:{"max-width":"400px"}},GL={style:{color:"#1677ff"}},XL="10px",KL=ne({__name:"yqg-permission",props:{workNumber:{type:String,default:""},permissions:{type:[String,Array],default:[]},locale:{type:String,default:"zh-CN"},color:{type:String,default:"#1677ff"},type:{type:String,default:"default"},top:{type:String,default:"100px"}},emits:["onSuccess"],setup(e,{emit:t}){const n={DEFAULT:"DEFAULT",PENDING:"PENDING",NO:"NO"},o={FLOATBUTTON:"floatButton",DEFAULT:"default",CUSTOM:"custom"};jn.config({prefixCls:"yqg-permission-message"});const r=Hc(()=>Promise.resolve().then(()=>s5)),i=t,a=e,l=ae(!1),s=ae();let u=ae([]),c=ae({imageUrl:Gs,status:""});const A=P(()=>{var B,E;return u.value=[],Array.isArray(a.permissions)?a.permissions.filter(w=>w.trim()):((E=(B=a.permissions)==null?void 0:B.split(","))==null?void 0:E.filter(w=>w.trim()))||[]}),d=P(()=>{const B=A.value[0]||"";return B?B.split(".")[0]:""}),f=B=>{const E=[],w=M=>{M.forEach(N=>{N.name=N.name.replace(/^[^.]+\./,""),N.children?w(N.children):E.push(N)})};w(B);const C=[null,"TEMP_OWNER","PENDING","OWNER","NO"],S=["L1","L2","L3"],x=new Map(C.map((M,N)=>[M,N])),D=new Map(S.map((M,N)=>[M,N]));return E.sort((M,N)=>(x.get(M.businessApplyType)??0)-(x.get(N.businessApplyType)??0)||(D.get(M.securityLevel)??0)-(D.get(N.securityLevel)??0)),E},g=B=>{var C,S;if(!B.length)return{imageUrl:Gs,status:""};const E=B.find(x=>x.businessApplyType===n.PENDING),w=B.every(x=>x.businessApplyType===n.NO);return E?(s.value=E,{imageUrl:l3,status:n.PENDING,tips:Te("status.PENDING"),url:E.oaFlowUrl}):w?{imageUrl:Gs,status:n.NO,tips:(S=(C=B[0].admin)==null?void 0:C.map(x=>`${x.name}(${x.departmentName})`))==null?void 0:S.join("、")}:{imageUrl:Gs,status:n.DEFAULT}},p=()=>{var E;const B=(E=s.value)==null?void 0:E.oaFlowUrl;B&&window.open(B,"_blank")},v=async()=>{const{workNumber:B}=a,E=A.value;if(!(E!=null&&E.length)||!B)return;const w={workNumber:B,features:E.toString()},C=await Bf.getPermissions(w);u.value=f(C.body||[]),c.value=g(u.value)},h=()=>{v(),l.value=!l.value},{currentTop:b,dragElement:y}=RL(a,h);return Ze(v),me(()=>a.locale,(B,E)=>{B!==E&&localStorage.setItem("permission_locale",a.locale)},{immediate:!0}),(B,E)=>(Fe(),Ht(le(xr),{prefixCls:"yqg-permission",theme:{token:{colorPrimary:a.color}}},{default:Ge(()=>[et("div",FL,[e.type===o.FLOATBUTTON?(Fe(),Ht(le(Yo),{key:0,ref_key:"dragElement",ref:y,type:"primary",tooltip:le(Te)("clickToApply"),style:wi({right:XL,top:le(b)})},{icon:Ge(()=>[et("img",{src:le(s3),height:"20",width:"20"},null,8,LL)]),_:1},8,["tooltip","style"])):e.type===o.CUSTOM?(Fe(),yt("div",{key:1,onClick:h},[EI(B.$slots,"custom",{},void 0,!0)])):(Fe(),yt(Pe,{key:2},[le(c).status===n.DEFAULT?(Fe(),yt(Pe,{key:0},[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,jL),et("div",$L,Xe(le(Te)("unavailableTips")),1),et("div",null,[I(le(Ln),{type:"primary",onClick:h},{default:Ge(()=>[Gt("+ "+Xe(le(Te)("applyPermission")),1)]),_:1})])],64)):Dn("",!0),le(c).status===n.PENDING?(Fe(),yt(Pe,{key:1},[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,zL),et("div",kL,[et("span",{class:"crane-unapply",innerHTML:le(Te)("appliedTips",{status:`<style>.crane-unapply span {color: orange;}</style><span>${le(c).tips}</span>`})},null,8,VL)]),et("div",null,[I(le(Ln),{class:"crane-margin-right10",onClick:p},{default:Ge(()=>[Gt(Xe(le(Te)("viewApprovalDetail")),1)]),_:1}),I(le(Ln),{type:"primary",onClick:h},{default:Ge(()=>[Gt("+ "+Xe(le(Te)("applyMore")),1)]),_:1})])],64)):Dn("",!0),le(c).status===n.NO?(Fe(),yt("div",_L,[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,YL),et("div",UL,[Gt(Xe(le(Te)("unapplyTips"))+" ",1),I(le(Ai),null,{content:Ge(()=>[et("div",WL,Xe(le(Te)("manager"))+": "+Xe(le(c).tips),1)]),default:Ge(()=>[et("span",GL,Xe(le(Te)("callManager")),1)]),_:1})])])):Dn("",!0)],64))]),I(le(r),{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=w=>l.value=w),permissionList:le(u),workNumber:e.workNumber,businessCode:d.value,onOnSuccess:E[1]||(E[1]=()=>i("onSuccess")),onOnSubmit:v},null,8,["modelValue","permissionList","workNumber","businessCode"])]),_:3},8,["theme"]))}}),If=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},JL=Object.freeze(Object.defineProperty({__proto__:null,default:If(KL,[["__scopeId","data-v-7167add1"]])},Symbol.toStringTag,{value:"Module"})),qL=ne({__name:"success-modal",setup(e,{expose:t}){const[n,o]=Xt.useModal();return t({countDown:(i,a)=>{let l=10;const s=n.confirm({title:Te("resoultTitle"),content:Te("successTips"),cancelText:`${Te("close")}(${l}s)`,okText:`${Te("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:`${Te("close")}(${l}s)`})},1e3);setTimeout(()=>{clearInterval(u),s.destroy()},l*1e3)}}),(i,a)=>(Fe(),Ht(le(o)))}}),ZL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAGCAYAAADHYm6gAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACASURBVHgBrY/BDUBAEEX/DicnJ66UoAQdcEd0oAQ6oQOtKGGPjquBHbPhInHbfclPZjLJmxnAg2zg2eVvRvBAMS4wlrznvRg5/czgSdbxIpZZchChPTelg4hfeSOmVUpDEWonV/nAk7zTwBMGCjzRSYQqthYlBbhbFNpJZYFx/Q2MWyJuE54BvwAAAABJRU5ErkJggg==",e5={key:0,class:"crane-step-wraper"},t5={style:{"white-space":"nowrap"}},n5={style:{"max-width":"400px"}},o5=["src"],r5={key:1},i5={key:2},a5=If(ne({__name:"approval-steps",props:{stepNodes:{type:Array,required:!0,default:()=>[]}},setup(e){const n=Zt(e,"stepNodes"),o=r=>r===n.value.length-1?`[${Te("end")}]`:r===0?`[${Te("start")}]`:"";return(r,i)=>{var a,l;return((a=n.value)==null?void 0:a.length)>1?(Fe(),yt("div",e5,[(Fe(!0),yt(Pe,null,Fg(n.value,(s,u)=>{var c;return Fe(),yt("div",{key:s.auditorName,class:"crane-step-node"},[et("span",t5,[Gt(Xe(s.auditorName)+" ",1),(c=s.employeeNameList)!=null&&c.length?(Fe(),Ht(le(Ai),{key:0},{content:Ge(()=>[et("div",n5,Xe(s.employeeNameList.join("、")),1)]),default:Ge(()=>[I(le(ws),{style:{margin:"0 2px",color:"#1677ff"}})]),_:2},1024)):Dn("",!0),Gt(" "+Xe(o(u)),1)]),u!==n.value.length-1?(Fe(),yt("img",{key:0,src:le(ZL),class:"crane-step-icon"},null,8,o5)):Dn("",!0)])}),128))])):((l=n.value)==null?void 0:l.length)===1?(Fe(),yt("span",r5,Xe(le(Te)("noNeed")),1)):(Fe(),yt("span",i5,"-"))}}}),[["__scopeId","data-v-f3d62522"]]),l5={key:0},s5=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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=Hc(()=>Promise.resolve().then(()=>b5)),o=e,r=t,i=ew(e,"modelValue"),a=ae(!1),l=Zt(o,"permissionList"),s=Zt(o,"businessCode"),u=Zt(o,"workNumber"),c=ae(),A=ae();let d=ae([]);const f=at({applyBusinessCode:s.value,roleIds:[],roleVoList:[],applyReason:"",submitWorkNumber:u.value}),g=async()=>{if(f.roleIds.length>5)return jn.warning(Te("maxCountTips",{count:5}));A.value.validate().then(async()=>{var B,E;a.value=!0;const h=p();let b=await Bf.submitApply(h);const y=(B=b==null?void 0:b.body)==null?void 0:B.oaFlowUrl;i.value=!1,a.value=!1,r("onSubmit"),(E=c.value)==null||E.countDown(y,()=>r("onSuccess"))})},p=()=>(f.roleVoList=f.roleIds.map(h=>{var b;return{roleId:h,validTime:(b=l.value.find(y=>y.roleId===h))==null?void 0:b.validTime}}),f),v=ML(async()=>{var y;if(f.roleIds.length>5)return;if(!f.roleIds.length){d.value=[];return}const h=p();let b=await Bf.getFlowPreview(h);d.value=((y=b==null?void 0:b.body)==null?void 0:y.nodes)||[]},0);return me(()=>f.roleIds,h=>{h.length>5&&(f.roleIds.pop(),jn.warning(Te("maxCountTips",{count:5})))}),me(()=>i.value,h=>{var b;h&&((b=A.value)==null||b.resetFields(),d.value=[])}),(h,b)=>(Fe(),Ht(le(Xt),{open:i.value,"onUpdate:open":b[2]||(b[2]=y=>i.value=y),title:le(Te)("permissionApply"),width:"800px",onOk:g,okText:le(Te)("submit"),maskClosable:!1,"ok-button-props":{loading:a.value},cancelText:le(Te)("cancel")},{default:Ge(()=>[I(le(_o),{ref_key:"formRef",ref:A,model:f,labelCol:{span:4},wrapperCol:{span:19}},{default:Ge(()=>[I(le(js),{label:le(Te)("applyPermission"),name:"roleIds",rules:[{required:!0,message:le(Te)("selectPlaceholder")}]},{default:Ge(()=>[l.value.length?(Fe(),Ht(le($s),{key:1,value:f.roleIds,"onUpdate:value":b[0]||(b[0]=y=>f.roleIds=y),style:{display:"block"},onChange:le(v)},{default:Ge(()=>[(Fe(!0),yt(Pe,null,Fg(l.value,y=>(Fe(),Ht(le(n),{key:y.roleId,item:y,checkedIds:f.roleIds,onChangeTime:le(v)},null,8,["item","checkedIds","onChangeTime"]))),128))]),_:1},8,["value","onChange"])):(Fe(),yt("span",l5,Xe(le(Te)("noPermissionTips")),1))]),_:1},8,["label","rules"]),I(le(js),{name:"applyReason",label:le(Te)("applyReason"),rules:[{required:!0,message:le(Te)("reasonPlaceholder"),trigger:["change","blur"]},{max:300,message:le(Te)("maxLengthTips",{length:300}),trigger:["change","blur"]}]},{default:Ge(()=>[I(le(xy),{value:f.applyReason,"onUpdate:value":b[1]||(b[1]=y=>f.applyReason=y),valueModifiers:{trim:!0},placeholder:le(Te)("applyReasonPlaceholder",{number:300}),"auto-size":{minRows:2,maxRows:5}},null,8,["value","placeholder"])]),_:1},8,["label","rules"]),I(le(js),{label:le(Te)("approvalProcess")},{default:Ge(()=>[I(a5,{stepNodes:le(d)},null,8,["stepNodes"])]),_:1},8,["label"])]),_:1},8,["model"]),I(qL,{ref_key:"successModal",ref:c},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==",u5={class:"crane-checkbox-line"},A5={class:"crane-flex-center crane-checkbox-label"},d5={style:{"max-width":"400px"}},f5={class:"crane-text-overflow"},g5={key:0},p5={key:1},h5={style:{"max-width":"400px"}},m5={style:{"max-width":"400px"}},v5={class:"crane-flex-center crane-margin-left-4"},C5=["src"],E5={class:"crane-week-color crane-margin-left-4"},y5={key:2,class:"crane-week-color crane-margin-left-12"},b5=Object.freeze(Object.defineProperty({__proto__:null,default:If(ne({__name:"checkbox-item",props:{item:{type:Object,default:()=>{}},checkedIds:{type:Array,default:[]},onChangeTime:{type:Function,default:()=>{}}},setup(e){const t={L1:{color:"#1AA83B",text:Te("levels.L1"),background:"#E3F9E9"},L2:{color:"#F37D1C",text:Te("levels.L2"),background:"#FFE4BA"},L3:{color:"#F2494B",text:Te("levels.L3"),background:"#FDCDC5"}};let n=e;const o=HL("availiables"),r=Te("status"),i=ae(""),a=u=>{const c={L1:"SIXTY_DAYS",L2:"THIRTY_DAYS",L3:"SEVEN_DAYS"},{relatedDepartmentIds:A=[],curDepartmentId:d=0,securityLevel:f}=u;return A.includes(d)?u.validTime="NINETY_DAYS":u.validTime=c[f],u.validTime},l=u=>{n.item.validTime=u,n.onChangeTime()},s=u=>{u.target.checked&&(i.value=a(n.item))};return(u,c)=>(Fe(),yt("div",u5,[I(le(gi),{value:e.item.roleId,disabled:["OWNER","PENDING","NO"].includes(le(n).item.businessApplyType),onChange:s},{default:Ge(()=>[et("div",A5,[e.item.securityLevel?(Fe(),Ht(le(Or),{key:0,bordered:!1,style:wi({color:t[e.item.securityLevel].color,background:t[e.item.securityLevel].background}),class:"crane-tag-position"},{default:Ge(()=>[Gt(Xe(t[e.item.securityLevel].text),1)]),_:1},8,["style"])):Dn("",!0),et("span",null,Xe(le(Te)(`operationType.${e.item.operationType}`))+"| ",1),I(le(Ai),null,{content:Ge(()=>[et("div",d5,Xe(e.item.name),1)]),default:Ge(()=>[et("span",f5,Xe(e.item.name),1)]),_:1}),e.item.businessApplyType&&e.item.businessApplyType!=="TEMP_OWNER"?(Fe(),Ht(le(Or),{key:1,bordered:!1,class:Si(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING","TEMP_OWNER"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:Ge(()=>[Gt(Xe(le(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):Dn("",!0),I(le(Ai),null,{content:Ge(()=>{var A,d,f,g;return[((d=(A=e.item)==null?void 0:A.ownStatusVO)==null?void 0:d.dayDiff)>0?(Fe(),yt("span",g5,Xe(le(Te)("lastDays",{count:(g=(f=e.item)==null?void 0:f.ownStatusVO)==null?void 0:g.dayDiff})),1)):(Fe(),yt("span",p5,Xe(le(Te)("taday")),1))]}),default:Ge(()=>[e.item.businessApplyType==="TEMP_OWNER"?(Fe(),Ht(le(Or),{key:0,bordered:!1,class:Si(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:Ge(()=>[Gt(Xe(le(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):Dn("",!0)]),_:1})])]),_:1},8,["value","disabled"]),e.item.desc?(Fe(),Ht(le(Ai),{key:0},{content:Ge(()=>[et("div",h5,Xe(e.item.desc),1)]),default:Ge(()=>[I(le(Ls),{class:"crane-week-color"})]),_:1})):Dn("",!0),e.item.relatedCompleteNames?(Fe(),Ht(le(Ai),{key:1},{content:Ge(()=>[et("div",m5,Xe(le(Te)("adaptDepartment"))+":"+Xe(e.item.relatedCompleteNames.join("、")),1)]),default:Ge(()=>[et("span",v5,[et("img",{src:le(c5),height:"14",width:"14"},null,8,C5),et("span",E5,Xe(e.item.relatedCompleteNames.length),1)])]),_:1})):Dn("",!0),e.checkedIds.includes(e.item.roleId)?(Fe(),yt("span",y5,[Gt(Xe(le(Te)("availableTime"))+": ",1),I(le(qn),{value:i.value,"onUpdate:value":c[0]||(c[0]=A=>i.value=A),style:{width:"100px"},options:le(o),onChange:l,size:"small"},null,8,["value","options"])])):Dn("",!0)]))}}),[["__scopeId","data-v-2dc132f0"]])},Symbol.toStringTag,{value:"Module"}));return lS});
|
|
259
|
+
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tr(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Cf.assertOptions(o,{silentJSONParsing:Uo.transitional(Uo.boolean),forcedJSONParsing:Uo.transitional(Uo.boolean),clarifyTimeoutError:Uo.transitional(Uo.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:Cf.assertOptions(r,{encode:Uo.function,serialize:Uo.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=Jt.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,d;if(!s){const g=[Qb.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);A<d;)c=c.then(g[A++],g[A++]);return c}d=l.length;let f=n;for(A=0;A<d;){const g=l[A++],p=l[A++];try{f=g(f)}catch(v){p.call(this,v);break}}try{c=Qb.call(this,f)}catch(g){return Promise.reject(g)}for(A=0,d=u.length;A<d;)c=c.then(u[A++],u[A++]);return c}getUri(t){t=Tr(this.defaults,t);const n=vb(t.baseURL,t.url);return cb(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){Nr.prototype[t]=function(n,o){return this.request(Tr(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(Tr(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Nr.prototype[t]=n(),Nr.prototype[t+"Form"]=n(!0)});class Ef{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 Ci(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 Ef(function(r){t=r}),cancel:t}}}function PL(e){return function(n){return e.apply(null,n)}}function DL(e){return W.isObject(e)&&e.isAxiosError===!0}const yf={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(yf).forEach(([e,t])=>{yf[t]=e});function Pb(e){const t=new Nr(e),n=Wy(Nr.prototype.request,t);return W.extend(n,Nr.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Pb(Tr(e,r))},n}const rt=Pb(Na);rt.Axios=Nr,rt.CanceledError=Ci,rt.CancelToken=Ef,rt.isCancel=gb,rt.VERSION=xb,rt.toFormData=Zs,rt.AxiosError=De,rt.Cancel=rt.CanceledError,rt.all=function(t){return Promise.all(t)},rt.spread=PL,rt.isAxiosError=DL,rt.mergeConfig=Tr,rt.AxiosHeaders=Jt,rt.formToJSON=e=>db(W.isHTMLForm(e)?new FormData(e):e),rt.getAdapter=Sb.getAdapter,rt.HttpStatusCode=yf,rt.default=rt;const TL=0,NL=10008;rt.defaults.withCredentials=!0,rt.defaults.headers.common["Accept-Language"]=localStorage.getItem("permission_locale"),rt.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);jn.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 TL:return Promise.resolve(n);case NL:return Promise.reject(n);default:return jn.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 jn.error(t),Promise.reject(e)});const bf="/crane",Bf={getPermissions:e=>rt.get(`${bf}/permission/apply`,{params:e}),getFlowPreview:e=>rt.post(`${bf}/permission/apply/oa/flow/submit/preview`,e),submitApply:e=>rt.post(`${bf}/permission/apply/oa/flow/submit`,e)},Db={"zh-CN":{permissionApply:"权限申请",applyPermission:"申请权限",applyReason:"申请理由",approvalProcess:"审批流程",applyReasonPlaceholder:"请尽可能详细描述申请理由({number}字以内)",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:"今天到期",clickToApply:"点击申请权限",noPermissionTips:"该菜单下暂无权限点",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:"审批流程",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:"今天到期",clickToApply:"点击申请菜单",noPermissionTips:"该菜单下暂无权限点",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:"操作"}}},Te=(e,t)=>{const n=localStorage.getItem("permission_locale")||"en-US",o=e.split(".");let r=Db[n]||Db["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},ML=(e,t)=>{let n=null;return function(){n||(n=setTimeout(()=>{e(arguments),n=null},t*1e3))}},HL=e=>{const t=Te(e);return Object.keys(t).map(n=>({label:t[n],value:n}))};function RL(e,t){const n=ae(0),o=ae(!1),r=ae(0),i=ae(0),a=ae(0),l=ae(null);me(()=>e.top,g=>{n.value=g},{immediate:!0});const s=g=>{const p=g.getBoundingClientRect();return{x:p.left,y:p.top}},u=(g,p,v)=>{const{innerWidth:h,innerHeight:b}=window,y=v.getBoundingClientRect(),B=Math.min(Math.max(g,0),h-y.width),E=Math.min(Math.max(p,0),b-y.height);return{x:B,y:E}},c=(g,p)=>{if(!o.value)return;const v=document.querySelector(".yqg-permission-tooltip");v&&(v.style.display="none");const{clientX:h,clientY:b}=g,{x:y,y:B}=u(h-r.value+i.value,b-n.value+a.value,p);p.style.left=`${y}px`,p.style.top=`${B}px`},A=(g,p)=>{if(!o.value)return;g.preventDefault(),g.stopPropagation();const{x:v,y:h}=s(p);if(Math.abs(h-a.value)<10&&Math.abs(v-i.value)<10){t(),o.value=!1;return}o.value=!1;const{clientY:b}=g,{x:y,y:B}=u(i.value,b-n.value+a.value,p);p.style.transition="all 0.3s",p.style.left=`${y}px`,p.style.top=`${B}px`,document.removeEventListener("mousemove",E=>c(E,p)),document.removeEventListener("mouseup",E=>A(E,p))},d=(g,p)=>{o.value=!0,g.preventDefault(),g.stopPropagation(),r.value=g.clientX,n.value=g.clientY;const{x:v,y:h}=s(p);i.value=v,a.value=h,p.style.transition="none",document.addEventListener("mousemove",b=>c(b,p)),document.addEventListener("mouseup",b=>A(b,p))};return(()=>{Ve(()=>{var p;const g=(p=l.value)==null?void 0:p.$el;g&&g.addEventListener("mousedown",v=>d(v,g))}),Ke(()=>{var p;const g=(p=l.value)==null?void 0:p.$el;g&&g.removeEventListener("mousedown",v=>d(v,g))})})(),{currentTop:n,dragElement:l}}const FL={class:"crane-wraper"},LL=["src"],jL=["src"],$L={class:"crane-margin10"},zL=["src"],kL={class:"crane-margin10"},VL=["innerHTML"],_L={key:2,class:"crane-wraper"},YL=["src"],UL={class:"crane-margin10"},WL={style:{"max-width":"400px"}},GL={style:{color:"#1677ff"}},XL="10px",KL=ne({__name:"yqg-permission",props:{workNumber:{type:String,default:""},permissions:{type:[String,Array],default:[]},locale:{type:String,default:"zh-CN"},color:{type:String,default:"#1677ff"},type:{type:String,default:"default"},top:{type:String,default:"100px"}},emits:["onSuccess"],setup(e,{emit:t}){const n={DEFAULT:"DEFAULT",PENDING:"PENDING",NO:"NO"},o={FLOATBUTTON:"floatButton",DEFAULT:"default",CUSTOM:"custom"};jn.config({prefixCls:"yqg-permission-message"});const r=Hc(()=>Promise.resolve().then(()=>s5)),i=t,a=e,l=ae(!1),s=ae();let u=ae([]),c=ae({imageUrl:Gs,status:""});const A=P(()=>{var B,E;return u.value=[],Array.isArray(a.permissions)?a.permissions.filter(w=>w.trim()):((E=(B=a.permissions)==null?void 0:B.split(","))==null?void 0:E.filter(w=>w.trim()))||[]}),d=P(()=>{const B=A.value[0]||"";return B?B.split(".")[0]:""}),f=B=>{const E=[],w=M=>{M.forEach(N=>{N.name=N.name.replace(/^[^.]+\./,""),N.children?w(N.children):E.push(N)})};w(B);const C=[null,"TEMP_OWNER","PENDING","OWNER","NO"],S=["L1","L2","L3"],x=new Map(C.map((M,N)=>[M,N])),D=new Map(S.map((M,N)=>[M,N]));return E.sort((M,N)=>(x.get(M.businessApplyType)??0)-(x.get(N.businessApplyType)??0)||(D.get(M.securityLevel)??0)-(D.get(N.securityLevel)??0)),E},g=B=>{var C,S;if(!B.length)return{imageUrl:Gs,status:""};const E=B.find(x=>x.businessApplyType===n.PENDING),w=B.every(x=>x.businessApplyType===n.NO);return E?(s.value=E,{imageUrl:l3,status:n.PENDING,tips:Te("status.PENDING"),url:E.oaFlowUrl}):w?{imageUrl:Gs,status:n.NO,tips:(S=(C=B[0].admin)==null?void 0:C.map(x=>`${x.name}(${x.departmentName})`))==null?void 0:S.join("、")}:{imageUrl:Gs,status:n.DEFAULT}},p=()=>{var E;const B=(E=s.value)==null?void 0:E.oaFlowUrl;B&&window.open(B,"_blank")},v=async()=>{const{workNumber:B}=a,E=A.value;if(!(E!=null&&E.length)||!B)return;const w={workNumber:B,features:E.toString()},C=await Bf.getPermissions(w);u.value=f(C.body||[]),c.value=g(u.value)},h=()=>{v(),l.value=!l.value},{currentTop:b,dragElement:y}=RL(a,h);return Ze(v),me(()=>a.locale,(B,E)=>{B!==E&&localStorage.setItem("permission_locale",a.locale)},{immediate:!0}),(B,E)=>(Fe(),Ht(le(xr),{prefixCls:"yqg-permission",theme:{token:{colorPrimary:a.color}}},{default:Ge(()=>[et("div",FL,[e.type===o.FLOATBUTTON?(Fe(),Ht(le(Yo),{key:0,ref_key:"dragElement",ref:y,type:"primary",tooltip:le(Te)("clickToApply"),style:wi({right:XL,top:le(b)})},{icon:Ge(()=>[et("img",{src:le(s3),height:"20",width:"20"},null,8,LL)]),_:1},8,["tooltip","style"])):e.type===o.CUSTOM?(Fe(),yt("div",{key:1,onClick:h},[EI(B.$slots,"custom",{},void 0,!0)])):(Fe(),yt(Pe,{key:2},[le(c).status===n.DEFAULT?(Fe(),yt(Pe,{key:0},[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,jL),et("div",$L,Xe(le(Te)("unavailableTips")),1),et("div",null,[I(le(Ln),{type:"primary",onClick:h},{default:Ge(()=>[Gt("+ "+Xe(le(Te)("applyPermission")),1)]),_:1})])],64)):Dn("",!0),le(c).status===n.PENDING?(Fe(),yt(Pe,{key:1},[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,zL),et("div",kL,[et("span",{class:"crane-unapply",innerHTML:le(Te)("appliedTips",{status:`<style>.crane-unapply span {color: orange;}</style><span>${le(c).tips}</span>`})},null,8,VL)]),et("div",null,[I(le(Ln),{class:"crane-margin-right10",onClick:p},{default:Ge(()=>[Gt(Xe(le(Te)("viewApprovalDetail")),1)]),_:1}),I(le(Ln),{type:"primary",onClick:h},{default:Ge(()=>[Gt("+ "+Xe(le(Te)("applyMore")),1)]),_:1})])],64)):Dn("",!0),le(c).status===n.NO?(Fe(),yt("div",_L,[et("img",{src:le(c).imageUrl,height:"200",width:"200",style:{"margin-top":"calc(50vh - 273px)"}},null,8,YL),et("div",UL,[Gt(Xe(le(Te)("unapplyTips"))+" ",1),I(le(Ai),null,{content:Ge(()=>[et("div",WL,Xe(le(Te)("manager"))+": "+Xe(le(c).tips),1)]),default:Ge(()=>[et("span",GL,Xe(le(Te)("callManager")),1)]),_:1})])])):Dn("",!0)],64))]),I(le(r),{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=w=>l.value=w),permissionList:le(u),workNumber:e.workNumber,businessCode:d.value,onOnSuccess:E[1]||(E[1]=()=>i("onSuccess")),onOnSubmit:v},null,8,["modelValue","permissionList","workNumber","businessCode"])]),_:3},8,["theme"]))}}),If=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},JL=Object.freeze(Object.defineProperty({__proto__:null,default:If(KL,[["__scopeId","data-v-7167add1"]])},Symbol.toStringTag,{value:"Module"})),qL=ne({__name:"success-modal",setup(e,{expose:t}){const[n,o]=Xt.useModal();return t({countDown:(i,a)=>{let l=10;const s=n.confirm({title:Te("resoultTitle"),content:Te("successTips"),cancelText:`${Te("close")}(${l}s)`,okText:`${Te("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:`${Te("close")}(${l}s)`})},1e3);setTimeout(()=>{clearInterval(u),s.destroy()},l*1e3)}}),(i,a)=>(Fe(),Ht(le(o)))}}),ZL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAGCAYAAADHYm6gAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACASURBVHgBrY/BDUBAEEX/DicnJ66UoAQdcEd0oAQ6oQOtKGGPjquBHbPhInHbfclPZjLJmxnAg2zg2eVvRvBAMS4wlrznvRg5/czgSdbxIpZZchChPTelg4hfeSOmVUpDEWonV/nAk7zTwBMGCjzRSYQqthYlBbhbFNpJZYFx/Q2MWyJuE54BvwAAAABJRU5ErkJggg==",e5={key:0,class:"crane-step-wraper"},t5={style:{"white-space":"nowrap"}},n5={style:{"max-width":"400px"}},o5=["src"],r5={key:1},i5={key:2},a5=If(ne({__name:"approval-steps",props:{stepNodes:{type:Array,required:!0,default:()=>[]}},setup(e){const n=Zt(e,"stepNodes"),o=r=>r===n.value.length-1?`[${Te("end")}]`:r===0?`[${Te("start")}]`:"";return(r,i)=>{var a,l;return((a=n.value)==null?void 0:a.length)>1?(Fe(),yt("div",e5,[(Fe(!0),yt(Pe,null,Fg(n.value,(s,u)=>{var c;return Fe(),yt("div",{key:s.auditorName,class:"crane-step-node"},[et("span",t5,[Gt(Xe(s.auditorName)+" ",1),(c=s.employeeNameList)!=null&&c.length?(Fe(),Ht(le(Ai),{key:0},{content:Ge(()=>[et("div",n5,Xe(s.employeeNameList.join("、")),1)]),default:Ge(()=>[I(le(ws),{style:{margin:"0 2px",color:"#1677ff"}})]),_:2},1024)):Dn("",!0),Gt(" "+Xe(o(u)),1)]),u!==n.value.length-1?(Fe(),yt("img",{key:0,src:le(ZL),class:"crane-step-icon"},null,8,o5)):Dn("",!0)])}),128))])):((l=n.value)==null?void 0:l.length)===1?(Fe(),yt("span",r5,Xe(le(Te)("noNeed")),1)):(Fe(),yt("span",i5,"-"))}}}),[["__scopeId","data-v-f3d62522"]]),l5={key:0},s5=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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=Hc(()=>Promise.resolve().then(()=>b5)),o=e,r=t,i=ew(e,"modelValue"),a=ae(!1),l=Zt(o,"permissionList"),s=Zt(o,"businessCode"),u=Zt(o,"workNumber"),c=ae(),A=ae();let d=ae([]);const f=at({applyBusinessCode:s.value,roleIds:[],roleVoList:[],applyReason:"",submitWorkNumber:u.value}),g=async()=>{if(f.roleIds.length>5)return jn.warning(Te("maxCountTips",{count:5}));A.value.validate().then(async()=>{var B,E;a.value=!0;const h=p();let b=await Bf.submitApply(h);const y=(B=b==null?void 0:b.body)==null?void 0:B.oaFlowUrl;i.value=!1,a.value=!1,r("onSubmit"),(E=c.value)==null||E.countDown(y,()=>r("onSuccess"))})},p=()=>(f.roleVoList=f.roleIds.map(h=>{var b;return{roleId:h,validTime:(b=l.value.find(y=>y.roleId===h))==null?void 0:b.validTime}}),f),v=ML(async()=>{var y;if(f.roleIds.length>5)return;if(!f.roleIds.length){d.value=[];return}const h=p();let b=await Bf.getFlowPreview(h);d.value=((y=b==null?void 0:b.body)==null?void 0:y.nodes)||[]},0);return me(()=>f.roleIds,h=>{h.length>5&&(f.roleIds.pop(),jn.warning(Te("maxCountTips",{count:5})))}),me(()=>i.value,h=>{var b;h&&((b=A.value)==null||b.resetFields(),d.value=[])}),(h,b)=>(Fe(),Ht(le(Xt),{open:i.value,"onUpdate:open":b[2]||(b[2]=y=>i.value=y),title:le(Te)("permissionApply"),width:"800px",onOk:g,okText:le(Te)("submit"),maskClosable:!1,"ok-button-props":{loading:a.value},cancelText:le(Te)("cancel")},{default:Ge(()=>[I(le(_o),{ref_key:"formRef",ref:A,model:f,labelCol:{span:4},wrapperCol:{span:19}},{default:Ge(()=>[I(le(js),{label:le(Te)("applyPermission"),name:"roleIds",rules:[{required:!0,message:le(Te)("selectPlaceholder")}]},{default:Ge(()=>[l.value.length?(Fe(),Ht(le($s),{key:1,value:f.roleIds,"onUpdate:value":b[0]||(b[0]=y=>f.roleIds=y),style:{display:"block"},onChange:le(v)},{default:Ge(()=>[(Fe(!0),yt(Pe,null,Fg(l.value,y=>(Fe(),Ht(le(n),{key:y.roleId,item:y,checkedIds:f.roleIds,onChangeTime:le(v)},null,8,["item","checkedIds","onChangeTime"]))),128))]),_:1},8,["value","onChange"])):(Fe(),yt("span",l5,Xe(le(Te)("noPermissionTips")),1))]),_:1},8,["label","rules"]),I(le(js),{name:"applyReason",label:le(Te)("applyReason"),rules:[{required:!0,message:le(Te)("reasonPlaceholder"),trigger:["change","blur"]},{max:300,message:le(Te)("maxLengthTips",{length:300}),trigger:["change","blur"]}]},{default:Ge(()=>[I(le(xy),{value:f.applyReason,"onUpdate:value":b[1]||(b[1]=y=>f.applyReason=y),valueModifiers:{trim:!0},placeholder:le(Te)("applyReasonPlaceholder",{number:300}),"auto-size":{minRows:2,maxRows:5}},null,8,["value","placeholder"])]),_:1},8,["label","rules"]),I(le(js),{label:le(Te)("approvalProcess")},{default:Ge(()=>[I(a5,{stepNodes:le(d)},null,8,["stepNodes"])]),_:1},8,["label"])]),_:1},8,["model"]),I(qL,{ref_key:"successModal",ref:c},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==",u5={class:"crane-checkbox-line"},A5={class:"crane-flex-center crane-checkbox-label"},d5={style:{"max-width":"400px"}},f5={class:"crane-text-overflow"},g5={key:0},p5={key:1},h5={style:{"max-width":"400px"}},m5={style:{"max-width":"400px"}},v5={class:"crane-flex-center crane-margin-left-4"},C5=["src"],E5={class:"crane-week-color crane-margin-left-4"},y5={key:2,class:"crane-week-color crane-margin-left-12"},b5=Object.freeze(Object.defineProperty({__proto__:null,default:If(ne({__name:"checkbox-item",props:{item:{type:Object,default:()=>{}},checkedIds:{type:Array,default:[]},onChangeTime:{type:Function,default:()=>{}}},setup(e){const t={L1:{color:"#1AA83B",text:Te("levels.L1"),background:"#E3F9E9"},L2:{color:"#F37D1C",text:Te("levels.L2"),background:"#FFE4BA"},L3:{color:"#F2494B",text:Te("levels.L3"),background:"#FDCDC5"}};let n=e;const o=HL("availiables"),r=Te("status"),i=ae(""),a=u=>{const c={L1:"SIXTY_DAYS",L2:"THIRTY_DAYS",L3:"SEVEN_DAYS"},{relatedDepartmentIds:A=[],curDepartmentId:d=0,securityLevel:f}=u;return A.includes(d)?u.validTime="NINETY_DAYS":u.validTime=c[f],u.validTime},l=u=>{n.item.validTime=u,n.onChangeTime()},s=u=>{u.target.checked&&(i.value=a(n.item))};return(u,c)=>{var A;return Fe(),yt("div",u5,[I(le(gi),{value:e.item.roleId,disabled:["OWNER","PENDING","NO"].includes(le(n).item.businessApplyType),onChange:s},{default:Ge(()=>[et("div",A5,[e.item.securityLevel?(Fe(),Ht(le(Or),{key:0,bordered:!1,style:wi({color:t[e.item.securityLevel].color,background:t[e.item.securityLevel].background}),class:"crane-tag-position"},{default:Ge(()=>[Gt(Xe(t[e.item.securityLevel].text),1)]),_:1},8,["style"])):Dn("",!0),et("span",null,Xe(le(Te)(`operationType.${e.item.operationType}`))+"| ",1),I(le(Ai),null,{content:Ge(()=>[et("div",d5,Xe(e.item.name),1)]),default:Ge(()=>[et("span",f5,Xe(e.item.name),1)]),_:1}),e.item.businessApplyType&&e.item.businessApplyType!=="TEMP_OWNER"?(Fe(),Ht(le(Or),{key:1,bordered:!1,class:Si(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING","TEMP_OWNER"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:Ge(()=>[Gt(Xe(le(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):Dn("",!0),I(le(Ai),null,{content:Ge(()=>{var d,f,g,p;return[((f=(d=e.item)==null?void 0:d.ownStatusVO)==null?void 0:f.dayDiff)>0?(Fe(),yt("span",g5,Xe(le(Te)("lastDays",{count:(p=(g=e.item)==null?void 0:g.ownStatusVO)==null?void 0:p.dayDiff})),1)):(Fe(),yt("span",p5,Xe(le(Te)("taday")),1))]}),default:Ge(()=>[e.item.businessApplyType==="TEMP_OWNER"?(Fe(),Ht(le(Or),{key:0,bordered:!1,class:Si(["crane-tag-position crane-margin-left-4 crane-margin-right-0",["PENDING"].includes(e.item.businessApplyType)?"":"crane-disabled-color"])},{default:Ge(()=>[Gt(Xe(le(r)[e.item.businessApplyType]),1)]),_:1},8,["class"])):Dn("",!0)]),_:1})])]),_:1},8,["value","disabled"]),e.item.desc?(Fe(),Ht(le(Ai),{key:0},{content:Ge(()=>[et("div",h5,Xe(e.item.desc),1)]),default:Ge(()=>[I(le(Ls),{class:"crane-week-color"})]),_:1})):Dn("",!0),(A=e.item.relatedCompleteNames)!=null&&A.length?(Fe(),Ht(le(Ai),{key:1},{content:Ge(()=>[et("div",m5,Xe(le(Te)("adaptDepartment"))+":"+Xe(e.item.relatedCompleteNames.map(d=>d).join("、")),1)]),default:Ge(()=>[et("span",v5,[et("img",{src:le(c5),height:"14",width:"14"},null,8,C5),et("span",E5,Xe(e.item.relatedCompleteNames.length),1)])]),_:1})):Dn("",!0),e.checkedIds.includes(e.item.roleId)?(Fe(),yt("span",y5,[Gt(Xe(le(Te)("availableTime"))+": ",1),I(le(qn),{value:i.value,"onUpdate:value":c[0]||(c[0]=d=>i.value=d),style:{width:"100px"},options:le(o),onChange:l,size:"small"},null,8,["value","options"])])):Dn("",!0)])}}}),[["__scopeId","data-v-fd07f471"]])},Symbol.toStringTag,{value:"Module"}));return lS});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as j, u as J, s as Y, w as V, g as Ho, b as je, o as Fe, t as Qu, e as v, h as Ft, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-
|
|
1
|
+
import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as j, u as J, s as Y, w as V, g as Ho, b as je, o as Fe, t as Qu, e as v, h as Ft, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-Cw_sw4Q2.js";
|
|
2
2
|
function In(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14624,7 +14624,7 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
|
|
|
14624
14624
|
CUSTOM: "custom"
|
|
14625
14625
|
};
|
|
14626
14626
|
Xe.config({ prefixCls: "yqg-permission-message" });
|
|
14627
|
-
const r = xu(() => import("./apply-modal-
|
|
14627
|
+
const r = xu(() => import("./apply-modal-C7muXQrp.js").then((m) => m.b)), A = t, i = e, a = z(!1), s = z();
|
|
14628
14628
|
let l = z([]), c = z({
|
|
14629
14629
|
imageUrl: ro,
|
|
14630
14630
|
status: ""
|
package/package.json
CHANGED
|
@@ -52,10 +52,12 @@
|
|
|
52
52
|
<QuestionCircleOutlined class=" crane-week-color"/>
|
|
53
53
|
</Popover>
|
|
54
54
|
|
|
55
|
-
<Popover v-if="item.relatedCompleteNames">
|
|
55
|
+
<Popover v-if="item.relatedCompleteNames?.length">
|
|
56
56
|
<template #content>
|
|
57
57
|
<div style="max-width: 400px;">
|
|
58
|
-
{{t('adaptDepartment')}}:{{ item.relatedCompleteNames.
|
|
58
|
+
{{t('adaptDepartment')}}:{{ item.relatedCompleteNames.map((item: any) => {
|
|
59
|
+
return item;
|
|
60
|
+
}).join('、') }}
|
|
59
61
|
</div>
|
|
60
62
|
</template>
|
|
61
63
|
<span class="crane-flex-center crane-margin-left-4">
|