(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f2934902"],{"19db":function(t,e,a){"use strict";var n=a("cb91"),i=a.n(n);i.a},6624:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-295d4a8d]{text-align:left}.button-box[data-v-295d4a8d]{position:absolute;top:0;right:20px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-295d4a8d]{margin-right:20px}",""]),t.exports=e},7433:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraIoList},scopedSlots:t._u([{key:"status",fn:function(e){return a("span",{},[t._v(" "+t._s(e=0==e?"连接异常":"没有PLC连接异常")+" ")])}},{key:"action",fn:function(e,n){return a("span",{},[a("a",{on:{click:function(e){return t.reconnection(n)}}},[t._v("重新连接")])])}}])})],1)},i=[],o=(a("4160"),a("159b"),a("5530")),s=[{title:"序号",customRender:function(t,e,a){return 0+a+1}},{title:"PLCID",dataIndex:"plcId"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"异常时间",dataIndex:"time"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],c={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,current:1,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(e,a){return t.pageSize=a}},loading:!1,columns:s,visible:!1,modelType:"",modelData:[]}},computed:{},mounted:function(){this.handleGetCameraIoList()},methods:{handleGetCameraIoList:function(t){console.log(t),t&&(this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.pageNum=t.current,this.pageSize=t.pageSize),this.request()},request:function(){var t=this;this.$api.httpApi.disPlcList({data:{page:this.pageNum,size:this.pageSize}}).then((function(e){var a=Object(o["a"])({},t.pagination);a.total=e.data.total,t.data=e.data,t.pagination=a,e.data.list.forEach((function(e,a){e.pageNumber=t.pagination.current}))})).catch((function(t){}))},reconnection:function(t){var e=this;console.log(t.streetId);var a=t.streetId;this.$axios.get("/plc/tcp",{params:{id:a}}).then((function(t){200==t.code?(e.$message.success("连接成功"),e.handleGetStreetList()):e.$message.error("连接失败")})).catch((function(t){}))}},components:{}},r=c,u=(a("19db"),a("2877")),d=Object(u["a"])(r,n,i,!1,null,"295d4a8d",null);e["default"]=d.exports},cb91:function(t,e,a){var n=a("6624");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("55793b0a",n,!0,{sourceMap:!1,shadowMode:!1})}}]);