You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.8 KiB
1 line
3.8 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c1a0002"],{"0e7c":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"80px",inline:!0}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入用户名称、标题",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),t._v(" "),a("cards-data",{attrs:{"card-lists":t.cardLists}})],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"bill_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户微信昵称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"积分标题","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"number",label:"积分变动","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"balance",label:"当前积分额度","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],n=a("b7be"),s=a("83d6"),o=a("0f56"),r={name:"CouponList",components:{cardsData:o["a"]},data:function(){return{Loading:!1,dialogVisible:!1,detailDialog:!1,roterPre:s["roterPre"],listLoading:!0,timeVal:[],cardLists:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,keyword:"",date:""}}},mounted:function(){this.getList(1),this.getIntegralTitle()},methods:{getIntegralTitle:function(){var t=this;Object(n["T"])({date:this.tableFrom.date}).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["S"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},c=r,d=(a("e575"),a("2877")),m=Object(d["a"])(c,l,i,!1,null,"12bedafd",null);e["default"]=m.exports},2538:function(t,e,a){},e575:function(t,e,a){"use strict";a("2538")}}]);
|