提交
This commit is contained in:
parent
6c4005840d
commit
ca8eff0fe6
12
src/api/app/dashboard.js
Normal file
12
src/api/app/dashboard.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户分成月报表
|
||||||
|
*/
|
||||||
|
export function appBonusDailyAmount(params) {
|
||||||
|
return request({
|
||||||
|
url: '/app/dashboard/bonusDailyAmount',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
|
@ -4,6 +4,19 @@ import Layout from '@/layout/index.vue'
|
||||||
* 商户中心路由
|
* 商户中心路由
|
||||||
*/
|
*/
|
||||||
export const mchRoutes = [
|
export const mchRoutes = [
|
||||||
|
{
|
||||||
|
path: '/share',
|
||||||
|
component: Layout,
|
||||||
|
hidden: false,
|
||||||
|
alwaysShow: true,
|
||||||
|
meta: {
|
||||||
|
title: '推广管理',
|
||||||
|
icon: 'user'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/business',
|
path: '/business',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
@ -170,38 +183,4 @@ export const mchRoutes = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/dev',
|
|
||||||
component: Layout,
|
|
||||||
hidden: false,
|
|
||||||
alwaysShow: true,
|
|
||||||
meta: {
|
|
||||||
title: '开发管理',
|
|
||||||
icon: 'code'
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'access',
|
|
||||||
hidden: false,
|
|
||||||
component: () => import('@/views/mch/access/index.vue'),
|
|
||||||
name: "MchAccess",
|
|
||||||
meta: {
|
|
||||||
noCache: false,
|
|
||||||
title: '秘钥管理',
|
|
||||||
icon: 'key',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'doc',
|
|
||||||
component: () => import('@/views/mch/devDoc/index.vue'),
|
|
||||||
hidden: false,
|
|
||||||
name: 'DevDoc',
|
|
||||||
meta: {
|
|
||||||
noCache: false,
|
|
||||||
title: '开发文档',
|
|
||||||
icon: 'documentation'
|
|
||||||
},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -99,7 +99,7 @@ const user = {
|
||||||
setUserType(userType);
|
setUserType(userType);
|
||||||
commit('SET_USER_TYPE', userType)
|
commit('SET_USER_TYPE', userType)
|
||||||
if (userType === UserType.APP) {
|
if (userType === UserType.APP) {
|
||||||
commit('SET_TITLE', "创特物联-商户中心")
|
commit('SET_TITLE', "创亿康-商户中心")
|
||||||
}
|
}
|
||||||
resolve(res)
|
resolve(res)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="unit">条</div>
|
<div class="unit">条</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="todo-item" @click="$router.push('/complaint/mchApply?status=0')">
|
<div class="todo-item" @click="$router.push('/complaint/mchApply?status=0')">
|
||||||
<div class="label"><svg-icon icon-class="apply"/> 商家合作申请</div>
|
<div class="label"><svg-icon icon-class="apply"/> 商家合作</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<count-to :start-val="0" :end-val="data.mchApplyCount" :duration="3000"/>
|
<count-to :start-val="0" :end-val="data.mchApplyCount" :duration="3000"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,31 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="profile" v-loading="loading">
|
<div class="profile" v-loading="loading">
|
||||||
<el-avatar :src="avatar" :size="64" style="margin:2em auto;"/>
|
<el-avatar :src="avatar" :size="64" style="margin:2em auto;"/>
|
||||||
<el-row type="flex" style="margin-bottom: 1em">
|
|
||||||
<el-statistic title="设备数" :value="user.deviceCount" suffix="台"/>
|
|
||||||
<el-statistic :title="FieldName.STORE" :value="user.storeCount" suffix="家"/>
|
|
||||||
</el-row>
|
|
||||||
<el-row type="flex" style="margin-bottom: 1em">
|
<el-row type="flex" style="margin-bottom: 1em">
|
||||||
<el-statistic title="总收入" :value="user.totalIncome" :precision="2" suffix="元"/>
|
<el-statistic title="总收入" :value="user.totalIncome" :precision="2" suffix="元"/>
|
||||||
<el-statistic title="总提现" :value="user.withDrawlAmount" :precision="2" suffix="元"/>
|
<el-statistic title="总提现" :value="user.withDrawlAmount" :precision="2" suffix="元"/>
|
||||||
<el-statistic title="账户余额" :value="user.balance" suffix="元" :precision="2"/>
|
<el-statistic title="账户余额" :value="user.balance" suffix="元" :precision="2"/>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row type="flex" style="margin-bottom: 1em">
|
||||||
|
<el-statistic :title="FieldName.AGENT" :value="user.agentCount" suffix="人"/>
|
||||||
|
<el-statistic :title="FieldName.BIZ" :value="user.bizManCount" suffix="人"/>
|
||||||
|
<el-statistic :title="FieldName.INVESTOR" :value="user.investorCount" suffix="人"/>
|
||||||
|
<el-statistic title="设备数" :value="user.deviceCount" suffix="台"/>
|
||||||
|
<el-statistic :title="FieldName.STORE" :value="user.storeCount" suffix="家"/>
|
||||||
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<line-field label="绑定手机" :value="user.phonenumber"/>
|
<line-field label="绑定手机" :value="user.phonenumber"/>
|
||||||
<line-field label="设备服务费">
|
|
||||||
<template v-if="user.serviceRate == null || user.serviceType == null">跟随渠道</template>
|
|
||||||
<template v-else>
|
|
||||||
<dict-tag :options="dict.type.service_type" :value="user.serviceType" size="mini"/>
|
|
||||||
{{user.serviceRate}} {{serviceUnit(user.serviceType)}}
|
|
||||||
</template>
|
|
||||||
</line-field>
|
|
||||||
<line-field label="提现服务费">
|
|
||||||
<template v-if="user.withdrawServiceRate == null || user.withdrawServiceType == null">跟随渠道</template>
|
|
||||||
<template v-else>
|
|
||||||
<dict-tag :options="dict.type.withdraw_service_type" :value="user.withdrawServiceType" size="mini"/>
|
|
||||||
{{user.withdrawServiceRate}} {{serviceUnit(user.withdrawServiceType)}}
|
|
||||||
</template>
|
|
||||||
</line-field>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<el-card class="card-box">
|
<el-card class="card-box">
|
||||||
<mch-user-profile/>
|
<mch-user-profile/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="card-box" header="收款账户">
|
<!-- <el-card class="card-box" header="收款账户">-->
|
||||||
<mch-account/>
|
<!-- <mch-account/>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xl="18" :lg="16" :md="14" :sm="12" :xs="24">
|
<el-col :xl="18" :lg="16" :md="14" :sm="12" :xs="24">
|
||||||
<el-scrollbar style="max-height: calc(100vh - 148px);">
|
<el-scrollbar style="max-height: calc(100vh - 148px);">
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="`直属${FieldName.AGENT}`" prop="agentName">
|
<el-form-item :label="`直属${FieldName.AGENT}`" prop="agentName" :label-width="`${FieldName.AGENT.length + 3}em`">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.agentName"
|
v-model="queryParams.agentName"
|
||||||
:placeholder="`请输入直属${FieldName.AGENT}名称`"
|
:placeholder="`请输入直属${FieldName.AGENT}名称`"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user