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

10 lines
495 KiB
JavaScript
Raw Normal View History

2024-11-08 06:17:40 +00:00
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"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,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function n(e,t){return"string"==typeof e?t:e}const i=t=>(n,i=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,i)},a=i("onShow"),s=i("onLaunch"),r=i("onLoad"),o=i("onReachBottom"),l=i("onPullDownRefresh");let c=!1;function u(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 n=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":n},new Promise((function(t,n){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let n=e.data;if(t(n),c)return;500==n.code&&uni.showToast({title:n.message,icon:"none",duration:1500}),510==n.code&&(c=!0,uni.showToast({title:n.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(),n(e)}))}))}function d(e){return u({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return u({url:"/act/task/list",method:"get",data:e})}function p(e){return u({url:"/act/task/taskHistoryList",method:"get",data:e})}function f(e){return u({url:"/act/task/myApplyProcessList",method:"get",data:e})}function m(e){return u({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return u({url:"/cxctz/cxcTz/list",method:"get",data:e})}function v(e){return u({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function y(e){return u({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return u({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return u({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function _(e){return u({url:"/act/task/processHistoryList",method:"get",data:e})}function S(e){return u({url:"/act/task/processComplete",method:"post",data:e})}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,D,T={exports:{}};
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=T,D=T.exports,function(e){var t=D,n=x&&x.exports==t&&x,i="object"==typeof b&&b;i.global!==i&&i.window!==i||(e=i);var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\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,n,i,a,o=e.length%3,l="",c=-1,u=e.length-o;++c<u;)t=e.charCodeAt(c)<<16,n=e.charCodeAt(++c)<<8,i=e.charCodeAt(++c),l+=r.charAt((a=t+n+i)>>18&63)+r.charAt(a>>12&63)+r.charAt(a>>6&63)+r.charAt(63&a);return 2==o?(t=e.charCodeAt(c)<<8,n=e.charCodeAt(++c),l+=r.charAt((a=t+n)>>10)+r.charAt(a>>4&63)+r.charAt(a<<2&63)+"="):1==o&&(a=e.charCodeAt(c),l+=r.charAt(a>>2)+r.charAt(a<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(o,"")).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 n,i,a=0,l="",c=-1;++c<t;)i=r.indexOf(e.charAt(c)),n=a%4?64*n+i:i,a++%4&&(l+=String.fromCharCode(255&n>>(-2*a&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(n)n.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(b);const N=E(T.exports);
/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let C;const V=e=>C=e,I=Symbol();function B(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var A,M;(M=A||(A={})).direct="direct",M.patchObject="patch object",M.patchFunction="patch function";const P=()=>{};function R(t,n,i,a=P){t.push(n);const s=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!i&&e.getCurrentScope()&&e.onScopeDispose(s),s}function O(e,...t){e.slice().forEach((e=>{e(...t)}))}const L=e=>e();function F(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i],s=t[i];B(s)&&B(a)&&t.hasOwnProperty(i)&&!e.isRef(a)&&!e.isReactive(a)?t[i]=F(s,a):t[i]=a}return t}const j=Symbol();const{assign:U}=Object;function $(t,n,i={},a,s,r){let o;const l=U({actions:{}},i),c={deep:!0};let u,d,h,p=[],f=[];const m=a.state.value[t];let g;function v(n){let i;u=d=!1,"function"==typeof n?(n(a.state.value[t]),i={type:A.patchFunction,storeId:t,events:h}):(F(a.state.value[t],n),i={type:A.patchObject,payload:n,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(u=!0)})),d=!0,O(p,i,a.state.value[t])}r||m||(a.state.value[t]={}),e.ref({});const y=r?function(){const{state:e}=i,t=e?e():{};this.$patch((e=>{U(e,t)}))}:P;function w(e,n){return function(){V(a);const i=Array.from(arguments),s=[],r=[];function o(e){s.push(e)}function l(e){r.push(e)}let c;O(f,{args:i,name:e,store:_,after:o,onError:l});try{c=n.apply(this&&this.$id===t?this:_,i)}catch(u){throw O(r,u),u}return c instanceof Promise?c.then((e=>(O(s,e),e))).catch((e=>(O(r,e),Promise.reject(e)))):(O(s,c),c)}}const k={_p:a,$id:t,$onAction:R.bind(null,f),$patch:v,$reset:y,$subscribe(n,i={}){const s=R(p,n,i.detached,(()=>r())),r=o.run((()=>e.watch((()=>a.state.value[t]),(e=>{("sync"===i.flush?d:u)&&n({storeId:t,type:A.direct,events:h},e)}),U({},c,i))));return s},$dispose:function(){o.stop(),p=[],f=[],a._s.delete(t)}},_=e.reactive(k);a._s.set(t,_);const S=(a._a&&a._a.runWithContext||L)((()=>a._e.run((()=>(o=e.effectScope()).run(n)))));for(const x in S){const n=S[x];if(e.isRef(n)&&(E=n,!e.isRef(E)||!E.effect)||e.isReactive(n))r||(!m||B(b=n)&&b.hasOwnProperty(j)||(e.isRef(n)?n.value=m[x]:F(n,m[x])),a.state.value[t][x]=n);else if("function"==typeof n){const e=w(x,n);S[x]=e,l.actions[x]=n}}var b,E;return U(_,S),U(e.toRaw(_),S),Object.defineProperty(_,"$state",{get:()=>a.state.value[t],set:e=>{v((t=>{U(t,e)}))}}),a._p.forEach((e=>{U(_,o.run((()=>e({store:_,app:a._a,pinia:a,options:l}))))})),m&&r&&i.hydrate&&i.hydrate(_.$state,m),u=!0,d=!0,_}function z(t,n,i){let a,s;const r="function"==typeof n;function o(t,i){const o=e.hasInjectionContext();(t=t||(o?e.inject(I,null):null))&&V(t),(t=C)._s.has(a)||(r?$(a,n,s,t):function(t,n,i,a){const{state:s,actions:r,getters:o}=n,l=i.state.value[t];let c;c=$(t,(function(){l||(i.state.value[t]=s?s():{});const n=e.toRefs(i.state.value[t]);return U(n,r,Object.keys(o||{}).reduce(((n,a)=>(n[a]=e.markRaw(e.computed((()=>{V(i);const e=i._s.get(t);return o[a].call(e,e)}))),n)),{}))}),n,i,0,!0)}(a,s,t));return t._s.get(a)}return"string"==typeof t?(a=t,s=r?i:n):(s=t,a=t.id),o.$id=a,o}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 n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},K=q({__name:"login",setup(n){const i=H(),{proxy:a}
/*! For license information please see gtpush-min.js.LICENSE.txt */!function(e,t){var n;self,n=()=>(()=>{var e={4736:(e,t,n)=>{var i;e=n.nmd(e);var a=function(e){var t=1e7,n=9007199254740992,i=h(n),s="0123456789abcdefghijklmnopqrstuvwxyz",r="function"==typeof BigInt;function o(e,t,n,i){return void 0===e?o[0]:void 0===t||10==+t&&!n?Y(e):H(e,t,n,i)}function l(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function d(e){return-n<e&&e<n}function h(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function p(e){f(e);var n=e.length;if(n<4&&V(e,i)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function m(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function g(e){return e>0?Math.floor(e):Math.ceil(e)}function v(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(a=0;a<r;a++)l=(i=e[a]+n[a]+l)>=c?1:0,o[a]=i-l*c;for(;a<s;)l=(i=e[a]+l)===c?1:0,o[a++]=i-l*c;return l>0&&o.push(l),o}function y(e,t){return e.length>=t.length?v(e,t):v(t,e)}function w(e,n){var i,a,s=e.length,r=new Array(s),o=t;for(a=0;a<s;a++)i=e[a]-o+n,n=Math.floor(i/o),r[a]=i-n*o,n+=1;for(;n>0;)r[a++]=n%o,n=Math.floor(n/o);return r}function k(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(i=0;i<r;i++)(a=e[i]-l-n[i])<0?(a+=c,l=1):l=0,o[i]=a;for(i=r;i<s;i++){if(!((a=e[i]-l)<0)){o[i++]=a;break}a+=c,o[i]=a}for(;i<s;i++)o[i]=e[i];return f(o),o}function _(e,n,i){var a,s,r=e.length,o=new Array(r),u=-n,d=t;for(a=0;a<r;a++)s=e[a]+u,u=Math.floor(s/d),s%=d,o[a]=s<0?s+d:s;return"number"==typeof(o=p(o))?(i&&(o=-o),new c(o)):new l(o,i)}function S(e,n){var i,a,s,r,o=e.length,l=n.length,c=m(o+l),u=t;for(s=0;s<o;++s){r=e[s];for(var d=0;d<l;++d)i=r*n[d]+c[s+d],a=Math.floor(i/u),c[s+d]=i-a*u,c[s+d+1]+=a}return f(c),c}function b(e,n){var i,a,s=e.length,r=new Array(s),o=t,l=0;for(a=0;a<s;a++)i=e[a]*n+l,l=Math.floor(i/o),r[a]=i-l*o;for(;l>0;)r[a++]=l%o,l=Math.floor(l/o);return r}function E(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function x(e,t){var n=Math.max(e.length,t.length);if(n<=30)return S(e,t);n=Math.ceil(n/2);var i=e.slice(n),a=e.slice(0,n),s=t.slice(n),r=t.slice(0,n),o=x(a,r),l=x(i,s),c=x(y(a,i),y(r,s)),u=y(y(o,E(k(k(c,o),l),n)),E(l,2*n));return f(u),u}function D(e,n,i){return new l(e<t?b(n,e):S(n,h(e)),i)}function T(e){var n,i,a,s,r=e.length,o=m(r+r),l=t;for(a=0;a<r;a++){i=0-(s=e[a])*s;for(var c=a;c<r;c++)n=s*e[c]*2+o[a+c]+i,i=Math.floor(n/l),o[a+c]=n-i*l;o[a+r]=i}return f(o),o}function N(e,t){var n,i,a,s,r=e.length,o=m(r);for(a=0,n=r-1;n>=0;--n)a=(s=1e7*a+e[n])-(i=g(s/t))*t,o[n]=0|i;return[o,0|a]}function C(e,n){var i,a=Y(n);if(r)return[new u(e.value/a.value),new u(e.value%a.value)];var s,d=e.value,v=a.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return a.isSmall?[new c(g(d/v)),new c(d%v)]:[o[0],e];if(a.isSmall){if(1===v)return[e,o[0]];if(-1==v)return[e.negate(),o[0]];var y=Math.abs(v);if(y<t){s=p((i=N(d,y))[0]);var w=i[1];return e.sign&&(w=-w),"number"==typeof s?(e.sign!==a.sign&&(s=-s),[new c(s),new c(w)]):[new l(s,e.sign!==a.sign),new c(w)]}v=h(y)}var _=V(d,v);if(-1===_)return[o[0],e];if(0===_)return[o[e.sign===a.sign?1:-1],o[0]];i=d.length+v.length<=200?function(e,n){var i,a,s,r,o,l,c,u=e.length,d=n.length,h=t,f=m(n.length),g=n[d-1],v=Math.ceil(h/(2*g)),y=b(e,v),w=b(n,v);for(y.length<=u&&y.push(0),w.push(0),g=w[d-1],a=u-d;a>=0;a--){for(i=h-1,y[a+d]!==g&&(i=Math.floor((y[a+d]*h+y[a+d-1])/g)),s=0,r=0,l=w.length,o=0;o<l;o++)s+=i*w[o],c=Math.floor(s/h),r+=y[a+o]-(s-c*h),s=c,r<0?(y[a+o]=r+h,r=-1):(y[a+o]=r,r=0);for(;0!==r;){for(i-=1,s=0,o=0;o<l;o++)(s+=y[a+o]-h+w[o])<0?(y[a+o]=s+h,s=0):(y[a+o]=s,s=1);r+=s}f[a]=i}return y=N(y,v)[0],[p(f),p(y)]}(d,v):function(e,n){for(var i,a,s,r,o,l=e.length,c=n.length,u=[],d=[],h=t;l;)if(d.unshift(e[--l]),f(d),V(d,n)<0)u.push(0);else{s=d[(a=d.length)-1]*h+d[a-2],r=n[c-1]*h+n[c-2],a>c&&(s=(s+1)*h),i=Math.ceil(s/r);do