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
14 KiB
1 line
14 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0822060b"],{"0e7c":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("cards-data",{attrs:{"card-lists":t.cardLists}}),t._v(" "),e("el-form",{attrs:{inline:"",size:"small","label-width":"80px"}},[e("el-form-item",{attrs:{label:"搜索:"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户ID用户昵称、标题",clearable:""},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(n){t.$set(t.tableFrom,"keyword",n)},expression:"tableFrom.keyword"}},[e("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(n){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),e("el-form-item",{staticClass:"width100",attrs:{label:"选择时间:"}},[e("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(n){t.timeVal=n},expression:"timeVal"}})],1),t._v(" "),e("el-form-item",{staticClass:"width100"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exportRecord}},[t._v("导出")])],1)],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[e("el-table-column",{attrs:{prop:"bill_id",label:"ID","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{label:"用户昵称",prop:"nickname","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"积分标题",prop:"title","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"积分变动",prop:"number","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(n){return[1==n.row.pm?e("span",{staticStyle:{color:"#ff3b30"}},[t._v("+"+t._s(n.row.number))]):t._e(),t._v(" "),0==n.row.pm?e("span",{staticStyle:{color:"#82e493"}},[t._v("-"+t._s(n.row.number))]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"当前积分额度",prop:"balance","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"90"}})],1),t._v(" "),e("div",{staticClass:"block"},[e("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)},o=[],u=e("b7be"),c=e("30dc"),a=e("0f56"),i=e("83d6"),s={name:"preSaleProductList",components:{fileList:c["a"],cardsData:a["a"]},data:function(){return{timeVal:[],listLoading:!0,roterPre:i["roterPre"],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,keyword:"",date:""},loading:!1,cardLists:[]}},watch:{},mounted:function(){this.getList(""),this.getTitle()},methods:{selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},exportRecord:function(){var t=this;Object(u["jb"])(this.tableFrom).then((function(n){var e=t.$createElement;t.$msgbox({title:"提示",message:e("p",null,[e("span",null,'文件正在生成中,请稍后点击"'),e("span",{style:"color: teal"},"导出记录"),e("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(n){t.$router.push({path:t.roterPre+"/group/exportList"})}))})).catch((function(n){t.$message.error(n.message)}))},getTitle:function(){var t=this;Object(u["V"])
|