(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b0806dd"],{"3b41":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(e){e.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,e){return a("el-tab-pane",{key:e,attrs:{label:t.text+"("+t.val+")",name:t.key}})})),1)]}},{key:"table-column-avatarUrl",fn:function(e){var n=e.scope;return[a("cl-avatar",{style:{margin:"auto"},attrs:{shape:"square",size:40,src:t._f("default_avatar")(n.row.imgList)}})]}},{key:"table-column-goodsName",fn:function(e){var n=e.scope;return[a("span",[t._v(t._s(n.row.goodsName))]),a("span",{staticClass:"short-link",on:{click:function(e){return t.openLinkFn(n.row.shortUrl)}}},[t._v("链接")])]}},{key:"slot-add-goods-btn",fn:function(e){e.scope;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addFn}},[t._v("添加")])]}},{key:"table-column-status",fn:function(e){var n=e.scope;return[a("span",[t._v(t._s(1==n.row.status?"上架":"下架"))])]}}])}),a("el-dialog",{attrs:{title:"商品短链接：",visible:t.dialogFormVisible,width:"40%"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("div",[a("el-input",{attrs:{disabled:!0},model:{value:t.sortLink,callback:function(e){t.sortLink=e},expression:"sortLink"}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("发到手机")])],1)])],1)},r=[],o=(a("63ff"),a("e5af")),s={data:function(){return{app:null,dialogFormVisible:!1,sortLink:"",tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"上架",key:"1",val:0},{text:"下架",key:"0",val:0}]}},methods:{handleClick:function(t,e){this.app.refresh({type:this.tabIndex})},openLinkFn:function(t){this.sortLink=t||"",this.dialogFormVisible=!0},onLoad:function(t){var e=this,a=t.ctx,n=t.app;this.app=n,a.service(this.$service.goods).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"avatarUrl",label:"封面",align:"center"},{prop:"goodsName",label:"标题",align:"center"},{prop:"price",label:"价格",align:"center",emptyText:"无","min-width":150},{prop:"actualSold",label:"销量",align:"center"},{prop:"viewNum",label:"浏览量",align:"center"},{prop:"merchantName",label:"商家",align:"center"},{prop:"status",label:"状态",align:"center"},{prop:"createDate",label:"创建时间",align:"center"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("dict",{search:{keyWord:"goodsName"}}).set("search",{key:{placeholder:"商品名称"}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a,n){var r,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=n.next,t.next=3,r(a);case 3:if(o=t.sent,s=o.asset,!e.$util.isEmpty(s)){t.next=7;break}return t.abrupt("return",!1);case 7:e.tabsData[0].val=s.totalGoods,e.tabsData[1].val=s.onGoods,e.tabsData[2].val=s.offGoods;case 10:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()).done(),n.refresh({status:this.tabIndex})}}},l=s,i=(a("8feb"),a("5511")),c=Object(i["a"])(l,n,r,!1,null,"3254c8bb",null);e["default"]=c.exports},"7bbb":function(t,e,a){},"8feb":function(t,e,a){"use strict";var n=a("7bbb"),r=a.n(n);r.a}}]);