(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6c02796"],{2136:function(t,a,e){var i=e("36ea");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("499e").default;n("7c498aca",i,!0,{sourceMap:!1,shadowMode:!1})},"36ea":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".alarm .ant-form-item-label[data-v-7d86a7ce]{text-align:left}.button-box[data-v-7d86a7ce]{position:absolute;top:20px;right:40px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-7d86a7ce]{margin-right:20px}",""]),t.exports=a},9543:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"button-box"},[e("a-button",{staticClass:"add",attrs:{type:"primary"},on:{click:function(a){return t.showModel("add","")}}},[t._v(" 新增球机 ")]),e("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:t.goIo}},[t._v(" PLC IO表配置 ")])],1),e("a-table",{staticStyle:{"margin-top":"40px"},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(a,i){return e("span",{},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(a){return t.showModel("config",i)}}},[t._v(" 配置 ")]),e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(a){return t.showModel("edit",i)}}},[t._v(" 编辑 ")]),e("a-divider",{attrs:{type:"vertical"}}),e("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return t.delDosage(i)}}},[e("a",[t._v("删除")])])],1)}}])}),e("Model",{attrs:{visible:t.visible,modelType:t.modelType,modelData:t.modelData},on:{"update:visible":function(a){t.visible=a},"update:modelData":function(a){t.modelData=a},"update:model-data":function(a){t.modelData=a},sure:t.submit,close:t.closeModel}})],1)},n=[],o=e("5530"),s=e("9545"),c=[{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(a,e){return t.pageSize=e}},loading:!1,columns:c,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(a){var e=Object(o["a"])({},t.pagination);e.total=a.data.total,t.data=a.data.list,t.pagination=e})).catch((function(t){}))},showModel:function(t,a){console.log(t),"test"==t||"config"==t?this.$router.push({name:"cameraManageModel",query:{modelType:t,modelData:a}}):(this.visible=!0,this.modelType=t,this.modelData=a)},submit:function(t){this.visible=t,this.handleGetCameraList()},closeModel:function(t,a){this.visible=t,this.modelData=a},delDosage:function(t){var a=this;console.log(t.id);var e=t.id;this.$axios.delete("/camera/"+e,{data:{}}).then((function(t){200==t.code&&(a.$message.success("删除球机成功"),a.handleGetCameraList())})).catch((function(t){}))},goIo:function(){this.$router.push({name:"ioTable"})}},components:{Model:s["default"]}},d=l,r=(e("a9bd"),e("2877")),u=Object(r["a"])(d,i,n,!1,null,"7d86a7ce",null);a["default"]=u.exports},a9bd:function(t,a,e){"use strict";var i=e("2136"),n=e.n(i);n.a}}]);