1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
webpackJsonp([177],{MZjC:function(t,s){},THhw:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=a("Dd8w"),e=a.n(i),l=(a("XLwt"),a("NYxO"));window.addEventListener("resize",function(){location.reload()});var d={name:"kanban",data:function(){return{dataList10:[],left_pagesize:0,right_pagesize:0,date:"",time:"",weekday:"",pageno7:1,totalPages7:1,dataList7:[],pageno8:1,totalPages8:1,dataList8:[],pageno9:1,pageno10:1,totalPages9:1,totalPages10:1,flag:!1,showLogo:!1,logoUrlDefault:a("7Otq"),logoUrlSubei:a("8Rg0"),dataList9:[],interval_time:"120000"}},components:{},computed:e()({},Object(l.e)({logoUrl:function(t){return t.common.logoUrl},logoUrlFlag:function(t){return t.common.logoUrlFlag}})),mounted:function(){document.documentElement.clientWidth;var t=document.documentElement.clientHeight,s=(t-80-60)/2-34-39;this.left_pagesize=Math.floor(s/39);var a=(t-80-60)/2-34-39;this.right_pagesize=Math.floor(a/39),this.getLogo(),this.getTime();var i=this;setInterval(function(){i.getTime()},1e3),this.setChart7()},methods:{isDanger:function(t,s,a){return 0==a?"":1==a?"td-warn":2==a?"td-err":void 0},getLogo:function(){var t=this;this.$api.fileAPI.getLogo().then(function(s){0==s.code&&"sbly"==s.logoUrl&&(t.flag=!0),t.showLogo=!0})},setChart7:function(){var t=this;this.$api.yxkAPI.yxkPost("/apis/mdh/ahgl/fszxjckb",{}).then(function(s){var a=t;if(setTimeout(function(){a.setChart7()},a.interval_time),0==s.code){var i=s.data,e=[];i.zpk&&i.zpk.length>0&&i.zpk.forEach(function(t,s){s<8&&e.push(t)}),a.dataList7=e;var l=[];i.cjpk1&&i.cjpk1.length>0&&i.cjpk1.forEach(function(t,s){s<8&&l.push(t)}),a.dataList9=l;var d=[];i.cjpk2&&i.cjpk2.length>0&&i.cjpk2.forEach(function(t,s){s<8&&d.push(t)}),a.dataList10=d}})},setChart8:function(){var t=this;this.$api.kanbanAPI.upkeepOfBoard({pageno:this.pageno8,pagesize:this.right_pagesize}).then(function(s){var a=t;if(setTimeout(function(){a.setChart8()},a.interval_time),0===s.code){var i=t.pageno8,e=s.data?s.data.totalPages:0;t.pageno8<e?t.pageno8=t.pageno8+1:t.pageno8=1,t.dataList8=s.data.datas?s.data.datas:[],t.dataList8.forEach(function(s,a){s.xuhao=(i-1)*t.right_pagesize+a,s.endTime?s.endTime1=s.endTime.split(" ")[0]+" "+s.endTime.split(" ")[1].split(":")[0]+":"+s.endTime.split(" ")[1].split(":")[1]:s.endTime1="",s.pro_name=s.pro_name?s.pro_name:"--"})}})},setChart9:function(){var t=this;this.$api.kanbanAPI.recordListForBoard({pageno:this.pageno9,pagesize:this.left_pagesize}).then(function(s){var a=t;if(setTimeout(function(){a.setChart9()},a.interval_time),0===s.code){var i=t.pageno9,e=s.data?s.data.totalPages:0;t.pageno9<e?t.pageno9=t.pageno9+1:t.pageno9=1,t.dataList9=s.data?s.data.datas:[],t.dataList9.forEach(function(s,a){s.xuhao=(i-1)*t.left_pagesize+a,s.endTime?s.endTime1=s.endTime.split(" ")[0]+" "+s.endTime.split(" ")[1].split(":")[0]+":"+s.endTime.split(" ")[1].split(":")[1]:s.endTime1=""})}})},setChart10:function(){var t=this;this.$api.kanbanAPI.taskMainListForBoard({pageno:this.pageno10,pagesize:this.left_pagesize}).then(function(s){var a=t;if(setTimeout(function(){a.setChart10()},a.interval_time),0===s.code){var i=t.pageno10,e=s.data?s.data.totalPages:0;t.pageno10<e?t.pageno10=t.pageno10+1:t.pageno10=1,t.dataList10=s.data?s.data.datas:[],t.dataList10.forEach(function(s,a){s.xuhao=(i-1)*t.left_pagesize+a,s.expireDate?s.endTime1=s.expireDate.split(" ")[0]+" "+s.expireDate.split(" ")[1].split(":")[0]+":"+s.expireDate.split(" ")[1].split(":")[1]:s.endTime1=""})}})},formatDate:function(t){return 1==t.toString().length?"0"+t:t},getTime:function(){var t=new Date;this.date=t.getFullYear()+"-"+this.formatDate(t.getMonth()+1)+"-"+this.formatDate(t.getDate()),this.time=this.formatDate(t.getHours())+":"+this.formatDate(t.getMinutes())+":"+this.formatDate(t.getSeconds());this.weekday=["日","一","二","三","四","五","六"][t.getDay()]}}},n={render:function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"home"},[i("dv-border-box-11",{attrs:{title:"废水在线监测看板"}},[i("div",{staticClass:"head_title"}),t._v(" "),t.logoUrlFlag?i("img",{s
|