| 12 |
- import{m as f,a as G,o as ue,W as L,X as p,Y as S,Z as v,$ as R,E as X,a5 as q,a2 as w,a0 as V,u as y,w as Ue,n as je,B as Ve,F as ne,a6 as re,a7 as Ie,l as Ne,_ as De,A as ze,f as Fe,h as ce,a8 as We,a9 as Te,v as qe}from"./vue-74beb2f3.js";import{b as oe,A as Ee,c as de,s as ee,_ as xe,u as ke,a as le,D as Xe,M as ye,E as be,C as Ge,m as $e,n as Je,t as Ye}from"./index-c41036fa.js";import"./index-ac6ac7a7.js";import{u as se}from"./vue-router-d228e26b.js";import{_ as Ze}from"./changePasd-eae18f22.js";import{S as Qe}from"./ShoppingCartOutlined-0584b174.js";import"./ext-519f3630.js";import"./md5-e529c586.js";var Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"};const et=Ke;function Be(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),l.forEach(function(s){tt(a,s,e[s])})}return a}function tt(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var Oe=function(t,e){var l=Be({},t,e.attrs);return f(oe,Be({},l,{icon:et}),null)};Oe.displayName="CameraOutlined";Oe.inheritAttrs=!1;const nt=Oe;var rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z"}}]},name:"column-height",theme:"outlined"};const at=rt;function Me(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),l.forEach(function(s){ot(a,s,e[s])})}return a}function ot(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var Pe=function(t,e){var l=Me({},t,e.attrs);return f(oe,Me({},l,{icon:at}),null)};Pe.displayName="ColumnHeightOutlined";Pe.inheritAttrs=!1;const lt=Pe;var st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const it=st;function Le(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),l.forEach(function(s){ct(a,s,e[s])})}return a}function ct(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var Ce=function(t,e){var l=Le({},t,e.attrs);return f(oe,Le({},l,{icon:it}),null)};Ce.displayName="LogoutOutlined";Ce.inheritAttrs=!1;const ut=Ce;var dt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ft=dt;function Re(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),l.forEach(function(s){mt(a,s,e[s])})}return a}function mt(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var Ae=function(t,e){var l=Re({},t,e.attrs);return f(oe,Re({},l,{icon:ft}),null)};Ae.displayName="MenuFoldOutlined";Ae.inheritAttrs=!1;const pt=Ae;var ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"};const gt=ht;function He(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),l.forEach(function(s){vt(a,s,e[s])})}return a}function vt(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var Se=function(t,e){var l=He({},t,e.attrs);return f(oe,He({},l,{icon:gt}),null)};Se.displayName="VerticalAlignMiddleOutlined";Se.inheritAttrs=!1;const _t=Se,yt=["innerHTML"],bt=w("small",{style:{color:"#888"}},"本次登陆不再提醒",-1),wt={__name:"index",setup(a){const t=G(!1),e=G({pageNumber:1,pageTotal:0}),l=async()=>{if(sessionStorage.getItem("noTips")=="noshow")return t.value=!1;const k=await Ee.requested({id:20221111090904,content:{nocache:!0,pageNumber:e.value.pageNumber,pageSize:1,where:{condition:"",isread:0}}});k.data.length>0&&(t.value=!0,e.value={pageNumber:k.pageNumber,pageTotal:k.pageTotal},T(k.data[0].sat_noticeid))},s=G(""),T=async k=>{const B=await Ee.requested({id:20221101095003,content:{sat_noticeid:k}});s.value=B.data},M=()=>{e.value.pageNumber>1&&(e.value.pageNumber=e.value.pageNumber-1,l())},C=()=>{e.value.pageNumber<e.value.pageTotal&&(e.value.pageNumber=e.value.pageNumber+1,l())},x=()=>{t.value=!1,sessionStorage.setItem("noTips","noshow")};return ue(()=>{l()}),(k,B)=>{const O=L("a-button"),F=L("a-modal");return p(),S("div",null,[f(F,{open:t.value,"onUpdate:open":B[1]||(B[1]=I=>t.value=I),title:null,closable:!1,width:"800px",bodyStyle:{padding:"20px",height:"80vh",overflowY:"scroll"}},{footer:v(()=>[f(O,{key:"back",type:"text",onClick:x},{default:v(()=>[bt]),_:1}),e.value.pageNumber<=1?(p(),R(O,{key:"back",type:"link",onClick:M},{default:v(()=>[X("上一条")]),_:1})):q("",!0),e.value.pageNumber==e.value.pageTotal?(p(),R(O,{key:1,type:"link",onClick:B[0]||(B[0]=I=>t.value=!1)},{default:v(()=>[X("关闭")]),_:1})):(p(),R(O,{key:2,type:"link",disabled:e.value.pageNumber==e.value.pageTotal,onClick:C},{default:v(()=>[X("下一条")]),_:1},8,["disabled"]))]),default:v(()=>[w("h2",null,V(s.value.title),1),w("p",null,[w("small",null,V(s.value.checkdate),1),X(" "),w("small",null,V(s.value.createby),1)]),w("div",{style:{width:"100%"},innerHTML:s.value.content},null,8,yt)]),_:1},8,["open"])])}}};const xt={key:0,class:"loadingModal"},kt=w("div",{class:"sp loader"},[w("svg",{class:"circular",viewBox:"25 25 50 50"},[w("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})])],-1),Ot=[kt],Pt={__name:"index",setup(a){const t=de();let{useloading:e}=ee(t);return(l,s)=>y(e)?(p(),S("div",xt,Ot)):q("",!0)}};var we={},Ct={get exports(){return we},set exports(a){we=a}};(function(a){(function(t){var e=me(),l=pe(),s=he(),T=ge(),M={imagePlaceholder:void 0,cacheBust:!1},C={toSvg:x,toPng:B,toJpeg:O,toBlob:F,toPixelData:k,impl:{fontFaces:s,images:T,util:e,inliner:l,options:{}}};a.exports=C;function x(c,n){return n=n||{},I(n),Promise.resolve(c).then(function(i){return N(i,n.filter,!0)}).then(D).then(fe).then(r).then(function(i){return ie(i,n.width||e.width(c),n.height||e.height(c))});function r(i){return n.bgcolor&&(i.style.backgroundColor=n.bgcolor),n.width&&(i.style.width=n.width+"px"),n.height&&(i.style.height=n.height+"px"),n.style&&Object.keys(n.style).forEach(function(h){i.style[h]=n.style[h]}),i}}function k(c,n){return E(c,n||{}).then(function(r){return r.getContext("2d").getImageData(0,0,e.width(c),e.height(c)).data})}function B(c,n){return E(c,n||{}).then(function(r){return r.toDataURL()})}function O(c,n){return n=n||{},E(c,n).then(function(r){return r.toDataURL("image/jpeg",n.quality||1)})}function F(c,n){return E(c,n||{}).then(e.canvasToBlob)}function I(c){typeof c.imagePlaceholder>"u"?C.impl.options.imagePlaceholder=M.imagePlaceholder:C.impl.options.imagePlaceholder=c.imagePlaceholder,typeof c.cacheBust>"u"?C.impl.options.cacheBust=M.cacheBust:C.impl.options.cacheBust=c.cacheBust}function E(c,n){return x(c,n).then(e.makeImage).then(e.delay(100)).then(function(i){var h=r(c);return h.getContext("2d").drawImage(i,0,0),h});function r(i){var h=document.createElement("canvas");if(h.width=n.width||e.width(i),h.height=n.height||e.height(i),n.bgcolor){var u=h.getContext("2d");u.fillStyle=n.bgcolor,u.fillRect(0,0,h.width,h.height)}return h}}function N(c,n,r){if(!r&&n&&!n(c))return Promise.resolve();return Promise.resolve(c).then(i).then(function(d){return h(c,d,n)}).then(function(d){return u(c,d)});function i(d){return d instanceof HTMLCanvasElement?e.makeImage(d.toDataURL()):d.cloneNode(!1)}function h(d,m,H){var j=d.childNodes;if(j.length===0)return Promise.resolve(m);return $(m,e.asArray(j),H).then(function(){return m});function $(Y,g,A){var z=Promise.resolve();return g.forEach(function(te){z=z.then(function(){return N(te,A)}).then(function(W){W&&Y.appendChild(W)})}),z}}function u(d,m){if(!(m instanceof Element))return m;return Promise.resolve().then(H).then(j).then($).then(Y).then(function(){return m});function H(){g(window.getComputedStyle(d),m.style);function g(A,z){A.cssText?z.cssText=A.cssText:te(A,z);function te(W,Z){e.asArray(W).forEach(function(o){Z.setProperty(o,W.getPropertyValue(o),W.getPropertyPriority(o))})}}}function j(){[":before",":after"].forEach(function(A){g(A)});function g(A){var z=window.getComputedStyle(d,A),te=z.getPropertyValue("content");if(te===""||te==="none")return;var W=e.uid();m.className=m.className+" "+W;var Z=document.createElement("style");Z.appendChild(o(W,A,z)),m.appendChild(Z);function o(_,P,b){var U="."+_+":"+P,J=b.cssText?ve(b):_e(b);return document.createTextNode(U+"{"+J+"}");function ve(Q){var K=Q.getPropertyValue("content");return Q.cssText+" content: "+K+";"}function _e(Q){return e.asArray(Q).map(K).join("; ")+";";function K(ae){return ae+": "+Q.getPropertyValue(ae)+(Q.getPropertyPriority(ae)?" !important":"")}}}}}function $(){d instanceof HTMLTextAreaElement&&(m.innerHTML=d.value),d instanceof HTMLInputElement&&m.setAttribute("value",d.value)}function Y(){m instanceof SVGElement&&(m.setAttribute("xmlns","http://www.w3.org/2000/svg"),m instanceof SVGRectElement&&["width","height"].forEach(function(g){var A=m.getAttribute(g);A&&m.style.setProperty(g,A)}))}}}function D(c){return s.resolveAll().then(function(n){var r=document.createElement("style");return c.appendChild(r),r.appendChild(document.createTextNode(n)),c})}function fe(c){return T.inlineAll(c).then(function(){return c})}function ie(c,n,r){return Promise.resolve(c).then(function(i){return i.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(i)}).then(e.escapeXhtml).then(function(i){return'<foreignObject x="0" y="0" width="100%" height="100%">'+i+"</foreignObject>"}).then(function(i){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+n+'" height="'+r+'">'+i+"</svg>"}).then(function(i){return"data:image/svg+xml;charset=utf-8,"+i})}function me(){return{escape:Y,parseExtension:n,mimeType:r,dataAsUrl:$,isDataUrl:i,canvasToBlob:u,resolveUrl:d,getAndEncode:j,uid:m(),delay:g,asArray:A,escapeXhtml:z,makeImage:H,width:te,height:W};function c(){var o="application/font-woff",_="image/jpeg";return{woff:o,woff2:o,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:_,jpeg:_,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function n(o){var _=/\.([^\.\/]*?)$/g.exec(o);return _?_[1]:""}function r(o){var _=n(o).toLowerCase();return c()[_]||""}function i(o){return o.search(/^(data:)/)!==-1}function h(o){return new Promise(function(_){for(var P=window.atob(o.toDataURL().split(",")[1]),b=P.length,U=new Uint8Array(b),J=0;J<b;J++)U[J]=P.charCodeAt(J);_(new Blob([U],{type:"image/png"}))})}function u(o){return o.toBlob?new Promise(function(_){o.toBlob(_)}):h(o)}function d(o,_){var P=document.implementation.createHTMLDocument(),b=P.createElement("base");P.head.appendChild(b);var U=P.createElement("a");return P.body.appendChild(U),b.href=_,U.href=o,U.href}function m(){var o=0;return function(){return"u"+_()+o++;function _(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function H(o){return new Promise(function(_,P){var b=new Image;b.onload=function(){_(b)},b.onerror=P,b.src=o})}function j(o){var _=3e4;return C.impl.options.cacheBust&&(o+=(/\?/.test(o)?"&":"?")+new Date().getTime()),new Promise(function(P){var b=new XMLHttpRequest;b.onreadystatechange=ve,b.ontimeout=_e,b.responseType="blob",b.timeout=_,b.open("GET",o,!0),b.send();var U;if(C.impl.options.imagePlaceholder){var J=C.impl.options.imagePlaceholder.split(/,/);J&&J[1]&&(U=J[1])}function ve(){if(b.readyState===4){if(b.status!==200){U?P(U):Q("cannot fetch resource: "+o+", status: "+b.status);return}var K=new FileReader;K.onloadend=function(){var ae=K.result.split(/,/)[1];P(ae)},K.readAsDataURL(b.response)}}function _e(){U?P(U):Q("timeout of "+_+"ms occured while fetching resource: "+o)}function Q(K){console.error(K),P("")}})}function $(o,_){return"data:"+_+";base64,"+o}function Y(o){return o.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function g(o){return function(_){return new Promise(function(P){setTimeout(function(){P(_)},o)})}}function A(o){for(var _=[],P=o.length,b=0;b<P;b++)_.push(o[b]);return _}function z(o){return o.replace(/#/g,"%23").replace(/\n/g,"%0A")}function te(o){var _=Z(o,"border-left-width"),P=Z(o,"border-right-width");return o.scrollWidth+_+P}function W(o){var _=Z(o,"border-top-width"),P=Z(o,"border-bottom-width");return o.scrollHeight+_+P}function Z(o,_){var P=window.getComputedStyle(o).getPropertyValue(_);return parseFloat(P.replace("px",""))}}function pe(){var c=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:h,shouldProcess:n,impl:{readUrls:r,inline:i}};function n(u){return u.search(c)!==-1}function r(u){for(var d=[],m;(m=c.exec(u))!==null;)d.push(m[1]);return d.filter(function(H){return!e.isDataUrl(H)})}function i(u,d,m,H){return Promise.resolve(d).then(function($){return m?e.resolveUrl($,m):$}).then(H||e.getAndEncode).then(function($){return e.dataAsUrl($,e.mimeType(d))}).then(function($){return u.replace(j(d),"$1"+$+"$3")});function j($){return new RegExp(`(url\\(['"]?)(`+e.escape($)+`)(['"]?\\))`,"g")}}function h(u,d,m){if(H())return Promise.resolve(u);return Promise.resolve(u).then(r).then(function(j){var $=Promise.resolve(u);return j.forEach(function(Y){$=$.then(function(g){return i(g,Y,d,m)})}),$});function H(){return!n(u)}}}function he(){return{resolveAll:c,impl:{readAll:n}};function c(){return n().then(function(r){return Promise.all(r.map(function(i){return i.resolve()}))}).then(function(r){return r.join(`
- `)})}function n(){return Promise.resolve(e.asArray(document.styleSheets)).then(i).then(r).then(function(u){return u.map(h)});function r(u){return u.filter(function(d){return d.type===CSSRule.FONT_FACE_RULE}).filter(function(d){return l.shouldProcess(d.style.getPropertyValue("src"))})}function i(u){var d=[];return u.forEach(function(m){try{e.asArray(m.cssRules||[]).forEach(d.push.bind(d))}catch(H){console.log("Error while reading CSS rules from "+m.href,H.toString())}}),d}function h(u){return{resolve:function(){var m=(u.parentStyleSheet||{}).href;return l.inlineAll(u.cssText,m)},src:function(){return u.style.getPropertyValue("src")}}}}}function ge(){return{inlineAll:n,impl:{newImage:c}};function c(r){return{inline:i};function i(h){return e.isDataUrl(r.src)?Promise.resolve():Promise.resolve(r.src).then(h||e.getAndEncode).then(function(u){return e.dataAsUrl(u,e.mimeType(r.src))}).then(function(u){return new Promise(function(d,m){r.onload=d,r.onerror=m,r.src=u})})}}function n(r){if(!(r instanceof Element))return Promise.resolve(r);return i(r).then(function(){return r instanceof HTMLImageElement?c(r).inline():Promise.all(e.asArray(r.childNodes).map(function(h){return n(h)}))});function i(h){var u=h.style.getPropertyValue("background");return u?l.inlineAll(u).then(function(d){h.style.setProperty("background",d,h.style.getPropertyPriority("background"))}).then(function(){return h}):Promise.resolve(h)}}}})()})(Ct);const At=we;const St={class:"header sticky"},Tt=["src"],Et={class:"almm"},$t={class:"almm"},Bt=["src"],Mt={class:"almm"},Lt={class:"breathe"},Rt=["onClick"],Ht={__name:"header",setup(a){const t=se(),e=ke();let{historyRoutes:l}=ee(e);const s=le();let{mods:T,actMod:M,nowAccount:C,accountList:x,current:k,app:B}=ee(s);const O=de();let{themeAlgorithm:F,num:I,connection:E}=ee(O);const N=(n,r,i)=>{k.value=n.keyPath},D=n=>{M.value=n},fe=(n,r)=>{t.currentRoute.value.meta.isDetail&&t.go(-1),s.defaultAccount(n,()=>{s.reloadPage(),l.value=[]})},ie=n=>{console.log(n),t.replace({path:n.path,meta:{keepAlive:!1}})},me=()=>{ye.confirm({title:"注意",icon:f(be),content:"确定登出当前账号吗?",okText:"确认",cancelText:"取消",onOk(){t.push({path:"/"}),l.value=[]}})},pe=()=>{let n=document.querySelector("#panel");At.toPng(n).then(r=>{he(r,"file.png")})},he=(n,r)=>{let i=ge(n),h=window.URL.createObjectURL(i),u=document.createElement("a");u.href=h,u.download=r,u.click(),window.URL.revokeObjectURL(h)},ge=n=>{let r=n.split(","),i=r[0].split(":")[1],h=atob(r[1]),u=h.length,d=new Uint8Array(u);for(;u--;)d[u]=h.charCodeAt(u);return new Blob([d],{type:i})},c=n=>n.showplace!=="2";return Ue(()=>t.currentRoute.value,(n,r)=>{je(()=>{k.value=[B.value.systemmoduleid,B.value.systemappid]})}),ue(()=>{O.shopCartNum()}),Ve(()=>{}),(n,r)=>{const i=L("a-menu-item"),h=L("a-sub-menu"),u=L("a-menu"),d=L("a-badge"),m=L("a-button"),H=L("a-tooltip"),j=L("a-menu-divider"),$=L("a-dropdown"),Y=L("a-space");return p(),S("div",St,[f(u,{style:{flex:"1 0 auto"},inlineIndent:10,selectedKeys:y(k),"onUpdate:selectedKeys":r[0]||(r[0]=g=>Ne(k)?k.value=g:k=g),mode:"horizontal","active-text-color":"#000",onClick:N},{default:v(()=>[(p(!0),S(ne,null,re(y(T),g=>(p(),S(ne,{key:g.systemmoduleid},[g.apps.length>1?(p(),R(h,{onClick:A=>D(g),key:g.systemmoduleid},{title:v(()=>[w("div",null,[w("img",{width:"15",height:"15",style:{"margin-top":"-2px","margin-right":"10px"},src:g.iconurl,alt:""},null,8,Tt),w("span",Et,V(g.systemmodulename),1)])]),default:v(()=>[(p(!0),S(ne,null,re(g.apps,A=>(p(),R(i,{style:Ie(c(A)?"":{display:"none"}),key:A.systemappid,onClick:z=>ie(A)},{default:v(()=>[w("span",$t,V(A.meta.title),1)]),_:2},1032,["style","onClick"]))),128))]),_:2},1032,["onClick"])):q("",!0),g.apps.length==1&&g.apps[0].showplace!=="2"?(p(),R(i,{key:g.systemmoduleid,onClick:A=>D(g,ie(g.apps[0]))},{default:v(()=>[w("img",{width:"15",height:"15",style:{"margin-top":"-2px","margin-right":"10px"},src:g.iconurl,alt:""},null,8,Bt),w("span",Mt,V(g.apps[0].meta.title),1)]),_:2},1032,["onClick"])):q("",!0)],64))),128))]),_:1},8,["selectedKeys"]),f(Y,null,{default:v(()=>[w("div",Lt,[f(d,{color:y(E)<1?"red":"#87d068",text:y(E)+"ms"},null,8,["color","text"])]),f(H,null,{title:v(()=>[X("缩放")]),default:v(()=>[f(m,{type:"text",onClick:y(O).changeLayout},{icon:v(()=>[y(F)=="defaultAlgorithm"?(p(),R(y(_t),{key:0})):(p(),R(y(lt),{key:1}))]),_:1},8,["onClick"])]),_:1}),f(H,null,{title:v(()=>[X("快照")]),default:v(()=>[f(m,{type:"text",onClick:pe},{icon:v(()=>[f(y(nt))]),_:1})]),_:1}),y(s).hasAppData("shopCart")?(p(),R(d,{key:0,count:y(I),offset:[-10,5]},{default:v(()=>[f(m,{type:"text",onClick:r[1]||(r[1]=g=>y(t).push("/shopCart"))},{icon:v(()=>[f(y(Qe))]),default:v(()=>[X(" 购物车 ")]),_:1})]),_:1},8,["count"])):q("",!0),f($,null,{overlay:v(()=>[f(u,null,{default:v(()=>[(p(!0),S(ne,null,re(y(x),g=>(p(),R(i,{key:g.index},{default:v(()=>[w("a",{onClick:A=>fe(g,!1)},V(g.sitename+"-"+g.name),9,Rt)]),_:2},1024))),128)),f(j),f(i,null,{default:v(()=>[f(Ze,{btnType:"text"})]),_:1}),f(j),f(i,null,{default:v(()=>[f(y(ut)),w("a",{class:"color-red",onClick:me}," 退出登录")]),_:1})]),_:1})]),default:v(()=>[f(m,{type:"text"},{default:v(()=>[X(V(y(C).sitename)+" ",1),f(y(Xe))]),_:1})]),_:1})]),_:1})])}}},It=xe(Ht,[["__scopeId","data-v-d3f18a23"]]);const Nt={class:"asides"},Dt={key:0,class:"logo-panel flex"},Ut=["src"],jt=["onClick"],Vt={key:0,class:"menu-icon uncollapsed"},zt={class:"aside-menu-icon"},Ft={class:"almm mt-2"},Wt={key:1,class:"collapsed"},qt={class:"aside-menu-icon"},Xt={key:1,class:"showCollapse"},Gt={__name:"aside",setup(a){const t=se(),e=de();let{siteInfo:l}=ee(e);const s=le();let{system:T,mods:M,actSystem:C}=ee(s);const x=G(!0),k=O=>{C.value=O,M.value=O.modules,t.push({path:O.modules[0].apps[0].path})},B=()=>{x.value=!x.value};return ue(()=>{e.siteData(),s.systemAuthData()}),(O,F)=>{const I=L("a-tooltip");return p(),S("div",Nt,[y(l).attinfos?(p(),S("div",Dt,[w("div",null,[(p(!0),S(ne,null,re(y(l).attinfos,E=>(p(),S("div",{key:E.index},[E.usetype==="actionlogo"?(p(),S("img",{key:0,style:{width:"30px",height:"30px"},src:E.url},null,8,Ut)):q("",!0)]))),128))]),x.value?q("",!0):(p(),R(y(pt),{key:0,onClick:B}))])):q("",!0),(p(!0),S(ne,null,re(y(T),E=>(p(),S("div",{class:De(["aside-item",y(C).systemid==E.systemid?"onSystem":""]),key:E.index,onClick:N=>k(E)},[x.value?(p(),S("div",Vt,[w("span",zt,[f(I,{placement:"right"},{title:v(()=>[X(V(E.systemname),1)]),default:v(()=>[w("span",Ft,V(E.systemname.substr(0,1)),1)]),_:2},1024)])])):q("",!0),x.value?q("",!0):(p(),S("span",Wt,[w("span",qt,V(E.systemname.substr(0,1)),1),X(" "+V(E.systemname),1)]))],10,jt))),128)),x.value?(p(),S("div",Xt)):q("",!0)])}}},Jt=xe(Gt,[["__scopeId","data-v-4b3583b5"]]);const Yt={class:"sw-tabs"},Zt={__name:"historyTabs",setup(a){const t=se();le();const e=ke();let{historyRoutes:l,activeKey:s}=ee(e);G([]);const T=C=>{let x=t.currentRoute.value.name;e.delRoute(C.name,x)},M=C=>{s.value=C;let x=l.value.filter(k=>k.name==C);t.push({name:x[0].name,query:x[0].query,meta:{keepAlive:!1}})};return(C,x)=>{const k=L("a-tab-pane"),B=L("a-tabs");return p(),S("div",Yt,[f(B,{activeKey:y(s),"onUpdate:activeKey":x[0]||(x[0]=O=>Ne(s)?s.value=O:s=O),size:"small","hide-add":"",type:"card",tabBarGutter:0,onEdit:T,onChange:M,tabBarStyle:{margin:"0px 0px 0px -1px",border:"none"}},{default:v(()=>[(p(!0),S(ne,null,re(y(l),O=>(p(),R(k,{key:O.name,closable:""},{tab:v(()=>[w("span",null,V(O.meta.title),1),X(" "),f(y(Ge),{onClick:ze(F=>T(O),["stop"])},null,8,["onClick"])]),_:2},1024))),128))]),_:1},8,["activeKey"])])}}},Qt=xe(Zt,[["__scopeId","data-v-a8a7b61b"]]),Kt={__name:"index",setup(a){const t=le(),e=se(),l=ke();let{historyRoutes:s}=ee(l);const T=G(null),M=()=>{const N="ws://61.164.207.46:8900/yos/webSocket/"+sessionStorage.getItem("token");T.value=new WebSocket(N),T.value.onmessage=B,T.value.onopen=C,T.value.onerror=k,T.value.onclose=F},C=()=>{},x=G(0),k=()=>{x.value++,x.value<4?M():$e.error("重连失败,请刷新当前页面!")},B=N=>{const D=JSON.parse(N.data);D.message.title=="refresh"?ye.info({title:"版本更新",icon:f(be),content:ce("div",{},[ce("p",D.message.message)]),okText:"确认更新",centered:!0,onOk(){e.go(0)}}):D.message.type=="pay"?D.message.text=="success"?ye.info({title:"支付成功!",icon:f(be),content:ce("div",{},[ce("p",D.message.title+"!确认后重新进入系统!")]),okText:"确认",centered:!0,onOk(){s.value=[],e.push({path:"/dataDashboard"}),setTimeout(()=>{t.defaultAccount(null,()=>{t.reloadPage()})},1e3)}}):$e.error(D.message.text):Je.info({message:D.message.type,description:D.message.text,onClick:()=>{}})},O=N=>{T.value.send(JSON.stringify(N))},F=N=>{console.log("断开连接",N),M()},I=G(null),E=()=>{I.value=setInterval(()=>{O("isalive")},1e4)};return ue(()=>{M(),setTimeout(()=>{E()},1e3)}),Fe(()=>{clearInterval(I.value)}),(N,D)=>(p(),S("div"))}};const en={class:"flex"},tn={key:1,class:"flex-loading"},nn=w("div",{style:{"text-align":"center"}},[w("div",{class:"loading"}),w("p",{class:"almm",style:{"margin-top":"40px",color:"rgb(100, 108, 255)"}},"站点切换中,正在加载站点配置...")],-1),rn=[nn],mn={__name:"index",setup(a){const{useToken:t}=Ye;t();const e=se();de();const l=le();let{isRefresh:s}=ee(l);G(0);const T=G(),M=G(""),C=x=>{T.value,x.target.scrollTop>50?M.value="historyTabs":M.value=""};return(x,k)=>{const B=L("router-view"),O=L("a-layout-content"),F=L("a-layout");return p(),S(ne,null,[y(s)?(p(),R(F,{key:0,class:"layout"},{default:v(()=>[f(Kt),f(wt),w("div",en,[f(Jt,{style:{flex:"0 0 auto"}}),f(O,{ref_key:"scrollContainer",ref:T,onScroll:C,class:"content-height"},{default:v(()=>[f(It,{style:{width:"100%",margin:"10px 0"}}),f(Qt,{class:De(M.value)},null,8,["class"]),w("div",{id:"panel",style:Ie({padding:"0px",minHeight:"calc(100vh - 146px)"})},[f(B,{ref:"keepAlive"},{default:v(({Component:I})=>[y(e).currentRoute.value.meta.keepAlive?(p(),R(We,{key:0,exclude:["productmagDetail"],max:5},[(p(),R(Te(I),{key:y(e).currentRoute.value.fullPath}))],1024)):(p(),R(qe,{key:1,name:"fade",mode:"out-in"},{default:v(()=>[(p(),R(Te(I),{key:y(e).currentRoute.value.fullPath}))]),_:2},1024))]),_:1},512)],4)]),_:1},512)])]),_:1})):(p(),S("div",tn,rn)),f(Pt)],64)}}};export{mn as default};
|