Newer
Older
baseResourceFront / lamp / static / js / chunk-5bd6.920c7690.js
yangqianqian on 23 Mar 2021 11 KB 修改UI
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5bd6"],{"5fvJ":function(t,e,a){"use strict";var i=a("lE4a");a.n(i).a},D3Ak:function(t,e,a){"use strict";var i=a("Dlq3");a.n(i).a},Dlq3:function(t,e,a){},Eom7:function(t,e,a){},HDHf:function(t,e,a){"use strict";a.d(e,"e",function(){return r}),a.d(e,"c",function(){return l}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return u}),a.d(e,"f",function(){return c}),a.d(e,"g",function(){return d}),a.d(e,"k",function(){return f}),a.d(e,"j",function(){return h}),a.d(e,"i",function(){return m}),a.d(e,"h",function(){return p}),a.d(e,"m",function(){return g}),a.d(e,"l",function(){return v}),a.d(e,"o",function(){return y}),a.d(e,"n",function(){return b});var i=a("t3Un"),n=a("Kw5r");function r(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"busGroupInfo/list",method:"get",params:{deviceType:t}})}function l(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"data/lampLatest",method:"get",params:t})}function s(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"data/lampHistory",method:"get",params:t})}function o(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"data/boxLatest",method:"get",params:t})}function u(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"data/boxHistory",method:"get",params:t})}function c(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"data/quantityListByStreet",method:"get",params:t})}function d(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/alarmType",method:"get",params:t})}function f(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/lightTimeByStreet",method:"get",params:t})}function h(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/lightTimeByGrid",method:"get",params:t})}function m(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/lightRateByStreet",method:"get",params:t})}function p(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/lightRateByGrid",method:"get",params:t})}function g(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/quantityByStreet",method:"get",params:t})}function v(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/quantityByGrid",method:"get",params:t})}function y(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/saveRateByStreet",method:"get",params:t})}function b(t){var e=n.default.prototype.baseConfig.lampBasePath;return Object(i.a)({url:e+"statics/saveRateByGrid",method:"get",params:t})}},cwXQ:function(t,e,a){},fCPW:function(t,e,a){"use strict";var i=a("cwXQ");a.n(i).a},hElX:function(t,e,a){"use strict";a.r(e);var i=a("HDHf"),n={name:"BoxHistory",data:function(){return{listQuery:{lampboxId:"111111111",startTime:"",endTime:"",offset:1,limit:20,sort:"",order:""},columns:[{text:"A相电流",value:"electricityA",align:"center",width:100},{text:"B相电流",value:"electricityB",align:"center",width:100},{text:"C相电流",value:"electricityC",align:"center",width:100},{text:"A相电压",value:"voltageA",align:"center",width:100},{text:"B相电压",value:"voltageB",align:"center",width:100},{text:"C相电压",value:"voltageC",align:"center",width:100},{text:"A相功率",value:"powerA",align:"center",width:100},{text:"B相功率",value:"powerB",align:"center",width:100},{text:"C相功率",value:"powerC",align:"center",width:100},{text:"上传时间",value:"upTime",align:"center"}],title:"",total:0,list:[],listLoading:!0,timeRange:[],dialogFormVisible:!1}},watch:{timeRange:function(t){t&&t.length>0?(this.listQuery.startTime=t[0],this.listQuery.endTime=t[1]):(this.listQuery.startTime="",this.listQuery.endTime="")}},created:function(){this.fetchData()},activated:function(){this.fetchData()},methods:{initDialog:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.dialogFormVisible=t,this.listQuery.lampboxId=e.lampboxId,this.title=e.lampboxName+"历史数据",this.fetchData()},fetchData:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.listLoading=!0,e||(this.listQuery.offset=1),Object(i.a)(this.listQuery).then(function(e){console.log(e),200===e.code?(t.list=e.data.rows,t.total=parseInt(e.data.total)):t.$message.error(e.message),t.listLoading=!1})},search:function(){this.fetchData(!1)},cancel:function(){this.dialogFormVisible=!1},indexMethod:function(t){return this.listQuery.limit*(this.listQuery.offset-1)+t+1},handleSizeChange:function(t){this.listQuery.limit=t,this.fetchData()},handleCurrentChange:function(t){this.listQuery.offset=t,this.fetchData()}}},r=(a("fCPW"),a("5fvJ"),a("KHd+")),l=Object(r.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-dialog",{attrs:{visible:t.dialogFormVisible,title:t.title,"append-to-body":""},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"selectForm",staticClass:"form-container",attrs:{inline:!0,model:t.listQuery}},[a("el-form-item",{staticClass:"selectForm-container-item",attrs:{prop:"startTime"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"查询开始时间","end-placeholder":"查询结束时间"},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1),t._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.search}},[t._v("搜索")])],1),t._v(" "),a("div",[a("el-row",{staticClass:"table-title"},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"title-header"},[a("i",{staticClass:"el-icon-menu"}),t._v("数据列表")])])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.list,height:"300px",border:""}},[a("el-table-column",{attrs:{index:t.indexMethod,label:"序号",align:"center",type:"index",width:"55"}}),t._v(" "),t._l(t.columns,function(e){return a("el-table-column",{key:e.value,attrs:{label:e.text,width:e.width,align:e.align,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(i){return[a("span",[t._v(t._s(i.row[e.value]))])]}}])})})],2)],1),t._v(" "),a("div",{staticClass:"pagination-container"},[a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>t.listQuery.limit,expression:"total>listQuery.limit"}],attrs:{"current-page":t.listQuery.offset,"page-sizes":[20,30,50],"page-size":t.listQuery.limit,total:t.total,align:"center",layout:"total, sizes, prev, pager, next"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},[],!1,null,"00a7c0a4",null);l.options.__file="boxHistory.vue";var s={name:"BoxData",components:{BoxHistory:l.exports},data:function(){return{listQuery:{keyword:"",groupId:"",offset:1,limit:20,sort:"",order:""},columns:[{text:"灯箱编号",value:"lampboxCode",align:"center"},{text:"灯箱名称",value:"lampboxName",align:"center"},{text:"A相",value:"A",align:"center",width:200},{text:"B相",value:"B",align:"center",width:200},{text:"C相",value:"C",align:"center",width:200}],groupList:[],total:0,list:[],listLoading:!0,dialogFormVisible:!1,alarmReasonList:[],timeRange:[]}},created:function(){this.fetchGroupList(),this.fetchData()},activated:function(){this.fetchData()},methods:{allNum:function(t,e,a){return t+"A/"+e+"V/"+a+"W"},fetchData:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.listLoading=!0,e||(this.listQuery.offset=1),console.log(this.listQuery),Object(i.b)(this.listQuery).then(function(e){200===e.code?(t.list=e.data.rows,t.total=parseInt(e.data.total)):t.$message.error(e.message),t.listLoading=!1})},search:function(){this.fetchData(!1)},showHistory:function(t){this.dialogFormVisible=!0,this.$refs.boxhistory.initDialog(this.dialogFormVisible,t)},clearInput:function(){this.listQuery={keyword:"",groupId:"",offset:1,limit:20,sort:"",order:""},this.timeRange=[],this.fetchData(!1)},fetchGroupList:function(){var t=this;Object(i.e)("3").then(function(e){t.groupList=e.data})},indexMethod:function(t){return this.listQuery.limit*(this.listQuery.offset-1)+t+1},handleSizeChange:function(t){this.listQuery.limit=t,this.fetchData()},handleCurrentChange:function(t){this.listQuery.offset=t,this.fetchData()}}},o=(a("or6s"),a("D3Ak"),Object(r.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"search-div"},[a("div",{staticClass:"search-left"},[a("el-form",{ref:"selectForm",staticClass:"form-container",attrs:{inline:!0,model:t.listQuery}},[a("el-row",[a("el-form-item",{staticClass:"selectForm-container-item"},[a("el-input",{attrs:{placeholder:"灯箱编号/灯箱名称",clearable:""},model:{value:t.listQuery.keyword,callback:function(e){t.$set(t.listQuery,"keyword","string"==typeof e?e.trim():e)},expression:"listQuery.keyword"}})],1),t._v(" "),a("el-form-item",{staticClass:"selectForm-container-item"},[a("el-select",{attrs:{placeholder:"设备组",clearable:""},model:{value:t.listQuery.groupId,callback:function(e){t.$set(t.listQuery,"groupId",e)},expression:"listQuery.groupId"}},t._l(t.groupList,function(t){return a("el-option",{key:t.id,attrs:{label:t.groupName,value:t.id}})}))],1),t._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-delete"},on:{click:t.clearInput}},[t._v("重置")])],1)],1)],1),t._v(" "),a("div",{staticClass:"clearfloat"})]),t._v(" "),a("div",[a("el-row",{staticClass:"table-title"},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"title-header"},[a("i",{staticClass:"el-icon-menu"}),t._v("数据列表")])])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.list,border:""}},[a("el-table-column",{attrs:{index:t.indexMethod,label:"序号",width:"55",align:"center",type:"index"}}),t._v(" "),t._l(t.columns,function(e){return a("el-table-column",{key:e.value,attrs:{label:e.text,width:e.width,align:e.align,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(i){return["A"===e.value?a("div",[a("span",{domProps:{innerHTML:t._s(t.allNum(i.row.electricityA,i.row.voltageA,i.row.powerA))}})]):"B"===e.value?a("div",[a("span",{domProps:{innerHTML:t._s(t.allNum(i.row.electricityB,i.row.voltageA,i.row.powerB))}})]):"C"===e.value?a("div",[a("span",{domProps:{innerHTML:t._s(t.allNum(i.row.electricityC,i.row.voltageA,i.row.powerC))}})]):a("div",[a("span",[t._v(t._s(i.row[e.value]))])])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showHistory(e.row)}}},[t._v("查看历史")])]}}])})],2)],1),t._v(" "),a("div",{staticClass:"pagination-container"},[a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>t.listQuery.limit,expression:"total>listQuery.limit"}],attrs:{"current-page":t.listQuery.offset,"page-sizes":[20,30,50],"page-size":t.listQuery.limit,total:t.total,align:"center",layout:"total, sizes, prev, pager, next"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("box-history",{directives:[{name:"show",rawName:"v-show",value:t.dialogFormVisible,expression:"dialogFormVisible"}],ref:"boxhistory"})],1)},[],!1,null,"79d30c77",null));o.options.__file="boxData.vue";e.default=o.exports},lE4a:function(t,e,a){},or6s:function(t,e,a){"use strict";var i=a("Eom7");a.n(i).a}}]);