(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35ca11da"],{"62d9":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-49d0e178]{text-align:left}.button-box[data-v-49d0e178]{position:absolute;top:0;right:20px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-49d0e178]{margin-right:20px}",""]),t.exports=e},9543:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"button-box"},[a("a-button",{staticClass:"add",attrs:{type:"primary"},on:{click:function(e){return t.showModel("add","")}}},[t._v(" 新增球机 ")]),a("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:t.goIo}},[t._v(" PLC IO表配置 ")])],1),a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraList},scopedSlots:t._u([{key:"action",fn:function(e,i){return a("span",{},[a("a",{on:{click:function(e){return t.showModel("test",i)}}},[t._v(" 测试 ")]),a("a-divider",{attrs:{type:"vertical"}}),a("a",{on:{click:function(e){return t.showModel("config",i)}}},[t._v(" 配置 ")]),a("a-divider",{attrs:{type:"vertical"}}),a("a",{on:{click:function(e){return t.showModel("edit",i)}}},[t._v(" 编辑 ")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return t.delDosage(i)}}},[a("a",[t._v("删除")])])],1)}}])}),a("Model",{attrs:{visible:t.visible,modelType:t.modelType,modelData:t.modelData},on:{"update:visible":function(e){t.visible=e},"update:modelData":function(e){t.modelData=e},"update:model-data":function(e){t.modelData=e},sure:t.submit,close:t.closeModel}})],1)},n=[],o=a("5530"),s=a("9545"),d=[{title:"球机名称",dataIndex:"name"},{title:"球机IP",dataIndex:"ip"},{title:"修改时间",dataIndex:"updateTime"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],l={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,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:d,visible:!1,modelType:"",modelData:[]}},mounted:function(){this.handleGetCameraList()},methods:{handleGetCameraList: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.getCameraList({data:{pageNum:this.pageNum,pageSize:this.pageSize}}).then((function(e){var a=Object(o["a"])({},t.pagination);a.total=e.data.total,t.data=e.data.list,t.pagination=a})).catch((function(t){}))},showModel:function(t,e){console.log(t),"test"==t||"config"==t?this.$router.push({name:"cameraManageModel",query:{modelType:t,modelData:e}}):(this.visible=!0,this.modelType=t,this.modelData=e)},submit:function(t){this.visible=t,this.handleGetCameraList()},closeModel:function(t,e){this.visible=t,this.modelData=e},delDosage:function(t){var e=this;console.log(t.id);var a=t.id;this.$axios.delete("/camera/"+a,{data:{}}).then((function(t){200==t.code&&(e.$message.success("删除球机成功"),e.handleGetCameraList())})).catch((function(t){}))},goIo:function(){this.$router.push({name:"ioTable"})}},components:{Model:s["default"]}},c=l,r=(a("cd82"),a("2877")),u=Object(r["a"])(c,i,n,!1,null,"49d0e178",null);e["default"]=u.exports},cd82:function(t,e,a){"use strict";var i=a("efd2"),n=a.n(i);n.a},efd2:function(t,e,a){var i=a("62d9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("52ae2ec5",i,!0,{sourceMap:!1,shadowMode:!1})}}]);