warningDispose.js 4.0 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/views/dataBoard/warningDispose"],{"1d44":function(t,e,a){"use strict";var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(a("7eb4")),i=n(a("ee10")),o=(a("f414"),a("e34d")),d={name:"warningDispose",components:{},data:function(){return{dateList:[],dateIndex:6,deptList:[],queryParams:{page:1,pageSize:10},column:[{type:"index",label:"排行",fixed:!0,width:60,align:"center"},{name:"deptSortName",label:"学院单位",fixed:!0,width:80,align:"center"},{name:"handleTotal",label:"总数",align:"center"},{name:"yesterdayTotal",label:"昨日",align:"center"},{name:"todayTotal",label:"今日",align:"center"},{name:"rate",label:"环比",align:"center"}],dataList:[],total:0,todayTotal:0,yesterdayTotal:0,rate:0,rateType:0}},created:function(){},beforeMount:function(){},mounted:function(){this.getCurrentDate()},methods:{handleStyle:function(t){if("rate"==t.column.name)return console.log("val======>",t.row),-1!=t.row.rate.indexOf("-")?{color:"#2EA805"}:-1!=t.row.rate.indexOf("+")?{color:"#FF0000"}:{color:"#FFFFFF"}},dateClick:function(t){this.dateIndex=t,this.reportAppStatisticsWarningHandle()},getCurrentDate:function(){var t=new Date,e=["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],a=["7","1","2","3","4","5","6"],n=t.getDay(),r=t.getDate(),i=t.getMonth()+1,o=t.getFullYear();console.log("Today is "+i+"/"+r+"/"+o+", "+e[n]+".");for(var d=[],s=0;s<7;s++){var l=new Date(t.getTime()-24*s*60*60*1e3);d.push({date:l.getDate(),month:l.getMonth()+1,year:l.getFullYear(),dayOfWeek:e[l.getDay()],dayOfWeekTow:a[l.getDay()]})}for(var u=0;u<7;u++)this.dateList.push({num:d[u].dayOfWeekTow,letterNUm:d[u].dayOfWeek,format:d[u].year+"-"+d[u].month+"-"+d[u].date});this.dateList=this.dateList.reverse(),this.reportAppStatisticsWarningHandle()},reportAppStatisticsWarningHandle:function(t){var e=this;return(0,i.default)(r.default.mark((function t(){var a,n,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,(0,o.reportAppStatisticsWarningHandle)({date:e.dateList[e.dateIndex].format});case 3:n=t.sent,i=n.data,200==i.code&&(e.deptList=i.data.warningList,e.dataList=i.data.warningScatterList,e.$set(a,"todayTotal",i.data.warning.todayTotal),e.$set(a,"yesterdayTotal",i.data.warning.yesterdayTotal),-1!=i.data.warning.rate.indexOf("-")?e.$set(a,"rateType",1):-1!=i.data.warning.rate.indexOf("+")?e.$set(a,"rateType",2):e.$set(a,"rateType",0),e.$set(a,"rate",i.data.warning.rate));case 6:case"end":return t.stop()}}),t)})))()}}};e.default=d},6739:function(t,e,a){"use strict";var n=a("f0d5"),r=a.n(n);r.a},ba54:function(t,e,a){"use strict";a.r(e);var n=a("1d44"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},cb46:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={zbTable:function(){return a.e("uni_modules/zb-table/components/zb-table/zb-table").then(a.bind(null,"fdd0"))}},r=function(){var t=this.$createElement,e=(this._self._c,2==this.rateType?this.imagesUrl("dataBoard/dataBoard-icon2.png"):null),a=1==this.rateType?this.imagesUrl("dataBoard/dataBoard-icon3.png"):null;this.$mp.data=Object.assign({},{$root:{m0:e,m1:a}})},i=[]},e3f5:function(t,e,a){"use strict";a.r(e);var n=a("cb46"),r=a("ba54");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("6739");var o=a("828b"),d=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"6c5effb2",null,!1,n["a"],void 0);e["default"]=d.exports},f0d5:function(t,e,a){}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/views/dataBoard/warningDispose-create-component',
  4. {
  5. 'pages/views/dataBoard/warningDispose-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('df3c')['createComponent'](__webpack_require__("e3f5"))
  7. })
  8. },
  9. [['pages/views/dataBoard/warningDispose-create-component']]
  10. ]);