app.c1f87517.js 35.8 KB
(function(e){function t(t){for(var n,l,s=t[0],i=t[1],c=t[2],u=0,f=[];u<s.length;u++)l=s[u],Object.prototype.hasOwnProperty.call(r,l)&&r[l]&&f.push(r[l][0]),r[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);d&&d(t);while(f.length)f.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var e,t=0;t<o.length;t++){for(var a=o[t],n=!0,l=1;l<a.length;l++){var s=a[l];0!==r[s]&&(n=!1)}n&&(o.splice(t--,1),e=i(i.s=a[0]))}return e}var n={},l={app:0},r={app:0},o=[];function s(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-04f14bc9":"ba6e8439","chunk-06a822a9":"f3695d11","chunk-0bdc9797":"eb0b435e","chunk-11bad47a":"8a22f982","chunk-18897244":"d3bc3a39","chunk-298a83a6":"2a3ab9eb","chunk-2bef0aab":"4e3da125","chunk-54c1f002":"e74a2e2f","chunk-71557763":"8f15bfa1","chunk-7b4dc90b":"7b6f2ae9","chunk-df430d7c":"f7815e28","chunk-eb7b225e":"ab59b479","chunk-fc275d4c":"f23846f8"}[e]+".js"}function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(e){var t=[],a={"chunk-04f14bc9":1,"chunk-06a822a9":1,"chunk-0bdc9797":1,"chunk-11bad47a":1,"chunk-18897244":1,"chunk-298a83a6":1,"chunk-2bef0aab":1,"chunk-54c1f002":1,"chunk-71557763":1,"chunk-7b4dc90b":1,"chunk-df430d7c":1,"chunk-eb7b225e":1,"chunk-fc275d4c":1};l[e]?t.push(l[e]):0!==l[e]&&a[e]&&t.push(l[e]=new Promise((function(t,a){for(var n="static/css/"+({}[e]||e)+"."+{"chunk-04f14bc9":"c8b26647","chunk-06a822a9":"0ae54e4c","chunk-0bdc9797":"4edf220d","chunk-11bad47a":"c74081e0","chunk-18897244":"f01c46d9","chunk-298a83a6":"48629b98","chunk-2bef0aab":"4223353c","chunk-54c1f002":"5ecf556f","chunk-71557763":"a6cdecb3","chunk-7b4dc90b":"bffe9a02","chunk-df430d7c":"e278a03f","chunk-eb7b225e":"1275e42f","chunk-fc275d4c":"87ba5378"}[e]+".css",r=i.p+n,o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var c=o[s],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===n||u===r))return t()}var f=document.getElementsByTagName("style");for(s=0;s<f.length;s++){c=f[s],u=c.getAttribute("data-href");if(u===n||u===r)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||r,o=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=n,delete l[e],d.parentNode.removeChild(d),a(o)},d.href=r;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){l[e]=0})));var n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,a){n=r[e]=[t,a]}));t.push(n[2]=o);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=s(e);var f=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(d);var a=r[e];if(0!==a){if(a){var n=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+l+")",f.name="ChunkLoadError",f.type=n,f.request=l,a[1](f)}r[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var f=0;f<c.length;f++)t(c[f]);var d=u;o.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";a("85ec")},1045:function(e,t,a){"use strict";a("b5a7")},1684:function(e,t,a){"use strict";a("2aff")},"16b1":function(e,t,a){"use strict";a("94a4")},"2aff":function(e,t,a){},4678:function(e,t,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}l.keys=function(){return Object.keys(n)},l.resolve=r,e.exports=l,l.id="4678"},"56d7":function(e,t,a){"use strict";a.r(t);var n=a("2b0e"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},r=[],o=(a("034f"),a("2877")),s={},i=Object(o["a"])(s,l,r,!1,null,null,null),c=i.exports,u=a("a18c"),f=a("5c96"),d=a.n(f),h=(a("0fae"),a("c1df")),m=a.n(h),p=a("bc3a"),b=a.n(p),y=a("6c29"),g={install:function(e){e.prototype.enterfuc=function(){document.onkeydown=function(e){if("Enter"===e.key){if(document.querySelector(".v-modal"))return;setTimeout((function(){var e=document.querySelector(".el-icon-search"),t=document.getElementById("sys-hide");t&&t.click();var a=document.querySelectorAll(".el-select-dropdown");a.forEach((function(e){var t=e.parentElement;if(t&&t.__vue__){var a=t.__vue__;a&&(a.visible=!1)}e.style.display="none"})),e&&e.click("query")}),500)}}}}},v=a("a939"),j=a.n(v),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"whole-herdr"},[e._v(e._s(e.title)+" "+e._s(e.remark))]),a("input",{staticStyle:{display:"none"},attrs:{type:"button",id:"sys-hide",value:"hide-btn"}})])},k=[],w={props:["title","remark"],data:function(){return{}},methods:{},mounted:function(){document.querySelector("#headTitle").innerHTML=this.title},created:function(){this.enterfuc()}},C=w,O=(a("1684"),Object(o["a"])(C,S,k,!1,null,null,null)),x=O.exports,D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-select",{staticStyle:{width:"250px","margin-left":"7px"},attrs:{placeholder:e.title,clearable:""},on:{change:e.librarySelectChanged},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,ref:"childSelectZone",refInFor:!0,attrs:{label:e.label,value:{value:e.value,label:e.label}}})})),1)],1)},E=[],V={props:{title:{type:String,default:"请选择"},ohterParams:{type:String,default:"0"}},data:function(){return{options:[],sysData:{},value:""}},methods:{initData:function(e,t){var a=this,n=e,l=function(l){if(a.ajaxSuccessDataBefore(l)){var r=[];l.data.data.forEach((function(e){r.push({value:e[n.keyValue],label:e[n.keylabel]})})),a.setDataSource(r,e.selectDefaultIndex),null!=t&&t(a.options)}};"".ajax(this,n,l)},ajaxSuccessDataBefore:function(e){return null!=e.data&&0!=e.data.data.length||(this.sysData.tableData=[],this.$alert("操作查询无数据!","提示",{dangerouslyUseHTMLString:!0}),!1)},librarySelectChanged:function(e){var t={selectKey:"",selectLabel:"",selectedIndex:-1,ohterParams:this.ohterParams,dataSource:this.options};""!=e&&(t.selectKey=e.value,t.selectLabel=e.label,t.selectedIndex=this.options.findIndex((function(e){return e.value===t.selectKey}))),this.$emit("selectCallBackEmit",t)},setDataSource:function(e,t){1==t?(this.options=e,this.value=e[0].label,this.librarySelectChanged(e[0])):this.options=e},setEmpty:function(){this.value="",this.options=[],this.librarySelectChanged("")}}},T=V,_=(a("6524"),Object(o["a"])(T,D,E,!1,null,null,null)),A=_.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-select",{staticStyle:{"margin-left":"7px",width:"180px"},attrs:{clearable:"",placeholder:"请选择年"},on:{change:e.yearSelectChanged},model:{value:e.yearSelectValue,callback:function(t){e.yearSelectValue=t},expression:"yearSelectValue"}},e._l(e.yearOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{"margin-left":"7px",width:"180px"},attrs:{clearable:"",placeholder:"请选择月"},on:{change:e.monthSelectChanged},model:{value:e.monthSelectValue,callback:function(t){e.monthSelectValue=t},expression:"monthSelectValue"}},e._l(e.monthOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{"margin-left":"7px",width:"320px"},attrs:{clearable:"",placeholder:"请选择周"},on:{change:e.weekSelectChanged},model:{value:e.weekSelectValue,callback:function(t){e.weekSelectValue=t},expression:"weekSelectValue"}},e._l(e.weekOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},M=[],B={props:["title"],data:function(){return{yearSelectValue:"",yearOptions:[],monthSelectValue:"",monthOptions:[],weekSelectValue:"",weekOptions:[],isCurrentMonth:!1}},methods:{selectCallBackEmit:function(e,t,a){this.$emit("selectCallBackEmit",{selectYear:this.yearSelectValue,selectMonth:this.monthSelectValue,selectWeekStart:e,selectWeekEnd:t,selectWeekValue:a,isCurrentMonth:this.isCurrentMonth})},initYearMonthWeek:function(){var e=(new Date).getFullYear();this.yearOptions=[];for(var t=0;t<10;t++)this.yearOptions.push({value:e-t,label:e-t+"年"});this.yearSelectValue=e,this.yearSelectChanged(e),this.monthSelectValue=this.monthOptions[this.monthOptions.length-1].value,this.monthSelectChanged(this.monthSelectValue),this.weekSelectValue=this.weekOptions[this.weekOptions.length-1].value,this.weekSelectChanged(this.weekSelectValue)},yearSelectChanged:function(e){this.monthOptions=[],this.weekOptions=[],this.monthSelectValue="",this.weekSelectValue="";var t=(new Date).getFullYear(),a=(new Date).getMonth()+1;if(e!=t)for(var n=1;n<=12;n++)this.monthOptions.push({value:n,label:n+"月"});else for(var l=1;l<=a;l++)this.monthOptions.push({value:l,label:l+"月"+(l==a?"(当月)":"")});this.selectCallBackEmit("","","")},monthSelectChanged:function(e){this.weekOptions=[],this.weekSelectValue="";for(var t=this.getWeekData(this.yearSelectValue,e),a=0;a<t.length;a++){var n=new Date(t[a].beginTime),l=new Date(t[a].endTime);if(!(n>new Date)){var r=l.getTime()-n.getTime(),o=r/864e5;6==o?this.weekOptions.push({value:t[a].beginTime,label:t[a].weeknum+"周["+t[a].beginTime+"]-["+t[a].endTime+"]"}):1==t[a].weeknum?this.weekOptions.push({value:t[a].beginTime,label:t[a].weeknum+"周["+this.getFirstDayOfWeek(n)+"]-["+t[a].endTime+"]"}):this.weekOptions.push({value:t[a].beginTime,label:t[a].weeknum+"周["+t[a].beginTime+"]-["+this.getEndDayOfWeek(n)+"]"})}}if(this.isCurrentMonth=!1,""!=e){var s=this.monthOptions.GetArrValueRow("value",e);this.isCurrentMonth=s[0].label.includes("当月")}this.selectCallBackEmit("","","")},weekSelectChanged:function(e){var t="",a="";if(""!=e){var n=this.weekOptions.GetArrValueRow("value",e),l=/\[(.*?)\]/g,r=n[0].label.match(l),o=r.map((function(e){return e.slice(1,-1)}));t=o[0],a=o[1]}this.selectCallBackEmit(t,a,e)},getFirstDayOfWeek:function(e){var t=e.getDay()||7;return this.timestampToTime(new Date(e.getFullYear(),e.getMonth(),e.getDate()+1-t))},getEndDayOfWeek:function(e){var t=e.getTime(),a=e.getDay(),n=864e5,l=t+(7-a)*n;return this.timestampToTime(new Date(l))},timestampToTime:function(e){var t=e.getFullYear()+"-",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",n=(e.getDate()<10?"0"+e.getDate():e.getDate())+"";return t+a+n},getWeekData:function(e,t){var a=e,n=t++;n<10&&(n="0"+n);var l=["星期一","星期二","星期三","星期四","星期五","星期六","星期天"];n>12&&(n-=12,a++);var r=new Date(a,n,1),o=new Date(r.getTime()-864e5).getDate(),s=0==new Date(a+"/"+n+"/1").getDay()?"星期天":l[new Date(a+"/"+n+"/1").getDay()-1],i=0==new Date(a+"/"+n+"/"+o).getDay()?"星期天":l[new Date(a+"/"+n+"/"+o).getDay()-1],c="";"星期一"==s&&(c=7),"星期二"==s&&(c=6),"星期三"==s&&(c=5),"星期四"==s&&(c=4),"星期五"==s&&(c=3),"星期六"==s&&(c=2),"星期天"==s&&(c=1);var u="";"星期一"==i&&(u=1),"星期二"==i&&(u=2),"星期三"==i&&(u=3),"星期四"==i&&(u=4),"星期五"==i&&(u=5),"星期六"==i&&(u=6),"星期天"==i&&(u=7);for(var f=2+(o-u-c)/7,d=[],h=1;h<=f;h++){var m="",p="";if(1==h){m=e+"-"+n+"-01";var b=1+c-1;b<10&&(b="0"+b),p=e+"-"+n+"-"+b}else if(h==f){var y=o-u+1;y<10&&(y="0"+y),m=e+"-"+n+"-"+y,p=e+"-"+n+"-"+(o<10?"0"+o:o)}else m=this.addDate(d[d.length-1].endTime,1),p=this.addDate(d[d.length-1].endTime,7);d.push({weeknum:h,beginTime:m,endTime:p})}return d},addDate:function(e,t){void 0!=t&&""!=t||(t=1);var a=new Date(e);a.setDate(a.getDate()+t);var n=a.getMonth()+1;n<10&&(n="0"+n);var l=a.getDate();return l<10&&(l="0"+l),a.getFullYear()+"-"+n+"-"+l}}},P=B,U=Object(o["a"])(P,L,M,!1,null,null,null),N=U.exports,q=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},$=[],I=a("4a15"),Y={props:{excelColumn:{type:Array,default:function(){return[]}},fileName:{type:String,default:"EXCEL"},ohterParams:{type:String,default:"0"}},data:function(){return{dataColumnAndDataSource:[],excelCos:["B","C","D","E","F","G","H","I","J","k","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],colConf:{A:100},fileNames:this.fileName+(new Date).format("yyyy-MM-dd hh-mm-ss")+".xlsx"}},methods:{handleData:function(e){var t=this.dataColumnAndDataSource.filter((function(e,t){return 0===t}));if(null!=e&&e.length>0)for(var a=0;a<e.length;a++){var n=e[a];t.push(n)}this.dataColumnAndDataSource=t},exportExcel:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;a&&function(){var a=[],l=[];for(var r in t.dataColumnAndDataSource[0])a.push(r);for(var o=function(t){l.push({index:t+1}),a.map((function(a){Object.keys(e[t]).map((function(n){a==n&&(l[t][a]=e[t][n])}))}))},s=0;s<e.length;s++)o(s);t.handleData(l),n=t.dataColumnAndDataSource}();var l=this.fileNames,r=this.colConf;I["a"].exportExcel(n,l,"xlsx",{extend:{"!cols":r}})},setExcelDynamicColumn:function(e){e.push({index:"序号"}),this.dataColumnAndDataSource=e,this.colConf=I["a"].makeColConfig({A:150},200)}},mounted:function(){if(0!=this.excelColumn.length){for(var e={index:"序号"},t={A:100},a=0;a<this.excelColumn.length;a++){var n=this.excelColumn[a];e[n.prop]=n.label;var l=this.excelCos[a];t[l]=n.with}this.dataColumnAndDataSource.push(e),this.colConf=I["a"].makeColConfig(t,200)}else console.log("请传入要导出的EXCEL数据源配置,如果是动态的请忽略!")}},z=Y,F=Object(o["a"])(z,q,$,!1,null,null,null),G=F.exports,W=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableData",attrs:{data:e.sysData.tableData,height:e.tableHeight,"cell-style":e.cellStyle,"show-summary":e.sysCell,"summary-method":e.getSummaries,computeCls:e.computeCls,"element-loading-text":"拼命加载中",stripe:"",border:"","header-cell-style":{background:"#e4e4e4",color:"#000000"}}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"80"}}),e._l(e.column,(function(e,t){return a("el-table-column",{key:t,attrs:{prop:e.prop,label:e.label,width:e.with?e.with:140,fixed:e.fixed}})}))],2)],1)},H=[],J={props:{tableHeight:{type:String,default:"300"},tableColumn:{type:Array,default:function(){return[]}},ohterParams:{type:String,default:"0"},sysCell:{type:Boolean,default:!1},computeCls:{type:Object,default:function(){return{operator:"less",iscolorDiff:!1,numb:0,startColumn:0,func:null}}}},data:function(){return{sysData:{tableData:[]},loading:!1,column:this.tableColumn}},methods:{initData:function(e,t){var a=e,n=this,l=function(a){if(n.loading=!1,n.ajaxSuccessDataBefore(a)){var l=t(a.data.data);l&&n.setDataSource(l,e.isLayout)}else null!=e.emptyCallBackFn&&e.emptyCallBackFn()};this.loading=!0,"".ajax(this,a,l)},ajaxSuccessDataBefore:function(e){return null!=e.data&&0!=e.data.data.length||(this.sysData.tableData=[],this.$alert("业务操作查询无数据!","提示",{dangerouslyUseHTMLString:!0}),!1)},setDataSource:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.sysData.tableData=e,a&&this.$nextTick((function(){t.$refs.tableData.doLayout()}))},setDynamicColumn:function(e){this.column=e},cellStyle:function(e){if(null!=this.computeCls.func){var t={sysCell:this.sysCell,sysData:this.sysData.tableData,column:this.column,val:e.row[e.column.property],columnIndex:e.columnIndex,columnName:e.column.property,dataColumn:e};return this.computeCls.func(t)}if(this.computeCls.iscolorDiff&&e.columnIndex>this.computeCls.startColumn-1){var a=e.row[e.column.property];if(a){if("number"!=typeof a&&(a=parseInt(a.substring(0,a.length-1))),"less"==this.computeCls.operator)return a<this.computeCls.numb?"color:red":void 0;if("greater"==this.computeCls.operator)return a>this.computeCls.numb?"color:red":void 0}}},getSummaries:function(e){var t=e.columns,a=e.data,n=[];return t.forEach((function(e,t){if(0!==t){var l=a.map((function(t){return Number(t[e.property])}));l.every((function(e){return isNaN(e)}))?n[t]="":(n[t]=l.reduce((function(e,t){var a=Number(t);return isNaN(a)?e:e+t}),0),n[t]+="")}else n[t]="合计"})),this.footerCellClassName(),n},footerCellClassName:function(){var e=this;setTimeout((function(){var t=document.querySelectorAll(".el-table__footer-wrapper .cell");console.log(t,"footerDom");for(var a=0,n={index:"合计",EquipmentCode:""},l=0;l<t.length;l++){var r=parseInt(t[l].innerText);t[l].style.cssText="",l>1&&l!=e.column.length&&(n["data"+a++]=t[l].innerHTML),l==e.column.length&&(n["Subtotal"]=t[l].innerHTML),r>0&&l==t.length-1&&(console.log("62516"),t[l].style.cssText="width: 110px;height: 30px;line-height:30px;background-color: yellow;")}e.totalData=n}),500)},totalList:function(){return this.totalData}}},R=J,K=Object(o["a"])(R,W,H,!1,null,null,null),X=K.exports,Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-select",{staticStyle:{"margin-left":"7px",width:"200px"},attrs:{clearable:"",placeholder:"请选择年"},on:{change:e.yearSelectChanged},model:{value:e.yearSelectValue,callback:function(t){e.yearSelectValue=t},expression:"yearSelectValue"}},e._l(e.yearOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{"margin-left":"7px",width:"200px"},attrs:{clearable:"",placeholder:"请选择月"},on:{change:e.monthSelectChanged},model:{value:e.monthSelectValue,callback:function(t){e.monthSelectValue=t},expression:"monthSelectValue"}},e._l(e.monthOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{"margin-left":"7px",width:"200px"},attrs:{clearable:"",placeholder:"请选择日"},on:{change:e.daySelectChanged},model:{value:e.daySelectValue,callback:function(t){e.daySelectValue=t},expression:"daySelectValue"}},e._l(e.dayOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},Q=[],ee={props:["title"],data:function(){return{yearSelectValue:"",yearOptions:[],monthSelectValue:"",monthOptions:[],daySelectValue:"",dayOptions:[],isCurrentMonth:!1}},methods:{selectCallBackEmit:function(){var e=this.getTimeVal();this.$emit("selectCallBackEmit",{startTime:e.startTime,endTime:e.endTime,timeFlag:e.timeFlag,monthOptions:this.monthOptions})},initYearMonthDay:function(){var e=(new Date).getFullYear();this.yearOptions=[];for(var t=0;t<10;t++)this.yearOptions.push({value:e-t,label:e-t+"年"});this.yearSelectValue=e,this.yearSelectChanged(e),this.monthSelectValue=this.monthOptions[this.monthOptions.length-1].value,this.monthSelectChanged()},yearSelectChanged:function(e){this.monthOptions=[],this.dayOptions=[],this.monthSelectValue="",this.daySelectValue="";var t=(new Date).getFullYear(),a=(new Date).getMonth()+1;if(e!=t)for(var n=1;n<=12;n++)this.monthOptions.push({value:n,label:n+"月"});else for(var l=1;l<=a;l++)this.monthOptions.push({value:l,label:l+"月"+(l==a?"(当月)":"")});this.selectCallBackEmit()},monthSelectChanged:function(e){if(this.dayOptions=[],this.daySelectValue="",""!=e)for(var t=this.yearSelectValue+"-"+this.monthSelectValue,a=this.$moment(t,"YYYY-MM").daysInMonth(),n=1;n<=a;n++)this.dayOptions.push({value:n,label:n});this.selectCallBackEmit()},daySelectChanged:function(e){this.selectCallBackEmit()},getTimeVal:function(){var e="month",t="",a="";if(""==this.monthSelectValue)t=this.yearSelectValue,a=this.yearSelectValue,e="year";else if(""!=this.daySelectValue)e="day",t="".concat(this.yearSelectValue,"-").concat(this.monthSelectValue.toString().padStart(2,"0"),"-").concat(this.daySelectValue.toString().padStart(2,"0")),a="".concat(this.yearSelectValue,"-").concat(this.monthSelectValue.toString().padStart(2,"0"),"-").concat(this.daySelectValue.toString().padStart(2,"0"));else{var n=this.getStartAndEndTime();t=n.startTime,a=n.endTime}return{timeFlag:e,startTime:t,endTime:a}},getStartAndEndTime:function(){var e=this.yearSelectValue+"-"+this.monthSelectValue+"-01",t=this.$moment(e).endOf("month").format("YYYY-MM-DD"),a=this.$moment().format("MM");return a==this.monthSelectValue&&(t=this.yearSelectValue+"-"+this.monthSelectValue+"-"+(new Date).format("dd")),{startTime:e,endTime:t}}},mounted:function(){this.initYearMonthDay()}},te=ee,ae=Object(o["a"])(te,Z,Q,!1,null,null,null),ne=ae.exports,le=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-select"},[a("sys-select",{ref:"childSelectProject",attrs:{title:"请选择项目号"},on:{selectCallBackEmit:e.projectCallBackEmit}}),a("sys-select",{ref:"childSelectEq",attrs:{title:"请选择设备"},on:{selectCallBackEmit:e.eqCallBackEmit}})],1)},re=[],oe={props:{defaultSelectIndexProject:{type:Number,default:0},defaultSelectIndexEq:{type:Number,default:0},AGVSelectIndexEq:{type:Boolean,default:!1},ohterParams:{type:String,default:"0"},isAGV:{type:Boolean,default:!1}},data:function(){return{baseUrl:window.baseOnLineOrOff?window.appConfig.baseUlrOnLine:"http://127.0.0.1:10099",params:{nowSelectProject:"",nowSelectEq:""}}},methods:{initProjectSelect:function(){var e={urlSuffix:"".concat(this.baseUrl,"/api/BulletinBoard/GetProjects?agvTag=").concat(this.isAGV),logTitle:"读取项目下拉框数据",isUrlALL:!0,keylabel:"projectName",keyValue:"projectCode",selectDefaultIndex:this.defaultSelectIndexProject};this.$refs.childSelectProject.initData(e)},initEquipmentCodeSelect:function(e){if(""!=e){var t={urlSuffix:"".concat(this.baseUrl,"/api/BulletinBoard/GetEquipmentsByProject?projectCode=").concat(e,"&agvTag=").concat(this.AGVSelectIndexEq),logTitle:"读取设备类型数据",isUrlALL:!0,keylabel:"equipmentName",keyValue:"equipmentCode",selectDefaultIndex:this.defaultSelectIndexEq};this.$refs.childSelectEq.initData(t)}},projectCallBackEmit:function(e){this.params.nowSelectProject=e,this.$refs.childSelectEq.setEmpty(),this.initEquipmentCodeSelect(e.selectKey),this.$emit("selectCallBackEmit",this.params)},eqCallBackEmit:function(e){this.params.nowSelectEq=e,this.$emit("selectCallBackEmit",this.params)}},mounted:function(){this.initProjectSelect()}},se=oe,ie=(a("1045"),Object(o["a"])(se,le,re,!1,null,"61c96a90",null)),ce=ie.exports,ue=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-select"},[a("sys-select",{ref:"childSelectProject",attrs:{title:"请选择项目号"},on:{selectCallBackEmit:e.projectCallBackEmit}})],1)},fe=[];function de(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function he(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?de(Object(a),!0).forEach((function(t){me(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):de(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function me(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var pe={props:{defaultSelectIndex:{type:Number,default:0},isCallBackEmit:{type:Boolean,default:!1},ohterParams:{type:String,default:"0"}},data:function(){return{baseUrl:window.baseOnLineOrOff?window.appConfig.baseUlrOnLine:"http://127.0.0.1:10099",params:{}}},methods:{initProjectSelect:function(){var e=this,t={urlSuffix:"".concat(this.baseUrl,"/api/BulletinBoard/GetProjects"),logTitle:"读取项目下拉框数据",isUrlALL:!0,keylabel:"projectName",keyValue:"projectCode",selectDefaultIndex:this.defaultSelectIndex},a=function(t){e.isCallBackEmit&&e.$emit("selectCallBackEmit",{selectKey:""})};this.$refs.childSelectProject.initData(t,a)},projectCallBackEmit:function(e){this.params=he(he({},this.params),e),this.$emit("selectCallBackEmit",e)}},mounted:function(){this.initProjectSelect()}},be=pe,ye=(a("16b1"),Object(o["a"])(be,ue,fe,!1,null,"65bbe5e8",null)),ge=ye.exports,ve=a("313e"),je=a.n(ve);function Se(e){return Se="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}n["default"].use(d.a),n["default"].prototype.$message=f["Message"],n["default"].prototype.$moment=m.a,n["default"].prototype.$axios=b.a,n["default"].use(y["a"]),n["default"].use(g),n["default"].use(j.a),n["default"].component("sys-head",x),n["default"].component("sys-select",A),n["default"].component("sys-year-month-week",N),n["default"].component("sys-export",G),n["default"].component("sys-table",X),n["default"].component("sys-year-month-day",ne),n["default"].component("bus-project-eq",ce),n["default"].component("bus-project",ge),n["default"].prototype.$echarts=je.a,n["default"].prototype.baseUrlOff="http://172.16.43.155:6001/",n["default"].prototype.baseUrlOnLine=window.appConfig.baseUrlOnLine,n["default"].prototype.baseUrlOnLine2=window.appConfig.baseUrlOnLine2,n["default"].prototype.baseUrlOnLine3=window.appConfig.baseUrlOnLine3,n["default"].prototype.baseUrlOnLine4=window.appConfig.baseUrlOnLine4,n["default"].prototype.baseUrlOnLine5=window.appConfig.baseUrlOnLine5,n["default"].prototype.baseUrlOnLine6=window.appConfig.baseUrlOnLine6;var ke=null;String.prototype.ajaxSuccessActionLoad=function(e){var t=e.data["timestamp"];if(t){var a=m()(t).format("YYYY-MM-DD");a.indexOf("1970")>-1&&(a=m.a.unix(t).format("YYYY-MM-DD")),null==ke&&(ke=document.querySelector("#head_time"));var n=ke.innerText;n!=a&&""!=n&&window.location.reload(),ke.innerText=a}else f["Message"].error({message:"接口API 不存在【timestamp】字段属性,请核实接口字段信息",duration:5e3})},String.prototype.ajaxSuccessBefore=function(e,t){"".Log(e,t);var a=!1,n="";return"undefined"!=typeof e.data.code&&401==e.data.code?(n="Tokens失效请重新登入<br>地址:【".concat(e.config.url,"】"),a=!0):("undefined"!=typeof e.data.code&&200!=e.data.code||500==e.data.Code)&&(n="本页数据请求成功之后存在错误 :【".concat(JSON.stringify(e.data),"】\n               <br>地址【").concat(e.config.url,"】\n               <br>请求方式【").concat(e.config.method,"】\n               <br>参数【").concat(JSON.stringify(e.config.data||{}),"】\n               <br>httpCode【").concat(e.status,"】\n               <br><br>服务器api接口请求数据出现异常,点击任意空白处继续或刷新浏览器,问题频繁出现请联系管理员!"),a=!0),a&&f["Message"].error({message:n,dangerouslyUseHTMLString:!0,duration:5e3}),a},String.prototype.ajaxError=function(e,t){var a=Se(e.code),n="undefined"==a?501:e.response.status,l="本页中存在错误\n               <br>URL【".concat(t,"】\n               <br>httpCode【").concat(n,",").concat(e.message,"】 \n               <br><br>您访问的接口资源可能不存在,或者不支持跨域,请检查Url地址是否正确, 使用postman核实一下,反复出现请联系接口管理员! <br>");if("undefined"!=typeof e.message)return"".Log(e,"JS内部方法异常"),"".Log(l,"JS错误信息"),501==n&&(l+="<h2 style='color: red;>【JS内部错误!】</h2>"),f["Message"].error({message:l,dangerouslyUseHTMLString:!0,duration:5e3}),!1;switch("".Log(e,"ajaxError"),n){case 404:l+="<h2 style='color: red;'>【您访问的接口资源不存在,请检查Url地址是否正确!】</h2>";break;case 500:l+="<h2 style='color: red;>【服务器内存API出现异常,反复出现请联系接口管理员!】</h2>";break;case 0:l+="<h2 style='color: red;'>【您访问的接口不支持跨域或者接口资源不存在,请联系接口管理员!】</h2>";break;default:l+="<h2 style='color: red;>【您访问的接口资源可能不存在,或者不支持跨域,请检查Url地址是否正确,反复出现请联系接口管理员!】</h2>";break}501!=n&&"ECONNABORTED"==e.code&&-1!=e.message.indexOf("timeout")&&(l+="<h2 style='color: red;>【服务器响应超时,反复出现请联系接口管理员优化接口响应时间!】</h2>"),501==n&&(l+="<h2 style='color: red;>【JS内部错误!】</h2>"),"".Log(l,"ajaxError"),f["Message"].error({message:l,dangerouslyUseHTMLString:!0,duration:5e3})},n["default"].config.productionTip=!1,window.baseOnLineOrOff=!0,new n["default"]({router:u["a"],render:function(e){return e(c)}}).$mount("#app")},6524:function(e,t,a){"use strict";a("ccca")},"85ec":function(e,t,a){},"94a4":function(e,t,a){},a18c:function(e,t,a){"use strict";var n=a("2b0e"),l=a("8c4f"),r=a("bc3a"),o=a.n(r);n["default"].prototype.$axios=o.a,n["default"].use(l["a"]);var s=new l["a"]({routes:[{path:"/",redirect:"/list_pc"},{path:"/",component:function(){return a.e("chunk-06a822a9").then(a.bind(null,"c1f7"))},redirect:"/list",children:[{path:"list",component:function(){return a.e("chunk-54c1f002").then(a.bind(null,"e1ca"))},name:"list",meta:{title:"华恒设备云IOT管理平台看板列表"}},{path:"list_pc",component:function(){return a.e("chunk-298a83a6").then(a.bind(null,"341c"))},name:"list_pc",meta:{title:"pc主页"}},{path:"faultFrequency",component:function(){return a.e("chunk-18897244").then(a.bind(null,"d226"))},name:"faultFrequency_pc",meta:{title:"故障报告"}},{path:"properlyRate",component:function(){return a.e("chunk-eb7b225e").then(a.bind(null,"2cd6"))},name:"properlyRate_pc",meta:{title:"妥善率"}},{path:"faultAnalysis",component:function(){return a.e("chunk-0bdc9797").then(a.bind(null,"5661"))},name:"faultAnalysis_pc",meta:{title:"故障分析"}},{path:"faultStatistiMonth",component:function(){return a.e("chunk-04f14bc9").then(a.bind(null,"d3d6"))},name:"faultStatistiMonth_pc",meta:{title:"故障月份对比"}},{path:"faultStatistiWeek",component:function(){return a.e("chunk-fc275d4c").then(a.bind(null,"a130"))},name:"faultStatistiWeek_pc",meta:{title:"故障次数近4周对比"}},{path:"faultStatistiDay",component:function(){return a.e("chunk-7b4dc90b").then(a.bind(null,"c632"))},name:"faultStatistiDay_pc",meta:{title:"故障次数天每小时对比"}},{path:"faultNumberRepeat",component:function(){return a.e("chunk-df430d7c").then(a.bind(null,"f9da"))},name:"faultNumberRepeat_pc",meta:{title:"故障重复次数"}},{path:"anomalyAnalysisEquipmentAGV",component:function(){return a.e("chunk-11bad47a").then(a.bind(null,"c73a"))},name:"anomalyAnalysisEquipmentAGV_pc",meta:{title:"AGV故障分析(点位)"}},{path:"timeDimensionAnomalyAnalysisAGV",component:function(){return a.e("chunk-2bef0aab").then(a.bind(null,"36af"))},name:"timeDimensionAnomalyAnalysisAGV_pc",meta:{title:"AGV故障分析(时间)"}},{path:"tasaAdecuadaAGV",component:function(){return a.e("chunk-71557763").then(a.bind(null,"7c0a"))},name:"tasaAdecuadaAGV_pc",meta:{title:"AGV故障任务妥善率"}}]}]}),i=s.options.routes,c=null;i.length>1&&(c=c=i[1].children);s.afterEach((function(e,t){var a=t.path;if(null!=c)for(var n=0;n<c.length;n++){var l="/"+c[n].path;a==l&&window.location.reload()}})),t["a"]=s},b5a7:function(e,t,a){},ccca:function(e,t,a){}});
//# sourceMappingURL=app.c1f87517.js.map