提交 b75657a7 编写于 作者: 刘英杰's avatar 刘英杰

v20250212 保存

上级 8043598e
流水线 #32978 已通过 ,包含阶段
in 1 minute 和 22 second
import{a as e,C as t,b as s,G as n,u as a,S as o,w as r}from"./index-Dj71FKn1.js";import{u as c}from"./vue-router-CFIiUm82.js";import{F as i,o as p,z as u,H as m,j as k,ab as l,C as _}from"./vant-1BGMxUQM.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},v={__name:"SSO",setup(v){const f=c(),g=()=>{n().then((t=>{var n;s.set("oneWeekARange-user-info",JSON.stringify(t.response)),e.get("/api/Common/GetCurrentUserRoleList",n).then((e=>{a().setUserInfo({...t.response,roleList:e.response,currentRole:e.response[0]}),f.replace({name:"welcome"})}))}))},R=async()=>{({asc:async()=>{let e={token:f.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await f.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),g())})(e)},first:async()=>{let e={sign:f.currentRoute.value.query.sign,code:f.currentRoute.value.query.code,timestamp:f.currentRoute.value.query.timestamp};await(async e=>{const t=await r(e);void 0===t?await f.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),g())})(e)},test:async()=>{const e=await t();void 0===e?await f.replace({name:"403"}):""!==e.response.access_token.token_content&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),g())}})[f.currentRoute.value.query.type]()};return i((()=>{R()})),(e,t)=>{const s=l;return p(),u("div",y,[m(s,{size:"38px",color:"#1989fa",vertical:""},{default:k((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{v as default};
import{b as u,u as l,d as k,o as m,c as _,a as f,w as g,L as d,e as y,C as R,f as s,G as w,g as x,S as v,h as C}from"./index-TkYWi-av.js";function A(a){return u.get("/api/Common/GetCurrentUserRoleList",a)}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},T={__name:"SSO",setup(a){const t=l(),o=()=>{w().then(n=>{s.set("oneWeekARange-user-info",JSON.stringify(n.response)),A().then(e=>{x().setUserInfo({...n.response,roleList:e.response,currentRole:e.response[0]}),t.replace({name:"welcome"})})})},c=async n=>{const e=await v(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},r=async n=>{const e=await C(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await R();e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())}})[t.currentRoute.value.query.type]()};return k(()=>{i()}),(n,e)=>{const p=d;return m(),_("div",L,[f(p,{size:"38px",color:"#1989fa",vertical:""},{default:g(()=>e[0]||(e[0]=[y(" 登录中")])),_:1})])}}};export{T as default};
import{w as e,b as t,G as s,C as n,S as a}from"./index-Dj71FKn1.js";import{u as o}from"./vue-router-CFIiUm82.js";import{F as i,o as r,z as c,H as u,j as p,ab as m,C as l}from"./vant-1BGMxUQM.js";import"./axios-X0xcXtXw.js";const k={style:{display:"flex","justify-content":"center","margin-top":"50%"}},y={__name:"SSOInfo",setup(y){const f=o(),_=async()=>{({wx:async()=>{let n={token:f.currentRoute.value.query.token};const a=await e(n);if(void 0===a)await f.replace({name:"403"});else if(""!==a.response.access_token.token_content){t.set("site-management-token",a.response.access_token.token_content),t.set("time",a.response.access_token.expires);const e=await s();t.set("site-user-info",JSON.stringify(e.response));let n=f.currentRoute.value.query.id;await f.push({path:"/indexDetail",query:{id:n,pushMessage:1}})}},asc:async()=>{let e={token:f.currentRoute.value.query.token};await(async e=>{const n=await a(e);if(void 0===n)await f.replace({name:"403"});else if(""!==n.response.access_token.token_content){t.set("oneWeekARange-management-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);const e=await s();t.set("oneWeekARange-user-info",JSON.stringify(e.response)),await f.replace({name:"workArrangementFilling"})}})(e)},first:async()=>{let e={sign:f.currentRoute.value.query.sign,code:f.currentRoute.value.query.code,timestamp:f.currentRoute.value.query.timestamp};await(async e=>{const n=await(void 0)(e);if(void 0===n)await f.replace({name:"403"});else if(""!==n.response.access_token.token_content){t.set("site-management-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);const e=await s();t.set("site-user-info",JSON.stringify(e.response)),await f.replace({name:"myActivity"})}})(e)},test:async()=>{const e=await n();if(void 0===e)await f.replace({name:"403"});else if(""!==e.response.access_token.token_content){t.set("site-management-token",e.response.access_token.token_content),t.set("time",e.response.access_token.expires);const n=await s();t.set("site-user-info",JSON.stringify(n.response)),await f.replace({name:"myActivity"})}}})[f.currentRoute.value.query.type]()};return i((()=>{_()})),(e,t)=>{const s=m;return r(),c("div",k,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:p((()=>t[0]||(t[0]=[l(" 登录中")]))),_:1})])}}};export{y as default};
import{u as l,d as k,o as m,c as _,a as y,w as f,L as d,e as w,h as g,f as n,G as o,C as v,S as x}from"./index-TkYWi-av.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=l(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await g(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return k(()=>{r()}),(a,e)=>{const s=d;return m(),_("div",R,[y(s,{size:"38px",color:"#1989fa",vertical:""},{default:f(()=>e[0]||(e[0]=[w(" 登录中")])),_:1})])}}};export{O as default};
function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,r=(e=>n=>{const r=t.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),o=e=>(e=e.toLowerCase(),t=>r(t)===e),s=e=>t=>typeof t===e,{isArray:i}=Array,a=s("undefined");const c=o("ArrayBuffer");const u=s("string"),l=s("function"),f=s("number"),d=e=>null!==e&&"object"==typeof e,p=e=>{if("object"!==r(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=o("Date"),m=o("File"),y=o("Blob"),g=o("FileList"),b=o("URLSearchParams");function E(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),i(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function w(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,S=e=>!a(e)&&e!==O;const R=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),A=o("HTMLFormElement"),T=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),j=o("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};E(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},v="abcdefghijklmnopqrstuvwxyz",C="0123456789",x={DIGIT:C,ALPHA:v,ALPHA_DIGIT:v+v.toUpperCase()+C};const P=o("AsyncFunction"),_={isArray:i,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&l(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||l(e.append)&&("formdata"===(t=r(e))||"object"===t&&l(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t},isString:u,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:d,isPlainObject:p,isUndefined:a,isDate:h,isFile:m,isBlob:y,isRegExp:j,isFunction:l,isStream:e=>d(e)&&l(e.pipe),isURLSearchParams:b,isTypedArray:R,isFileList:g,forEach:E,merge:function e(){const{caseless:t}=S(this)&&this||{},n={},r=(r,o)=>{const s=t&&w(n,o)||o;p(n[s])&&p(r)?n[s]=e(n[s],r):p(r)?n[s]=e({},r):i(r)?n[s]=r.slice():n[s]=r};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&E(arguments[o],r);return n},extend:(t,n,r,{allOwnKeys:o}={})=>(E(n,((n,o)=>{r&&l(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:o,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(i(e))return e;let t=e.length;if(!f(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:A,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(l(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];l(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return i(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:w,global:O,isContextDefined:S,ALPHABET:x,generateString:(e=16,t=x.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&l(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(d(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=i(e)?[]:{};return E(e,((e,t)=>{const s=n(e,r+1);!a(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:P,isThenable:e=>e&&(d(e)||l(e))&&l(e.then)&&l(e.catch)};function F(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}_.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const U=F.prototype,B={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{B[e]={value:e}})),Object.defineProperties(F,B),Object.defineProperty(U,"isAxiosError",{value:!0}),F.from=(e,t,n,r,o,s)=>{const i=Object.create(U);return _.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),F.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function L(e){return _.isPlainObject(e)||_.isArray(e)}function D(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function k(e,t,n){return e?e.concat(t).map((function(e,t){return e=D(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const q=_.toFlatObject(_,{},null,(function(e){return/^is[A-Z]/.test(e)}));function I(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_.isDate(e))return e.toISOString();if(!a&&_.isBlob(e))throw new F("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(e)||_.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(_.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(_.isArray(e)&&function(e){return _.isArray(e)&&!e.some(L)}(e)||(_.isFileList(e)||_.endsWith(n,"[]"))&&(a=_.toArray(e)))return n=D(n),a.forEach((function(e,r){!_.isUndefined(e)&&null!==e&&t.append(!0===i?k([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!L(e)||(t.append(k(o,n,s),c(e)),!1)}const l=[],f=Object.assign(q,{defaultVisitor:u,convertValue:c,isVisitable:L});if(!_.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!_.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),_.forEach(n,(function(n,s){!0===(!(_.isUndefined(n)||null===n)&&o.call(t,n,_.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function M(e,t){this._pairs=[],e&&I(e,this,t)}const H=M.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W(e,t,n){if(!t)return e;const r=n&&n.encode||J,o=n&&n.serialize;let s;if(s=o?o(t,n):_.isURLSearchParams(t)?t.toString():new M(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}H.append=function(e,t){this._pairs.push([e,t])},H.toString=function(e){const t=e?function(t){return e.call(this,t,z)}:z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class K{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const V={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:M,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},$="undefined"!=typeof window&&"undefined"!=typeof document,X=(Q="undefined"!=typeof navigator&&navigator.product,$&&["ReactNative","NativeScript","NS"].indexOf(Q)<0);var Q;const Z="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Y={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$,hasStandardBrowserEnv:X,hasStandardBrowserWebWorkerEnv:Z},Symbol.toStringTag,{value:"Module"})),...G};function ee(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&_.isArray(r)?r.length:s,a)return _.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&_.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&_.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,((e,r)=>{t(function(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const te={transitional:V,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=_.isObject(e);o&&_.isHTMLForm(e)&&(e=new FormData(e));if(_.isFormData(e))return r?JSON.stringify(ee(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return I(e,new Y.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Y.isNode&&_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=_.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return I(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||te.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&_.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw F.from(o,F.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y.classes.FormData,Blob:Y.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],(e=>{te.headers[e]={}}));const ne=te,re=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oe=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function ie(e){return!1===e||null==e?e:_.isArray(e)?e.map(ie):String(e)}function ae(e,t,n,r,o){return _.isFunction(r)?r.call(this,t,n):(o&&(t=n),_.isString(t)?_.isString(r)?-1!==t.indexOf(r):_.isRegExp(r)?r.test(t):void 0:void 0)}class ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=se(t);if(!o)throw new Error("header name must be a non-empty string");const s=_.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=ie(e))}const s=(e,t)=>_.forEach(e,((e,n)=>o(e,n,t)));return _.isPlainObject(e)||e instanceof this.constructor?s(e,t):_.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=se(e)){const n=_.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(_.isFunction(t))return t.call(this,e,n);if(_.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=se(e)){const n=_.findKey(this,e);return!(!n||void 0===this[n]||t&&!ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=se(e)){const o=_.findKey(n,e);!o||t&&!ae(0,n[o],o,t)||(delete n[o],r=!0)}}return _.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return _.forEach(this,((r,o)=>{const s=_.findKey(n,o);if(s)return t[s]=ie(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=ie(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&_.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[oe]=this[oe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=se(e);t[r]||(!function(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return _.isArray(e)?e.forEach(r):r(e),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(ce.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),_.freezeMethods(ce);const ue=ce;function le(e,t){const n=this||ne,r=t||n,o=ue.from(r.headers);let s=r.data;return _.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function fe(e){return!(!e||!e.__CANCEL__)}function de(e,t,n){F.call(this,null==e?"canceled":e,F.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(de,F,{__CANCEL__:!0});const pe=Y.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),_.isString(r)&&i.push("path="+r),_.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.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:()=>null,remove(){}};function he(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const me=Y.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=_.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function ye(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const ge={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ue.from(e.headers).normalize();let s,i,{responseType:a,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(_.isFormData(r))if(Y.hasStandardBrowserEnv||Y.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(i=o.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=he(e.baseURL,e.url);function d(){if(!l)return;const r=ue.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),W(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new F("Request aborted",F.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new F("Network Error",F.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||V;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new F(t,r.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,l)),l=null},Y.hasStandardBrowserEnv&&(c&&_.isFunction(c)&&(c=c(e)),c||!1!==c&&me(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&pe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&_.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),_.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",ye(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",ye(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new de(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===Y.protocols.indexOf(p)?n(new F("Unsupported protocol "+p+":",F.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};_.forEach(ge,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const be=e=>`- ${e}`,Ee=e=>_.isFunction(e)||null===e||!1===e,we=e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!Ee(n)&&(r=ge[(t=String(n)).toLowerCase()],void 0===r))throw new F(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new F("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(be).join("\n"):" "+be(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new de(null,e)}function Se(e){Oe(e),e.headers=ue.from(e.headers),e.data=le.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return we(e.adapter||ne.adapter)(e).then((function(t){return Oe(e),t.data=le.call(e,e.transformResponse,t),t.headers=ue.from(t.headers),t}),(function(t){return fe(t)||(Oe(e),t&&t.response&&(t.response.data=le.call(e,e.transformResponse,t.response),t.response.headers=ue.from(t.response.headers))),Promise.reject(t)}))}const Re=e=>e instanceof ue?e.toJSON():e;function Ae(e,t){t=t||{};const n={};function r(e,t,n){return _.isPlainObject(e)&&_.isPlainObject(t)?_.merge.call({caseless:n},e,t):_.isPlainObject(t)?_.merge({},t):_.isArray(t)?t.slice():t}function o(e,t,n){return _.isUndefined(t)?_.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!_.isUndefined(t))return r(void 0,t)}function i(e,t){return _.isUndefined(t)?_.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Re(e),Re(t),!0)};return _.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);_.isUndefined(i)&&s!==a||(n[r]=i)})),n}const Te="1.6.7",je={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ne={};je.transitional=function(e,t,n){return(r,o,s)=>{if(!1===e)throw new F(function(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),F.ERR_DEPRECATED);return t&&!Ne[o]&&(Ne[o]=!0),!e||e(r,o,s)}};const ve={assertOptions:function(e,t,n){if("object"!=typeof e)throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new F("option "+s+" must be "+n,F.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}},validators:je},Ce=ve.validators;class xe{constructor(e){this.defaults=e,this.interceptors={request:new K,response:new K}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ae(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ve.assertOptions(n,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean)},!1),null!=r&&(_.isFunction(r)?t.paramsSerializer={serialize:r}:ve.assertOptions(r,{encode:Ce.function,serialize:Ce.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&_.merge(o.common,o[t.method]);o&&_.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ue.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{u=Se.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return W(he((e=Ae(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}_.forEach(["delete","get","head","options"],(function(e){xe.prototype[e]=function(t,n){return this.request(Ae(n||{},{method:e,url:t,data:(n||{}).data}))}})),_.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ae(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}xe.prototype[e]=t(),xe.prototype[e+"Form"]=t(!0)}));const Pe=xe;class _e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new de(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new _e((function(t){e=t})),cancel:e}}}const Fe=_e;const Ue={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(Ue).forEach((([e,t])=>{Ue[t]=e}));const Be=Ue;const Le=function t(n){const r=new Pe(n),o=e(Pe.prototype.request,r);return _.extend(o,Pe.prototype,r,{allOwnKeys:!0}),_.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Ae(n,e))},o}(ne);Le.Axios=Pe,Le.CanceledError=de,Le.CancelToken=Fe,Le.isCancel=fe,Le.VERSION=Te,Le.toFormData=I,Le.AxiosError=F,Le.Cancel=Le.CanceledError,Le.all=function(e){return Promise.all(e)},Le.spread=function(e){return function(t){return e.apply(null,t)}},Le.isAxiosError=function(e){return _.isObject(e)&&!0===e.isAxiosError},Le.mergeConfig=Ae,Le.AxiosHeaders=ue,Le.formToJSON=e=>ee(_.isHTMLForm(e)?new FormData(e):e),Le.getAdapter=we,Le.HttpStatusCode=Be,Le.default=Le;export{Le as a};
import"./index-Dj71FKn1.js";import{u as t}from"./vue-router-CFIiUm82.js";import{o as e,z as r,H as s,K as a,N as n,a5 as o}from"./vant-1BGMxUQM.js";import"./axios-X0xcXtXw.js";const i=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,m={__name:"index",setup(m){const l=t(),u=()=>l.back();return(t,m)=>{const l=n,p=o;return e(),r(a,null,[s(l,{"left-text":"返回","left-arrow":"",onClickLeft:u}),s(p,{image:i,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{m as default};
import{i as s}from"./index-Dj71FKn1.js";import{r as o,F as a,o as l,z as t,H as i,A as e}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const r={class:"publicContainerNoPadding"},n={__name:"index",setup:n=>(o({fillInWork:{show:!1}}),a((()=>{document.title="系统配置"})),(o,a)=>{const n=s;return l(),t("div",r,[i(n,{path:"/welcome",title:"分管填报记录查看"}),a[0]||(a[0]=e("div",{class:"w-full h-[10px]"},null,-1)),a[1]||(a[1]=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])})};export{n as default};
import{A as a,d as l,o as s,c as n,a as c,D as o,$ as r}from"./index-TkYWi-av.js";const d={class:"publicContainerNoPadding"},_={__name:"index",setup(i){return a({fillInWork:{show:!1}}),l(()=>{document.title="系统配置"}),(p,e)=>{const t=r;return s(),n("div",d,[c(t,{path:"/welcome",title:"分管填报记录查看"}),e[0]||(e[0]=o("div",{class:"w-full h-[10px]"},null,-1)),e[1]||(e[1]=o("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])}}};export{_ as default};
import{a as e,_ as t,r as a,k as l,m as s,l as i,e as o,i as r}from"./index-Dj71FKn1.js";import{a_ as n,o as c,z as d,A as p,f as u,j as f,_ as h,B as m,a5 as v,b as x,r as w,F as g,aS as y,H as b,J as k,D,E as A,K as F,I as j,P as C,a3 as O,a0 as P,a$ as T,C as V,u as H,aY as I,$ as _,a6 as B,b0 as Q}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const E={class:"file-preview"},M={style:{height:"100%"}},N={key:1},q=["src"],G={key:2},S=["src"],z={key:3},L=["src"],U={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},X={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},Y=["src"],J={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},K={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},Z=["src"],R=["src"],W={key:7,style:{height:"100%"}},$=["src"],ee={key:8},te={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const ae=t({name:"filePreview",components:{},props:{fileObj:{type:Object,default:()=>({})}},data:()=>({url:window.location.origin+"/fileReader/?file="+window.location.origin,src:"http://static.shanhuxueyuan.com/test6.docx",renderedLoading:!0,previewType:"",errorShow:!1}),mounted(){this.previewType=this.getPreviewType()},methods:{getPreviewType(){let e="";switch(this.fileObj.file_name.split(".").pop()){case"doc":case"docx":case"DOC":case"DOCX":e="docx";break;case"xls":case"xlsx":case"XLS":case"XLSX":e="excel";break;case"ppt":case"pptx":case"PPT":case"PPTX":e="ppt";break;case"pdf":case"PDF":e="pdf";break;case"jpg":case"jpeg":case"png":case"gif":case"JPG":case"JPEG":case"PNG":case"GIF":e="image";break;case"mp4":case"ogg":case"webm":e="video";break;case"mp3":case"wav":e="audio";break;case"txt":e="txt";break;default:e="custom",this.renderedLoading=!1}return e},rendered(){this.renderedLoading=!1},errorHandler(e){this.errorShow=!0},clickDownload(e,t){const a=document.createElement("a");a.href=e,a.download=t,a.target="_blank",a.dispatchEvent(new MouseEvent("click"))},viewImage(e){n([e])}}},[["render",function(e,t,a,l,s,i){const o=v;return c(),d("div",E,[p("div",M,[s.errorShow?(c(),u(o,{key:0},{description:f((()=>t[6]||(t[6]=[p("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):h("",!0),"docx"==s.previewType?(c(),d("div",N,[p("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,q)])):h("",!0),"excel"==s.previewType?(c(),d("div",G,[p("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,S)])):h("",!0),"pdf"==s.previewType?(c(),d("div",z,[p("iframe",{src:s.url+a.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,L)])):h("",!0),"video"==s.previewType?(c(),d("div",U,[p("div",X,m(a.fileObj.file_name),1),p("video",{src:a.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>i.rendered&&i.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[p("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,Y)])):h("",!0),"audio"==s.previewType?(c(),d("div",J,[p("div",K,m(a.fileObj.file_name),1),p("audio",{src:a.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>i.rendered&&i.rendered(...e))},t[8]||(t[8]=[p("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,Z)])):h("",!0),"image"==s.previewType?(c(),d("div",{key:6,onClick:t[3]||(t[3]=e=>i.viewImage(a.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[p("img",{src:a.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>i.rendered&&i.rendered(...e))},null,40,R)])):h("",!0),"txt"==s.previewType?(c(),d("div",W,[p("iframe",{src:a.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>i.rendered&&i.rendered(...e))},t[9]||(t[9]=[p("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,$)])):h("",!0),"custom"==s.previewType?(c(),d("div",ee,[p("div",te,[p("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>i.clickDownload(a.fileObj.path,a.fileObj.file_name))},m(a.fileObj.file_name),1),t[10]||(t[10]=p("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):h("",!0)])])}],["__scopeId","data-v-f13c766f"]]),le={class:"w-full h-full bg-white overflow-y-auto relative"},se={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},ie={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},oe={class:"container1"},re={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},ne={class:"w-full h-[108px] bg-white z-50 sticky top-0"},ce={class:"w-full h-[54px]"},de={class:""},pe={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},ue={class:"mb-2 text-[#4E4E4E]"},fe=["onClick"],he={class:"ml-2"},me={class:""},ve={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},xe={class:"mb-2 text-[#4E4E4E]"},we={class:""},ge={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},ye={class:"mb-2 text-[#4E4E4E]"},be={class:""},ke={key:1,class:"w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},De={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},Ae={__name:"index",setup(t){const n=x(0),h=x([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"},{text:"操作轨迹",value:"3"}]),E=w({show:!1,fileItem:{}}),M=w({detailsData:{plan_list:[],duty_list:[],meet_list:[]},operatingTrajectory:[],formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),N=()=>{void 0!==M.formData.pushMessage?l("welcome"):a.back()},q=e=>{n.value=e};function G(e){const t=e.selectedOptions[0];M.approval.formData.action=t.value,M.approval.value=t.text,M.approval.showPopup=!1}function S(){s((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:l,...a})}({userid:i().getDayViewItemData().userid,date:o(i().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(M.detailsData=e.response,e)))),!0,"加载中...")}function z(){s((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:l,...a})}({userid:i().getDayViewItemData().userid,date:o(i().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(M.operatingTrajectory=e.response,e)))),!0,"加载中...")}return x(""),g((()=>{S(),z(),M.formData=a.currentRoute.value.query})),(e,t)=>{const a=I,l=C,s=O,i=r,o=_,x=P,w=v,g=B,S=Q,z=T,L=y("font");return c(),d(F,null,[b(l,{show:M.approval.showPopup,"onUpdate:show":t[1]||(t[1]=e=>M.approval.showPopup=e),position:"bottom"},{default:f((()=>[b(a,{columns:M.approval.columns,"show-toolbar":"",onCancel:t[0]||(t[0]=e=>M.approval.showPopup=!1),onConfirm:G},null,8,["columns"])])),_:1},8,["show"]),b(l,{show:E.show,"onUpdate:show":t[3]||(t[3]=e=>E.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:f((()=>[p("div",le,[t[6]||(t[6]=p("div",{class:"w-full h-[50px] z-100 sticky top-0"},[p("div",{class:"flex justify-between items-center w-full h-[50px]"},[p("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),p("div",se,[b(ae,{fileObj:E.fileItem},null,8,["fileObj"])]),p("div",ie,[b(s,{class:"w-full","native-type":"submit",round:"",onClick:t[2]||(t[2]=e=>E.show=!1)},{default:f((()=>t[5]||(t[5]=[V("关闭 ")]))),_:1})])])])),_:1},8,["show"]),p("div",oe,[p("div",re,[p("div",ne,[b(i,{path:"/welcome",title:"日程详情"}),p("div",ce,[b(x,{active:n.value,"onUpdate:active":t[4]||(t[4]=e=>n.value=e),swipeable:"",onChange:q},{default:f((()=>[(c(!0),d(F,null,j(h.value,((e,t)=>(c(),u(o,{key:t,title:e.text},null,8,["title"])))),128))])),_:1},8,["active"])])]),p("div",{class:k([""+("await"===M.formData.flowType?"h-[calc(100%-172px)]":"h-[calc(100%-108px)]"),"w-full overflow-y-auto relative"])},[D(p("div",de,[0==M.detailsData.plan_list.length?(c(),u(w,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(F,{key:1},j(M.detailsData.plan_list,((e,a)=>(c(),d("div",{key:a,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[p("div",pe,[t[7]||(t[7]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,m(e.date)+" "+m(e.begin+" - "+e.end),1)]),p("div",ue,[p("p",null,m(e.content),1)]),(c(!0),d(F,null,j(e.file_list,((e,t)=>(c(),d("div",{key:t,onClick:t=>{return a=e,E.show=!0,void(E.fileItem=a);var a},class:"flex items-center text-[#3FA0F4]"},[b(g,{width:"12px",height:"12px",src:H("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAADoElEQVR4Xp2VSWgUQRSGJ0biLoIobqS7agaXIEpO4kFxx5O44gIeBBMQFBTxogePKqKRme6qHrNM4obkIC4gCooLIgiCgt5UvIgHo05PV/V0YqLle9XT43TroPigYfp11Vd//e9VTSr1H5HmYiF1/B7KxCuTec9NJg+aHcUpyXH/HNRy99F8uZjuVop2jija9V0/xCk/M2yxIDn+r0Hs0n7iBCMII7b3kDDvKDynKZcf0gWlCBMvZ1ve1OS8ulELNG3vVKpfNUbfUCHh/jva/QPA3pnaeXUDfGsneQDCNgF4AnNG3p9J8sOHiSPX4jvAjtDOYdyBjM/+Q5jMbadOMEy7wL8qcGCmycXTzBWFuQLmqFPeTM8PgbeBihMSgQph8LBWaHkndc6WMwgAtYfcHwCFy3TeKjFcGOa8jVNqwsxFCqGyVuhTLRAWGzBy7irME1tsheqXtVIud8dJlSC220bzwbeKh2cxZ3TAlu1fQOhVDQTwFlhcpHsU+tmVOq5GxWkpbfheGBQDAmA6ehgBmy13NeapLTZHQDgAvZmsGhOnQRDL/QVkogNzCCRMPoyANOuuwbxheZuqCpnsMwvvx8ZpEJTJPbDloVChOIe5ECg0kDj+Z8pCIBRjI4z1QqB3MZN987tC05HraX4wwOrBqqd1DovCxJOwyuXPZq64AvMk526r2XJPy/HXTan+/sb5fWpqVS36oNX06mN2FYweHVZZPo6A1QaHKkdAOJoFGNuUuaQmw7wbtKAkFKotVGmVloDKIfCrSC1v7jT700TY0oPKlr9AJ6zDcc22WwP0Cy0IzH6ZTJl/U9vgBGU4ritDKJeHNMAu3dPvttyZ7sZbJ/hKsiGQ5LwNsHDFQ9nb0q+a5nWrSfA7AvomL+3QQA1hgld67LoGcP9Yug/98p7Pyn8cr4FOUArHyD4syrxTA5PgENyIgNQu7awCNYSJA6gU4Pf1Ilzs0EqZ78O3F6BGVqqsgdqeCMjhFCWBGBlebMXKg39usyNa5pxV46Dpr1EAY/Fo1w9c8DJuOfQ7UghAVtqV5OlAw1FlWH15M6VbRDVSXt5C8oNHiCO2ppQateiCmhABoagBzdUBRoE3Daws9eUBE41ssTX2PVtcDAvexb8QgsB6CpNh2u52BFf6NQDfHgHoFvYwXrw670jvrwqTQSyxHLy9A/+UQ1i86MF36M3bhlNempzzb6FUQ4b7rYQHbQaXh03HazfgHb40JIfWi58kocJqXNrBoAAAAABJRU5ErkJggg==")},null,8,["src"]),p("a",he,m(e.file_name),1)],8,fe)))),128))])))),128))],512),[[A,0==n.value]]),D(p("div",me,[0==M.detailsData.duty_list.length?(c(),u(w,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(F,{key:1},j(M.detailsData.duty_list,((e,a)=>(c(),d("div",{key:a,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[p("div",ve,[t[8]||(t[8]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,m(e.begin)+"-"+m(e.end),1)]),p("div",xe,[p("p",null,m(e.content),1)])])))),128))],512),[[A,1==n.value]]),D(p("div",we,[0==M.detailsData.meet_list.length?(c(),u(w,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(F,{key:1},j(M.detailsData.meet_list,((e,a)=>(c(),d("div",{key:a,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[p("div",ge,[t[9]||(t[9]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,m(e.begin)+"-"+m(e.end),1)]),p("div",ye,[p("p",null,m(e.content),1)])])))),128))],512),[[A,2==n.value]]),D(p("div",be,[0==M.operatingTrajectory.length?(c(),u(w,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(),d("div",ke,[b(z,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:f((()=>[(c(!0),d(F,null,j(M.operatingTrajectory,((e,a)=>(c(),u(S,{key:a,class:"ax"},{default:f((()=>[D((c(),d("h2",null,[V(m(e.createtime),1)])),[[L,void 0,"{color:`#323233`,size:18}"]]),p("p",null,[t[10]||(t[10]=V("用户名:")),D((c(),d("span",null,[V(m(e.createname),1)])),[[L,void 0,"{color:`#5295FF`}"]])]),p("p",null,[t[11]||(t[11]=V("操作:")),D((c(),d("span",null,[V(m(e.remark),1)])),[[L,void 0,"{color:`#5295FF`}"]])])])),_:2},1024)))),128))])),_:1})]))],512),[[A,3==n.value]])],2),p("div",De,[b(s,{round:"",class:"w-[50%]",onClick:N},{default:f((()=>t[12]||(t[12]=[V("返回")]))),_:1})])])])],64)}}};export{Ae as default};
import{a as e,_ as a,m as s,c as l,j as t,g as i}from"./index-Dj71FKn1.js";import{b as n,o as r,z as o,H as c,aZ as p,r as d,F as u,A as m,f as h,_ as f,K as g,I as _,j as x,B as w,C as v,k as b,a3 as k,a4 as y,a5 as F}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const P={class:"w-full h-[55px] page bg-white"},C=a({__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(e,{expose:a,emit:s}){const l=n(1),t=e,i=s;function d(e){i("pageChange",e)}return a({currentPage:l}),(e,a)=>{const s=p;return r(),o("div",P,[c(s,{onChange:d,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),"total-items":t.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},[["__scopeId","data-v-f36f3121"]]),R={class:"publicContainerNoPadding relative"},j={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},z={class:"w-[80%] h-full"},U={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},I={class:"w-full min-h-1/2 p-1"},A=["onClick"],E={class:"w-full h-auto bg-white"},N={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},G={class:"h-[30px] w-[85%]"},S={class:"h-[30px] w-[85%]"},L={class:"h-[30px] w-[85%]"},V={class:"h-[30px] w-[85%]"},K={class:"w-full h-auto bg-white"},B={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},D={class:"w-full h-auto bg-white"},H={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},W={class:"w-full h-full flex justify-between items-center p-3"},Z={__name:"index",setup(a){const p=n(),P=n(),Z=d({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function q(){s((()=>{return(a={...Z.check,role_list:Z.check.role_list.map((e=>({role_name:"",role_id:e}))),dept_list:Z.check.dept_list.map((e=>({name:"",id:e})))},e.post("/api/UserRole/UserRoleSave",a,s)).then((e=>(1===e.code&&(""!==P.value.search?X(P.value.search,Z.searchParams.page_index):(T(Z.initParams.page_index),p.value.currentPage=Z.initParams.page_index),Z.select.showPopup=!1),e)));var a,s}))}function J(){var a;e.post("/api/Common/GetRoleList",a).then((e=>{Z.comment.user=e.response.map((e=>({...e,bg:"",cl:""})))}))}function M(){var a;e.get("/api/Common/GetDeptAllList",a).then((e=>{Z.comment.dept=e.response.map((e=>({...e,bg:"",cl:""})))}))}function O(){s((()=>function(a,s){const l={card_name:a.card_name,page_index:a.page_index,page_size:a.page_size};return e.get("/api/UserRole/GetUserRoleList",{params:l,...s})}(Z.initParams).then((e=>(Z.data=e.response.data.map((e=>({...e}))),Z.total=e.response.data_count,e)))),!0,"加载中...")}function Q(e){""===P.value.search?(Z.initParams.page_index=e,O()):(Z.searchParams.page_index=e,X(P.value.search,e))}function T(e=""){P.value.search="",Z.initParams={page_index:e||1,page_size:10},p.value.currentPage=1,O()}function X(a,s=1){""!==P.value.search&&(1!==Z.initParams.page_index&&(p.value.currentPage=1,Z.initParams.page_index=1),function(a,s){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return e.get("/api/UserRole/GetUserRoleSearch",{params:l,...s})}({...Z.searchParams,keyword:a,page_index:s}).then((e=>{Z.data=e.response.data.map((e=>({...e}))),Z.total=e.response.data_count})))}function Y(a,l){let t={0:()=>{s((()=>function(a,s){const l={userid:a.userid};return e.get("/api/UserRole/UserRoleIns",{params:l,...s})}({userid:l.userid}).then((e=>(1===e.code&&t[1](e.response),e)))))},1:a=>{(function(a,s){const l={id:a.id};return e.get("/api/UserRole/GetUserRoleInfo",{params:l,...s})})({id:l.userroleid||a}).then((e=>{let a=[],s=[];e.response.dept_list.map(((e,s)=>{a.push(e.id)})),e.response.role_list.map(((e,a)=>{s.push(e.role_id)})),Z.comment.dept.map(((e,s)=>(a.includes(e.id)?(e.bg="#1989FA",e.cl="#FFFFFF"):(e.bg="",e.cl=""),e))),Z.comment.user.map(((e,a)=>(s.includes(e.id)?(e.bg="#1989FA",e.cl="#FFFFFF"):(e.bg="",e.cl=""),e))),e.response.dept_list=a,e.response.role_list=s,Z.check=e.response,1===e.code&&(Z.select.showPopup=!0)}))}};t[String(a)]()}return u((()=>{O(),J(),M()})),(e,a)=>{const s=F,n=k,d=y,u=i,J=l;return r(),o(g,null,[m("div",R,[c(t,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:P,onSearchFun:X,onReset:T,path:"/welcome"},null,512),m("div",j,[Z.data.length===[]?(r(),h(s,{key:0,description:"暂无授权名单,请通过搜索添加"})):f("",!0),(r(!0),o(g,null,_(Z.data,((e,a)=>(r(),o("div",{key:a,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[m("div",z,[m("div",U,w(e.username)+" ("+w(e.usercard)+") ",1),m("div",I,[(r(!0),o(g,null,_(e.dept_list,((e,a)=>(r(),h(n,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:a,plain:"",hairline:"",size:"small",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1024)))),128))])]),m("div",{onClick:a=>Y(Number(null!==e.userroleid),e),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},w(["添加","编辑"][Number(null!==e.userroleid)]),9,A)])))),128))]),c(C,{class:"absolute bottom-0",ref_key:"pageRef",ref:p,total:Z.total,onPageChange:Q},null,8,["total"])]),c(J,{show:Z.select.showPopup,height:80,onActionPopUp:a[1]||(a[1]=()=>Z.select.showPopup=!1)},{content:x((()=>[a[13]||(a[13]=m("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[m("span",{class:"text-5"},"人员权限添加详情")],-1)),a[14]||(a[14]=m("div",{class:"w-full h-3 bg-gray-200"},null,-1)),(r(),o("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:Z.calendarKey},[m("div",E,[m("div",N,[a[2]||(a[2]=m("div",{class:"h-[30px] w-[15%]"},"姓名:",-1)),m("div",G,w(Z.check.username),1),a[3]||(a[3]=m("div",{class:"h-[30px] w-[15%]"},"工号:",-1)),m("div",S,w(Z.check.usercard),1),a[4]||(a[4]=m("div",{class:"h-[30px] w-[15%]"},"部门:",-1)),m("div",L,w(Z.check.dept),1),a[5]||(a[5]=m("div",{class:"h-[30px] w-[15%]"},"岗位:",-1)),m("div",V,w(Z.check.position_name),1)])]),a[8]||(a[8]=m("div",{class:"w-full h-3"},null,-1)),m("div",K,[a[6]||(a[6]=m("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1)),m("div",B,[c(d,{wrap:""},{default:x((()=>[(r(!0),o(g,null,_(Z.comment.user,((e,a)=>(r(),h(n,{onClick:a=>function(e){Z.check.role_list.includes(e.id)?(Z.check.role_list.forEach(((a,s)=>{a===e.id&&Z.check.role_list.splice(s,1,"")})),Z.comment.user.forEach((a=>{a.id===e.id&&(a.bg="",a.cl="")}))):(Z.check.role_list.push(e.id),Z.comment.user.forEach((a=>{a.id===e.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})))}(e),style:b({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:e.bg,color:e.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1032,["onClick","style"])))),256))])),_:1})])]),a[9]||(a[9]=m("div",{class:"w-full h-3"},null,-1)),m("div",D,[a[7]||(a[7]=m("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1)),m("div",H,[c(d,{wrap:""},{default:x((()=>[(r(!0),o(g,null,_(Z.comment.dept,((e,a)=>(r(),h(n,{onClick:a=>function(e){Z.check.dept_list.includes(e.id)?(Z.check.dept_list.forEach(((a,s)=>{a===e.id&&Z.check.dept_list.splice(s,1)})),Z.comment.dept.forEach((a=>{a.id===e.id&&(a.bg="",a.cl="")})),Z.comment.deptId.forEach(((a,s)=>{a===e.id&&Z.comment.deptId.splice(s,1)}))):(Z.check.dept_list.push(e.id),Z.comment.deptId.push(e.id),Z.comment.dept.forEach((a=>{a.id===e.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})))}(e),key:a,style:b({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:e.bg,color:e.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1032,["onClick","style"])))),128))])),_:1})])]),a[10]||(a[10]=m("div",{class:"w-full h-3 bg-gray-200"},null,-1))])),c(u,null,{default:x((()=>[m("div",W,[c(n,{round:"",class:"w-[30%]",onClick:a[0]||(a[0]=e=>Z.select.showPopup=!1)},{default:x((()=>a[11]||(a[11]=[v("取消")]))),_:1}),c(n,{type:"primary",round:"",class:"w-[64%]",onClick:q},{default:x((()=>a[12]||(a[12]=[v("确定")]))),_:1})])])),_:1})])),_:1},8,["show"])],64)}}};export{Z as default};
import{a as s,h as e,g as a,i as o}from"./index-Dj71FKn1.js";import{b as l,r as t,F as n,o as r,z as i,H as f,A as u,j as p,f as c,C as d,_ as m,a3 as w}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const h={class:"publicContainerNoPadding"},y={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},v={class:"w-full h-full flex items-center justify-between p-3"},k={__name:"index",setup(k){const x=l(),C=t({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){C.fillInWork.show=!0}function j(){x.value.save()}function b(s){C.fillInWork.show=s}function I(){var e;s.get("/api/Common/GetAheadWriteSwitch",e).then((s=>{C.role=s.response}))}return n((()=>{I()})),(s,l)=>{const t=o,n=e,k=w,I=a;return r(),i("div",h,[f(t,{path:"/welcome",title:"工作安排填报"}),u("div",y,[f(n,{ref_key:"saveRef",ref:x,show:C.fillInWork.show,onCloseDateComponent:b},null,8,["show"])]),f(I,null,{default:p((()=>[u("div",v,[1==C.role?(r(),c(k,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:p((()=>l[0]||(l[0]=[d(" 添加日期 ")]))),_:1})):m("",!0),f(k,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:j},{default:p((()=>l[1]||(l[1]=[d("保存")]))),_:1})])])),_:1})])}}};export{k as default};
import{z as t,aH as a}from"./index-TkYWi-av.js";const i=t(a);export{i as P};
import{u as r,o as c,c as s,a as e,F as _,N as i,E as l}from"./index-TkYWi-av.js";const m=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,d={__name:"index",setup(p){const t=r(),n=()=>t.back();return(u,f)=>{const a=i,o=l;return c(),s(_,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:n}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{d as default};
import{i as H,a0 as J,m as E,a1 as Q,a2 as M,k as W,l as j,a3 as X,a as u,a4 as D,a5 as Y,z as q,b as P,_ as Z,r as L,o as h,c as b,A as ee,d as te,D as o,H as A,I as se,F as N,Q as B,w as x,K as G,J as ne,a6 as ae,P as _,e as S,a7 as T,X as oe,a8 as le,Y as ie,E as re}from"./index-TkYWi-av.js";const[pe,R,O]=H("pagination"),$=(a,r,l)=>({number:a,text:r,active:l}),ce={mode:J("multi"),prevText:String,nextText:String,pageCount:E(0),modelValue:Q(0),totalItems:E(0),showPageSize:E(5),itemsPerPage:E(10),forceEllipses:Boolean,showPrevButton:M,showNextButton:M};var de=W({name:pe,props:ce,emits:["change","update:modelValue"],setup(a,{emit:r,slots:l}){const t=j(()=>{const{pageCount:i,totalItems:d,itemsPerPage:f}=a,g=+i||Math.ceil(+d/+f);return Math.max(1,g)}),U=j(()=>{const i=[],d=t.value,f=+a.showPageSize,{modelValue:g,forceEllipses:s}=a;let e=1,p=d;const m=f<d;m&&(e=Math.max(g-Math.floor(f/2),1),p=e+f-1,p>d&&(p=d,e=p-f+1));for(let c=e;c<=p;c++){const y=$(c,c,c===g);i.push(y)}if(m&&f>0&&s){if(e>1){const c=$(e-1,"...");i.unshift(c)}if(p<d){const c=$(p+1,"...");i.push(c)}}return i}),v=(i,d)=>{i=Y(i,1,t.value),a.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};X(()=>v(a.modelValue));const I=()=>u("li",{class:R("page-desc")},[l.pageDesc?l.pageDesc():`${a.modelValue}/${t.value}`]),F=()=>{const{mode:i,modelValue:d,showPrevButton:f}=a;if(!f)return;const g=l["prev-text"],s=d===1;return u("li",{class:[R("item",{disabled:s,border:i==="simple",prev:!0}),D]},[u("button",{type:"button",disabled:s,onClick:()=>v(d-1,!0)},[g?g():a.prevText||O("prev")])])},C=()=>{const{mode:i,modelValue:d,showNextButton:f}=a;if(!f)return;const g=l["next-text"],s=d===t.value;return u("li",{class:[R("item",{disabled:s,border:i==="simple",next:!0}),D]},[u("button",{type:"button",disabled:s,onClick:()=>v(d+1,!0)},[g?g():a.nextText||O("next")])])},k=()=>U.value.map(i=>u("li",{class:[R("item",{active:i.active,page:!0}),D]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:R()},[u("ul",{class:R("items")},[F(),a.mode==="simple"?I():k(),C()])])}});const ue=q(de);function me(a){return P.get("/api/Common/GetDeptAllList",a)}function fe(a){return P.post("/api/Common/GetRoleList",a)}function ge(a,r){const l={card_name:a.card_name,page_index:a.page_index,page_size:a.page_size};return P.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function he(a,r){const l={id:a.id};return P.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function _e(a,r){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return P.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(a,r){const l={userid:a.userid};return P.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(a,r){return P.post("/api/UserRole/UserRoleSave",a,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(a,{expose:r,emit:l}){const t=L(1),U=a,v=l;function I(F){v("pageChange",F)}return r({currentPage:t}),(F,C)=>{const k=ue;return h(),b("div",we,[u(k,{onChange:I,modelValue:t.value,"onUpdate:modelValue":C[0]||(C[0]=i=>t.value=i),"total-items":U.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-f36f3121"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie={class:"w-full h-auto bg-white"},ze={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},Ne={class:"h-[30px] w-[85%]"},Se={class:"h-[30px] w-[85%]"},Ve={class:"h-[30px] w-[85%]"},Ee={class:"h-[30px] w-[85%]"},Ae={class:"w-full h-auto bg-white"},Be={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},De={class:"w-full h-auto bg-white"},Ge={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},$e={class:"w-full h-full flex justify-between items-center p-3"},Me={__name:"index",setup(a){const r=L(),l=L(),t=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function U(){G(()=>ve({...t.check,role_list:t.check.role_list.map(s=>({role_name:"",role_id:s})),dept_list:t.check.dept_list.map(s=>({name:"",id:s}))}).then(s=>(s.code===1&&(l.value.search!==""?f(l.value.search,t.searchParams.page_index):(d(t.initParams.page_index),r.value.currentPage=t.initParams.page_index),t.select.showPopup=!1),s)))}function v(s){t.check.dept_list.includes(s.id)?(t.check.dept_list.forEach((e,p)=>{e===s.id&&t.check.dept_list.splice(p,1)}),t.comment.dept.forEach(e=>{e.id===s.id&&(e.bg="",e.cl="")}),t.comment.deptId.forEach((e,p)=>{e===s.id&&t.comment.deptId.splice(p,1)})):(t.check.dept_list.push(s.id),t.comment.deptId.push(s.id),t.comment.dept.forEach(e=>{e.id===s.id&&(e.bg="#1989FA",e.cl="#FFFFFF")}))}function I(s){t.check.role_list.includes(s.id)?(t.check.role_list.forEach((e,p)=>{e===s.id&&t.check.role_list.splice(p,1,"")}),t.comment.user.forEach(e=>{e.id===s.id&&(e.bg="",e.cl="")})):(t.check.role_list.push(s.id),t.comment.user.forEach(e=>{e.id===s.id&&(e.bg="#1989FA",e.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...t.check.role_list)}function F(){fe().then(s=>{t.comment.user=s.response.map(e=>({...e,bg:"",cl:""}))})}function C(){me().then(s=>{t.comment.dept=s.response.map(e=>({...e,bg:"",cl:""}))})}function k(){G(()=>ge(t.initParams).then(s=>(t.data=s.response.data.map(e=>({...e})),t.total=s.response.data_count,s)),!0,"加载中...")}function i(s){l.value.search===""?(t.initParams.page_index=s,k()):(t.searchParams.page_index=s,f(l.value.search,s))}function d(s=""){l.value.search="",t.initParams={page_index:s||1,page_size:10},r.value.currentPage=1,k()}function f(s,e=1){l.value.search!==""&&(t.initParams.page_index!==1&&(r.value.currentPage=1,t.initParams.page_index=1),_e({...t.searchParams,keyword:s,page_index:e}).then(p=>{t.data=p.response.data.map(m=>({...m})),t.total=p.response.data_count}))}function g(s,e){let p={0:()=>{G(()=>xe({userid:e.userid}).then(m=>(m.code===1&&p[1](m.response),m)))},1:m=>{he({id:e.userroleid||m}).then(c=>{let y=[],z=[];c.response.dept_list.map((n,w)=>{y.push(n.id)}),c.response.role_list.map((n,w)=>{z.push(n.role_id)}),t.comment.dept.map((n,w)=>(y.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),t.comment.user.map((n,w)=>(z.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),c.response.dept_list=y,c.response.role_list=z,t.check=c.response,c.code===1&&(t.select.showPopup=!0),console.log("🚀🚀🚀,",t.comment,c.response)})}};p[String(s)]()}return te(()=>{k(),F(),C()}),(s,e)=>{const p=re,m=oe,c=le,y=ie,z=ne;return h(),b(N,null,[o("div",ye,[u(ae,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:f,onReset:d,path:"/welcome"},null,512),o("div",Pe,[t.data.length===[]?(h(),A(p,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(h(!0),b(N,null,B(t.data,(n,w)=>(h(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,_(n.username)+" ("+_(n.usercard)+") ",1),o("div",Re,[(h(!0),b(N,null,B(n.dept_list,(V,K)=>(h(),A(m,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:K,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[S(_(V.name),1)]),_:2},1024))),128))])]),o("div",{onClick:V=>g(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},_(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:t.total,onPageChange:i},null,8,["total"])]),u(z,{show:t.select.showPopup,height:80,onActionPopUp:e[1]||(e[1]=()=>t.select.showPopup=!1)},{content:x(()=>[e[13]||(e[13]=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1)),e[14]||(e[14]=o("div",{class:"w-full h-3 bg-gray-200"},null,-1)),(h(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:t.calendarKey},[o("div",Ie,[o("div",ze,[e[2]||(e[2]=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1)),o("div",Ne,_(t.check.username),1),e[3]||(e[3]=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1)),o("div",Se,_(t.check.usercard),1),e[4]||(e[4]=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1)),o("div",Ve,_(t.check.dept),1),e[5]||(e[5]=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1)),o("div",Ee,_(t.check.position_name),1)])]),e[8]||(e[8]=o("div",{class:"w-full h-3"},null,-1)),o("div",Ae,[e[6]||(e[6]=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1)),o("div",Be,[u(c,{wrap:""},{default:x(()=>[(h(!0),b(N,null,B(t.comment.user,(n,w)=>(h(),A(m,{onClick:V=>I(n),style:T({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[S(_(n.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),e[9]||(e[9]=o("div",{class:"w-full h-3"},null,-1)),o("div",De,[e[7]||(e[7]=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1)),o("div",Ge,[u(c,{wrap:""},{default:x(()=>[(h(!0),b(N,null,B(t.comment.dept,(n,w)=>(h(),A(m,{onClick:V=>v(n),key:w,style:T({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[S(_(n.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),e[10]||(e[10]=o("div",{class:"w-full h-3 bg-gray-200"},null,-1))])),u(y,null,{default:x(()=>[o("div",$e,[u(m,{round:"",class:"w-[30%]",onClick:e[0]||(e[0]=n=>t.select.showPopup=!1)},{default:x(()=>e[11]||(e[11]=[S("取消")])),_:1}),u(m,{type:"primary",round:"",class:"w-[64%]",onClick:U},{default:x(()=>e[12]||(e[12]=[S("确定")])),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{Me as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{b as y,r as k,A as v,d as x,o as r,c as C,a as n,D as c,w as s,Z as I,Y as g,H as W,e as d,I as b,$ as A,X as B}from"./index-TkYWi-av.js";function N(a){return y.get("/api/Common/GetAheadWriteSwitch",a)}const D={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},G={class:"w-full h-full flex items-center justify-between p-3"},$={__name:"index",setup(a){const l=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function u(){l.value.save()}function f(t){e.fillInWork.show=t}function p(){N().then(t=>{e.role=t.response})}return x(()=>{p()}),(t,o)=>{const m=A,h=I,i=B,w=g;return r(),C("div",D,[n(m,{path:"/welcome",title:"工作安排填报"}),c("div",V,[n(h,{ref_key:"saveRef",ref:l,show:e.fillInWork.show,onCloseDateComponent:f},null,8,["show"])]),n(w,null,{default:s(()=>[c("div",G,[e.role==1?(r(),W(i,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:s(()=>o[0]||(o[0]=[d(" 添加日期 ")])),_:1})):b("",!0),n(i,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:u},{default:s(()=>o[1]||(o[1]=[d("保存")])),_:1})])]),_:1})])}}};export{$ as default};
import{i as q,j as Z,s as W,m as x,k as H,r as Y,l as j,n as K,p as J,q as X,a as r,t as $,v as ee,x as te,y as Q,z as ne,b as C,A as se,g as ie,d as re,B as ae,o as v,c as b,D as a,H as oe,w as l,I as le,J as L,F,K as N,M as me,O as de,P as k,e as T,Q as ue,R as ce,T as B,U as pe,V as fe,W as we,X as _e,Y as ge}from"./index-TkYWi-av.js";import{P as V}from"./index-Daw15wRa.js";const[xe]=q("time-picker"),U=s=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(s),ke=["hour","minute","second"],ye=Z({},W,{minHour:x(0),maxHour:x(23),minMinute:x(0),maxMinute:x(59),minSecond:x(0),maxSecond:x(59),minTime:{type:String,validator:U},maxTime:{type:String,validator:U},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var ve=H({name:xe,props:ye,emits:["confirm","cancel","change","update:modelValue"],setup(s,{emit:p,slots:e}){const d=Y(s.modelValue),h=i=>{const f=i.split(":");return ke.map((_,w)=>s.columnsType.includes(_)?f[w]:"00")},M=j(()=>{let{minHour:i,maxHour:f,minMinute:_,maxMinute:w,minSecond:y,maxSecond:A}=s;if(s.minTime||s.maxTime){const n={hour:0,minute:0,second:0};s.columnsType.forEach((m,g)=>{var c;n[m]=(c=d.value[g])!=null?c:0});const{hour:t,minute:u}=n;if(s.minTime){const[m,g,c]=h(s.minTime);i=m,_=+t<=+i?g:"00",y=+t<=+i&&+u<=+_?c:"00"}if(s.maxTime){const[m,g,c]=h(s.maxTime);f=m,w=+t>=+f?g:"59",A=+t>=+f&&+u>=+w?c:"59"}}return s.columnsType.map(n=>{const{filter:t,formatter:u}=s;switch(n){case"hour":return Q(+i,+f,n,u,t,d.value);case"minute":return Q(+_,+w,n,u,t,d.value);case"second":return Q(+y,+A,n,u,t,d.value);default:return[]}})});K(d,i=>{J(i,s.modelValue)||p("update:modelValue",i)}),K(()=>s.modelValue,i=>{i=X(i,M.value),J(i,d.value)||(d.value=i)},{immediate:!0});const z=(...i)=>p("change",...i),S=(...i)=>p("cancel",...i),I=(...i)=>p("confirm",...i);return()=>r(V,$({modelValue:d.value,"onUpdate:modelValue":i=>d.value=i,columns:M.value,onChange:z,onCancel:S,onConfirm:I},ee(s,te)),e)}});const he=ne(ve);function Me(s){return C.get("/api/Collect/GetCollectList",s)}function Ae(s){return C.get("/api/Common/GetMenuRole",s)}function be(s){return C.get("/api/SysConfig/SysConfigInit",s)}function Te(s,p){return C.post("/api/SysConfig/SysConfigSave",s,p)}const Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAMAAACdUboEAAAC8VBMVEVHcEwLw6sZyLBM2sIy0bkRxa0cybEVx68kzLQpzrYCwKggyrIIwqoFwalQ3MQOxKw507tI2cBL2sI81LxC1r481Lw/1b1F17820rouz7cv0LhN2sILw6sEwakSxq4407tG2MA71Lw91b0Jw6sNxKwv0LhL2sIrz7dB1r4307pH2MBP28MZyLAWx68gyrIdybERxa0ozrUjzLRE179C1r4+1b0dybEZyLAWx68Gwakz0bklzbUdyrIUxq4w0LgdyrIdybEv0LgCwKgUxa1T3MQdybEdybFT3MQSxa0Av6dS3MRR3MQkzLQkzLRT3MQgyrJS3MQAv6cmzLRT3MQBv6dT3MQAv6dS3MQy0bkcybEeybFT3MQtz7cfyrJR28Mw0Lguz7ccybEAv6cAv6cEwKgeybEhy7Mw0LgcybEdybEAv6dT3MQy0bkvz7cszrYAv6dT3MQz0bkBv6cpzbUAv6cBv6cnzbUAv6cpzbUmzLQBv6clzLQAv6ciy7MBv6f///8fyrItz7cqzrYjy7Mvz7cw0LgozbUlzLQz0bk607s91LwcybE+1b0ayLAXx69B1r4Rxa0Uxq4gyrIhyrIhy7MPxKwiy7MrzrYszrYuz7cpzbUeybEx0LgkzLQy0bk40ronzbUmzLQ407sMw6s10bk00bk507s30ro20ro10rodybFI2MA71Lw81LwFwakbyLAZyLADwKg/1b0YyLBL2cFA1b0HwqoWx69C1r4Vxq4Vx69D1r4Txa0Sxa1D178Qxa1E179F179G178OxKxG2MANxKxO2sJH2MALw6sKw6tJ2MAKwqpK2cEJwqpR28NM2cEHwalM2sJN2sLL8+1P28NQ28MBv6fG8evJ8uxf2shi28nM8+1o3ctQ1cPH8uxP1MJT18W57+dS3MRc2sdm3ctk3Mry/PvN9O6D49SO5diq6+Js3M2i6t+H5NZN18Moy7U/0Lx139AhybK27eYqzLbV9fBx3c460Luv7OMzz7nA8el9EOneAAAAf3RSTlMAMzMzMzMzMzMzMzMzMzMzMzMNDTMzMzMzMw1AQEBAQECZQM3NmZmZQJmZmc1AgM3NQICZmZkDQM3NmSggzRBh8jDNIx4woDANMNAwQLMWMCMTE+AQgBrwmZbQYICmbCDQ1QoGzXDz0FTVLQNg8OAq8MCmTVBizaBmZvCgkI2w+JL0nQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAA6pJREFUWIXt2PVXk1EYwPGH6dhg2JROHbKpqOimgDKkDFCwu7u7OxhgF2F3J4rd3d2tICggdvdPnnvv2O5guM09v+n3D/ic973Pfc95zwP/clWL5aiIkQoby9ixNa1uRyvKyktzdXV1LUhycnJycnZ2dnZ0dHR0cXFxKUTLQ8tPapwdrVpdLLazisxfOweIS9YSixHIhnqwrkSMQdbrpxP9JRw5bHRZWmlaaz8/P79ytFI0Hx8fH29vb28vLy+v8qQytAqkjtIssZFER44ZOWXKkqiohYsiIxdPmjR58rIV06atX7d508aVazZMn75124wZs2bt2hsTc+DwsRMnT505n5Bw6cqePddv3jp37s7da9datQikokSSRTaYunqVVeSzZnV0IiEbLJ9qNTmYkLZackJ0NAIZTkRG1u+5AIVsR0RKVpo7D4UMpyIhO8QjkQACRio1SGQ9EDBSqUEipSBgpHIpEklFQiq3IJFMFNjaKmfy5M+0tIe0R7SMjIz09PT0pKSkNJOkFESM9JzJke+eR+RWpilSCiJGem7nyKe5ghERL0yQRKSk52yOfPAH8aWJs6SiiIoc+SJ38Pk7E+Nhokgg8NzBkx8f0G7re0zKzPyVZmriWlEk8N1tQP79JZKCkJG+c5BIKQiFWhGJdAMhI333I5FUJGTAISSSiUKRKOAgEukGBRgZEMeRX3J+NG/MJd2gACNVcRz5ysjVfmsmSURKqo5w5H0j4g8zX5yKhFQd5Uijz2jmWbqBDSNVsRz53sg5mjseD7BhpCqWJ62YOBEpqTiORFKRkIr5SCQTbYiIRHqAAyMVp5FID3BgpOIsEukODoxUrOXJ1/e1PXnyNNUykoqElK/lyNcGV/G7RaQ75GOk/AJHGn6FLy16cXfIx0j5RY78bCB+s+gsiUhJ+WWO/MD/U3y1bDxUJKT8Kk9+SklJSUlOTk5OTU21cOLuYM9I9T4D8u8vkQzsGaneh0QSkZLqG0gkFQmpTkQiZVCLkepEJFIGTewp2T0RiZQBDKJkzZ1IpAygWxgTkUgZAHTty0QcsgbdfbQMsx+6E4nUbStG3MMhh+g3IGNxyP56cfg9DLIXv/cZhUAO6GSwnBpvNdm5RrYFWomJVpED2xtZ8jUvoau4vpKsiqRqpKBgnhxXvzIp+/NZln8XjqxiFaWrjZ5EEqF3cBaJJYJ/Hy2JJkJgKCPxRICgYEJWQhQhpK1GE48qQmCoRoMrAvRAFyEkCFv8HwDAbyUGGEPkkPdQAAAAAElFTkSuQmCC",ze={class:"publicContainer"},Se={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},Ie=["src"],Qe={class:"w-full h-full flex justify-end flex-wrap"},Le={class:"w-full h-full flex overflow-x-auto"},Re={class:"text-blue-500"},Ee=["onClick"],Ke={class:"w-full h-full flex justify-end"},Be={__name:"index",setup(s,{expose:p}){const e=se({userInfo:ie().getUserInfo(),getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(n){e.paramsTransfers.semester_date_begin=B(n[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=B(n[1]).format("YYYY/MM/DD"),e.date.show=!1}function h(){Me().then(n=>{e.data.myFocus=n.response})}function M(){N(()=>Ae().then(n=>(e.role=n.response,n)),!0,"加载中...")}function z(){N(()=>Te({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(n=>"|"+n)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(n=>(n.code===1&&A(),n)))}function S(){e.select.showPopup=!1}function I(n){e.select.timeShow=!0,e.getWeekOrTimeKey=n}function i(n){e.paramsTransfers.nowrite_remind_time.splice(n,1)}function f({selectedValues:n,selectedOptions:t,selectedIndexes:u}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(n[0]+":"+n[1]):e.paramsTransfers[e.getWeekOrTimeKey]=n[0]+":"+n[1],e.select.timeShow=!1}function _({selectedValues:n,selectedOptions:t,selectedIndexes:u}){e.paramsTransfers[e.getWeekOrTimeKey]=n[0],e.select.weekShow=!1}function w(n){e.select.weekShow=!0,e.getWeekOrTimeKey=n}function y(n){e.select.timeShow=!0,e.getWeekOrTimeKey=n}function A(){e.select.showPopup=!0,e.loading=!0,be().then(n=>{e.paramsTransfers={configid:n.response.configid,date:[],semester_date_begin:n.response.semester_date_begin.split(" ")[0],semester_date_end:n.response.semester_date_end.split(" ")[0],period_remind_time:n.response.period_remind.split("|")[1],period_remind_week:n.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(n.response.nowrite_remind.split("|")[0]),nowrite_remind_time:n.response.nowrite_remind.split("|").filter(t=>t!=0&&t!=1&&Number(t)!=0&&Number(t)!=1),ahead_write:!!Number(n.response.ahead_write),write_remind_week:n.response.write_remind.split("|")[0],write_remind_time:n.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return re(()=>{console.log("🚀🚀🚀,",e.userInfo),M()}),p({GetCollectList:h}),(n,t)=>{const u=pe,m=me,g=fe,c=ae("el-switch"),O=we,R=_e,P=ge,D=he,G=V;return v(),b(F,null,[a("div",ze,[r(u),a("div",Se,[e.userInfo.currentRole.id==1||e.userInfo.currentRole.id==0?(v(),oe(m,{key:0,class:"rounded-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:l(()=>[a("img",{src:Ce,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Ie)]),_:1})):le("",!0)])]),r(L,{show:e.select.showPopup,height:60,onActionPopUp:t[9]||(t[9]=()=>e.select.showPopup=!1)},{content:l(()=>[(v(),b("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[r(de,{show:e.loading},null,8,["show"]),t[15]||(t[15]=a("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[a("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1)),t[16]||(t[16]=a("div",{class:"w-full h-3"},null,-1)),r(m,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:t[0]||(t[0]=o=>e.date.show=!0)},{default:l(()=>[a("span",null,k(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),r(g,{type:"range",show:e.date.show,"onUpdate:show":t[1]||(t[1]=o=>e.date.show=o),onConfirm:d},null,8,["show"]),r(m,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:l(()=>[t[12]||(t[12]=T(" 每周")),a("span",{class:"text-blue-500 mr-2",onClick:t[2]||(t[2]=o=>w("period_remind_week"))},"["+k(e.paramsTransfers.period_remind_week)+"]",1),a("span",{onClick:t[3]||(t[3]=o=>y("period_remind_time")),class:"text-blue-500"},"["+k(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),t[17]||(t[17]=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),r(m,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:l(()=>[a("div",Qe,[r(c,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":t[4]||(t[4]=o=>e.paramsTransfers.nowrite_remind_isCheck=o),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(m,{onClick:t[5]||(t[5]=o=>I("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:l(()=>t[13]||(t[13]=[a("div",{class:"w-full h-full"},"重复提醒时间",-1)])),value:l(()=>[a("div",Le,[(v(!0),b(F,null,ue(e.paramsTransfers.nowrite_remind_time,(o,E)=>(v(),b("div",{class:"w-20 flex justify-start items-center m-1",key:E},[a("span",Re,"["+k(o)+"]",1),a("div",{onClick:ce(Je=>i(E),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[r(O,{class:"text-red-600",name:"cross"})],8,Ee)]))),128))])]),_:1}),t[18]||(t[18]=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),r(m,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:l(()=>[a("div",Ke,[r(c,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":t[6]||(t[6]=o=>e.paramsTransfers.ahead_write=o),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(m,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:l(()=>[t[14]||(t[14]=T(" 每周")),a("span",{class:"text-blue-500 mr-2",onClick:t[7]||(t[7]=o=>w("write_remind_week"))},"["+k(e.paramsTransfers.write_remind_week)+"]",1),a("span",{onClick:t[8]||(t[8]=o=>y("write_remind_time")),class:"text-blue-500"},"["+k(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),r(P,null,{default:l(()=>[r(R,{round:"",class:"w-[32%]",onClick:S},{default:l(()=>t[19]||(t[19]=[T("关闭")])),_:1}),r(R,{type:"primary",round:"",class:"w-[60%]",onClick:z},{default:l(()=>t[20]||(t[20]=[T("保存")])),_:1})]),_:1})]),_:1},8,["show"]),r(L,{show:e.select.timeShow,height:60,close:!1},{content:l(()=>[r(D,{onConfirm:f,onCancel:t[10]||(t[10]=o=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),r(L,{show:e.select.weekShow,height:60,close:!1},{content:l(()=>[r(G,{title:"请选择日期",columns:e.columns,onConfirm:_,onCancel:t[11]||(t[11]=o=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{Be as default};
import{a as e,u as s,c as r,m as t,d as i,e as a,f as n,g as l}from"./index-Dj71FKn1.js";import{r as o,F as d,e as m,o as c,z as w,A as p,H as u,f as _,j as f,_ as h,K as x,a2 as g,B as k,C as y,I as b,aC as A,a1 as M,L as v,a3 as z,aX as T,aY as Q}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const C={class:"publicContainer"},L={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto relative"},S=["src"],I={class:"w-full h-full flex justify-end flex-wrap"},R={class:"w-full h-full flex overflow-x-auto"},E={class:"text-blue-500"},K=["onClick"],J={class:"w-full h-full flex justify-end"},F={__name:"index",setup(F,{expose:U}){const B=o({userInfo:s().getUserInfo(),getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function N(e){B.paramsTransfers.semester_date_begin=a(e[0]).format("YYYY/MM/DD"),B.paramsTransfers.semester_date_end=a(e[1]).format("YYYY/MM/DD"),B.date.show=!1}function O(){t((()=>{return e.get("/api/Common/GetMenuRole",s).then((e=>(B.role=e.response,e)));var s}),!0,"加载中...")}function V(){t((()=>{return(s={configid:B.paramsTransfers.configid,semester_date_begin:B.paramsTransfers.semester_date_begin,semester_date_end:B.paramsTransfers.semester_date_end,period_remind:B.paramsTransfers.period_remind_week+"|"+B.paramsTransfers.period_remind_time,nowrite_remind:String(Number(B.paramsTransfers.nowrite_remind_isCheck))+String(String(B.paramsTransfers.nowrite_remind_time.map((e=>"|"+e))).split(",").join("")),ahead_write:String(Number(B.paramsTransfers.ahead_write)),write_remind:B.paramsTransfers.write_remind_week+"|"+B.paramsTransfers.write_remind_time},e.post("/api/SysConfig/SysConfigSave",s,r)).then((s=>(1===s.code&&(B.select.showPopup=!0,B.loading=!0,function(s){return e.get("/api/SysConfig/SysConfigInit",s)}().then((e=>{B.paramsTransfers={configid:e.response.configid,date:[],semester_date_begin:e.response.semester_date_begin.split(" ")[0],semester_date_end:e.response.semester_date_end.split(" ")[0],period_remind_time:e.response.period_remind.split("|")[1],period_remind_week:e.response.period_remind.split("|")[0],nowrite_remind_isCheck:Boolean(Number(e.response.nowrite_remind.split("|")[0])),nowrite_remind_time:e.response.nowrite_remind.split("|").filter((e=>0!=e&&1!=e&&0!=Number(e)&&1!=Number(e))),ahead_write:Boolean(Number(e.response.ahead_write)),write_remind_week:e.response.write_remind.split("|")[0],write_remind_time:e.response.write_remind.split("|")[1]}})).finally((()=>{B.loading=!1}))),s)));var s,r}))}function Z(){B.select.showPopup=!1}function q({selectedValues:e,selectedOptions:s,selectedIndexes:r}){"nowrite_remind_time"===B.getWeekOrTimeKey?B.paramsTransfers[B.getWeekOrTimeKey].push(e[0]+":"+e[1]):B.paramsTransfers[B.getWeekOrTimeKey]=e[0]+":"+e[1],B.select.timeShow=!1}function D({selectedValues:e,selectedOptions:s,selectedIndexes:r}){B.paramsTransfers[B.getWeekOrTimeKey]=e[0],B.select.weekShow=!1}function G(e){B.select.weekShow=!0,B.getWeekOrTimeKey=e}function P(e){B.select.timeShow=!0,B.getWeekOrTimeKey=e}return d((()=>{O()})),U({GetCollectList:function(){var s;e.get("/api/Collect/GetCollectList",s).then((e=>{B.data.myFocus=e.response}))}}),(e,s)=>{const t=n,a=g,o=M,d=m("el-switch"),F=v,U=z,O=l,W=T,Y=Q;return c(),w(x,null,[p("div",C,[u(t),p("div",L,[1==B.userInfo.currentRole.id||0==B.userInfo.currentRole.id?(c(),_(a,{key:0,class:"rounded-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:f((()=>[p("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAMAAACdUboEAAAC8VBMVEVHcEwLw6sZyLBM2sIy0bkRxa0cybEVx68kzLQpzrYCwKggyrIIwqoFwalQ3MQOxKw507tI2cBL2sI81LxC1r481Lw/1b1F17820rouz7cv0LhN2sILw6sEwakSxq4407tG2MA71Lw91b0Jw6sNxKwv0LhL2sIrz7dB1r4307pH2MBP28MZyLAWx68gyrIdybERxa0ozrUjzLRE179C1r4+1b0dybEZyLAWx68Gwakz0bklzbUdyrIUxq4w0LgdyrIdybEv0LgCwKgUxa1T3MQdybEdybFT3MQSxa0Av6dS3MRR3MQkzLQkzLRT3MQgyrJS3MQAv6cmzLRT3MQBv6dT3MQAv6dS3MQy0bkcybEeybFT3MQtz7cfyrJR28Mw0Lguz7ccybEAv6cAv6cEwKgeybEhy7Mw0LgcybEdybEAv6dT3MQy0bkvz7cszrYAv6dT3MQz0bkBv6cpzbUAv6cBv6cnzbUAv6cpzbUmzLQBv6clzLQAv6ciy7MBv6f///8fyrItz7cqzrYjy7Mvz7cw0LgozbUlzLQz0bk607s91LwcybE+1b0ayLAXx69B1r4Rxa0Uxq4gyrIhyrIhy7MPxKwiy7MrzrYszrYuz7cpzbUeybEx0LgkzLQy0bk40ronzbUmzLQ407sMw6s10bk00bk507s30ro20ro10rodybFI2MA71Lw81LwFwakbyLAZyLADwKg/1b0YyLBL2cFA1b0HwqoWx69C1r4Vxq4Vx69D1r4Txa0Sxa1D178Qxa1E179F179G178OxKxG2MANxKxO2sJH2MALw6sKw6tJ2MAKwqpK2cEJwqpR28NM2cEHwalM2sJN2sLL8+1P28NQ28MBv6fG8evJ8uxf2shi28nM8+1o3ctQ1cPH8uxP1MJT18W57+dS3MRc2sdm3ctk3Mry/PvN9O6D49SO5diq6+Js3M2i6t+H5NZN18Moy7U/0Lx139AhybK27eYqzLbV9fBx3c460Luv7OMzz7nA8el9EOneAAAAf3RSTlMAMzMzMzMzMzMzMzMzMzMzMzMNDTMzMzMzMw1AQEBAQECZQM3NmZmZQJmZmc1AgM3NQICZmZkDQM3NmSggzRBh8jDNIx4woDANMNAwQLMWMCMTE+AQgBrwmZbQYICmbCDQ1QoGzXDz0FTVLQNg8OAq8MCmTVBizaBmZvCgkI2w+JL0nQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAA6pJREFUWIXt2PVXk1EYwPGH6dhg2JROHbKpqOimgDKkDFCwu7u7OxhgF2F3J4rd3d2tICggdvdPnnvv2O5guM09v+n3D/ic973Pfc95zwP/clWL5aiIkQoby9ixNa1uRyvKyktzdXV1LUhycnJycnZ2dnZ0dHR0cXFxKUTLQ8tPapwdrVpdLLazisxfOweIS9YSixHIhnqwrkSMQdbrpxP9JRw5bHRZWmlaaz8/P79ytFI0Hx8fH29vb28vLy+v8qQytAqkjtIssZFER44ZOWXKkqiohYsiIxdPmjR58rIV06atX7d508aVazZMn75124wZs2bt2hsTc+DwsRMnT505n5Bw6cqePddv3jp37s7da9datQikokSSRTaYunqVVeSzZnV0IiEbLJ9qNTmYkLZackJ0NAIZTkRG1u+5AIVsR0RKVpo7D4UMpyIhO8QjkQACRio1SGQ9EDBSqUEipSBgpHIpEklFQiq3IJFMFNjaKmfy5M+0tIe0R7SMjIz09PT0pKSkNJOkFESM9JzJke+eR+RWpilSCiJGem7nyKe5ghERL0yQRKSk52yOfPAH8aWJs6SiiIoc+SJ38Pk7E+Nhokgg8NzBkx8f0G7re0zKzPyVZmriWlEk8N1tQP79JZKCkJG+c5BIKQiFWhGJdAMhI333I5FUJGTAISSSiUKRKOAgEukGBRgZEMeRX3J+NG/MJd2gACNVcRz5ysjVfmsmSURKqo5w5H0j4g8zX5yKhFQd5Uijz2jmWbqBDSNVsRz53sg5mjseD7BhpCqWJ62YOBEpqTiORFKRkIr5SCQTbYiIRHqAAyMVp5FID3BgpOIsEukODoxUrOXJ1/e1PXnyNNUykoqElK/lyNcGV/G7RaQ75GOk/AJHGn6FLy16cXfIx0j5RY78bCB+s+gsiUhJ+WWO/MD/U3y1bDxUJKT8Kk9+SklJSUlOTk5OTU21cOLuYM9I9T4D8u8vkQzsGaneh0QSkZLqG0gkFQmpTkQiZVCLkepEJFIGTewp2T0RiZQBDKJkzZ1IpAygWxgTkUgZAHTty0QcsgbdfbQMsx+6E4nUbStG3MMhh+g3IGNxyP56cfg9DLIXv/cZhUAO6GSwnBpvNdm5RrYFWomJVpED2xtZ8jUvoau4vpKsiqRqpKBgnhxXvzIp+/NZln8XjqxiFaWrjZ5EEqF3cBaJJYJ/Hy2JJkJgKCPxRICgYEJWQhQhpK1GE48qQmCoRoMrAvRAFyEkCFv8HwDAbyUGGEPkkPdQAAAAAElFTkSuQmCC",style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,S)])),_:1})):h("",!0),s[12]||(s[12]=p("div",{class:"w-full ccFlex absolute bottom-0",style:{color:"#b0b0b0","font-size":"10px"}},"Build 1.0.0 - 250107 1.0.1 ",-1))])]),u(r,{show:B.select.showPopup,height:60,onActionPopUp:s[9]||(s[9]=()=>B.select.showPopup=!1)},{content:f((()=>[(c(),w("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:B.calendarKey},[u(i,{show:B.loading},null,8,["show"]),s[16]||(s[16]=p("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[p("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1)),s[17]||(s[17]=p("div",{class:"w-full h-3"},null,-1)),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:s[0]||(s[0]=e=>B.date.show=!0)},{default:f((()=>[p("span",null,k(B.paramsTransfers.semester_date_begin+" - "+B.paramsTransfers.semester_date_end),1)])),_:1}),u(o,{type:"range",show:B.date.show,"onUpdate:show":s[1]||(s[1]=e=>B.date.show=e),onConfirm:N},null,8,["show"]),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:f((()=>[s[13]||(s[13]=y(" 每周")),p("span",{class:"text-blue-500 mr-2",onClick:s[2]||(s[2]=e=>G("period_remind_week"))},"["+k(B.paramsTransfers.period_remind_week)+"]",1),p("span",{onClick:s[3]||(s[3]=e=>P("period_remind_time")),class:"text-blue-500"},"["+k(B.paramsTransfers.period_remind_time)+"]",1)])),_:1}),s[18]||(s[18]=p("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),u(a,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:f((()=>[p("div",I,[u(d,{modelValue:B.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":s[4]||(s[4]=e=>B.paramsTransfers.nowrite_remind_isCheck=e),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])])),_:1}),u(a,{onClick:s[5]||(s[5]=e=>{return s="nowrite_remind_time",B.select.timeShow=!0,void(B.getWeekOrTimeKey=s);var s}),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:f((()=>s[14]||(s[14]=[p("div",{class:"w-full h-full"},"重复提醒时间",-1)]))),value:f((()=>[p("div",R,[(c(!0),w(x,null,b(B.paramsTransfers.nowrite_remind_time,((e,s)=>(c(),w("div",{class:"w-20 flex justify-start items-center m-1",key:s},[p("span",E,"["+k(e)+"]",1),p("div",{onClick:A((e=>function(e){B.paramsTransfers.nowrite_remind_time.splice(e,1)}(s)),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[u(F,{class:"text-red-600",name:"cross"})],8,K)])))),128))])])),_:1}),s[19]||(s[19]=p("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),u(a,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:f((()=>[p("div",J,[u(d,{modelValue:B.paramsTransfers.ahead_write,"onUpdate:modelValue":s[6]||(s[6]=e=>B.paramsTransfers.ahead_write=e),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])])),_:1}),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:f((()=>[s[15]||(s[15]=y(" 每周")),p("span",{class:"text-blue-500 mr-2",onClick:s[7]||(s[7]=e=>G("write_remind_week"))},"["+k(B.paramsTransfers.write_remind_week)+"]",1),p("span",{onClick:s[8]||(s[8]=e=>P("write_remind_time")),class:"text-blue-500"},"["+k(B.paramsTransfers.write_remind_time)+"]",1)])),_:1})])),u(O,null,{default:f((()=>[u(U,{round:"",class:"w-[32%]",onClick:Z},{default:f((()=>s[20]||(s[20]=[y("关闭")]))),_:1}),u(U,{type:"primary",round:"",class:"w-[60%]",onClick:V},{default:f((()=>s[21]||(s[21]=[y("保存")]))),_:1})])),_:1})])),_:1},8,["show"]),u(r,{show:B.select.timeShow,height:60,close:!1},{content:f((()=>[u(W,{onConfirm:q,onCancel:s[10]||(s[10]=e=>B.select.timeShow=!1),title:"选择时间"})])),_:1},8,["show"]),u(r,{show:B.select.weekShow,height:60,close:!1},{content:f((()=>[u(Y,{title:"请选择日期",columns:B.columns,onConfirm:D,onCancel:s[11]||(s[11]=e=>B.select.weekShow=!1)},null,8,["columns"])])),_:1},8,["show"])],64)}}};export{F as default};
import{_ as e}from"./index-TkYWi-av.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as r}from"./index-Dj71FKn1.js";import"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default};
import{i as ne,k as le,a9 as ee,aa as fe,A as ie,ab as je,r as X,l as G,n as q,ac as Ee,a as v,ad as ke,ae as He,af as ue,a5 as B,ag as Xe,L as Ye,ah as Ce,ai as pe,aj as ze,a2 as U,ak as Be,m as J,al as ge,a0 as se,am as Me,d as Pe,an as Ne,ao as Ve,ap as Ze,t as Re,v as Le,aq as De,ar as Qe,as as Ge,W as ae,at as qe,z as ve,au as We,av as Ue,aw as Je,b as Se,_ as Ke,o as u,c as g,D as i,H as Z,w as H,I as j,P as w,E as Ae,ax as he,ay as $e,az as et,aA as M,aB as te,F as N,Q as L,aC as tt,K as we,X as ot,aD as at,e as V,aE as it,aF as oe,T as xe,$ as st,aG as nt}from"./index-TkYWi-av.js";import{P as lt}from"./index-Daw15wRa.js";const ye=a=>Math.sqrt((a[0].clientX-a[1].clientX)**2+(a[0].clientY-a[1].clientY)**2),rt=a=>({x:(a[0].clientX+a[1].clientX)/2,y:(a[0].clientY+a[1].clientY)/2}),de=ne("image-preview")[1],be=2.6;var ct=le({props:{src:String,show:Boolean,active:Number,minZoom:ee(fe),maxZoom:ee(fe),rootWidth:ee(Number),rootHeight:ee(Number),disableZoom:Boolean,closeOnClickOverlay:Boolean},emits:["scale","close","longPress"],setup(a,{emit:e,slots:l}){const t=ie({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),o=je(),d=X(),b=X(),h=X(!1),_=X(!1);let C=0;const Y=G(()=>{const{scale:n,moveX:m,moveY:p,moving:y,zooming:k,initializing:O}=t,$={transitionDuration:k||y||O?"0s":".3s"};return(n!==1||_.value)&&($.transform=`matrix(${n}, 0, 0, ${n}, ${m}, ${p})`),$}),r=G(()=>{if(t.imageRatio){const{rootWidth:n,rootHeight:m}=a,p=h.value?m/t.imageRatio:n;return Math.max(0,(t.scale*p-n)/2)}return 0}),s=G(()=>{if(t.imageRatio){const{rootWidth:n,rootHeight:m}=a,p=h.value?m:n*t.imageRatio;return Math.max(0,(t.scale*p-m)/2)}return 0}),S=(n,m)=>{var p;if(n=B(n,+a.minZoom,+a.maxZoom+1),n!==t.scale){const y=n/t.scale;if(t.scale=n,m){const k=Ce((p=d.value)==null?void 0:p.$el),O={x:k.width*.5,y:k.height*.5},$=t.moveX-(m.x-k.left-O.x)*(y-1),Oe=t.moveY-(m.y-k.top-O.y)*(y-1);t.moveX=B($,-r.value,r.value),t.moveY=B(Oe,-s.value,s.value)}else t.moveX=0,t.moveY=_.value?C:0;e("scale",{scale:n,index:a.active})}},P=()=>{S(1)},T=()=>{const n=t.scale>1?1:2;S(n,n===2||_.value?{x:o.startX.value,y:o.startY.value}:void 0)};let I,F,f,x,A,W,z,R,c=!1;const D=n=>{const{touches:m}=n;if(I=m.length,I===2&&a.disableZoom)return;const{offsetX:p}=o;o.start(n),F=t.moveX,f=t.moveY,R=Date.now(),c=!1,t.moving=I===1&&(t.scale!==1||_.value),t.zooming=I===2&&!p.value,t.zooming&&(x=t.scale,A=ye(m))},K=n=>{const{touches:m}=n;if(o.move(n),t.moving){const{deltaX:p,deltaY:y}=o,k=p.value+F,O=y.value+f;if((k>r.value||k<-r.value)&&!c&&o.isHorizontal()){t.moving=!1;return}c=!0,ue(n,!0),t.moveX=B(k,-r.value,r.value),t.moveY=B(O,-s.value,s.value)}if(t.zooming&&(ue(n,!0),m.length===2)){const p=ye(m),y=x*p/A;W=rt(m),S(y,W)}},re=n=>{var m;if(I>1)return;const{offsetX:p,offsetY:y}=o,k=Date.now()-R,O=250;if(p.value<pe&&y.value<pe)if(k<O)if(z)clearTimeout(z),z=null,T();else{if(!a.closeOnClickOverlay&&n.target===((m=b.value)==null?void 0:m.$el))return;z=setTimeout(()=>{e("close"),z=null},O)}else k>ze&&e("longPress")},ce=n=>{let m=!1;if((t.moving||t.zooming)&&(m=!0,t.moving&&F===t.moveX&&f===t.moveY&&(m=!1),!n.touches.length)){t.zooming&&(t.moveX=B(t.moveX,-r.value,r.value),t.moveY=B(t.moveY,-s.value,s.value),t.zooming=!1),t.moving=!1,F=0,f=0,x=1,t.scale<1&&P();const p=+a.maxZoom;t.scale>p&&S(p,W)}ue(n,m),re(n),o.reset()},me=()=>{const{rootWidth:n,rootHeight:m}=a,p=m/n,{imageRatio:y}=t;h.value=t.imageRatio>p&&y<be,_.value=t.imageRatio>p&&y>=be,_.value&&(C=(y*n-m)/2,t.moveY=C,t.initializing=!0,Xe(()=>{t.initializing=!1})),P()},Fe=n=>{const{naturalWidth:m,naturalHeight:p}=n.target;t.imageRatio=p/m,me()};return q(()=>a.active,P),q(()=>a.show,n=>{n||P()}),q(()=>[a.rootWidth,a.rootHeight],me),Ee("touchmove",K,{target:G(()=>{var n;return(n=b.value)==null?void 0:n.$el})}),()=>{const n={loading:()=>v(Ye,{type:"spinner"},null)};return v(He,{ref:b,class:de("swipe-item"),onTouchstartPassive:D,onTouchend:ce,onTouchcancel:ce},{default:()=>[l.image?v("div",{class:de("image-wrap")},[l.image({src:a.src})]):v(ke,{ref:d,src:a.src,fit:"contain",class:de("image",{vertical:h.value}),style:Y.value,onLoad:Fe},n)]})}}});const[ut,Q]=ne("image-preview"),dt=["show","teleport","transition","overlayStyle","closeOnPopstate"],vt={show:Boolean,loop:U,images:Be(),minZoom:J(1/3),maxZoom:J(3),overlay:U,closeable:Boolean,showIndex:U,className:ge,closeIcon:se("clear"),transition:String,beforeClose:Function,overlayClass:ge,overlayStyle:Object,swipeDuration:J(300),startPosition:J(0),showIndicators:Boolean,closeOnPopstate:U,closeOnClickOverlay:U,closeIconPosition:se("top-right"),teleport:[String,Object]};var mt=le({name:ut,props:vt,emits:["scale","close","closed","change","longPress","update:show"],setup(a,{emit:e,slots:l}){const t=X(),o=ie({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),d=()=>{if(t.value){const f=Ce(t.value.$el);o.rootWidth=f.width,o.rootHeight=f.height,t.value.resize()}},b=f=>e("scale",f),h=f=>e("update:show",f),_=()=>{qe(a.beforeClose,{args:[o.active],done:()=>h(!1)})},C=f=>{f!==o.active&&(o.active=f,e("change",f))},Y=()=>{if(a.showIndex)return v("div",{class:Q("index")},[l.index?l.index({index:o.active}):`${o.active+1} / ${a.images.length}`])},r=()=>{if(l.cover)return v("div",{class:Q("cover")},[l.cover()])},s=()=>{o.disableZoom=!0},S=()=>{o.disableZoom=!1},P=()=>v(Qe,{ref:t,lazyRender:!0,loop:a.loop,class:Q("swipe"),duration:a.swipeDuration,initialSwipe:a.startPosition,showIndicators:a.showIndicators,indicatorColor:"white",onChange:C,onDragEnd:S,onDragStart:s},{default:()=>[a.images.map((f,x)=>v(ct,{src:f,show:a.show,active:o.active,maxZoom:a.maxZoom,minZoom:a.minZoom,rootWidth:o.rootWidth,rootHeight:o.rootHeight,disableZoom:o.disableZoom,closeOnClickOverlay:a.closeOnClickOverlay,onScale:b,onClose:_,onLongPress:()=>e("longPress",{index:x})},{image:l.image}))]}),T=()=>{if(a.closeable)return v(ae,{role:"button",name:a.closeIcon,class:[Q("close-icon",a.closeIconPosition),Ge],onClick:_},null)},I=()=>e("closed"),F=(f,x)=>{var A;return(A=t.value)==null?void 0:A.swipeTo(f,x)};return Me({swipeTo:F}),Pe(d),q([Ne,Ve],d),q(()=>a.startPosition,f=>C(+f)),q(()=>a.show,f=>{const{images:x,startPosition:A}=a;f?(C(+A),Ze(()=>{d(),F(+A,{immediate:!0})})):e("close",{index:o.active,url:x[o.active]})}),()=>v(De,Re({class:[Q(),a.className],overlayClass:[Q("overlay"),a.overlayClass],onClosed:I,"onUpdate:show":h},Le(a,dt)),{default:()=>[T(),P(),Y(),r()]})}});const ft=ve(mt),[Te,_e]=ne("steps"),pt={active:J(0),direction:se("horizontal"),activeIcon:se("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},Ie=Symbol(Te);var gt=le({name:Te,props:pt,emits:["clickStep"],setup(a,{emit:e,slots:l}){const{linkChildren:t}=We(Ie);return t({props:a,onClickStep:d=>e("clickStep",d)}),()=>{var d;return v("div",{class:_e([a.direction])},[v("div",{class:_e("items")},[(d=l.default)==null?void 0:d.call(l)])])}}});const[ht,E]=ne("step");var wt=le({name:ht,setup(a,{slots:e}){const{parent:l,index:t}=Ue(Ie);if(!l)return;const o=l.props,d=()=>{const r=+o.active;return t.value<r?"finish":t.value===r?"process":"waiting"},b=()=>d()==="process",h=G(()=>({background:d()==="finish"?o.activeColor:o.inactiveColor})),_=G(()=>{if(b())return{color:o.activeColor};if(d()==="waiting")return{color:o.inactiveColor}}),C=()=>l.onClickStep(t.value),Y=()=>{const{iconPrefix:r,finishIcon:s,activeIcon:S,activeColor:P,inactiveIcon:T}=o;return b()?e["active-icon"]?e["active-icon"]():v(ae,{class:E("icon","active"),name:S,color:P,classPrefix:r},null):d()==="finish"&&(s||e["finish-icon"])?e["finish-icon"]?e["finish-icon"]():v(ae,{class:E("icon","finish"),name:s,color:P,classPrefix:r},null):e["inactive-icon"]?e["inactive-icon"]():T?v(ae,{class:E("icon"),name:T,classPrefix:r},null):v("i",{class:E("circle"),style:h.value},null)};return()=>{var r;const s=d();return v("div",{class:[Je,E([o.direction,{[s]:s}])]},[v("div",{class:E("title",{active:b()}),style:_.value,onClick:C},[(r=e.default)==null?void 0:r.call(e)]),v("div",{class:E("circle-container"),onClick:C},[Y()]),v("div",{class:E("line"),style:h.value},null)])}}});const xt=ve(wt),yt=ve(gt);function bt(a,e){const l={userid:a.userid,date:a.date};return Se.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:l,...e})}function _t(a,e){const l={userid:a.userid,date:a.date};return Se.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:l,...e})}const kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAADoElEQVR4Xp2VSWgUQRSGJ0biLoIobqS7agaXIEpO4kFxx5O44gIeBBMQFBTxogePKqKRme6qHrNM4obkIC4gCooLIgiCgt5UvIgHo05PV/V0YqLle9XT43TroPigYfp11Vd//e9VTSr1H5HmYiF1/B7KxCuTec9NJg+aHcUpyXH/HNRy99F8uZjuVop2jija9V0/xCk/M2yxIDn+r0Hs0n7iBCMII7b3kDDvKDynKZcf0gWlCBMvZ1ve1OS8ulELNG3vVKpfNUbfUCHh/jva/QPA3pnaeXUDfGsneQDCNgF4AnNG3p9J8sOHiSPX4jvAjtDOYdyBjM/+Q5jMbadOMEy7wL8qcGCmycXTzBWFuQLmqFPeTM8PgbeBihMSgQph8LBWaHkndc6WMwgAtYfcHwCFy3TeKjFcGOa8jVNqwsxFCqGyVuhTLRAWGzBy7irME1tsheqXtVIud8dJlSC220bzwbeKh2cxZ3TAlu1fQOhVDQTwFlhcpHsU+tmVOq5GxWkpbfheGBQDAmA6ehgBmy13NeapLTZHQDgAvZmsGhOnQRDL/QVkogNzCCRMPoyANOuuwbxheZuqCpnsMwvvx8ZpEJTJPbDloVChOIe5ECg0kDj+Z8pCIBRjI4z1QqB3MZN987tC05HraX4wwOrBqqd1DovCxJOwyuXPZq64AvMk526r2XJPy/HXTan+/sb5fWpqVS36oNX06mN2FYweHVZZPo6A1QaHKkdAOJoFGNuUuaQmw7wbtKAkFKotVGmVloDKIfCrSC1v7jT700TY0oPKlr9AJ6zDcc22WwP0Cy0IzH6ZTJl/U9vgBGU4ritDKJeHNMAu3dPvttyZ7sZbJ/hKsiGQ5LwNsHDFQ9nb0q+a5nWrSfA7AvomL+3QQA1hgld67LoGcP9Yug/98p7Pyn8cr4FOUArHyD4syrxTA5PgENyIgNQu7awCNYSJA6gU4Pf1Ilzs0EqZ78O3F6BGVqqsgdqeCMjhFCWBGBlebMXKg39usyNa5pxV46Dpr1EAY/Fo1w9c8DJuOfQ7UghAVtqV5OlAw1FlWH15M6VbRDVSXt5C8oNHiCO2ppQateiCmhABoagBzdUBRoE3Daws9eUBE41ssTX2PVtcDAvexb8QgsB6CpNh2u52BFf6NQDfHgHoFvYwXrw670jvrwqTQSyxHLy9A/+UQ1i86MF36M3bhlNempzzb6FUQ4b7rYQHbQaXh03HazfgHb40JIfWi58kocJqXNrBoAAAAABJRU5ErkJggg==",Ct={name:"filePreview",components:{},props:{fileObj:{type:Object,default:()=>({})}},data(){return{url:window.location.origin+"/fileReader/?file="+window.location.origin,src:"http://static.shanhuxueyuan.com/test6.docx",renderedLoading:!0,previewType:"",errorShow:!1}},mounted(){console.log("fileObj1111111",this.fileObj),this.previewType=this.getPreviewType()},methods:{getPreviewType(){let a=this.fileObj.file_name.split(".").pop(),e="";switch(a){case"doc":e="docx";break;case"docx":e="docx";break;case"xls":e="excel";break;case"xlsx":e="excel";break;case"ppt":case"pptx":e="ppt";break;case"pdf":e="pdf";break;case"jpg":case"jpeg":case"png":case"gif":e="image";break;case"DOC":e="docx";break;case"DOCX":e="docx";break;case"XLS":e="excel";break;case"XLSX":e="excel";break;case"PPT":case"PPTX":e="ppt";break;case"PDF":e="pdf";break;case"JPG":case"JPEG":case"PNG":case"GIF":e="image";break;case"mp4":case"ogg":case"webm":e="video";break;case"mp3":case"wav":e="audio";break;case"txt":e="txt";break;default:e="custom",this.renderedLoading=!1;break}return e},rendered(){console.log("渲染完成",this.fileObj),this.renderedLoading=!1},errorHandler(a){console.log("渲染失败",a),this.errorShow=!0},clickDownload(a,e){const l=document.createElement("a");l.href=a,l.download=e,l.target="_blank",l.dispatchEvent(new MouseEvent("click"))},viewImage(a){ft([a])}}},Pt={class:"file-preview"},Dt={style:{height:"100%"}},St={key:1},At=["src"],Tt={key:2},It=["src"],Ft={key:3},Ot=["src"],jt={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},Et={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},Ht=["src"],Xt={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},Yt={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},zt=["src"],Bt=["src"],Mt={key:7,style:{height:"100%"}},Nt=["src"],Vt={key:8},Zt={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};function Rt(a,e,l,t,o,d){const b=Ae;return u(),g("div",Pt,[i("div",Dt,[o.errorShow?(u(),Z(b,{key:0},{description:H(()=>e[6]||(e[6]=[i("p",null,"加载失败,请尝试下载预览",-1)])),_:1})):j("",!0),o.previewType=="docx"?(u(),g("div",St,[i("iframe",{style:{height:"calc(100vh - 80px)"},src:o.url+l.fileObj.path,height:"100%",width:"100%"},null,8,At)])):j("",!0),o.previewType=="excel"?(u(),g("div",Tt,[i("iframe",{style:{height:"calc(100vh - 80px)"},src:o.url+l.fileObj.path,height:"100%",width:"100%"},null,8,It)])):j("",!0),o.previewType=="pdf"?(u(),g("div",Ft,[i("iframe",{src:o.url+l.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,Ot)])):j("",!0),o.previewType=="video"?(u(),g("div",jt,[i("div",Et,w(l.fileObj.file_name),1),i("video",{src:l.fileObj.path,controls:"",onLoadeddata:e[0]||(e[0]=(...h)=>d.rendered&&d.rendered(...h)),style:{width:"80%"}},e[7]||(e[7]=[i("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,Ht)])):j("",!0),o.previewType=="audio"?(u(),g("div",Xt,[i("div",Yt,w(l.fileObj.file_name),1),i("audio",{src:l.fileObj.path,controls:"",onLoadeddata:e[1]||(e[1]=(...h)=>d.rendered&&d.rendered(...h))},e[8]||(e[8]=[i("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,zt)])):j("",!0),o.previewType=="image"?(u(),g("div",{key:6,onClick:e[3]||(e[3]=h=>d.viewImage(l.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[i("img",{src:l.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:e[2]||(e[2]=(...h)=>d.rendered&&d.rendered(...h))},null,40,Bt)])):j("",!0),o.previewType=="txt"?(u(),g("div",Mt,[i("iframe",{src:l.fileObj.path,width:"100%",height:"100%",onLoad:e[4]||(e[4]=(...h)=>d.rendered&&d.rendered(...h))},e[9]||(e[9]=[i("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,Nt)])):j("",!0),o.previewType=="custom"?(u(),g("div",Vt,[i("div",Zt,[i("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:e[5]||(e[5]=h=>d.clickDownload(l.fileObj.path,l.fileObj.file_name))},w(l.fileObj.file_name),1),e[10]||(e[10]=i("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):j("",!0)])])}const Lt=Ke(Ct,[["render",Rt],["__scopeId","data-v-f13c766f"]]),Qt={class:"w-full h-full bg-white overflow-y-auto relative"},Gt={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},qt={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},Wt={class:"container1"},Ut={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},Jt={class:"w-full h-[108px] bg-white z-50 sticky top-0"},Kt={class:"w-full h-[54px]"},$t={class:""},eo={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},to={class:"mb-2 text-[#4E4E4E]"},oo=["onClick"],ao={class:"ml-2"},io={class:""},so={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},no={class:"mb-2 text-[#4E4E4E]"},lo={class:""},ro={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},co={class:"mb-2 text-[#4E4E4E]"},uo={class:""},vo={key:1,class:"w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},mo={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},go={__name:"index",setup(a){const e=X(0),l=X([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"},{text:"操作轨迹",value:"3"}]),t=ie({show:!1,fileItem:{}}),o=ie({detailsData:{plan_list:[],duty_list:[],meet_list:[]},operatingTrajectory:[],formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),d=()=>{o.formData.pushMessage!==void 0?tt("welcome"):he.back()},b=r=>{e.value=r};X("");function h(r){const s=r.selectedOptions[0];o.approval.formData.action=s.value,o.approval.value=s.text,o.approval.showPopup=!1}function _(){we(()=>bt({userid:oe().getDayViewItemData().userid,date:xe(oe().getDayViewItemData().date).format("YYYY-MM-DD")}).then(r=>(o.detailsData=r.response,r)),!0,"加载中...")}function C(){we(()=>_t({userid:oe().getDayViewItemData().userid,date:xe(oe().getDayViewItemData().date).format("YYYY-MM-DD")}).then(r=>(o.operatingTrajectory=r.response,r)),!0,"加载中...")}function Y(r){t.show=!0,t.fileItem=r,console.log("🚀🚀🚀,",t.fileItem)}return Pe(()=>{_(),C(),o.formData=he.currentRoute.value.query}),(r,s)=>{const S=lt,P=De,T=ot,I=st,F=nt,f=at,x=Ae,A=ke,W=xt,z=yt,R=$e("font");return u(),g(N,null,[v(P,{show:o.approval.showPopup,"onUpdate:show":s[1]||(s[1]=c=>o.approval.showPopup=c),position:"bottom"},{default:H(()=>[v(S,{columns:o.approval.columns,"show-toolbar":"",onCancel:s[0]||(s[0]=c=>o.approval.showPopup=!1),onConfirm:h},null,8,["columns"])]),_:1},8,["show"]),v(P,{show:t.show,"onUpdate:show":s[3]||(s[3]=c=>t.show=c),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:H(()=>[i("div",Qt,[s[6]||(s[6]=i("div",{class:"w-full h-[50px] z-100 sticky top-0"},[i("div",{class:"flex justify-between items-center w-full h-[50px]"},[i("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),i("div",Gt,[v(Lt,{fileObj:t.fileItem},null,8,["fileObj"])]),i("div",qt,[v(T,{class:"w-full","native-type":"submit",round:"",onClick:s[2]||(s[2]=c=>t.show=!1)},{default:H(()=>s[5]||(s[5]=[V("关闭 ")])),_:1})])])]),_:1},8,["show"]),i("div",Wt,[i("div",Ut,[i("div",Jt,[v(I,{path:"/welcome",title:"日程详情"}),i("div",Kt,[v(f,{active:e.value,"onUpdate:active":s[4]||(s[4]=c=>e.value=c),swipeable:"",onChange:b},{default:H(()=>[(u(!0),g(N,null,L(l.value,(c,D)=>(u(),Z(F,{key:D,title:c.text},null,8,["title"]))),128))]),_:1},8,["active"])])]),i("div",{class:et([`${o.formData.flowType==="await"?"h-[calc(100%-172px)]":"h-[calc(100%-108px)]"}`,"w-full overflow-y-auto relative"])},[M(i("div",$t,[o.detailsData.plan_list.length==0?(u(),Z(x,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(u(!0),g(N,{key:1},L(o.detailsData.plan_list,(c,D)=>(u(),g("div",{key:D,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[i("div",eo,[s[7]||(s[7]=i("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),i("p",null,w(c.date)+" "+w(c.begin+" - "+c.end),1)]),i("div",to,[i("p",null,w(c.content),1)]),(u(!0),g(N,null,L(c.file_list,(K,re)=>(u(),g("div",{key:re,onClick:ce=>Y(K),class:"flex items-center text-[#3FA0F4]"},[v(A,{width:"12px",height:"12px",src:it(kt)},null,8,["src"]),i("a",ao,w(K.file_name),1)],8,oo))),128))]))),128))],512),[[te,e.value==0]]),M(i("div",io,[o.detailsData.duty_list.length==0?(u(),Z(x,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(u(!0),g(N,{key:1},L(o.detailsData.duty_list,(c,D)=>(u(),g("div",{key:D,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[i("div",so,[s[8]||(s[8]=i("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),i("p",null,w(c.begin)+"-"+w(c.end),1)]),i("div",no,[i("p",null,w(c.content),1)])]))),128))],512),[[te,e.value==1]]),M(i("div",lo,[o.detailsData.meet_list.length==0?(u(),Z(x,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(u(!0),g(N,{key:1},L(o.detailsData.meet_list,(c,D)=>(u(),g("div",{key:D,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[i("div",ro,[s[9]||(s[9]=i("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),i("p",null,w(c.begin)+"-"+w(c.end),1)]),i("div",co,[i("p",null,w(c.content),1)])]))),128))],512),[[te,e.value==2]]),M(i("div",uo,[o.operatingTrajectory.length==0?(u(),Z(x,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(u(),g("div",vo,[v(z,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:H(()=>[(u(!0),g(N,null,L(o.operatingTrajectory,(c,D)=>(u(),Z(W,{key:D,class:"ax"},{default:H(()=>[M((u(),g("h2",null,[V(w(c.createtime),1)])),[[R,void 0,"{color:`#323233`,size:18}"]]),i("p",null,[s[10]||(s[10]=V("用户名:")),M((u(),g("span",null,[V(w(c.createname),1)])),[[R,void 0,"{color:`#5295FF`}"]])]),i("p",null,[s[11]||(s[11]=V("操作:")),M((u(),g("span",null,[V(w(c.remark),1)])),[[R,void 0,"{color:`#5295FF`}"]])])]),_:2},1024))),128))]),_:1})]))],512),[[te,e.value==3]])],2),i("div",mo,[v(T,{round:"",class:"w-[50%]",onClick:d},{default:H(()=>s[12]||(s[12]=[V("返回")])),_:1})])])])],64)}}};export{go as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{s as e,u as t,a as n,i as r,n as o,d as a,r as s,c,h as i,p as l,b as u,w as f}from"./vant-1BGMxUQM.js";const p="undefined"!=typeof window;const h=Object.assign;function d(e,t){const n={};for(const r in t){const o=t[r];n[r]=g(o)?o.map(e):e(o)}return n}const m=()=>{},g=Array.isArray,v=/\/$/;function y(e,t,n="/"){let r,o={},a="",s="";const c=t.indexOf("#");let i=t.indexOf("?");return c<i&&c>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,c>-1?c:t.length),o=e(a)),c>-1&&(r=r||t.slice(0,c),s=t.slice(c,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let a,s,c=n.length-1;for(a=0;a<r.length;a++)if(s=r[a],"."!==s){if(".."!==s)break;c>1&&c--}return n.slice(0,c).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:s}}function b(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function w(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!O(e[n],t[n]))return!1;return!0}function O(e,t){return g(e)?k(e,t):g(t)?k(t,e):e===t}function k(e,t){return g(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var R,P,x,C;function j(e){if(!e)if(p){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(v,"")}(P=R||(R={})).pop="pop",P.push="push",(C=x||(x={})).back="back",C.forward="forward",C.unknown="";const $=/^[^#]+#/;function S(e,t){return e.replace($,"#")+t}const A=()=>({left:window.pageXOffset,top:window.pageYOffset});function q(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function L(e,t){return(history.state?history.state.position-t:-1)+e}const M=new Map;function B(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),b(n,"")}return b(n,e)+r+o}function G(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?A():null}}function _(e){const{history:t,location:n}=window,r={value:B(e,n)},o={value:t.state};function a(r,a,s){const c=e.indexOf("#"),i=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](a,"",i),o.value=a}catch(l){n[s?"replace":"assign"](i)}}return o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const s=h({},o.value,t.state,{forward:e,scroll:A()});a(s.current,s,!0),a(e,h({},G(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){a(e,h({},t.state,G(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function I(e){const t=_(e=j(e)),n=function(e,t,n,r){let o=[],a=[],s=null;const c=({state:a})=>{const c=B(e,location),i=n.value,l=t.value;let u=0;if(a){if(n.value=c,t.value=a,s&&s===i)return void(s=null);u=l?a.position-l.position:0}else r(c);o.forEach((e=>{e(n.value,i,{delta:u,type:R.pop,direction:u?u>0?x.forward:x.back:x.unknown})}))};function i(){const{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:A()}),"")}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",i)}}}(e,t.state,t.location,t.replace);const r=h({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:S.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function W(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),I(e)}function D(e){return"string"==typeof e||"symbol"==typeof e}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},F=Symbol("");var T,V;function z(e,t){return h(new Error,{type:e,[F]:!0},t)}function K(e,t){return e instanceof Error&&F in e&&(null==t||!!(e.type&t))}(V=T||(T={}))[V.aborted=4]="aborted",V[V.cancelled=8]="cancelled",V[V.duplicated=16]="duplicated";const H="[^/]+?",Q={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function Y(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function N(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Y(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Z(r))return 1;if(Z(o))return-1}return o.length-r.length}function Z(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const J={type:0,value:""},ee=/[a-zA-Z0-9_]/;function te(e,t,n){const r=function(e,t){const n=h({},Q,t),r=[];let o=n.start?"^":"";const a=[];for(const i of e){const e=i.length?[]:[90];n.strict&&!i.length&&(o+="/");for(let t=0;t<i.length;t++){const r=i[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(X,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:l,regexp:u}=r;a.push({name:e,repeatable:n,optional:l});const f=u||H;if(f!==H){s+=10;try{new RegExp(`(${f})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${f}): `+c.message)}}let p=n?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;t||(p=l&&i.length<2?`(?:/${p})`:"/"+p),l&&(p+="?"),o+=p,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===f&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:c}=e,i=a in t?t[a]:"";if(g(i)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const l=g(i)?i.join("/"):i;if(!l){if(!c)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[J]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let c,i=0,l="",u="";function f(){l&&(0===n?a.push({type:0,value:l}):1===n||2===n||3===n?(a.length>1&&("*"===c||"+"===c)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),l="")}function p(){l+=c}for(;i<e.length;)if(c=e[i++],"\\"!==c||2===n)switch(n){case 0:"/"===c?(l&&f(),s()):":"===c?(f(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===c?n=2:ee.test(c)?p():(f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&i--);break;case 2:")"===c?"\\"==u[u.length-1]?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&i--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${l}"`),f(),s(),o}(e.path),n),o=h(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ne(e,t){const n=[],r=new Map;function o(e,n,r){const c=!r,i=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:oe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);i.aliasOf=r&&r.record;const l=ce(t,e),u=[i];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(h({},i,{components:r?r.record.components:i.components,path:e,aliasOf:r?r.record:i}))}let f,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(f=te(t,n,l),r?r.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),c&&e.name&&!ae(f)&&a(e.name)),i.children){const e=i.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f,(f.record.components&&Object.keys(f.record.components).length||f.record.name||f.record.redirect)&&s(f)}return p?()=>{a(p)}:m}function a(e){if(D(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){let t=0;for(;t<n.length&&N(e,n[t])>=0&&(e.record.path!==n[t].record.path||!ie(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!ae(e)&&r.set(e.record.name,e)}return t=ce({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,s,c={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw z(1,{location:e});s=o.record.name,c=h(re(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&re(e.params,o.keys.map((e=>e.name)))),a=o.stringify(c)}else if("path"in e)a=e.path,o=n.find((e=>e.re.test(a))),o&&(c=o.parse(a),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw z(1,{location:e,currentLocation:t});s=o.record.name,c=h({},t.params,e.params),a=o.stringify(c)}const i=[];let l=o;for(;l;)i.unshift(l.record),l=l.parent;return{name:s,path:a,params:c,matched:i,meta:se(i)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function re(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function oe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function ae(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function se(e){return e.reduce(((e,t)=>h(e,t.meta)),{})}function ce(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ie(e,t){return t.children.some((t=>t===e||ie(e,t)))}const le=/#/g,ue=/&/g,fe=/\//g,pe=/=/g,he=/\?/g,de=/\+/g,me=/%5B/g,ge=/%5D/g,ve=/%5E/g,ye=/%60/g,be=/%7B/g,we=/%7C/g,Ee=/%7D/g,Oe=/%20/g;function ke(e){return encodeURI(""+e).replace(we,"|").replace(me,"[").replace(ge,"]")}function Re(e){return ke(e).replace(de,"%2B").replace(Oe,"+").replace(le,"%23").replace(ue,"%26").replace(ye,"`").replace(be,"{").replace(Ee,"}").replace(ve,"^")}function Pe(e){return null==e?"":function(e){return ke(e).replace(le,"%23").replace(he,"%3F")}(e).replace(fe,"%2F")}function xe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(de," "),o=e.indexOf("="),a=xe(o<0?e:e.slice(0,o)),s=o<0?null:xe(e.slice(o+1));if(a in t){let e=t[a];g(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function je(e){let t="";for(let n in e){const r=e[n];if(n=Re(n).replace(pe,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(g(r)?r.map((e=>e&&Re(e))):[r&&Re(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function $e(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=g(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Se=Symbol(""),Ae=Symbol(""),qe=Symbol(""),Le=Symbol(""),Me=Symbol("");function Be(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ge(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((s,c)=>{const i=e=>{var i;!1===e?c(z(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(z(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),s())},l=e.call(r&&r.instances[o],t,n,i);let u=Promise.resolve(l);e.length<3&&(u=u.then(i)),u.catch((e=>c(e)))}))}function _e(e,t,n,r){const o=[];for(const s of e)for(const e in s.components){let c=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=c)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(c.__vccOpts||c)[t];a&&o.push(Ge(a,n,r,s,e))}else{let a=c();o.push((()=>a.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(c=o).__esModule||"Module"===c[Symbol.toStringTag]?o.default:o;var c;s.components[e]=a;const i=(a.__vccOpts||a)[t];return i&&Ge(i,n,r,s,e)()}))))}}var a;return o}function Ie(e){const n=r(qe),o=r(Le),a=c((()=>n.resolve(t(e.to)))),s=c((()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],r=o.matched;if(!n||!r.length)return-1;const s=r.findIndex(w.bind(null,n));if(s>-1)return s;const c=De(e[t-2]);return t>1&&De(n)===c&&r[r.length-1].path!==c?r.findIndex(w.bind(null,e[t-2])):s})),i=c((()=>s.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!g(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(o.params,a.value.params))),l=c((()=>s.value>-1&&s.value===o.matched.length-1&&E(o.params,a.value.params)));return{route:a,href:c((()=>a.value.href)),isActive:i,isExactActive:l,navigate:function(r={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(r)?n[t(e.replace)?"replace":"push"](t(e.to)).catch(m):Promise.resolve()}}}const We=a({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ie,setup(e,{slots:t}){const n=s(Ie(e)),{options:o}=r(qe),a=c((()=>({[Ue(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ue(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:i("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ue=(e,t,n)=>null!=e?e:null!=t?t:n;function Fe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Te=a({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:o}){const a=r(Me),s=c((()=>e.route||a.value)),p=r(Ae,0),d=c((()=>{let e=t(p);const{matched:n}=s.value;let r;for(;(r=n[e])&&!r.components;)e++;return e})),m=c((()=>s.value.matched[d.value]));l(Ae,c((()=>d.value+1))),l(Se,m),l(Me,s);const g=u();return f((()=>[g.value,m.value,e.name]),(([e,t,n],[r,o,a])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&w(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const t=s.value,r=e.name,a=m.value,c=a&&a.components[r];if(!c)return Fe(o.default,{Component:c,route:t});const l=a.props[r],u=l?!0===l?t.params:"function"==typeof l?l(t):l:null,f=i(c,h({},u,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:g}));return Fe(o.default,{Component:f,route:t})||f}}});function Ve(r){const a=ne(r.routes,r),s=r.parseQuery||Ce,c=r.stringifyQuery||je,i=r.history,l=Be(),u=Be(),f=Be(),v=e(U);let b=U;p&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const O=d.bind(null,(e=>""+e)),k=d.bind(null,Pe),P=d.bind(null,xe);function x(e,t){if(t=h({},t||v.value),"string"==typeof e){const n=y(s,e,t.path),r=a.resolve({path:n.path},t),o=i.createHref(n.fullPath);return h(n,r,{params:P(r.params),hash:xe(n.hash),redirectedFrom:void 0,href:o})}let n;if("path"in e)n=h({},e,{path:y(s,e.path,t.path).path});else{const r=h({},e.params);for(const e in r)null==r[e]&&delete r[e];n=h({},e,{params:k(r)}),t.params=k(t.params)}const r=a.resolve(n,t),o=e.hash||"";r.params=O(P(r.params));const l=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(c,h({},e,{hash:(u=o,ke(u).replace(be,"{").replace(Ee,"}").replace(ve,"^")),path:r.path}));var u;const f=i.createHref(l);return h({fullPath:l,hash:o,query:c===je?$e(e.query):e.query||{}},r,{redirectedFrom:void 0,href:f})}function C(e){return"string"==typeof e?y(s,e,v.value.path):h({},e)}function j(e,t){if(b!==e)return z(8,{from:t,to:e})}function $(e){return B(e)}function S(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=C(r):{path:r},r.params={}),h({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function B(e,t){const n=b=x(e),r=v.value,o=e.state,a=e.force,s=!0===e.replace,i=S(n);if(i)return B(h(C(i),{state:"object"==typeof i?h({},o,i.state):o,force:a,replace:s}),t||n);const l=n;let u;return l.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&w(t.matched[r],n.matched[o])&&E(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(c,r,n)&&(u=z(16,{to:l,from:r}),Z(r,r,!0,!1)),(u?Promise.resolve(u):I(l,r)).catch((e=>K(e)?K(e,2)?e:N(e):Y(e,l,r))).then((e=>{if(e){if(K(e,2))return B(h({replace:s},C(e.to),{state:"object"==typeof e.to?h({},o,e.to.state):o,force:a}),t||l)}else e=F(l,r,!0,s,o);return W(l,r,e),e}))}function G(e,t){const n=j(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=te.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function I(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>w(e,a)))?r.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find((e=>w(e,c)))||o.push(c))}return[n,r,o]}(e,t);n=_e(r.reverse(),"beforeRouteLeave",e,t);for(const c of r)c.leaveGuards.forEach((r=>{n.push(Ge(r,e,t))}));const s=G.bind(null,e,t);return n.push(s),re(n).then((()=>{n=[];for(const r of l.list())n.push(Ge(r,e,t));return n.push(s),re(n)})).then((()=>{n=_e(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ge(r,e,t))}));return n.push(s),re(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(g(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ge(o,e,t));else n.push(Ge(r.beforeEnter,e,t));return n.push(s),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=_e(a,"beforeRouteEnter",e,t),n.push(s),re(n)))).then((()=>{n=[];for(const r of u.list())n.push(Ge(r,e,t));return n.push(s),re(n)})).catch((e=>K(e,8)?e:Promise.reject(e)))}function W(e,t,n){f.list().forEach((r=>_((()=>r(e,t,n)))))}function F(e,t,n,r,o){const a=j(e,t);if(a)return a;const s=t===U,c=p?history.state:{};n&&(r||s?i.replace(e.fullPath,h({scroll:s&&c&&c.scroll},o)):i.push(e.fullPath,o)),v.value=e,Z(e,t,n,s),N()}let T;function V(){T||(T=i.listen(((e,t,n)=>{const r=x(e),o=S(r);if(o)return void B(h(o,{replace:!0}),r).catch(m);b=r;const a=v.value;var s,c;p&&(s=L(a.fullPath,n.delta),c=A(),M.set(s,c)),I(r,a).catch((e=>K(e,12)?e:K(e,2)?(B(e.to,r).then((e=>{K(e,20)&&!n.delta&&n.type===R.pop&&i.go(-1,!1)})).catch(m),Promise.reject()):(n.delta&&i.go(-n.delta,!1),Y(e,r,a)))).then((e=>{(e=e||F(r,a,!1))&&(n.delta&&!K(e,8)?i.go(-n.delta,!1):n.type===R.pop&&K(e,20)&&i.go(-1,!1)),W(r,a,e)})).catch(m)})))}let H,Q=Be(),X=Be();function Y(e,t,n){N(e);const r=X.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function N(e){return H||(H=!e,V(),Q.list().forEach((([t,n])=>e?n(e):t())),Q.reset()),e}function Z(e,t,n,a){const{scrollBehavior:s}=r;if(!p||!s)return Promise.resolve();const c=!n&&function(e){const t=M.get(e);return M.delete(e),t}(L(e.fullPath,0))||(a||!n)&&history.state&&history.state.scroll||null;return o().then((()=>s(e,t,c))).then((e=>e&&q(e))).catch((n=>Y(n,e,t)))}const J=e=>i.go(e);let ee;const te=new Set;function re(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return{currentRoute:v,listening:!0,addRoute:function(e,t){let n,r;return D(e)?(n=a.getRecordMatcher(e),r=t):r=e,a.addRoute(r,n)},removeRoute:function(e){const t=a.getRecordMatcher(e);t&&a.removeRoute(t)},hasRoute:function(e){return!!a.getRecordMatcher(e)},getRoutes:function(){return a.getRoutes().map((e=>e.record))},resolve:x,options:r,push:$,replace:function(e){return $(h(C(e),{replace:!0}))},go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:X.add,isReady:function(){return H&&v.value!==U?Promise.resolve():new Promise(((e,t)=>{Q.add([e,t])}))},install(e){e.component("RouterLink",We),e.component("RouterView",Te),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t(v)}),p&&!ee&&v.value===U&&(ee=!0,$(i.location).catch((e=>{})));const r={};for(const t in U)Object.defineProperty(r,t,{get:()=>v.value[t],enumerable:!0});e.provide(qe,this),e.provide(Le,n(r)),e.provide(Me,v);const o=e.unmount;te.add(e),e.unmount=function(){te.delete(e),te.size<1&&(b=U,T&&T(),T=null,v.value=U,ee=!1,H=!1),o()}}}}function ze(){return r(qe)}export{W as a,Ve as c,ze as u};
......@@ -6,7 +6,10 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title>
<script type="module" crossorigin src="./assets/index-TkYWi-av.js"></script>
<script type="module" crossorigin src="./assets/index-Dj71FKn1.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-1BGMxUQM.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-CFIiUm82.js">
<link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js">
<link rel="stylesheet" crossorigin href="./assets/index-BVrGlRvl.css">
</head>
<body>
......
......@@ -21,6 +21,7 @@
"lodash": "^4.17.21",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"terser": "^5.31.1",
"vant": "^4.6.6",
"vconsole": "^3.15.1",
"vue": "^3.3.4",
......@@ -665,37 +666,43 @@
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
"dev": true,
"version": "0.3.8",
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
"integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
"dependencies": {
"@jridgewell/set-array": "^1.0.1",
"@jridgewell/set-array": "^1.2.1",
"@jridgewell/sourcemap-codec": "^1.4.10",
"@jridgewell/trace-mapping": "^0.3.9"
"@jridgewell/trace-mapping": "^0.3.24"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.1",
"resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
"dev": true,
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/set-array": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.1.2.tgz",
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
"dev": true,
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz",
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/source-map": {
"version": "0.3.6",
"resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.6.tgz",
"integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.25"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
......@@ -703,10 +710,9 @@
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.20",
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
"dev": true,
"version": "0.3.25",
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
......@@ -1166,7 +1172,6 @@
"version": "8.10.0",
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.10.0.tgz",
"integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
"dev": true,
"bin": {
"acorn": "bin/acorn"
},
......@@ -1532,6 +1537,11 @@
"node": "*"
}
},
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
},
"node_modules/buffer-indexof-polyfill": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz",
......@@ -3421,8 +3431,6 @@
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true,
"optional": true,
"engines": {
"node": ">=0.10.0"
}
......@@ -3436,6 +3444,15 @@
"node": ">=0.10.0"
}
},
"node_modules/source-map-support": {
"version": "0.5.21",
"resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
"dependencies": {
"buffer-from": "^1.0.0",
"source-map": "^0.6.0"
}
},
"node_modules/string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
......@@ -3574,6 +3591,28 @@
"node": ">=6"
}
},
"node_modules/terser": {
"version": "5.38.2",
"resolved": "https://registry.npmmirror.com/terser/-/terser-5.38.2.tgz",
"integrity": "sha512-w8CXxxbFA5zfNsR/i8HZq5bvn18AK0O9jj7hyo1YqkovLxEFa0uP0LCVGZRqiRaKRFxXhELBp8SteeAjEnfeJg==",
"dependencies": {
"@jridgewell/source-map": "^0.3.3",
"acorn": "^8.8.2",
"commander": "^2.20.0",
"source-map-support": "~0.5.20"
},
"bin": {
"terser": "bin/terser"
},
"engines": {
"node": ">=10"
}
},
"node_modules/terser/node_modules/commander": {
"version": "2.20.3",
"resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"node_modules/thenify": {
"version": "3.3.1",
"resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz",
......
......@@ -38,7 +38,7 @@ const app = createApp(App)
app.use(ElementPlus)
initStore(app)
//使用测试按钮Vxonsole
const vConsole = new VConsole();
// const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies;
app.config.globalProperties.asc = api
app.use(router)
......
<template>
<div class="publicContainer ">
<indexHeader/>
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto ">
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto relative">
......@@ -35,7 +35,9 @@
</template>
</van-cell>
-->
<div class="w-full ccFlex absolute bottom-0 "
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250107 1.0.1
</div>
</div>
</div>
......
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve,} from "path";
import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path'; // 关键代码
import Components from 'unplugin-vue-components/vite';
import {VantResolver} from 'unplugin-vue-components/resolvers';
import {resolve,} from "path";
const pathResolve = (dir) => resolve(__dirname, dir);
// https://vitejs.dev/config/
export default defineConfig({
build: {
minify: "terser",
terserOptions: {
compress: {
// 压缩选项
drop_console: true, // 移除所有 console 语句
drop_debugger: true, // 移除所有 debugger 语句
dead_code: true, // 移除未使用的代码
unused: true, // 移除未使用的变量/函数
// 添加其他需要的压缩选项
},
format: {
// 输出格式选项
comments: false, // 移除所有注释
},
},
rollupOptions: {
output: {
manualChunks: {
// 将库的代码单独打包
'vant': ['vant'],
'vue-router': ['vue-router'],
'axios': ['axios'],
// 'vue-officedocx': ['@vue-office/docx'],
/* 'vue-officeexcel': ['@vue-office/excel'],
'vue-officepdf': ['@vue-office/pdf'],*/
}
}
}
},
plugins: [
vue(),
Components({
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或