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.
shipin/public/admin/system_static/js/chunk-2d207f67.13d9161e.js

1 line
5.6 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d207f67"],{a387:function(e,t,a){"use strict";a.r(t),a("b0c0");var l=a("5530"),i=(a("a15b"),a("c24f")),n=a("2f62");l={name:"card",data:function(){return{treeSelect:[{id:"free",label:"试用"},{id:"card",label:"卡密"},{id:"month",label:"月卡"},{id:"quarter",label:"季卡"},{id:"year",label:"年卡"},{id:"ever",label:"永久"}],payList:[{val:"free",label:"免费"},{val:"weixin",label:"微信"},{val:"alipay",label:"支付宝"}],tbody:[],loading:!1,total:0,formValidate:{name:"",member_type:"",pay_type:"",add_time:""},pickerOptions:this.$timeOptions,timeVal:[],tablePage:{page:1,limit:15}}},computed:Object(l.a)(Object(l.a)({},Object(n.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getMemberRecord()},methods:{selChange:function(){this.tablePage.page=1,this.getMemberRecord()},userSearchs:function(){this.tablePage.page=1,this.getMemberRecord()},paySearchs:function(){this.tablePage.page=1,this.getMemberRecord()},onchangeTime:function(e){this.timeVal=e||[],this.formValidate.add_time=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.tablePage.page=1,this.getMemberRecord()},getMemberRecord:function(){var e=this,t=(this.loading=!0,{page:this.tablePage.page,limit:this.tablePage.limit,member_type:this.formValidate.member_type,pay_type:this.formValidate.pay_type,add_time:this.formValidate.add_time,name:this.formValidate.name});Object(i.w)(t).then((function(t){e.loading=!1;t=t.data;var a=t.list;t=t.count;e.tbody=a,e.total=t})).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))}}},n=a("2877"),a=Object(n.a)(l,(function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[t("div",{staticClass:"padding-add"},[t("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:e.formValidate,"label-width":e.labelWidth,"label-position":e.labelPosition,inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"会员类型:"}},[t("el-select",{staticClass:"form_content_width",attrs:{clearable:""},on:{change:e.userSearchs},model:{value:e.formValidate.member_type,callback:function(t){e.$set(e.formValidate,"member_type",t)},expression:"formValidate.member_type"}},e._l(e.treeSelect,(function(e){return t("el-option",{key:e.id,attrs:{value:e.id,label:e.label}})})),1)],1),t("el-form-item",{attrs:{label:"支付方式:"}},[t("el-select",{staticClass:"form_content_width",attrs:{clearable:""},on:{change:e.paySearchs},model:{value:e.formValidate.pay_type,callback:function(t){e.$set(e.formValidate,"pay_type",t)},expression:"formValidate.pay_type"}},e._l(e.payList,(function(e){return t("el-option",{key:e.val,attrs:{value:e.val,label:e.label}})})),1)],1),t("el-form-item",{attrs:{label:"购买时间:"}},[t("el-date-picker",{staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),t("el-form-item",{attrs:{label:"搜索:"}},[t("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入用户名称搜索"},model:{value:e.formValidate.name,callback:function(t){e.$set(e.formValidate,"name",t)},expression:"formValidate.name"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.userSearchs}},[e._v("查询")])],1)],1)],1)]),t("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.tbody,size:"small","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[t("el-table-column",{attrs:{label:"订单号",width:"170"},scopedSlots:e._u([{key:"def