chunk-2d2160d1.c105f5bd.js 2.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2160d1"],{c18e:function(t,e,a){"use strict";a.r(e);a("b15b");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(a){a.scope;return[e("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,a){return e("el-tab-pane",{key:a,attrs:{label:"".concat(t.text,"(").concat(t.val,")"),name:t.key}})})),1)]}},{key:"table-column-addTime",fn:function(a){var n=a.scope;return[e("span",[t._v(t._s(t._f("formatTime")(n.row.addTime)))])]}},{key:"table-column-deadline",fn:function(a){var n=a.scope;return[e("span",[t._v(t._s(t._f("formatTime")(n.row.deadline)))])]}},{key:"table-column-status",fn:function(a){var n=a.scope;return[1==n.row.status?e("span",[e("i",{staticClass:"iconfont icondagou"})]):e("span",[t._v(t._s(t._f("constantfilter")(n.row.status,"COUPON_STATUS")))])]}}])})],1)},l=[],s=a("f2ed"),r=a("c91c"),o={data:function(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"待使用",key:"0",val:0},{text:"已使用",key:"1",val:0},{text:"已失效",key:"2",val:0}]}},mounted:function(){},methods:{handleClick:function(){this.app.refresh({status:this.tabIndex})},onLoad:function(t){var e=this,a=t.ctx,n=t.app;this.app=n,a.service(this.$service.coupon).set("table",{columns:[{prop:"userId",label:"ID",align:"center"},{prop:"userName",label:"持有人",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"amount",label:"金额",align:"center"},{prop:"miniCost",label:"最低消费",align:"center",emptyText:"无"},{prop:"addTime",label:"领取时间",align:"center",width:150},{prop:"deadline",label:"到期时间",align:"center",width:150},{prop:"source",label:"来源",align:"center"},{prop:"status",label:"状态",align:"center"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-recharge","slot-upgrade","slot-ship"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var t=Object(r["a"])(Object(s["a"])().m((function t(a,n){var l,r,o;return Object(s["a"])().w((function(t){while(1)switch(t.n){case 0:return l=n.next,t.n=1,l(a);case 1:r=t.v,o=r.asset,e.tabsData[0].val=o.totalNum,e.tabsData[1].val=o.unUseNum,e.tabsData[2].val=o.useNum,e.tabsData[3].val=o.invalidNum;case 2:return t.a(2)}}),t)})));return function(e,a){return t.apply(this,arguments)}}()).done(),n.refresh({status:this.tabIndex})}}},i=o,c=a("1805"),u=Object(c["a"])(i,n,l,!1,null,null,null);e["default"]=u.exports}}]);