Newer
Older
casic-smartcity-well-front / smartwell / static / js / chunk-6919.b8588ea8.js
wangxitong on 20 Jan 2021 6 KB 总览修改
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6919"],{"+kCO":function(t,e,n){"use strict";var a=n("ASc8");n.n(a).a},"1u7m":function(t,e,n){"use strict";n.r(e);var a=n("UXik"),i={name:"DeviceCountByType",data:function(){return this.extend={series:{label:{show:!0,position:"right"}}},this.legend={bottom:"10px"},this.chartSettings={labelMap:{deviceType:"设备类型",deviceCount:"设备数量"},dimension:["deviceType"],metrics:["deviceCount"]},{chartData:{columns:["deviceType","deviceCount"],rows:[]}}},mounted:function(){this.fetchData()},methods:{fetchData:function(){var t=this;Object(a.f)().then(function(e){t.chartData.rows=e.data})}}},r=(n("W3cC"),n("KHd+")),c=Object(r.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("el-row",[e("el-col",{attrs:{span:12,offset:6}},[e("div",{staticClass:"chart-title"},[this._v("设备总量统计")])])],1),this._v(" "),e("el-row",[e("ve-pie",{attrs:{data:this.chartData,grid:this.grid,legend:this.legend,settings:this.chartSettings}})],1)],1)},[],!1,null,"0993c1a7",null);c.options.__file="deviceCountByType.vue";var s=c.exports,u=n("FyfS"),o=n.n(u),d=n("qpgI"),l={name:"DeviceCountByDept",data:function(){return this.extend={xAxis:{axisLabel:{rotate:30,margin:30,textStyle:{align:"center"}}},series:{label:{show:!0,position:"top"},barMaxWidth:35}},this.grid={right:60},this.title={text:"设备数量统计"},this.chartSettings={itemStyle:{barCategoryGap:5},barWidth:15,labelMap:{deptName:"权属单位",deviceCount:"设备数量(个)"},dimension:["deptName"],metrics:["deviceCount"]},{listQuery:{deviceType:""},deviceTypeList:[],rawData:"",chartData:{columns:["deptName","deviceCount"],rows:[]}}},mounted:function(){this.fetchDeviceType(),this.fetchData()},methods:{fetchDeviceType:function(){var t=this;Object(d.g)(this.listQuery).then(function(e){t.deviceTypeList=[{name:"全部",value:""}];var n=t.$store.getters.deviceTypes,a=!0,i=!1,r=void 0;try{for(var c,s=o()(e.data);!(a=(c=s.next()).done);a=!0){var u=c.value;-1!==n.indexOf(u.value)&&t.deviceTypeList.push(u)}}catch(t){i=!0,r=t}finally{try{!a&&s.return&&s.return()}finally{if(i)throw r}}t.deviceTypeList.length<=1&&(t.showDeviceType=!1)})},fetchData:function(){var t=this;console.log("fetchData"),Object(a.e)(this.listQuery).then(function(e){t.chartData.rows=e.data})}}},p=(n("+kCO"),Object(r.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",{attrs:{span:12,offset:6}},[n("div",{staticClass:"chart-title"},[t._v("各单位设备安装情况数量统计")])])],1),t._v(" "),n("div",[n("el-row",{attrs:{gutter:20,type:"flex",justify:"end"}},[n("el-col",{staticStyle:{"margin-right":"30px"},attrs:{span:8}},[n("el-select",{staticClass:"select-right",attrs:{size:"mini",placeholder:"设备类型",clearable:""},on:{change:t.fetchData},model:{value:t.listQuery.deviceType,callback:function(e){t.$set(t.listQuery,"deviceType",e)},expression:"listQuery.deviceType"}},t._l(t.deviceTypeList,function(t){return n("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})}))],1)],1)],1),t._v(" "),n("div",[n("ve-histogram",{attrs:{data:t.chartData,grid:t.grid,extend:t.extend,settings:t.chartSettings}})],1)],1)},[],!1,null,"76c3db49",null));p.options.__file="deviceCountByDept.vue";var f={name:"DeviceStatics",components:{DeviceCountByDept:p.exports,DeviceCountByType:s},data:function(){}},h=(n("zQr2"),Object(r.a)(f,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app-container"},[e("el-row",[e("el-col",{attrs:{span:12}},[e("device-count-by-type")],1),this._v(" "),e("el-col",{attrs:{span:12}},[e("device-count-by-dept")],1)],1)],1)},[],!1,null,"1e4af566",null));h.options.__file="deviceStatics.vue";e.default=h.exports},ASc8:function(t,e,n){},UXik:function(t,e,n){"use strict";n.d(e,"h",function(){return i}),n.d(e,"i",function(){return r}),n.d(e,"f",function(){return c}),n.d(e,"e",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return l}),n.d(e,"g",function(){return p});var a=n("t3Un");function i(t){return Object(a.a)({url:"well/countByBfzt",method:"get",params:t})}function r(t){return Object(a.a)({url:"statics/wellStaticsByType",method:"get",params:t})}function c(t){return Object(a.a)({url:"statics/deviceStaticsByType",method:"get",params:t})}function s(t){return Object(a.a)({url:"statics/deviceStaticsByDept",method:"get",params:t})}function u(t){return Object(a.a)({url:"statics/deviceStaticsByStatus",method:"get",params:t})}function o(t){return Object(a.a)({url:"statics/alarmsNow",method:"get",params:t})}function d(t){return Object(a.a)({url:"statics/alarmsByDay",method:"get",params:t})}function l(t){return Object(a.a)({url:"statics/alarmsByDept",method:"get",params:t})}function p(t){return Object(a.a)({url:"statics/jobsByDept",method:"get",params:t})}},UdI9:function(t,e,n){},W3cC:function(t,e,n){"use strict";var a=n("UdI9");n.n(a).a},ahMA:function(t,e,n){},qpgI:function(t,e,n){"use strict";n.d(e,"e",function(){return c}),n.d(e,"g",function(){return s}),n.d(e,"f",function(){return u}),n.d(e,"a",function(){return o}),n.d(e,"h",function(){return d}),n.d(e,"d",function(){return l}),n.d(e,"c",function(){return p}),n.d(e,"b",function(){return f});var a=n("t3Un"),i=n("Qyje"),r=n.n(i);function c(t){return Object(a.a)({url:"device/list",method:"get",params:t})}function s(t){return Object(a.a)({url:"device/type",method:"get",params:t})}function u(t){return Object(a.a)({url:"device/model",method:"get",params:{deviceType:t}})}function o(t){return Object(a.a)({url:"device/add",method:"post",params:t})}function d(t){return Object(a.a)({url:"device/update",method:"post",params:t})}function l(t){return Object(a.a)({url:"device/delete",method:"post",params:{ids:t},paramsSerializer:function(t){return r.a.stringify(t,{indices:!1})}})}function p(t){var e=new FormData;return e.append("file",t),Object(a.a)({url:"device/batchImport",method:"post",timeout:24e4,headers:{"Content-Type":"multipart/form-data"},data:e})}function f(t){return Object(a.a)({url:"device/batchExport",method:"get",timeout:12e4,params:t,responseType:"blob"})}},zQr2:function(t,e,n){"use strict";var a=n("ahMA");n.n(a).a}}]);