index.e2e9e653.js 22 KB

1
  1. import{d as e,r as t,o as s,c as a,C as n,J as o,E as i,n as l,a as r,u as c,b as d,e as m,f as p,g as u,h,i as g,w as _,j as f,t as y,p as w,k as L,l as x,m as A,q as v,s as E,F as b,v as T,x as O,y as I,z as S,A as P,B as k,D as R,G as j,H as C,I as D,K as F,L as V,T as z,M,N as q,O as U,P as W,Q as H,R as N,S as Z,U as B,V as Y,W as K}from"./vendor.fceb02b1.js";var Q=e({__name:"App",setup(e){const n={data:{chineseName:"管理员",enabled:0,id:"715588739656581120",identity:"admin",userName:"admin"}};return sessionStorage.setItem("ms_username",n.data.userName),sessionStorage.setItem("ms_chinesename",n.data.chineseName),sessionStorage.setItem("ms_id",n.data.id),sessionStorage.setItem("token",n.token),sessionStorage.setItem("identity",n.data.identity),(e,n)=>{const o=t("router-view");return s(),a(o)}}});let X;const G={},J=function(e,t){if(!t)return e();if(void 0===X){const e=document.createElement("link").relList;X=e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(t.map((e=>{if(e in G)return;G[e]=!0;const t=e.endsWith(".css"),s=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${s}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":X,t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",t)})):void 0}))).then((()=>e()))},ee={baseURL:"http://192.168.1.67:8021",baseURL1:"http://192.168.1.67:8133"},te=ee.baseURL;var se=null;const ae=n.create({baseURL:te,timeout:3e4,withCredentials:!1,headers:{"Content-Type":"application/json"},transformResponse:[function(e){return o({storeAsString:!0}).parse(e)}],showLoading:{statu:!0,text:"加载中..."}});ae.interceptors.request.use((e=>(e.showLoading.statu&&(se=i.service({lock:!0,text:e.showLoading.text,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.3)"})),e.headers.common.Authorization="Basic cm9vdDp0YW9zZGF0YQ==",e)),(e=>Promise.reject(e))),ae.interceptors.response.use((e=>{l((async()=>{se&&await se.close()}));const t=e.data;if(console.warn(t),401!==e.status&&4001!==e.status&&521!=e.status)return 200===e.status&&t.code&&200!==t.code&&r.error(t.msg),e.data;sessionStorage.clear(),window.location.href="/",r.error(t.msg)}),(e=>(l((async()=>{se&&await se.close()})),-1!=e.message.indexOf("timeout")||"Network Error"==e.message||e.response.data&&r.error(e.response.statusText),Promise.reject(e))));const ne=e=>(w("data-v-63ff6a46"),e=e(),L(),e),oe={class:"header"},ie={class:"flex items-center"},le=ne((()=>h("div",{class:"logo"},"电场数据表",-1))),re={class:"header-right"},ce={class:"header-user-con"},de={class:"user-name"},me={class:"el-dropdown-link"},pe={class:"el-dropdown-link"},ue={class:"el-dropdown-link"},he={class:"nb"},ge=ne((()=>h("a",{href:"http://10.155.32.4:8070/zhfx/#/others"},"返回",-1))),_e={__name:"Header",setup(e){const n=c(),o=d({}),i=async()=>{const e=await ae.get("/meterinfoAll?id=-1");console.log("头",e),o.value={rfdl:e.data.zdlmap.rfdl.toFixed(2),yfdl:e.data.zdlmap.yfdl.toFixed(2),nfdl:e.data.zdlmap.nfdl.toFixed(2)}},l=m((()=>n.state.collapse)),r=()=>{n.commit("hadndleCollapse",!l.value)};return setInterval((()=>{i(),console.log("刷新")}),36e5),p((()=>{document.body.clientWidth<1500&&n.commit("hadndleCollapse",!0),i()})),(e,n)=>{const i=t("Fold"),c=x,d=t("Expand"),m=A;return s(),u("div",oe,[h("div",ie,[h("div",{class:"collapse-btn h-[55px] flex items-center justify-center",onClick:r},[g(l)?(s(),a(c,{key:1},{default:_((()=>[f(d)])),_:1})):(s(),a(c,{key:0},{default:_((()=>[f(i)])),_:1}))]),le]),h("div",re,[h("div",ce,[h("div",de,[h("span",me," 所有风场总发电量:日发电量 : "+y(o.value.rfdl)+" 万KWh ",1),h("span",pe," 月发电量 : "+y(o.value.yfdl)+" 万KWh ",1),h("span",ue," 年发电量 : "+y(o.value.nfdl)+" 万KWh ",1)]),h("span",he,[f(m,{type:"primary"},{default:_((()=>[ge])),_:1})])])])])}},__scopeId:"data-v-63ff6a46"};const fe={class:"sidebar"},ye={__name:"Sidebar",setup(e){const t=sessionStorage.getItem("identity"),n=v(),o=c(),i=E();let l=m((()=>n.path.replace("/",""))),r=m((()=>o.state.collapse));return(e,n)=>{const o=P,c=k,d=R;return s(),u("div",fe,[f(d,{class:"sidebar-el-menu","default-active":g(l),collapse:g(r),"background-color":"#324157","text-color":"#bfcbd9","active-text-color":"#20a0ff","unique-opened":"",router:""},{default:_((()=>[(s(!0),u(b,null,T(g(i).options.routes[1].children,(e=>(s(),u(b,null,[e.children?(s(),u(b,{key:0},[e.isshow!=g(t)&&e.isshow?S("",!0):(s(),a(c,{index:e.path,key:e.name},{title:_((()=>[h("i",{class:O(e.icon),style:{"margin-right":"10px"}},null,2),h("span",null,y(e.meta.title),1)])),default:_((()=>[(s(!0),u(b,null,T(e.children,(e=>(s(),a(o,{key:e.name,index:e.path},{default:_((()=>[I(y(e.meta.title),1)])),_:2},1032,["index"])))),128))])),_:2},1032,["index"]))],64)):(s(),u(b,{key:1},[e.isshow!=g(t)&&e.isshow?S("",!0):(s(),a(o,{index:e.path,key:e.path},{title:_((()=>[I(y(e.meta.title),1)])),default:_((()=>[h("i",{class:O(e.icon),style:{"margin-right":"10px"}},null,2)])),_:2},1032,["index"]))],64))],64)))),256))])),_:1},8,["default-active","collapse"])])}},__scopeId:"data-v-584d7217"};const we={key:0,class:"tags"},Le=["onClick"],xe=[I("x "),h("i",{class:"el-icon-close"},null,-1)],Ae={class:"tags-close-box"},ve=I(" 标签操作 "),Ee=h("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),be=I("关闭其他"),Te=I("关闭所有"),Oe={__name:"Tags",setup(e){const a=E(),n=v(),o=c();let i=m((()=>o.state.tagsList)),l=m((()=>i.value.length>0));const r=e=>{const t=i.value.some((t=>t.path===e.fullPath));console.warn(t),t||(i.value.length>=8&&o.commit("delTagsItem",{index:0}),o.commit("setTagsItem",{name:e.name,title:e.meta.title,path:e.fullPath}))},d=e=>{"other"===e?(()=>{const e=i.value.filter((e=>e.path===n.fullPath));o.commit("closeTagsOther",e)})():(o.commit("clearTags"),a.push("/"))};return p((()=>{r(n)})),j((()=>n.path),((e,t)=>{r(n)})),(e,r)=>{const c=t("router-link"),m=A,p=C,w=D,L=F;return g(l)?(s(),u("div",we,[h("ul",null,[(s(!0),u(b,null,T(g(i),((e,t)=>{return s(),u("li",{class:O(["tags-li",{active:(l=e.path,l===n.fullPath)}]),key:t},[f(c,{to:e.path,class:"tags-li-title"},{default:_((()=>[I(y(e.title),1)])),_:2},1032,["to"]),h("span",{class:"tags-li-icon",onClick:e=>(e=>{const t=i.value[e];o.commit("delTagsItem",{index:e});const s=i.value[e]?i.value[e]:i.value[e-1];s?t.path===n.fullPath&&a.push(s.path):a.push("/")})(t)},xe,8,Le)],2);var l})),128))]),h("div",Ae,[f(L,{onCommand:d},{dropdown:_((()=>[f(w,{size:"small"},{default:_((()=>[f(p,{command:"other"},{default:_((()=>[be])),_:1}),f(p,{command:"all"},{default:_((()=>[Te])),_:1})])),_:1})])),default:_((()=>[f(m,{size:"mini",type:"primary"},{default:_((()=>[ve,Ee])),_:1})])),_:1})])])):S("",!0)}}},Ie={class:"about"},Se={class:"content"},Pe=[{path:"/",redirect:"/dataFilter/prepare"},{path:"/",name:"Home",redirect:"/dataFilter/prepare",component:{__name:"Home",setup(e){const n=c(),o=m((()=>n.state.tagsList.map((e=>e.name)))),i=m((()=>n.state.collapse));return V((async()=>{})),(e,n)=>{const l=t("router-view");return s(),u("div",Ie,[f(g(W),{locale:g(U)},{default:_((()=>[f(_e),f(ye),h("div",{class:O(["content-box",{"content-collapse":g(i)}])},[f(Oe),h("div",Se,[f(l,null,{default:_((({Component:e})=>[f(z,{name:"move",mode:"out-in"},{default:_((()=>[(s(),a(q,{include:g(o)},[(s(),a(M(e)))],1032,["include"]))])),_:2},1024)])),_:1})])],2)])),_:1},8,["locale"])])}}},children:[{icon:"iconfont iconbaojingpeizhi",path:"/dataFilter",name:"dataFilter",redirect:"/dataFilter/prepare",meta:{title:"日发电量"},component:()=>J((()=>import("./routerViewss.9568fd3a.js")),["./assets/routerViewss.9568fd3a.js","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"]),children:[{icon:"el-icon-s-home",path:"/dataFilter/lightPrepare",name:"dataFilterLightPrepare",meta:{title:"场站指标(日)"},component:()=>J((()=>import("./index.1f0a7426.js")),["./assets/index.1f0a7426.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/dataFilter/prepare",name:"dataFilterPrepare",meta:{title:"底码数据(日)"},component:()=>J((()=>import("./index.0b277730.js")),["./assets/index.0b277730.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/dataFilter/process",name:"dataFilterProcess",meta:{title:"风机发电量(日)"},component:()=>J((()=>import("./index.7cfc336f.js")),["./assets/index.7cfc336f.js","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/dataFilter/jdxl",name:"jdxl",meta:{title:"每小时集电线路发电量"},component:()=>J((()=>import("./index.c24c74ad.js")),["./assets/index.c24c74ad.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])}]},{icon:"iconfont iconbaojingpeizhi",path:"/dataAnalysis",name:"dataAnalysis",redirect:"/dataAnalysis/combine",meta:{title:"月发电量"},component:()=>J((()=>import("./routerViewss.9568fd3a.js")),["./assets/routerViewss.9568fd3a.js","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"]),children:[{icon:"el-icon-s-home",path:"/dataAnalysis/combine",name:"dataAnalysis",meta:{title:"场站指标(月)"},component:()=>J((()=>import("./index.4876d5e5.js")),["./assets/index.4876d5e5.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/dataAnalysis/rateAnalysis",name:"dataAnalysisRateAnalysis",meta:{title:"底码数据(月)"},component:()=>J((()=>import("./index.9b68f8ec.js")),["./assets/index.9b68f8ec.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/dataAnalysis/lineAnalysis",name:"dataAnalysislineAnalysis",meta:{title:"风机发电量(月)"},component:()=>J((()=>import("./index.6dc0a906.js")),["./assets/index.6dc0a906.js","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])}]},{icon:"iconfont iconbaojingpeizhi",path:"/lightAnalysis",name:"lightAnalysis",redirect:"/lightAnalysis/glAnalysis",meta:{title:"年发电量"},component:()=>J((()=>import("./routerViewss.9568fd3a.js")),["./assets/routerViewss.9568fd3a.js","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"]),children:[{icon:"el-icon-s-home",path:"/lightAnalysis/glAnalysis",name:"glAnalysis",meta:{title:"场站指标(年)"},component:()=>J((()=>import("./index.4b85f22b.js")),["./assets/index.4b85f22b.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/lightAnalysis/glHotAnalysis",name:"glHotAnalysis",meta:{title:"底码数据(年)"},component:()=>J((()=>import("./index.c145f70b.js")),["./assets/index.c145f70b.js","./assets/el-col.e2ee470d.css","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/lightAnalysis/look",name:"look",meta:{title:"风机发电量(年)"},component:()=>J((()=>import("./index.a8ea63e5.js")),["./assets/index.a8ea63e5.js","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])}]},{icon:"iconfont iconbaojingpeizhi",path:"/ssdl",name:"ssdl",redirect:"/ssdl/fjfdss",meta:{title:"损失电量"},component:()=>J((()=>import("./routerViewss.9568fd3a.js")),["./assets/routerViewss.9568fd3a.js","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"]),children:[{icon:"el-icon-s-home",path:"/ssdl/fjfdss",name:"fjfdss",meta:{title:"风机发电损失电量"},component:()=>J((()=>import("./index.a8d5a12c.js")),["./assets/index.a8d5a12c.js","./assets/el-pagination.ef4262a5.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])},{icon:"el-icon-s-home",path:"/ssdl/glHotAnalysis1",name:"glHotAnalysis1",meta:{title:"损失电量标记重算"},component:()=>J((()=>import("./index.f15972fc.js")),["./assets/index.f15972fc.js","./assets/index.3f87a603.css","./assets/el-form-item.34dfef8a.css","./assets/vendor.fceb02b1.js","./assets/vendor.8ddfd94e.css"])}]}]}],ke=H({history:N(""),routes:Pe});ke.beforeEach(((e,t,s)=>{document.title=`${e.meta.title} `,s()}));var Re=Z({state:{tagsList:[],collapse:!0,stationList:[],stationListAll:[],warningList:[],warnInterval:null,enableWarn:!1,warnTime:0,stepArray:[{title:"方案",dec:"方案选择",icon:"el-icon-edit-outline",isPass:!1},{title:"环境",dec:"环境配置",icon:"el-icon-s-promotion",isPass:!1},{title:"数据",dec:"获取数据",icon:"el-icon-upload",isPass:!1},{title:"训练",dec:"训练模型",icon:"el-icon-cpu",isPass:!1},{title:"评估",dec:"评估模型",icon:"el-icon-s-opportunity",isPass:!1},{title:"模型",dec:"保存模型",icon:"el-icon-receiving",isPass:!1}],setpIndex:0,setpOptions1:{id:"",project:{}},setpOptions2:{id:"",host:"",configName:"",diskSize:"",gpu:[],totalMemory:""},setpOptions3:{id:"0",file:null,sqlServer:"casefault",sqlWord:"",useSourceData:!0,forecastRow:"",inputRow:[],points:[],faults:[],acc:""},setpOptions4:{trainBtnIcon:"",trainBtnTitle:"开始训练",trainSurplusIcon:"",trainSurplusTime:null,trainBtnDisabled:!1,trainStatus:"",modelname:""},setpOptions5:{exampleData:[],showExampleResult:!1,result:""},setpOptions6:{data:{},changZhan:"",modelName:""},progressArray:[]},mutations:{delTagsItem(e,t){e.tagsList.splice(t.index,1)},setTagsItem(e,t){e.tagsList.push(t)},clearTags(e){e.tagsList=[]},closeTagsOther(e,t){e.tagsList=t},closeCurrentTag(e,t){for(let s=0,a=e.tagsList.length;s<a;s++){if(e.tagsList[s].path===t.$route.fullPath){s<a-1?t.$router.push(e.tagsList[s+1].path):s>0?t.$router.push(e.tagsList[s-1].path):t.$router.push("/"),e.tagsList.splice(s,1);break}}},hadndleCollapse(e,t){e.collapse=t},setStationList(e,t){e.stationList=t},setStationListAll(e,t){e.stationListAll=t},setWarning(e,t){e.warningList.unshift(t)},setWarnInterval(e,t){e.warnInterval=t},setEnableWarn(e,t){e.enableWarn=t},setWarnTime(e,t){e.warnTime=t},changeStepArray(e,t){e.stepArray=t},changeSetpIndex(e,t){e.setpIndex=t},setOpt1(e,t){e.setpOptions1=t},setOpt2(e,t){e.setpOptions2=t},setOpt3(e,t){e.setpOptions3=t},setOpt4(e,t){e.setpOptions4=t},setOpt5(e,t){e.setpOptions5=t},setOpt6(e,t){e.setpOptions6=t},setProgressArray(e,t){e.progressArray=t}},actions:{actionsWarning(e,t){e.commit("setWarning",t)},actionsStationList(e,t){e.commit("setStationList",t)},actionsStationListAll(e,t){e.commit("setStationListAll",t)},actionsWarnInterval(e,t){e.commit("setWarnInterval",t)},changeStepArray(){context.commit("changeStepArray",newData)},changeSetpIndex(e,t){e.commit("changeSetpIndex",t)},setOpt1(e,t){e.commit("setOpt1",t)},setOpt2(e,t){e.commit("setOpt2",t)},setOpt3(e,t){e.commit("setOpt3",t)},setOpt4(e,t){e.commit("setOpt4",t)},setOpt5(e,t){e.commit("setOpt5",t)},setOpt6(e,t){e.commit("setOpt6",t)},setProgressArray(e,t){e.commit("setProgressArray",t)}},modules:{},getters:{isStation:e=>1==e.stationList.length}});let je=null;var Ce={showMsg(e){r({showClose:(1==e.showClose||0==e.showClose)&&e.showClose,center:1!=e.center&&0!=e.center||e.center,message:e.msg,type:e.type||""===e.type?e.type:"error"})},showLoading(e){let t=e||{};je=i.service({target:t.target||"body",body:(1==t.body||0==t.body)&&t.body,fullscreen:1!=t.fullscreen&&0!=t.fullscreen||t.fullscreen,lock:(1==t.lock||0==t.lock)&&t.lock,text:t.text||"请稍等...",background:"rgba(0,0,0,.5)"})},getCurrentData(e){if(window.jQuery&&e instanceof jQuery)return e[0].dataset;if(("object"==typeof e?function(e){return e instanceof HTMLElement}:function(e){return e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName})(e))return e.dataset;return document.querySelector(e).dataset},closeLoading(){null==je||je.close()},deepCopy:e=>JSON.parse(JSON.stringify(e)),getTreeDeepArr(e,t){let s=[],a=[],n=0;return function t(o,i){for(var l=0;l<o.length;l++){if(n=i,s[i]=o[l].id,o[l].id==e){a=s.slice(0,i+1);break}o[l].children&&(n++,t(o[l].children,n))}return a}(t,n)},getType:e=>Object.prototype.toString.call(e).slice(8,Object.prototype.toString.call(e).length-1).toLowerCase(),scrollTo(e){e&&e.el?$(e.el)[0]&&$(e.el)[0].scrollHeight>(window.innerHeight||document.documentElement.clientHeight)?$(e.el).animate({scrollTop:e.scrollTop||0,scrollLeft:e.scrollLeft||0},e.speed||200,(()=>{e.success&&e.success()})):e.success&&e.success():this.showMsg({msg:"scrollTo() 方法需要传入 el 属性"})},requestFullscreen(){const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},replaceColor(e){if(!e)return"";let t=e.replace(/#|rgb|\(|\)|\|;|\s+/g,"");if(-1===t.indexOf(",")){let e=[];for(let s=0;s<t.length;s++)(s+1)%2||e.push(parseInt(t[s-1]+t[s],16));return"rgb("+e.toString()+")"}{let e=t.split(","),s="";return e.forEach((e=>{s+=parseInt(e).toString(16)})),"#"+s}},regs:{isPhone:/^1(3|4|5|6|7|8|9)\d{9}$/,isIdentityCard:/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,isMail:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,isNumber:/^(-?\d+)(\.\d+)?$/},elCkeck:{isNumber(e,t,s){""===t?s(new Error("该值不可为空")):/^(-?\d+)(\.\d+)?$/.test(t)?s():s(new Error("输入有误,仅支持输入数字"))},validatePass(e,t,s){let a=0;t.length>=8?(/\d/.test(t)&&a++,/[a-z]/.test(t)&&a++,/[A-Z]/.test(t)&&a++,/.*[!@*#$\-_()+=&¥^<>~`].*/.test(t)&&a++,a<3?s(new Error("密码至少包含数字、小写字母、大写字母、特殊字符中的三种")):s()):s(new Error("密码必须至少8位"))}}};n.defaults.withCredentials=!0;var De={requestData:function(e){return new Promise(((t,s)=>{e.showLoading&&Ce.showLoading();let a=e.headers||{"Content-Type":"application/x-www-form-urlencoded","Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":"true"};(1!=e.isMust&&0!=e.isMust||e.isMust)&&(a.authToken=localStorage.getItem("authToken"));const o=n.create({headers:a,withCredentials:!0,crossDomain:!0,baseURL:e.baseURL||window.__MODE__.baseURL||"/api/",timeout:e.timeout||3e4});o.interceptors.request.use((e=>e),(e=>Promise.reject(e)));let i=new URLSearchParams;for(let n in e.data||{})i.append(n,e.data[n]);o({url:e.subUrl,method:e.method||"GET",params:i}).then((s=>{e.showLoading&&Ce.closeLoading(),2002===s.data.code?(localStorage.removeItem("authToken"),Ce.showMsg({msg:s.data&&s.data.msg||"请求出错["+s.data.code+"]"})):200===s.data.code||s.data.length>=0||s.data.records?(e.success&&e.success(s.data),t(s)):(e.showLoading&&Ce.closeLoading(),Ce.showMsg({msg:s.data.msg||"请求出错["+s.data.code+"]"}))})).catch((t=>{e.showLoading&&Ce.closeLoading(),e.fail&&e.fail(t),s(t)}))}))},requestPost:function(e){return new Promise(((t,s)=>{e.showLoading&&Ce.showLoading(),n({method:e.method||"POST",url:(e.baseURL||window.__MODE__.baseURL)+e.subUrl,timeout:e.timeout||3e4,data:e.data,header:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":"true"}}).then((s=>{e.showLoading&&Ce.closeLoading(),2002===s.data.code?(localStorage.removeItem("authToken"),Ce.showMsg({msg:s.data&&s.data.msg||"请求出错["+s.data.code+"]"}),window.__STATICVUE__.$router.replace("/login")):200===s.data.code||s.data.length>=0||s.data.records?(e.success&&e.success(s.data),t(s)):(Ce.closeLoading(),Ce.showMsg({msg:s.data&&s.data.msg||"请求出错["+s.data.code+"]"}))})).catch((t=>{e.showLoading&&Ce.closeLoading(),e.fail&&e.fail(t),s(t)}))}))}};Date.prototype.formatDate=function(e){let t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(let s in t)new RegExp("("+s+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[s]:("00"+t[s]).substr((""+t[s]).length)));return e};const Fe=B(Q);for(const[$,$e]of Object.entries(Y))Fe.component($,$e);const Ve=()=>{r.error("5秒内请勿重复点击")},ze=(e,t)=>{let s=null;e.removeEventListener("click",Ve),e.addEventListener("click",(()=>{t.value(),e.addEventListener("click",Ve,!1),s=setTimeout((()=>{clearTimeout(s),ze(e,t)}),Number(t.arg)||5e3)}),{once:!0})};Fe.directive("prevdbclick",{mounted(e,t){ze(e,t)}}),window.__STATICVUE__=Fe,window.__STATICVUE__.use(ke).use(Re).use((e=>{e.directive("dialogdrag",{mounted(e){const t=document.documentElement.clientWidth,s=document.documentElement.clientHeight;let a={x:t/4,y:15*s/100};const n=e.firstElementChild.firstElementChild;n.style.marginTop=a.y+"px",n.style.marginLeft=a.x+"px";let o={x:0,y:0},i={x:0,y:0};document.onmousedown=e=>{"15vh"===n.style.marginTop&&(a.y=15*s/100),o.x=e.clientX,o.y=e.clientY,n.style.cursor="move"},document.onmousemove=e=>{0!==o.x&&(i.x=e.clientX-o.x,i.y=e.clientY-o.y,n.style.marginLeft=a.x+i.x+"px",n.style.marginTop=a.y+i.y+"px")},document.onmouseup=e=>{i.x=e.clientX-o.x,i.y=e.clientY-o.y,a.x+=i.x,a.y+=i.y,n.style.cursor="",n.style.marginLeft=a.x+"px",n.style.marginTop=a.y+"px",o.x=0}}})})).use(K,{size:"small"}),window.__STATICVUE__.config.globalProperties.API=De,window.__STATICVUE__.config.globalProperties.BASE=Ce,window.__STATICVUE__.mount("#app");export{ee as c,ae as s};