cxc-szcx-uniapp/unpackage/cache/wgt/__UNI__F0AFD30/app-service.js

9 lines
320 KiB
JavaScript
Raw Normal View History

2024-10-31 08:38:07 +00:00
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=t=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)},i=n("onShow"),s=n("onLaunch"),o=n("onLoad"),r=n("onReachBottom"),l=n("onPullDownRefresh");let c=!1;function d(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let a=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":a},new Promise((function(t,a){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let a=e.data;if(t(a),c)return;500==a.code&&uni.showToast({title:a.message,icon:"none",duration:1500}),510==a.code&&(c=!0,uni.showToast({title:a.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),a(e)}))}))}function u(e){return d({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return d({url:"/act/task/list",method:"get",data:e})}function m(e){return d({url:"/act/task/taskHistoryList",method:"get",data:e})}function p(e){return d({url:"/act/task/myApplyProcessList",method:"get",data:e})}function f(e){return d({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return d({url:"/cxctz/cxcTz/list",method:"get",data:e})}function y(e){return d({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function v(e){return d({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return d({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return d({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function b(e){return d({url:"/act/task/processHistoryList",method:"get",data:e})}function _(e){return d({url:"/act/task/processComplete",method:"post",data:e})}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,N,V={exports:{}};
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=V,N=V.exports,function(e){var t=N,a=x&&x.exports==t&&x,n="object"==typeof E&&E;n.global!==n&&n.window!==n||(e=n);var i=function(e){this.message=e};(i.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new i(e)},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,a,n,i,r=e.length%3,l="",c=-1,d=e.length-r;++c<d;)t=e.charCodeAt(c)<<16,a=e.charCodeAt(++c)<<8,n=e.charCodeAt(++c),l+=o.charAt((i=t+a+n)>>18&63)+o.charAt(i>>12&63)+o.charAt(i>>6&63)+o.charAt(63&i);return 2==r?(t=e.charCodeAt(c)<<8,a=e.charCodeAt(++c),l+=o.charAt((i=t+a)>>10)+o.charAt(i>>4&63)+o.charAt(i<<2&63)+"="):1==r&&(i=e.charCodeAt(c),l+=o.charAt(i>>2)+o.charAt(i<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(r,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var a,n,i=0,l="",c=-1;++c<t;)n=o.indexOf(e.charAt(c)),a=i%4?64*a+n:n,i++%4&&(l+=String.fromCharCode(255&a>>(-2*i&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(a)a.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(E);const C=S(V.exports);
2024-09-24 09:21:34 +00:00
/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
2024-11-12 06:42:02 +00:00
let T;const D=e=>T=e,B=Symbol();function I(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var P,A;(A=P||(P={})).direct="direct",A.patchObject="patch object",A.patchFunction="patch function";const M=()=>{};function R(t,a,n,i=M){t.push(a);const s=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),i())};return!n&&e.getCurrentScope()&&e.onScopeDispose(s),s}function L(e,...t){e.slice().forEach((e=>{e(...t)}))}const O=e=>e();function F(t,a){t instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>t.set(a,e))),t instanceof Set&&a instanceof Set&&a.forEach(t.add,t);for(const n in a){if(!a.hasOwnProperty(n))continue;const i=a[n],s=t[n];I(s)&&I(i)&&t.hasOwnProperty(n)&&!e.isRef(i)&&!e.isReactive(i)?t[n]=F(s,i):t[n]=i}return t}const $=Symbol();const{assign:j}=Object;function U(t,a,n={},i,s,o){let r;const l=j({actions:{}},n),c={deep:!0};let d,u,h,m=[],p=[];const f=i.state.value[t];let g;function y(a){let n;d=u=!1,"function"==typeof a?(a(i.state.value[t]),n={type:P.patchFunction,storeId:t,events:h}):(F(i.state.value[t],a),n={type:P.patchObject,payload:a,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(d=!0)})),u=!0,L(m,n,i.state.value[t])}o||f||(i.state.value[t]={}),e.ref({});const v=o?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{j(e,t)}))}:M;function w(e,a){return function(){D(i);const n=Array.from(arguments),s=[],o=[];function r(e){s.push(e)}function l(e){o.push(e)}let c;L(p,{args:n,name:e,store:b,after:r,onError:l});try{c=a.apply(this&&this.$id===t?this:b,n)}catch(d){throw L(o,d),d}return c instanceof Promise?c.then((e=>(L(s,e),e))).catch((e=>(L(o,e),Promise.reject(e)))):(L(s,c),c)}}const k={_p:i,$id:t,$onAction:R.bind(null,p),$patch:y,$reset:v,$subscribe(a,n={}){const s=R(m,a,n.detached,(()=>o())),o=r.run((()=>e.watch((()=>i.state.value[t]),(e=>{("sync"===n.flush?u:d)&&a({storeId:t,type:P.direct,events:h},e)}),j({},c,n))));return s},$dispose:function(){r.stop(),m=[],p=[],i._s.delete(t)}},b=e.reactive(k);i._s.set(t,b);const _=(i._a&&i._a.runWithContext||O)((()=>i._e.run((()=>(r=e.effectScope()).run(a)))));for(const x in _){const a=_[x];if(e.isRef(a)&&(S=a,!e.isRef(S)||!S.effect)||e.isReactive(a))o||(!f||I(E=a)&&E.hasOwnProperty($)||(e.isRef(a)?a.value=f[x]:F(a,f[x])),i.state.value[t][x]=a);else if("function"==typeof a){const e=w(x,a);_[x]=e,l.actions[x]=a}}var E,S;return j(b,_),j(e.toRaw(b),_),Object.defineProperty(b,"$state",{get:()=>i.state.value[t],set:e=>{y((t=>{j(t,e)}))}}),i._p.forEach((e=>{j(b,r.run((()=>e({store:b,app:i._a,pinia:i,options:l}))))})),f&&o&&n.hydrate&&n.hydrate(b.$state,f),d=!0,u=!0,b}function z(t,a,n){let i,s;const o="function"==typeof a;function r(t,n){const r=e.hasInjectionContext();(t=t||(r?e.inject(B,null):null))&&D(t),(t=T)._s.has(i)||(o?U(i,a,s,t):function(t,a,n,i){const{state:s,actions:o,getters:r}=a,l=n.state.value[t];let c;c=U(t,(function(){l||(n.state.value[t]=s?s():{});const a=e.toRefs(n.state.value[t]);return j(a,o,Object.keys(r||{}).reduce(((a,i)=>(a[i]=e.markRaw(e.computed((()=>{D(n);const e=n._s.get(t);return r[i].call(e,e)}))),a)),{}))}),a,n,0,!0)}(i,s,t));return t._s.get(i)}return"string"==typeof t?(i=t,s=o?n:a):(s=t,i=t.id),r.$id=i,r}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a},J=q({__name:"login",setup(a){const n=H(),{proxy:i}