(window.webpackJsonpzcomps=window.webpackJsonpzcomps||[]).push([["chunk-92de"],{"4oUd":function(t,e,i){"use strict";i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"a",function(){return s}),i.d(e,"d",function(){return l});var a=i("t3Un");function n(t){return Object(a.a)({url:"api/nhome/get_online_devices_verinfo",method:"post",data:t})}function o(t){return Object(a.a)({url:"api/nhome/get_version_file_list",method:"post",data:t})}function s(t){return Object(a.a)({url:"api/nhome/version/download",method:"post",data:t})}function l(t){return Object(a.a)({url:"api/nhome/version/download/stop",method:"post",data:t})}},PhSI:function(t,e,i){},Xbkh:function(t,e,i){"use strict";var a=i("PhSI");i.n(a).a},"k+XT":function(t,e,i){"use strict";i.r(e);var a=i("gDS+"),n=i.n(a),o=i("4oUd"),s={data:function(){return{textTableData:[],textDataParams:{conditions:[]},dialogVisible:!1,fileList:[],textChecked:[],verUploadUrl:"http://priv.x9water.com:18080/upload_ver.yaws"}},created:function(){this.fileList=[],this.textTableDataListFun()},methods:{submitUpload:function(){this.$refs.upload.submit()},handleRemove:function(t,e){},handlePreview:function(t){},handleSelectionChange:function(t){},handlesuccess:function(t,e,i){"ok"===e.response.status&&(this.$message({message:"上传成功",type:"success"}),this.dialogVisible=!1,this.fileList=[],this.textTableDataListFun())},textTableDataListFun:function(){var t=this;Object(o.c)(n()(this.textDataParams)).then(function(e){"ok"===e.data.status&&(t.textTableData=e.data.result)})},uploadText:function(){this.dialogVisible=!0},handleTextSelectionChange:function(t){this.textChecked=t}}},l=(i("Xbkh"),i("KHd+")),c=Object(l.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"cont"},[i("div",{staticClass:"button-cont"},[i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"primary",icon:"el-icon-upload2"},on:{click:function(e){t.uploadText()}}},[t._v("版本上传")])],1),t._v(" "),i("div",{staticClass:"table-allCont"},[i("div",{staticClass:"table-cont table-cont2"},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.textTableData,border:"",height:"500"},on:{"selection-change":t.handleTextSelectionChange}},[i("el-table-column",{attrs:{prop:"device_type",label:"设备类型",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"文件类型",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"size",label:"文件大小",align:"center"}})],1)],1)]),t._v(" "),i("el-dialog",{attrs:{title:"版本上传",visible:t.dialogVisible,width:"400px",height:"300"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.verUploadUrl,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"file-list":t.fileList,"on-success":t.handlesuccess,"auto-upload":!1}},[i("div",{staticClass:"upload-button"},[i("el-button",{staticClass:"buttonText",attrs:{slot:"trigger",icon:"el-icon-zoom-out",size:"mini",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)]),t._v(" "),i("el-button",{staticClass:"buttonText  buttonText2",staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-upload",size:"mini",type:"success"},on:{click:function(e){t.submitUpload()}}},[t._v("上传到服务器")])],1)],1)},[],!1,null,"b20b5f92",null);c.options.__file="index.vue",e.default=c.exports}}]);