王总上门按摩后台代码
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 lines
4.2 KiB

webpackJsonp([65],{OjV6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),i=a("Xxa5"),s=a.n(i),l=a("exGp"),o=a.n(l),c=a("PJh5"),u=a.n(c),m={data:function(){return{pickerOptions:{disabledDate:function(t){return t.getTime()>1e3*(u()(u()(Date.now()).format("YYYY-MM-DD")).unix()+86400-1)}},loading:{list:!1,user:!1},searchForm:{list:{page:1,limit:10,start_time:"",end_time:"",name:""},user:{page:1,limit:10,nickName:""}},tableData:{list:[],user:[]},total:{list:0,user:0},cur_coupon:{},multipleSelection:[],showDialog:!1}},created:function(){this.getTableDataList(1,"list")},methods:{resetForm:function(t){var e=t+"Form";this.$refs[e].resetFields(),this.getTableDataList(1,t)},handleSizeChange:function(t,e){this.searchForm[e].limit=t,this.handleCurrentChange(1,e)},handleCurrentChange:function(t,e){this.searchForm[e].page=t,this.getTableDataList("",e)},getTableDataList:function(t,e){var a=this;return o()(s.a.mark(function r(){var n,i,l,o;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&(a.searchForm[e].page=1),a.tableData[e]=[],a.loading[e]=!0,n=a.searchForm[e],"list"!==e){r.next=10;break}return r.next=7,a.$api.market.couponList(n);case 7:r.t0=r.sent,r.next=13;break;case 10:return r.next=12,a.$api.custom.userList(n);case 12:r.t0=r.sent;case 13:if(i=r.t0,l=i.code,o=i.data,a.loading[e]=!1,200===l){r.next=19;break}return r.abrupt("return");case 19:a.tableData[e]=o.data,a.total[e]=o.total;case 21:case"end":return r.stop()}},r,a)}))()},toShowDialog:function(t){var e=this;return o()(s.a.mark(function a(){return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.searchForm.user.nickName="",e.cur_coupon=JSON.parse(n()(t)),a.next=4,e.getTableDataList(1,"user");case 4:e.showDialog=!e.showDialog;case 5:case"end":return a.stop()}},a,e)}))()},handleSelectionChange:function(t){this.multipleSelection=t}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-examine-goods"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("div",{staticClass:"space-lg"}),t._v(" "),a("el-row",{staticClass:"page-search-form"},[a("el-form",{ref:"listForm",attrs:{inline:!0,model:t.searchForm.list},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"申请时间",prop:"start_time"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp","picker-options":t.pickerOptions,"default-time":["00:00:00","23:59:59"]},on:{change:function(e){return t.getTableDataList(1)}},model:{value:t.searchForm.start_time,callback:function(e){t.$set(t.searchForm,"start_time",e)},expression:"searchForm.start_time"}})],1),t._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getTableDataList(1,"list")}}},[t._v(t._s(t.$t("action.search")))]),t._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(e){return t.resetForm("list")}}},[t._v(t._s(t.$t("action.reset")))])],1)],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading.list,expression:"loading.list"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list,"header-cell-style":{background:"#f5f7fa",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"姓名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"身份证号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"住址"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"申请原因"}})],1),t._v(" "),a("lb-page",{attrs:{batch:!1,page:t.searchForm.list.page,pageSize:t.searchForm.list.limit,total:t.total.list},on:{handleSizeChange:function(e){return t.handleSizeChange(e,"list")},handleCurrentChange:function(e){return t.handleCurrentChange(e,"list")}}})],1)],1)},staticRenderFns:[]};var h=a("VU/8")(m,p,!1,function(t){a("VsUC")},"data-v-5862c05a",null);e.default=h.exports},VsUC:function(t,e){}});