2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-281ebe2c"],{b09f:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("账户")]),e("div",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._goBack}},[e("i",{staticClass:"el-icon-close"}),t._v(" 返回 ")])],1)]),e("div",{staticClass:"table-container"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopVipUserAccountInfo.shopAccounts,border:"",stripe:""}},[e("el-table-column",{attrs:{prop:"vipAcctId",label:"账户编号",align:"center"}}),e("el-table-column",{attrs:{prop:"acctName",label:"账户名称",align:"center"}}),e("el-table-column",{attrs:{prop:"acctTypeName",label:"账户类型",align:"center"}}),e("el-table-column",{attrs:{prop:"amount",label:"账户金额",align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center"}})],1),e("el-pagination",{staticClass:"pagination-container",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.shopVipUserAccountInfo.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange}})],1)])],1)],1)],1)},n=[],c=o("b775");function a(t){return new Promise((e,o)=>{Object(c["a"])({url:"/account.queryShopVipAccount",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}var i=o("7323"),r={name:"ShopVipUserAccount",data(){return{shopVipUserAccountInfo:{shopAccounts:[],total:0,records:1,moreCondition:!1,conditions:{state:"",shopId:"",communityName:"",vipId:""}},currentPage:1,pageSize:10}},created(){this.shopVipUserAccountInfo.conditions.vipId=this.$route.query.vipId,this.shopVipUserAccountInfo.conditions.shopId=Object(i["f"])().shopId,console.log(this.shopVipUserAccountInfo.moreCondition),this._listshopVipUserAccounts(this.currentPage,this.pageSize)},methods:{handleCurrentChange(t){this.currentPage=t,this._listshopVipUserAccounts(this.currentPage,this.pageSize)},async _listshopVipUserAccounts(t,e){this.shopVipUserAccountInfo.conditions.page=t,this.shopVipUserAccountInfo.conditions.row=e;try{const t=await a(this.shopVipUserAccountInfo.conditions);this.shopVipUserAccountInfo.total=t.total,this.shopVipUserAccountInfo.records=t.records,this.shopVipUserAccountInfo.shopAccounts=t.data}catch(o){console.error("请求失败:",o)}},_goBack(){this.$router.go(-1)}}},p=r,l=(o("e074"),o("2877")),u=Object(l["a"])(p,s,n,!1,null,"5c5463b7",null);e["default"]=u.exports},b4d6:function(t,e,o){},e074:function(t,e,o){"use strict";o("b4d6")}}]);
|
|
//# sourceMappingURL=chunk-281ebe2c.e4836527.js.map
|