(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cf6e6eb"],{"2db6":function(t,e,i){"use strict";i("c448")},"6a46":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),i("div",{staticClass:"padding-lg margin-top back-white"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#eef1f6",color:"#606266"},data:t.list,border:"",fit:"","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"ID",property:"id",align:"center",width:"50"}}),i("el-table-column",{attrs:{label:"所属产品",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("div",{staticClass:"flex align-center"},[i("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:a.image}}),i("span",{staticClass:"padding-left-sm"},[t._v(t._s(a.name))])])]}}])}),i("el-table-column",{attrs:{label:"防伪码编号",property:"code",align:"center"}}),i("el-table-column",{attrs:{label:"查询次数",property:"query_num",align:"center"}}),i("el-table-column",{attrs:{label:"二维码",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[i("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:e.qrcode,"preview-src-list":[e.qrcode]}})]}}])}),i("el-table-column",{attrs:{label:"小程序二维码",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[i("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:e.wxapp_qrcode,"preview-src-list":[e.wxapp_qrcode]}})]}}])}),i("el-table-column",{attrs:{label:"创建时间",property:"createtime",align:"center",width:"160"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,l=e.$index;return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除",placement:"top"}},[i("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(a.id,l)}}})],1)]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)])},l=[],n=(i("baf6"),i("333d")),s={name:"Code",components:{Pagination:n["a"]},data:function(){return{list:null,total:0,listLoading:!0,listQuery:{page:1,keyword:"",limit:10}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,this.api.get("sverify/product_code/getList",this.listQuery).then((function(e){t.listLoading=!1,1===e.code?(t.total=parseInt(e.data.total),t.list=e.data.list):t.$util.error(e.message||e.msg||"数据异常")}))},search:function(){this.listQuery.page=1,this.getList()},refresh:function(){this.getList()},handleDelete:function(t,e){var i=this;this.$util.confirm("此操作将永久删除该防伪码, 是否继续?",(function(a){a&&i.api.get("sverify/product_code/delete",{id:t}).then((function(t){1===t.code?(i.list.splice(e,1),i.$util.success(t.message)):i.$util.error(t.message)}))}))}}},r=s,c=(i("2db6"),i("3d7a")),o=Object(c["a"])(r,a,l,!1,null,"cff71ed6",null);e["default"]=o.exports},c448:function(t,e,i){}}]);