(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1f5d8312"],{"646f":function(e,t,a){"use strict";a.r(t);var n=a("85f4"),s={data:()=>({table:{currentPage:2,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(e){},handleCurrentChange(e){},getData(e,t){Object(n.f)({page:t}).then(e=>{this.table.data=e.data;for(var t=0;t<this.table.data.length;t++);})},updateValue(e,t){Object(n.g)({id:e,max:t.max,status:t.status}).then(e=>{this.getData(10,1),this.$message.success("更新成功!")})},edit(e){this.$router.push({path:"/plugin/PinPackageDetail",query:{id:e}})},log(e){}},mounted(){this.getData(10,1)}},r=a("2877"),o=Object(r.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;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==e.table.data?[]:e.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:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"number"},on:{blur:function(a){return e.updateValue(t.row.id,t.row)}},nativeOn:{keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.updateValue(t.row.id,t.row)}},model:{value:t.row.max,callback:function(a){e.$set(t.row,"max",a)},expression:"scope.row.max"}})]}}])}),a("el-table-column",{attrs:{width:"190",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.updateValue(t.row.id,t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])})],1)],1)}),[],!1,null,null,null);t.default=o.exports},"6b2d":function(e,t,a){"use strict";var n=a("0613"),s=a("bc3a"),r=a.n(s),o=a("d70b"),i=a("afbc"),l=a("5c96"),u=a("6ddb");const c={baseURL:o.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(u.g)(()=>(n.a.commit("setToken",""),n.a.commit("setUserInfo",{}),n.a.commit("setPermission",{}),i.b.push("/account/login"),Promise.reject())),r.a.create(c));d.interceptors.request.use(e=>{const t=n.a.getters.token;return t&&(e.headers.token=t),e.headers.version=o.a.version,e},e=>Promise.reject(e)),d.interceptors.response.use(e=>e.data,e=>(Object(l.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(e))),t.a=d},"85f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"d",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"e",(function(){return i})),a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return u})),a.d(t,"b",(function(){return c}));var n=a("6b2d");const s=e=>n.a.post("pin.PinPackage/add",e),r=e=>n.a.get("pin.PinPackage/list",{params:e}),o=e=>n.a.get("pin.PinPackage/detail",{params:e}),i=e=>n.a.post("pin.PinPackage/update",e),l=e=>n.a.get("pin.PinPosition/list",{params:e}),u=e=>n.a.post("pin.PinPosition/update",e),c=e=>n.a.get("pin.PinPackage/del",{params:e})}}]);