(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4b8e3ef4"],{"646f":function(t,e,a){"use strict";a.r(e);var n=a("85f4"),l={data:()=>({table:{currentPage:2,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){},getData(t,e){Object(n.f)({page:e}).then(t=>{this.table.data=t.data;for(var e=0;e<this.table.data.length;e++);})},updateValue(t,e){Object(n.g)({id:t,max:e.max,status:e.status}).then(t=>{this.getData(10,1),this.$message.success("更新成功!")})},edit(t){this.$router.push({path:"/plugin/PinPackageDetail",query:{id:t}})},log(t){}},mounted(){this.getData(10,1)}},i=a("2877"),r=Object(i.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card m-b-12"},[a("el-alert",{attrs:{title:"温馨提示：本页面可以管理你的广告的呈现位置,可以设置在哪里展示,用来推广。",type:"info","show-icon":"",closable:!1}})],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"标题"}}),a("el-table-column",{attrs:{prop:"description",label:"描述"}}),a("el-table-column",{attrs:{prop:"code",label:"code",width:"120"}}),a("el-table-column",{attrs:{label:"最大广告位置数量",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{type:"number"},on:{blur:function(a){return t.updateValue(e.row.id,e.row)}},nativeOn:{keydown:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.updateValue(e.row.id,e.row)}},model:{value:e.row.max,callback:function(a){t.$set(e.row,"max",a)},expression:"scope.row.max"}})]}}])}),a("el-table-column",{attrs:{width:"190",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return t.updateValue(e.row.id,e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])})],1)],1)}),[],!1,null,null,null);e.default=r.exports},"85f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"e",(function(){return u})),a.d(e,"f",(function(){return o})),a.d(e,"g",(function(){return s})),a.d(e,"b",(function(){return c}));var n=a("6b2d");const l=t=>n.a.post("pin.PinPackage/add",t),i=t=>n.a.get("pin.PinPackage/list",{params:t}),r=t=>n.a.get("pin.PinPackage/detail",{params:t}),u=t=>n.a.post("pin.PinPackage/update",t),o=t=>n.a.get("pin.PinPosition/list",{params:t}),s=t=>n.a.post("pin.PinPosition/update",t),c=t=>n.a.get("pin.PinPackage/del",{params:t})}}]);