feat:
1. 用户个人信息优化,增加不同类型的流水查询入口
This commit is contained in:
12
src/api/market/userFlow.js
Normal file
12
src/api/market/userFlow.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import request from '@/axios';
|
||||||
|
|
||||||
|
export const getFlowList = (id, type) => {
|
||||||
|
return request({
|
||||||
|
url: '/market-info/user-flow-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
type
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
58
src/option/market/userFlow.js
Normal file
58
src/option/market/userFlow.js
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
export default {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
excelBtn: true,
|
||||||
|
gridBtn: false,
|
||||||
|
selection: false,
|
||||||
|
menu: false,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: '主键',
|
||||||
|
prop: 'id',
|
||||||
|
type: 'input',
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '用户id',
|
||||||
|
prop: 'userId',
|
||||||
|
type: 'input',
|
||||||
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '变动金额',
|
||||||
|
prop: 'amount',
|
||||||
|
type: 'input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '上笔金额',
|
||||||
|
prop: 'lastAmount',
|
||||||
|
type: 'input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '统计时间',
|
||||||
|
prop: 'statisticalDate',
|
||||||
|
type: 'input',
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '备注',
|
||||||
|
prop: 'remark',
|
||||||
|
type: 'input',
|
||||||
|
overHidden: true,
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -58,6 +58,36 @@
|
|||||||
icon="el-icon-document"
|
icon="el-icon-document"
|
||||||
@click.stop="handleDailySummaryData(row)">数据统计
|
@click.stop="handleDailySummaryData(row)">数据统计
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-dropdown trigger="click" placement="bottom-end">
|
||||||
|
<el-button type="text" icon="el-icon-caret-bottom">流水日志</el-button>
|
||||||
|
<template #dropdown>
|
||||||
|
<el-dropdown-menu>
|
||||||
|
<el-dropdown-item @click="handleUserPointFlow(row)">用户积分</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click="handleBenefitPointFlow(row)">福利积分</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click="handleCahCouponFlow(row)">现金券</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click="handleCommissionFlow(row)">佣金</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</template>
|
||||||
|
</el-dropdown>
|
||||||
|
<!-- <el-button type="text"-->
|
||||||
|
<!-- icon="el-icon-document"-->
|
||||||
|
<!-- @click.stop="handleUserPointFlow(row)">用户积分流水-->
|
||||||
|
<!-- </el-button>-->
|
||||||
|
|
||||||
|
<!-- <el-button type="text"-->
|
||||||
|
<!-- icon="el-icon-document"-->
|
||||||
|
<!-- @click.stop="handleBenefitPointFlow(row)">福利积分流水-->
|
||||||
|
<!-- </el-button>-->
|
||||||
|
|
||||||
|
<!-- <el-button type="text"-->
|
||||||
|
<!-- icon="el-icon-document"-->
|
||||||
|
<!-- @click.stop="handleCommissionFlow(row)">佣金流水-->
|
||||||
|
<!-- </el-button>-->
|
||||||
|
|
||||||
|
<!-- <el-button type="text"-->
|
||||||
|
<!-- icon="el-icon-document"-->
|
||||||
|
<!-- @click.stop="handleCahCouponFlow(row)">现金券流水-->
|
||||||
|
<!-- </el-button>-->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -124,6 +154,18 @@
|
|||||||
</basic-container>
|
</basic-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
|
<el-drawer :title="`账户 [${userAccount}] [${flowType}] 流水查询`" v-model="userFlowBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
|
size="50%"
|
||||||
|
:before-close="handleFlowClose">
|
||||||
|
<basic-container>
|
||||||
|
<avue-crud :option="optionFlow"
|
||||||
|
:data="userFlowData"
|
||||||
|
ref="crudUserLog">
|
||||||
|
</avue-crud>
|
||||||
|
</basic-container>
|
||||||
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- <el-drawer :title="`${username} ${serialNumber} `" v-model="subVisible" :direction="direction"-->
|
<!-- <el-drawer :title="`${username} ${serialNumber} `" v-model="subVisible" :direction="direction"-->
|
||||||
<!-- append-to-body-->
|
<!-- append-to-body-->
|
||||||
@@ -184,8 +226,10 @@ import {
|
|||||||
resetPassword,
|
resetPassword,
|
||||||
update
|
update
|
||||||
} from "@/api/market/marketInfo";
|
} from "@/api/market/marketInfo";
|
||||||
|
import {getFlowList} from "@/api/market/userFlow";
|
||||||
import option from "@/option/market/marketInfo";
|
import option from "@/option/market/marketInfo";
|
||||||
import optionSummary from "@/option/market/dailySummary";
|
import optionSummary from "@/option/market/dailySummary";
|
||||||
|
import optionFlow from "@/option/market/userFlow"
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import {exportBlob} from "@/api/common";
|
import {exportBlob} from "@/api/common";
|
||||||
import {getToken} from '@/utils/auth';
|
import {getToken} from '@/utils/auth';
|
||||||
@@ -198,7 +242,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {},
|
form: {},
|
||||||
formSummary:{},
|
formSummary: {},
|
||||||
query: {},
|
query: {},
|
||||||
search: {},
|
search: {},
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -211,8 +255,8 @@ export default {
|
|||||||
option: option,
|
option: option,
|
||||||
data: [],
|
data: [],
|
||||||
username: "用户账号",
|
username: "用户账号",
|
||||||
|
|
||||||
userAccount: "",
|
userAccount: "",
|
||||||
|
flowType: "",
|
||||||
direction: "rtl",
|
direction: "rtl",
|
||||||
benefitPackBox: false,
|
benefitPackBox: false,
|
||||||
benefitPackOption: {
|
benefitPackOption: {
|
||||||
@@ -322,6 +366,9 @@ export default {
|
|||||||
dailySummaryData: [],
|
dailySummaryData: [],
|
||||||
optionSummary: optionSummary,
|
optionSummary: optionSummary,
|
||||||
|
|
||||||
|
userFlowBox: false,
|
||||||
|
optionFlow: optionFlow,
|
||||||
|
userFlowData: [],
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -558,7 +605,45 @@ export default {
|
|||||||
handleDailySummaryClose(hide) {
|
handleDailySummaryClose(hide) {
|
||||||
hide();
|
hide();
|
||||||
},
|
},
|
||||||
|
handleUserPointFlow(row) {
|
||||||
|
this.userFlowBox = true;
|
||||||
|
this.userAccount = row.account;
|
||||||
|
this.flowType = "用户积分";
|
||||||
|
getFlowList(row.id, 1)
|
||||||
|
.then(res => {
|
||||||
|
this.userFlowData = res.data.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleBenefitPointFlow(row) {
|
||||||
|
this.userFlowBox = true;
|
||||||
|
this.userAccount = row.account;
|
||||||
|
this.flowType = "福利积分";
|
||||||
|
getFlowList(row.id, 2)
|
||||||
|
.then(res => {
|
||||||
|
this.userFlowData = res.data.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCommissionFlow(row) {
|
||||||
|
this.userFlowBox = true;
|
||||||
|
this.userAccount = row.account;
|
||||||
|
this.flowType = "佣金";
|
||||||
|
getFlowList(row.id, 3)
|
||||||
|
.then(res => {
|
||||||
|
this.userFlowData = res.data.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCahCouponFlow(row) {
|
||||||
|
this.userFlowBox = true;
|
||||||
|
this.userAccount = row.account;
|
||||||
|
this.flowType = "现金券";
|
||||||
|
getFlowList(row.id, 4)
|
||||||
|
.then(res => {
|
||||||
|
this.userFlowData = res.data.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleFlowClose(hide) {
|
||||||
|
hide();
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user