Portal/potal_admin/up-portal-admin-1.0.1/js/chunk-263fd6cc.899b63eb.js

1 line
3.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-263fd6cc"],{"13ea":function(e,t,a){},"4da3":function(e,t,a){"use strict";a("13ea")},"5b53":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"固件升级",visible:e.dialogVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.dataForm,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"设备IP",prop:"aeClientip"}},[a("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.dataForm.aeClientip,callback:function(t){e.$set(e.dataForm,"aeClientip",t)},expression:"dataForm.aeClientip"}})],1),a("el-form-item",{attrs:{label:"设备名称",prop:"devicename"}},[a("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.dataForm.devicename,callback:function(t){e.$set(e.dataForm,"devicename",t)},expression:"dataForm.devicename"}})],1),a("el-form-item",{attrs:{label:"设备状态",prop:"state"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.dataForm.state,callback:function(t){e.$set(e.dataForm,"state",t)},expression:"dataForm.state"}},e._l(e.equipStatusList,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",[a("el-button",{on:{click:e.search}},[e._v("查询")]),a("el-button",{attrs:{type:"success"},on:{click:e.updateEquip}},[e._v("升级")])],1)],1),a("el-table",{attrs:{data:e.dataList,height:"50vh"},on:{"selection-change":e.selectionChange}},[a("el-table-column",{attrs:{type:"selection",label:"全选",width:"50",align:"center"}}),a("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),a("el-table-column",{attrs:{prop:"aeClientip",label:"设备IP",width:"200",align:"center"}}),a("el-table-column",{attrs:{prop:"aeDevicename",label:"设备名称",width:"200",align:"center","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"aeVersionname",label:"设备程序版本号",align:"center"}}),a("el-table-column",{attrs:{prop:"aeState",label:"设备状态",formatter:e.formatterState,width:"100",align:"center"}}),a("el-table-column",{attrs:{prop:"floorName",label:"安装位置",align:"center"}})],1),a("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[10,20,50,100],"page-size":e.limit,total:e.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.pageSizeChangeHandle,"current-change":e.pageCurrentChangeHandle}})],1)},l=[],n=a("e1a5"),o=a("ed08"),r={mixins:[n["a"]],data:function(){return{mixinViewModuleOptions:{getDataListURL:"/system/scaidooreight/page",deleteURL:"/system/scaidooreight",getDataListIsPage:!0},limit:10,dataForm:{aeClientip:"",devicename:"",state:""},dialogVisible:!1,dataList:[],checkedList:[],equipStatusList:Object(o["c"])("equipment_status")}},methods:{init:function(){this.dialogVisible=!0,this.page=1,this.query()},search:function(){this.page=1,this.query()},selectionChange:function(e){this.checkedList=e},formatterType:function(e){return Object(o["e"])("accessEquipType",e.aeSigntype)},formatterDevinceType:function(e){return Object(o["e"])("accessDevinceType",e.aeDevicetype)},formatterState:function(e){return Object(o["e"])("equipment_status",e.aeState)},updateEquip:function(){var e=this,t=!1;0==this.checkedList.length&&(t=!0),this.$confirm(t?"将对全部设备升级":"将对已选中设备升级","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$http({url:t?"/system/scaidooreight/updateAlldevice":"/system/scaidooreight/updatedevicelist",method:t?"get":"post",data:e.checkedList.map((function(e){return e.aeId}))}).then((function(t){var a=t.data;if(0!=a.code)return e.$message.error(a.msg);e.$message.success(a.msg)}))})).catch((function(){}))}}},s=r,c=(a("4da3"),a("2877")),u=Object(c["a"])(s,i,l,!1,null,"3af26d1a",null);t["default"]=u.exports}}]);