update:
1. fix
This commit is contained in:
@@ -104,6 +104,13 @@ export function getUserPerformance(userId) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getDailySummaryList(userId) {
|
||||||
|
return request({
|
||||||
|
url: '/market-info/daily-summary-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
userId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
export default {
|
export default {
|
||||||
height:'auto',
|
height: 'auto',
|
||||||
calcHeight: 30,
|
calcHeight: 30,
|
||||||
tip: false,
|
tip: false,
|
||||||
|
align: 'center',
|
||||||
searchShow: true,
|
searchShow: true,
|
||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
viewBtn: true,
|
menu: false,
|
||||||
selection: true,
|
addBtn: false,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
refreshBtn: false,
|
||||||
|
selection: false,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
|
stripe: true,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: "主键",
|
label: "主键",
|
||||||
@@ -23,141 +29,307 @@ export default {
|
|||||||
label: "用户ID",
|
label: "用户ID",
|
||||||
prop: "userId",
|
prop: "userId",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "用户账号",
|
label: "账号",
|
||||||
prop: "userAccount",
|
prop: "userAccount",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "用户姓名",
|
label: "姓名",
|
||||||
prop: "userName",
|
prop: "userName",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "统计日期,如 '2026-04-29'",
|
label: "日期",
|
||||||
prop: "statDate",
|
prop: "statDate",
|
||||||
|
type: "date",
|
||||||
|
overHidden: true,
|
||||||
|
fixed: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "人员相关",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "个人",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "直推",
|
||||||
|
prop: "personalTotalInviteCount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "直推人数(累计)",
|
label: "新增",
|
||||||
prop: "directReferralCount",
|
prop: "personalIncreaseInviteCount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '团队',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "总人数",
|
||||||
|
prop: "teamMemberCount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日新增直推人数",
|
label: "新增",
|
||||||
prop: "newDirectReferralCount",
|
prop: "teamIncreaseCount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "福利值、包",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: '个人',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "总值",
|
||||||
|
prop: "personalTotalBenefitsValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "团队人数(累计)",
|
label: "有效值",
|
||||||
prop: "teamTotalCount",
|
prop: "personalBenefitsPackageRemainValue",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "新增",
|
||||||
|
prop: "personalIncreaseBenefitsValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日新增团队人数",
|
label: "新增有效",
|
||||||
prop: "newTeamCount",
|
prop: "personalIncreaseCurrentBenefitsValue",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "明细",
|
||||||
|
prop: "personalIncreaseBenefitsPackageDetail",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "加速值",
|
||||||
|
prop: "personalBenefitsPackageSpeedUpValue",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "剩余",
|
||||||
|
prop: "personalBenefitsPackageRemainValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "总福利值",
|
label: "持包人数",
|
||||||
prop: "totalBenefitsValue",
|
prop: "personalInviteBenefitsPackageHolderCount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "直推新增明细",
|
||||||
|
prop: "personalInviteIncreaseBenefitsPackageDetail",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "等级",
|
||||||
|
prop: "personalBenefitsLevel",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '团队',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "总值",
|
||||||
|
prop: "teamTotalBenefitsValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日新增福利值",
|
label: "有效值",
|
||||||
prop: "increaseBenefitsValue",
|
prop: "teamCurrentBenefitsValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日持有福利包的直推人数",
|
label: "新增",
|
||||||
prop: "directWithBenefitPackageCount",
|
prop: "teamIncreaseBenefitsValue",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日直推人新增的福利包明细(数组)",
|
label: "持包人数",
|
||||||
prop: "directNewBenefitPackages",
|
prop: "teamBenefitsPackageHolderCount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "新增明细",
|
||||||
|
prop: "teamIncreaseBenefitsPackageDetail",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "消费业绩",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: '个人',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "总金额",
|
||||||
|
prop: "personalTotalAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "直推人福利包面值总和",
|
label: "线上",
|
||||||
prop: "directBenefitPackageFaceTotal",
|
prop: "personalOnlineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "直推人福利包可提供加速的值(排除后台划拨)",
|
label: "线下",
|
||||||
prop: "directAcceleratedValue",
|
prop: "personalOfflineAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "其他",
|
||||||
|
prop: "personalOtherAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "新增",
|
||||||
|
prop: "personalIncreaseAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日福利积分系统等级",
|
label: "新增线上",
|
||||||
prop: "benefitLevel",
|
prop: "personalIncreaseOnlineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日现金下单的直推人数",
|
label: "新增线下",
|
||||||
prop: "cashOrderDirectCount",
|
prop: "personalIncreaseOfflineAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "新增其他",
|
||||||
|
prop: "personalIncreaseOtherAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "等级",
|
||||||
|
prop: "personalCashLevel",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日直推人现金下单金额",
|
label: "明细",
|
||||||
prop: "cashOrderDirectAmount",
|
prop: "personalIncreaseOrderDetail",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "佣金金额",
|
||||||
|
prop: "personalDynamicRewardsAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '团队',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: "总金额",
|
||||||
|
prop: "teamTotalAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "直推人可提供的现金分红金额(排除线下支付)",
|
label: "线上",
|
||||||
prop: "cashDividendEligibleDirect",
|
prop: "teamOnlineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日佣金分红系统等级",
|
label: "线下",
|
||||||
prop: "commissionLevel",
|
prop: "teamOfflineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日自己新增福利包(明细数组)",
|
label: "其他",
|
||||||
prop: "selfNewBenefitPackages",
|
prop: "teamOtherAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "新增",
|
||||||
|
prop: "teamIncreaseAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日自己新增福利包面值",
|
label: "新增线上",
|
||||||
prop: "selfNewBenefitFaceValue",
|
prop: "teamIncreaseOnlineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "自己新增福利包可提供加速的值",
|
label: "新增线下",
|
||||||
prop: "selfAcceleratedValue",
|
prop: "teamIncreaseOfflineAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "福利包总剩余面值",
|
label: "新增其他",
|
||||||
prop: "totalRemainingBenefitFace",
|
prop: "teamIncreaseOtherAmount",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "福利包加速了多少值(累计)",
|
label: "福利积分",
|
||||||
prop: "totalAcceleratedByPackages",
|
prop: "personalBenefitsPointsBalance",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "现金分红了多少(即佣金)",
|
label: "账户佣金",
|
||||||
prop: "cashCommissionPaid",
|
prop: "personalCommissionBalance",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "当日现金消费金额(排除线下支付)",
|
label: "现金券",
|
||||||
prop: "selfCashConsumptionAmount",
|
prop: "personalCashCouponBalance",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "自己可提供分红的金额(排除线下支付)",
|
label: "用户积分",
|
||||||
prop: "selfCashDividendEligible",
|
prop: "personalUserPointsBalance",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "备注",
|
label: "备注",
|
||||||
prop: "remark",
|
prop: "remark",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "创建人",
|
label: "创建人",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default {
|
|||||||
delBtn: false,
|
delBtn: false,
|
||||||
selection: true,
|
selection: true,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
|
stripe: true,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: "主键",
|
label: "主键",
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad">
|
@on-load="onLoad">
|
||||||
<template #menu-left>
|
<template #menu-left>
|
||||||
<!-- <el-button type="warning"-->
|
<!-- <el-button type="warning"-->
|
||||||
<!-- plain-->
|
<!-- plain-->
|
||||||
<!-- icon="el-icon-download"-->
|
<!-- icon="el-icon-download"-->
|
||||||
<!-- @click="handleExport">导 出-->
|
<!-- @click="handleExport">导 出-->
|
||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
type="info"
|
type="info"
|
||||||
plain
|
plain
|
||||||
@@ -54,11 +54,17 @@
|
|||||||
@click.stop="userPerformanceOpen(row)">查询业绩
|
@click.stop="userPerformanceOpen(row)">查询业绩
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
<el-button type="text"
|
||||||
|
icon="el-icon-document"
|
||||||
|
@click.stop="handleDailySummaryData(row)">数据统计
|
||||||
|
</el-button>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
|
|
||||||
<el-drawer :title="`账户 [${userAccount}] 福利包明细`" v-model="benefitPackBox" :direction="direction" append-to-body
|
<el-drawer :title="`账户 [${userAccount}] 福利包明细`" v-model="benefitPackBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
size="800px" @close="benefitPackClose">
|
size="800px" @close="benefitPackClose">
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud :option="benefitPackOption"
|
<avue-crud :option="benefitPackOption"
|
||||||
@@ -69,7 +75,8 @@
|
|||||||
</basic-container>
|
</basic-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
<el-drawer :title="`账户 [${userAccount}] 积分信息`" v-model="userPointInfoBox" :direction="direction" append-to-body
|
<el-drawer :title="`账户 [${userAccount}] 积分信息`" v-model="userPointInfoBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
size="800px" @close="userPointInfoClose">
|
size="800px" @close="userPointInfoClose">
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud :option="userPointInfoOption"
|
<avue-crud :option="userPointInfoOption"
|
||||||
@@ -81,7 +88,8 @@
|
|||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<el-drawer :title="`账户 [${userAccount}] 累计消费`" v-model="userMallSpendBox" :direction="direction" append-to-body
|
<el-drawer :title="`账户 [${userAccount}] 累计消费`" v-model="userMallSpendBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
size="800px" @close="userMallSpendClose">
|
size="800px" @close="userMallSpendClose">
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud :option="userMallSpendOption"
|
<avue-crud :option="userMallSpendOption"
|
||||||
@@ -92,7 +100,8 @@
|
|||||||
</basic-container>
|
</basic-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
<el-drawer :title="`账户 [${userAccount}] 业绩查询`" v-model="userPerformanceBox" :direction="direction" append-to-body
|
<el-drawer :title="`账户 [${userAccount}] 业绩查询`" v-model="userPerformanceBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
size="800px" @close="userPerformanceClose">
|
size="800px" @close="userPerformanceClose">
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud :option="userPerformanceOption"
|
<avue-crud :option="userPerformanceOption"
|
||||||
@@ -103,69 +112,93 @@
|
|||||||
</basic-container>
|
</basic-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
|
<el-drawer :title="`账户 [${userAccount}] 统计数据`" v-model="dailySummaryBox" :direction="direction"
|
||||||
|
append-to-body
|
||||||
|
size="100%"
|
||||||
|
:before-close="handleDailySummaryClose">
|
||||||
|
<basic-container>
|
||||||
|
<avue-crud :option="optionSummary"
|
||||||
|
:data="dailySummaryData"
|
||||||
|
ref="crudSub">
|
||||||
|
</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-->
|
<!-- :before-close="handleSubClose" size="90%">-->
|
||||||
<!-- :before-close="handleSubClose" size="90%">-->
|
<!-- <el-tag size="large" :type="notes ? 'danger' : 'info'" effect="dark">-->
|
||||||
<!-- <el-tag size="large" :type="notes ? 'danger' : 'info'" effect="dark">-->
|
<!-- {{ notes || 'No special notes.' }}-->
|
||||||
<!-- {{ notes || 'No special notes.' }}-->
|
<!-- </el-tag>-->
|
||||||
<!-- </el-tag>-->
|
<!-- <basic-container>-->
|
||||||
<!-- <basic-container>-->
|
<!-- <avue-crud :option="optionSub"-->
|
||||||
<!-- <avue-crud :option="optionSub"-->
|
<!-- :data="dataSub"-->
|
||||||
<!-- :data="dataSub"-->
|
<!-- v-model:page="pageSub"-->
|
||||||
<!-- v-model:page="pageSub"-->
|
<!-- v-model="formSub"-->
|
||||||
<!-- v-model="formSub"-->
|
<!-- :table-loading="loadingSub"-->
|
||||||
<!-- :table-loading="loadingSub"-->
|
<!-- ref="crudSub"-->
|
||||||
<!-- ref="crudSub"-->
|
<!-- @row-del="rowDelSub"-->
|
||||||
<!-- @row-del="rowDelSub"-->
|
<!-- @row-update="rowUpdateSub"-->
|
||||||
<!-- @row-update="rowUpdateSub"-->
|
<!-- @row-save="rowSaveSub"-->
|
||||||
<!-- @row-save="rowSaveSub"-->
|
<!-- :before-open="beforeOpenSub"-->
|
||||||
<!-- :before-open="beforeOpenSub"-->
|
<!-- @search-change="searchChangeSub"-->
|
||||||
<!-- @search-change="searchChangeSub"-->
|
<!-- @search-reset="searchResetSub"-->
|
||||||
<!-- @search-reset="searchResetSub"-->
|
<!-- @selection-change="selectionChangeSub"-->
|
||||||
<!-- @selection-change="selectionChangeSub"-->
|
<!-- @current-change="currentChangeSub"-->
|
||||||
<!-- @current-change="currentChangeSub"-->
|
<!-- @size-change="sizeChangeSub"-->
|
||||||
<!-- @size-change="sizeChangeSub"-->
|
<!-- @on-load="onLoadSub">-->
|
||||||
<!-- @on-load="onLoadSub">-->
|
<!-- <template #menu="{ row }">-->
|
||||||
<!-- <template #menu="{ row }">-->
|
<!-- <el-button type="text"-->
|
||||||
<!-- <el-button type="text"-->
|
<!-- icon="el-icon-folder"-->
|
||||||
<!-- icon="el-icon-folder"-->
|
<!-- @click.stop="handleAssets(row)">Assets-->
|
||||||
<!-- @click.stop="handleAssets(row)">Assets-->
|
<!-- </el-button>-->
|
||||||
<!-- </el-button>-->
|
<!-- <el-button type="text"-->
|
||||||
<!-- <el-button type="text"-->
|
<!-- icon="el-icon-download"-->
|
||||||
<!-- icon="el-icon-download"-->
|
<!-- v-if="row.status === 1"-->
|
||||||
<!-- v-if="row.status === 1"-->
|
<!-- @click.stop="handleDownload(row)">Download-->
|
||||||
<!-- @click.stop="handleDownload(row)">Download-->
|
<!-- </el-button>-->
|
||||||
<!-- </el-button>-->
|
<!-- <el-button type="text"-->
|
||||||
<!-- <el-button type="text"-->
|
<!-- icon="el-icon-finished"-->
|
||||||
<!-- icon="el-icon-finished"-->
|
<!-- v-if="row.status === 1"-->
|
||||||
<!-- v-if="row.status === 1"-->
|
<!-- @click.stop="handleDone(row)">Done-->
|
||||||
<!-- @click.stop="handleDone(row)">Done-->
|
<!-- </el-button>-->
|
||||||
<!-- </el-button>-->
|
<!-- </template>-->
|
||||||
<!-- </template>-->
|
<!-- </avue-crud>-->
|
||||||
<!-- </avue-crud>-->
|
<!-- </basic-container>-->
|
||||||
<!-- </basic-container>-->
|
<!-- </el-drawer>-->
|
||||||
<!-- </el-drawer>-->
|
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getList, getDetail, add, update, remove, resetPassword , benefitPackCountByUser , getUserPointInfo , getUserMallSpend , getUserPerformance} from "@/api/market/marketInfo";
|
import {
|
||||||
import option from "@/option/market/marketInfo";
|
add,
|
||||||
import {mapGetters} from "vuex";
|
benefitPackCountByUser,
|
||||||
import {exportBlob} from "@/api/common";
|
getDailySummaryList,
|
||||||
import {getToken} from '@/utils/auth';
|
getDetail,
|
||||||
import {downloadXls} from "@/utils/util";
|
getList,
|
||||||
import {dateNow} from "@/utils/date";
|
getUserMallSpend,
|
||||||
import NProgress from 'nprogress';
|
getUserPerformance,
|
||||||
import 'nprogress/nprogress.css';
|
getUserPointInfo,
|
||||||
|
remove,
|
||||||
|
resetPassword,
|
||||||
|
update
|
||||||
|
} from "@/api/market/marketInfo";
|
||||||
|
import option from "@/option/market/marketInfo";
|
||||||
|
import optionSummary from "@/option/market/dailySummary";
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import {exportBlob} from "@/api/common";
|
||||||
|
import {getToken} from '@/utils/auth';
|
||||||
|
import {downloadXls} from "@/utils/util";
|
||||||
|
import {dateNow} from "@/utils/date";
|
||||||
|
import NProgress from 'nprogress';
|
||||||
|
import 'nprogress/nprogress.css';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {},
|
form: {},
|
||||||
|
formSummary:{},
|
||||||
query: {},
|
query: {},
|
||||||
search: {},
|
search: {},
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -179,10 +212,10 @@
|
|||||||
data: [],
|
data: [],
|
||||||
username: "用户账号",
|
username: "用户账号",
|
||||||
|
|
||||||
userAccount : "",
|
userAccount: "",
|
||||||
direction : "rtl",
|
direction: "rtl",
|
||||||
benefitPackBox: false,
|
benefitPackBox: false,
|
||||||
benefitPackOption : {
|
benefitPackOption: {
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: true,
|
editBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
@@ -202,11 +235,11 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
benefitPackData : [],
|
benefitPackData: [],
|
||||||
|
|
||||||
|
|
||||||
userPointInfoBox: false,
|
userPointInfoBox: false,
|
||||||
userPointInfoOption : {
|
userPointInfoOption: {
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: true,
|
editBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
@@ -240,10 +273,10 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
userPointInfoData : [],
|
userPointInfoData: [],
|
||||||
|
|
||||||
userMallSpendBox: false,
|
userMallSpendBox: false,
|
||||||
userMallSpendOption : {
|
userMallSpendOption: {
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: true,
|
editBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
@@ -258,10 +291,10 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
userMallSpendData : [],
|
userMallSpendData: [],
|
||||||
|
|
||||||
userPerformanceBox: false,
|
userPerformanceBox: false,
|
||||||
userPerformanceOption : {
|
userPerformanceOption: {
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: true,
|
editBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
@@ -283,7 +316,12 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
userPerformanceData : [],
|
userPerformanceData: [],
|
||||||
|
|
||||||
|
dailySummaryBox: false,
|
||||||
|
dailySummaryData: [],
|
||||||
|
optionSummary: optionSummary,
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -373,10 +411,8 @@
|
|||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let downloadUrl = `/blade-marketinfo/marketInfo/export-marketInfo?${this.website.tokenHeader}=${getToken()}`;
|
let downloadUrl = `/blade-marketinfo/marketInfo/export-marketInfo?${this.website.tokenHeader}=${getToken()}`;
|
||||||
const {
|
const {} = this.query;
|
||||||
} = this.query;
|
let values = {};
|
||||||
let values = {
|
|
||||||
};
|
|
||||||
this.$confirm("是否导出数据?", "提示", {
|
this.$confirm("是否导出数据?", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
@@ -435,10 +471,10 @@
|
|||||||
this.selectionList = [];
|
this.selectionList = [];
|
||||||
this.$refs.crud.toggleSelection();
|
this.$refs.crud.toggleSelection();
|
||||||
},
|
},
|
||||||
currentChange(currentPage){
|
currentChange(currentPage) {
|
||||||
this.page.currentPage = currentPage;
|
this.page.currentPage = currentPage;
|
||||||
},
|
},
|
||||||
sizeChange(pageSize){
|
sizeChange(pageSize) {
|
||||||
this.page.pageSize = pageSize;
|
this.page.pageSize = pageSize;
|
||||||
},
|
},
|
||||||
refreshChange() {
|
refreshChange() {
|
||||||
@@ -455,7 +491,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
benefitPackInfoOpen(row){
|
benefitPackInfoOpen(row) {
|
||||||
this.benefitPackBox = true;
|
this.benefitPackBox = true;
|
||||||
this.userAccount = row.account;
|
this.userAccount = row.account;
|
||||||
benefitPackCountByUser(row.id)
|
benefitPackCountByUser(row.id)
|
||||||
@@ -465,11 +501,11 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
benefitPackClose(){
|
benefitPackClose() {
|
||||||
this.benefitPackData = [];
|
this.benefitPackData = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
userPointInfoOpen(row){
|
userPointInfoOpen(row) {
|
||||||
this.userPointInfoBox = true;
|
this.userPointInfoBox = true;
|
||||||
this.userAccount = row.account;
|
this.userAccount = row.account;
|
||||||
getUserPointInfo(row.id)
|
getUserPointInfo(row.id)
|
||||||
@@ -478,11 +514,11 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
userPointInfoClose(){
|
userPointInfoClose() {
|
||||||
this.userPointInfoData = [];
|
this.userPointInfoData = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
userMallSpendOpen(row){
|
userMallSpendOpen(row) {
|
||||||
this.userMallSpendBox = true;
|
this.userMallSpendBox = true;
|
||||||
this.userAccount = row.account;
|
this.userAccount = row.account;
|
||||||
|
|
||||||
@@ -493,11 +529,11 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
userMallSpendClose(){
|
userMallSpendClose() {
|
||||||
this.userMallSpendData = [];
|
this.userMallSpendData = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
userPerformanceOpen(row){
|
userPerformanceOpen(row) {
|
||||||
this.userPerformanceBox = true;
|
this.userPerformanceBox = true;
|
||||||
this.userAccount = row.account;
|
this.userAccount = row.account;
|
||||||
|
|
||||||
@@ -507,12 +543,25 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
userPerformanceClose(){
|
userPerformanceClose() {
|
||||||
this.userPerformanceData = [];
|
this.userPerformanceData = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleDailySummaryData(row) {
|
||||||
|
this.dailySummaryBox = true;
|
||||||
|
this.userAccount = row.account;
|
||||||
|
getDailySummaryList(row.id)
|
||||||
|
.then(res => {
|
||||||
|
this.dailySummaryData = res.data.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDailySummaryClose(hide) {
|
||||||
|
hide();
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user