完善功能
This commit is contained in:
26
src/api/broker_account_log.ts
Normal file
26
src/api/broker_account_log.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 茶艺师经纪人表列表
|
||||||
|
export function apiBrokerAccountLogLists(params: any) {
|
||||||
|
return request.get({ url: '/broker_account_log/lists', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加茶艺师经纪人表
|
||||||
|
export function apiBrokerAccountLogAdd(params: any) {
|
||||||
|
return request.post({ url: '/broker_account_log/add', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 编辑茶艺师经纪人表
|
||||||
|
export function apiBrokerAccountLogEdit(params: any) {
|
||||||
|
return request.post({ url: '/broker_account_log/edit', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除茶艺师经纪人表
|
||||||
|
export function apiBrokerAccountLogDelete(params: any) {
|
||||||
|
return request.post({ url: '/broker_account_log/delete', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 茶艺师经纪人表详情
|
||||||
|
export function apiBrokerAccountLogDetail(params: any) {
|
||||||
|
return request.get({ url: '/broker_account_log/detail', params })
|
||||||
|
}
|
||||||
26
src/api/broker_bank.ts
Normal file
26
src/api/broker_bank.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 茶艺师经济人银行卡表列表
|
||||||
|
export function apiBrokerBankLists(params: any) {
|
||||||
|
return request.get({ url: '/broker_bank/lists', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加茶艺师经济人银行卡表
|
||||||
|
export function apiBrokerBankAdd(params: any) {
|
||||||
|
return request.post({ url: '/broker_bank/add', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 编辑茶艺师经济人银行卡表
|
||||||
|
export function apiBrokerBankEdit(params: any) {
|
||||||
|
return request.post({ url: '/broker_bank/edit', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除茶艺师经济人银行卡表
|
||||||
|
export function apiBrokerBankDelete(params: any) {
|
||||||
|
return request.post({ url: '/broker_bank/delete', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 茶艺师经济人银行卡表详情
|
||||||
|
export function apiBrokerBankDetail(params: any) {
|
||||||
|
return request.get({ url: '/broker_bank/detail', params })
|
||||||
|
}
|
||||||
31
src/api/broker_reflect.ts
Normal file
31
src/api/broker_reflect.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 茶艺师经纪人提现表列表
|
||||||
|
export function apiBrokerReflectLists(params: any) {
|
||||||
|
return request.get({ url: '/broker_reflect/lists', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加茶艺师经纪人提现表
|
||||||
|
export function apiBrokerReflectAdd(params: any) {
|
||||||
|
return request.post({ url: '/broker_reflect/add', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 编辑茶艺师经纪人提现表
|
||||||
|
export function apiBrokerReflectEdit(params: any) {
|
||||||
|
return request.post({ url: '/broker_reflect/edit', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除茶艺师经纪人提现表
|
||||||
|
export function apiBrokerReflectDelete(params: any) {
|
||||||
|
return request.post({ url: '/broker_reflect/delete', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 茶艺师经纪人提现表详情
|
||||||
|
export function apiBrokerReflectDetail(params: any) {
|
||||||
|
return request.get({ url: '/broker_reflect/detail', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取已填加的银行卡列表
|
||||||
|
export function apiBankLists(params: any) {
|
||||||
|
return request.post({ url: '/brokerBank/BankLists', params })
|
||||||
|
}
|
||||||
@ -20,3 +20,8 @@ export function getUserInfo() {
|
|||||||
export function setUserInfo(params: any) {
|
export function setUserInfo(params: any) {
|
||||||
return request.post({ url: '/auth.admin/editSelf', params })
|
return request.post({ url: '/auth.admin/editSelf', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取账户信息
|
||||||
|
export function getUserAccountInfo() {
|
||||||
|
return request.post({ url: '/auth.admin/brokerMsg' })
|
||||||
|
}
|
||||||
89
src/views/broker_account_log/index.vue
Normal file
89
src/views/broker_account_log/index.vue
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
|
<el-form-item class="w-[280px]" label="流水类型" prop="change_type">
|
||||||
|
<el-select v-model="queryParams.change_type" clearable placeholder="请选择流水类型">
|
||||||
|
<el-option label="全部" value=""></el-option>
|
||||||
|
<el-option label="提现" value="1"></el-option>
|
||||||
|
<el-option label="分账收益" value="2"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="动作" prop="action" class="w-[280px]">
|
||||||
|
<el-select v-model="queryParams.action" clearable placeholder="请选择">
|
||||||
|
<el-option label="全部" value=""></el-option>
|
||||||
|
<el-option label="增加" value="1"></el-option>
|
||||||
|
<el-option label="减少" value="2"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="关联单号" prop="source_sn">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.source_sn" clearable placeholder="请输入关联单号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
|
<div class="mt-4">
|
||||||
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="流水类型" prop="change_type">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ row.change_type == 1 ? '提现' : '分账收益' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="动作" prop="action">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ row.action == 1 ? '增加' : '减少' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="变动数量" prop="amount" show-overflow-tooltip />
|
||||||
|
<el-table-column label="变动前数量" prop="before_amount" show-overflow-tooltip />
|
||||||
|
<el-table-column label="变动后数量" prop="after_amount" show-overflow-tooltip />
|
||||||
|
<el-table-column label="关联单号" prop="source_sn" show-overflow-tooltip />
|
||||||
|
<el-table-column label="备注" prop="remark" show-overflow-tooltip />
|
||||||
|
<el-table-column label="创建时间" prop="create_time" show-overflow-tooltip />
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="flex mt-4 justify-end">
|
||||||
|
<pagination v-model="pager" @change="getLists" />
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="brokerAccountLogLists">
|
||||||
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
|
import { apiBrokerAccountLogLists, apiBrokerAccountLogDelete } from '@/api/broker_account_log'
|
||||||
|
import { timeFormat } from '@/utils/util'
|
||||||
|
import feedback from '@/utils/feedback'
|
||||||
|
|
||||||
|
// 查询条件
|
||||||
|
const queryParams = reactive({
|
||||||
|
change_type: '',
|
||||||
|
action: '',
|
||||||
|
source_sn: ''
|
||||||
|
})
|
||||||
|
|
||||||
|
// 选中数据
|
||||||
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
|
// 表格选择后回调事件
|
||||||
|
const handleSelectionChange = (val: any[]) => {
|
||||||
|
selectData.value = val.map(({ id }) => id)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取字典数据
|
||||||
|
const { dictData } = useDictData('')
|
||||||
|
|
||||||
|
// 分页相关
|
||||||
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
|
fetchFun: apiBrokerAccountLogLists,
|
||||||
|
params: queryParams
|
||||||
|
})
|
||||||
|
|
||||||
|
getLists()
|
||||||
|
</script>
|
||||||
@ -33,7 +33,8 @@
|
|||||||
<el-table-column label="体重" prop="weight" show-overflow-tooltip />
|
<el-table-column label="体重" prop="weight" show-overflow-tooltip />
|
||||||
<el-table-column label="个人头像照片" prop="avatar">
|
<el-table-column label="个人头像照片" prop="avatar">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-image style="width:100px;height:100px;" :src="row.avatar" />
|
<el-image style="width:100px;height:100px;" :src="row.avatar"
|
||||||
|
:preview-src-list="[row.avatar]" preview-teleported fit="cover" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="个人资料多图" prop="information">
|
<!-- <el-table-column label="个人资料多图" prop="information">
|
||||||
|
|||||||
@ -33,29 +33,30 @@
|
|||||||
<el-form-item label="体重" prop="weight">
|
<el-form-item label="体重" prop="weight">
|
||||||
<el-input v-model="formData.weight" clearable placeholder="请输入体重" disabled />
|
<el-input v-model="formData.weight" clearable placeholder="请输入体重" disabled />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="茶艺师资格证" prop="license_img"
|
||||||
|
v-if="formData.license_img.length > 0 && formData.license_img">
|
||||||
|
<el-image style="width: 100px; height: 100px" :src="formData.license_img" :zoom-rate="1.2"
|
||||||
|
:max-scale="7" :min-scale="0.2" :preview-src-list="[formData.license_img]" show-progress
|
||||||
|
:initial-index="4" fit="cover" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="个人头像照片" prop="avatar">
|
<el-form-item label="个人头像照片" prop="avatar">
|
||||||
<el-image style="width: 100px; height: 100px" :src="formData.avatar" :zoom-rate="1.2" :max-scale="7"
|
<el-image style="width: 100px; height: 100px" :src="formData.avatar" :zoom-rate="1.2" :max-scale="7"
|
||||||
:min-scale="0.2" :preview-src-list="[formData.avatar]" show-progress :initial-index="4"
|
:min-scale="0.2" :preview-src-list="[formData.avatar]" show-progress :initial-index="4"
|
||||||
fit="cover" />
|
fit="cover" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="健康证" prop="certificate"
|
<el-form-item label="健康证" prop="health_certificate"
|
||||||
v-if="formData.certificate.length > 0 && formData.certificate[0]">
|
v-if="formData.health_certificate.length > 0 && formData.health_certificate">
|
||||||
<el-image style="width: 100px; height: 100px" :src="formData.certificate[0]" :zoom-rate="1.2"
|
<el-image style="width: 100px; height: 100px" :src="formData.health_certificate" :zoom-rate="1.2"
|
||||||
:max-scale="7" :min-scale="0.2" :preview-src-list="[formData.certificate[0]]" show-progress
|
:max-scale="7" :min-scale="0.2" :preview-src-list="[formData.health_certificate]" show-progress
|
||||||
:initial-index="4" fit="cover" />
|
:initial-index="4" fit="cover" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="茶艺师资格证" prop="certificate"
|
|
||||||
v-if="formData.certificate.length > 0 && formData.certificate[1]">
|
<el-form-item label="个人展示" prop="avatar">
|
||||||
<el-image style="width: 100px; height: 100px" :src="formData.certificate[1]" :zoom-rate="1.2"
|
<el-image v-for="(item, index) in formData.information" :key="index"
|
||||||
:max-scale="7" :min-scale="0.2" :preview-src-list="[formData.certificate[1]]" show-progress
|
style="width: 100px; height: 100px" :src="item" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2"
|
||||||
:initial-index="4" fit="cover" />
|
:preview-src-list="[formData.information]" show-progress :initial-index="4" fit="cover" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="营业执照" prop="license_img">
|
|
||||||
<el-image style="width: 100px; height: 100px" :src="formData.license_img" :zoom-rate="1.2"
|
|
||||||
:max-scale="7" :min-scale="0.2" :preview-src-list="[formData.license_img]" show-progress
|
|
||||||
:initial-index="4" fit="cover" />
|
|
||||||
<material-picker v-model="formData.license_img" />
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item label="兴趣爱好" prop="hobby_introduce">
|
<el-form-item label="兴趣爱好" prop="hobby_introduce">
|
||||||
<editor class="flex-1" v-model="formData.hobby_introduce" :height="500" disabled />
|
<editor class="flex-1" v-model="formData.hobby_introduce" :height="500" disabled />
|
||||||
|
|
||||||
@ -114,6 +115,7 @@ const formData = reactive({
|
|||||||
certificate: [],
|
certificate: [],
|
||||||
license_img: '',
|
license_img: '',
|
||||||
hobby_introduce: '',
|
hobby_introduce: '',
|
||||||
|
health_certificate: '',
|
||||||
status: '',
|
status: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -2,17 +2,36 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="user-setting">
|
<div class="user-setting">
|
||||||
<el-card class="!border-none" shadow="never">
|
<el-card class="!border-none" shadow="never">
|
||||||
<el-form
|
<el-form ref="formRef" class="ls-form" :model="formData" :rules="rules" label-width="100px">
|
||||||
ref="formRef"
|
|
||||||
class="ls-form"
|
|
||||||
:model="formData"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<el-form-item label="头像:" prop="avatar">
|
<el-form-item label="头像:" prop="avatar">
|
||||||
<material-picker v-model="formData.avatar" :limit="1" />
|
<material-picker v-model="formData.avatar" :limit="1" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="企业名称:" prop="company_name">
|
||||||
|
<div class="w-80">
|
||||||
|
<el-input v-model="formData.company_name" disabled />
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="企业税号:" prop="company_sh">
|
||||||
|
<div class="w-80">
|
||||||
|
<el-input v-model="formData.company_sh" disabled />
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="企业地址:" prop="company_address">
|
||||||
|
<div class="w-80">
|
||||||
|
<el-input v-model="formData.company_address" disabled />
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="营业执照:" prop="company_url">
|
||||||
|
<div class="w-80">
|
||||||
|
<el-image style="width:200px;height:100px;" fit="cover" :src="formData.company_url"
|
||||||
|
:preview-src-list="[formData.company_url]" preview-teleported />
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="账号:" prop="account">
|
<el-form-item label="账号:" prop="account">
|
||||||
<div class="w-80">
|
<div class="w-80">
|
||||||
<el-input v-model="formData.account" disabled />
|
<el-input v-model="formData.account" disabled />
|
||||||
@ -27,34 +46,22 @@
|
|||||||
|
|
||||||
<el-form-item label="当前密码:" prop="password_old">
|
<el-form-item label="当前密码:" prop="password_old">
|
||||||
<div class="w-80">
|
<div class="w-80">
|
||||||
<el-input
|
<el-input v-model.trim="formData.password_old" placeholder="修改密码时必填, 不修改密码时留空" type="password"
|
||||||
v-model.trim="formData.password_old"
|
show-password />
|
||||||
placeholder="修改密码时必填, 不修改密码时留空"
|
|
||||||
type="password"
|
|
||||||
show-password
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="新的密码:" prop="password">
|
<el-form-item label="新的密码:" prop="password">
|
||||||
<div class="w-80">
|
<div class="w-80">
|
||||||
<el-input
|
<el-input v-model.trim="formData.password" placeholder="修改密码时必填, 不修改密码时留空" type="password"
|
||||||
v-model.trim="formData.password"
|
show-password />
|
||||||
placeholder="修改密码时必填, 不修改密码时留空"
|
|
||||||
type="password"
|
|
||||||
show-password
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="确定密码:" prop="password_confirm">
|
<el-form-item label="确定密码:" prop="password_confirm">
|
||||||
<div class="w-80">
|
<div class="w-80">
|
||||||
<el-input
|
<el-input v-model.trim="formData.password_confirm" placeholder="修改密码时必填, 不修改密码时留空"
|
||||||
v-model.trim="formData.password_confirm"
|
type="password" show-password />
|
||||||
placeholder="修改密码时必填, 不修改密码时留空"
|
|
||||||
type="password"
|
|
||||||
show-password
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -78,6 +85,10 @@ const userStore = useUserStore()
|
|||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
avatar: '', // 头像
|
avatar: '', // 头像
|
||||||
account: '', // 账号
|
account: '', // 账号
|
||||||
|
company_name: '', // 企业名称
|
||||||
|
company_sh: '', // 企业税号
|
||||||
|
company_address: '', // 企业地址
|
||||||
|
company_url: '', // 营业执照
|
||||||
name: '', // 名称
|
name: '', // 名称
|
||||||
password_old: '', // 当前密码
|
password_old: '', // 当前密码
|
||||||
password: '', // 新的密码
|
password: '', // 新的密码
|
||||||
|
|||||||
115
src/views/withdraw/broker_bank/edit.vue
Normal file
115
src/views/withdraw/broker_bank/edit.vue
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<template>
|
||||||
|
<div class="edit-popup">
|
||||||
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit"
|
||||||
|
@close="handleClose">
|
||||||
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
|
<el-form-item label="提现人名称" prop="name">
|
||||||
|
<el-input v-model="formData.name" clearable placeholder="提现人名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="银行名称" prop="bank_name">
|
||||||
|
<el-input v-model="formData.bank_name" clearable placeholder="请输入银行名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="开户行名称" prop="bank_open_name">
|
||||||
|
<el-input v-model="formData.bank_open_name" clearable placeholder="请输入开户行名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="银行卡号" prop="bank_card">
|
||||||
|
<el-input v-model="formData.bank_card" clearable placeholder="请输入银行卡号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="手机号码" prop="mobile">
|
||||||
|
<el-input v-model="formData.mobile" clearable placeholder="请输入银行卡绑定手机号码" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</popup>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="brokerBankEdit">
|
||||||
|
import type { FormInstance } from 'element-plus'
|
||||||
|
import Popup from '@/components/popup/index.vue'
|
||||||
|
import { apiBrokerBankAdd, apiBrokerBankEdit, apiBrokerBankDetail } from '@/api/broker_bank'
|
||||||
|
import { timeFormat } from '@/utils/util'
|
||||||
|
import type { PropType } from 'vue'
|
||||||
|
defineProps({
|
||||||
|
dictData: {
|
||||||
|
type: Object as PropType<Record<string, any[]>>,
|
||||||
|
default: () => ({})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const emit = defineEmits(['success', 'close'])
|
||||||
|
const formRef = shallowRef<FormInstance>()
|
||||||
|
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||||
|
const mode = ref('add')
|
||||||
|
|
||||||
|
|
||||||
|
// 弹窗标题
|
||||||
|
const popupTitle = computed(() => {
|
||||||
|
return mode.value == 'edit' ? '编辑银行卡信息' : '添加银行卡信息'
|
||||||
|
})
|
||||||
|
|
||||||
|
// 表单数据
|
||||||
|
const formData = reactive({
|
||||||
|
id: '',
|
||||||
|
name: '',
|
||||||
|
bank_name: '',
|
||||||
|
bank_card: '',
|
||||||
|
bank_open_name: '',
|
||||||
|
mobile: '',
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 表单验证
|
||||||
|
const formRules = reactive<any>({
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 获取详情
|
||||||
|
const setFormData = async (data: Record<any, any>) => {
|
||||||
|
for (const key in formData) {
|
||||||
|
if (data[key] != null && data[key] != undefined) {
|
||||||
|
//@ts-ignore
|
||||||
|
formData[key] = data[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const getDetail = async (row: Record<string, any>) => {
|
||||||
|
const data = await apiBrokerBankDetail({
|
||||||
|
id: row.id
|
||||||
|
})
|
||||||
|
setFormData(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 提交按钮
|
||||||
|
const handleSubmit = async () => {
|
||||||
|
await formRef.value?.validate()
|
||||||
|
const data = { ...formData, }
|
||||||
|
mode.value == 'edit'
|
||||||
|
? await apiBrokerBankEdit(data)
|
||||||
|
: await apiBrokerBankAdd(data)
|
||||||
|
popupRef.value?.close()
|
||||||
|
emit('success')
|
||||||
|
}
|
||||||
|
|
||||||
|
//打开弹窗
|
||||||
|
const open = (type = 'add') => {
|
||||||
|
mode.value = type
|
||||||
|
popupRef.value?.open()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭回调
|
||||||
|
const handleClose = () => {
|
||||||
|
emit('close')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
setFormData,
|
||||||
|
getDetail
|
||||||
|
})
|
||||||
|
</script>
|
||||||
125
src/views/withdraw/broker_bank/index.vue
Normal file
125
src/views/withdraw/broker_bank/index.vue
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
|
<el-form-item label="银行名称" prop="bank_name">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.bank_name" clearable placeholder="请输入银行名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="银行卡号" prop="bank_card">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.bank_card" clearable placeholder="请输入银行卡号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="开户行名称" prop="bank_open_name">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.bank_open_name" clearable placeholder="请输入开户行名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="绑定手机号码" prop="mobile">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.mobile" clearable placeholder="请输入绑定手机号码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
|
<el-button v-perms="['broker_bank/add']" type="primary" @click="handleAdd">
|
||||||
|
<template #icon>
|
||||||
|
<icon name="el-icon-Plus" />
|
||||||
|
</template>
|
||||||
|
新增
|
||||||
|
</el-button>
|
||||||
|
<el-button v-perms="['broker_bank/delete']" :disabled="!selectData.length"
|
||||||
|
@click="handleDelete(selectData)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
<div class="mt-4">
|
||||||
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="银行名称" prop="bank_name" show-overflow-tooltip />
|
||||||
|
<el-table-column label="银行卡号" prop="bank_card" show-overflow-tooltip />
|
||||||
|
<el-table-column label="开户行名称" prop="bank_open_name" show-overflow-tooltip />
|
||||||
|
<el-table-column label="绑定手机号码" prop="mobile" show-overflow-tooltip />
|
||||||
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button v-perms="['broker_bank/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
|
编辑
|
||||||
|
</el-button>
|
||||||
|
<el-button v-perms="['broker_bank/delete']" type="danger" link
|
||||||
|
@click="handleDelete(row.id)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="flex mt-4 justify-end">
|
||||||
|
<pagination v-model="pager" @change="getLists" />
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="brokerBankLists">
|
||||||
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
|
import { apiBrokerBankLists, apiBrokerBankDelete } from '@/api/broker_bank'
|
||||||
|
import { timeFormat } from '@/utils/util'
|
||||||
|
import feedback from '@/utils/feedback'
|
||||||
|
import EditPopup from './edit.vue'
|
||||||
|
|
||||||
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
|
// 是否显示编辑框
|
||||||
|
const showEdit = ref(false)
|
||||||
|
|
||||||
|
|
||||||
|
// 查询条件
|
||||||
|
const queryParams = reactive({
|
||||||
|
name: '',
|
||||||
|
bank_name: '',
|
||||||
|
bank_card: '',
|
||||||
|
bank_open_name: '',
|
||||||
|
mobile: '',
|
||||||
|
status: ''
|
||||||
|
})
|
||||||
|
|
||||||
|
// 选中数据
|
||||||
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
|
// 表格选择后回调事件
|
||||||
|
const handleSelectionChange = (val: any[]) => {
|
||||||
|
selectData.value = val.map(({ id }) => id)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取字典数据
|
||||||
|
const { dictData } = useDictData('')
|
||||||
|
|
||||||
|
// 分页相关
|
||||||
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
|
fetchFun: apiBrokerBankLists,
|
||||||
|
params: queryParams
|
||||||
|
})
|
||||||
|
|
||||||
|
// 添加
|
||||||
|
const handleAdd = async () => {
|
||||||
|
showEdit.value = true
|
||||||
|
await nextTick()
|
||||||
|
editRef.value?.open('add')
|
||||||
|
}
|
||||||
|
|
||||||
|
// 编辑
|
||||||
|
const handleEdit = async (data: any) => {
|
||||||
|
showEdit.value = true
|
||||||
|
await nextTick()
|
||||||
|
editRef.value?.open('edit')
|
||||||
|
editRef.value?.setFormData(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
const handleDelete = async (id: number | any[]) => {
|
||||||
|
await feedback.confirm('确定要删除?')
|
||||||
|
await apiBrokerBankDelete({ id })
|
||||||
|
getLists()
|
||||||
|
}
|
||||||
|
|
||||||
|
getLists()
|
||||||
|
</script>
|
||||||
113
src/views/withdraw/broker_reflect/edit.vue
Normal file
113
src/views/withdraw/broker_reflect/edit.vue
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
<template>
|
||||||
|
<div class="edit-popup">
|
||||||
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit"
|
||||||
|
@close="handleClose">
|
||||||
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
|
<el-form-item label="银行卡" prop="bank_id">
|
||||||
|
<el-select v-model="formData.bank_id" clearable placeholder="请选择银行卡">
|
||||||
|
<el-option v-for="item in bankLists" :key="item.id" :label="item.bank_name" :value="item.id" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="体现金额" prop="amount">
|
||||||
|
<el-input v-model="formData.amount" clearable placeholder="请输入体现金额" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</popup>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="brokerReflectEdit">
|
||||||
|
import type { FormInstance } from 'element-plus'
|
||||||
|
import Popup from '@/components/popup/index.vue'
|
||||||
|
import { apiBrokerReflectAdd, apiBrokerReflectEdit, apiBrokerReflectDetail, apiBankLists } from '@/api/broker_reflect'
|
||||||
|
import { timeFormat } from '@/utils/util'
|
||||||
|
import type { PropType } from 'vue'
|
||||||
|
defineProps({
|
||||||
|
dictData: {
|
||||||
|
type: Object as PropType<Record<string, any[]>>,
|
||||||
|
default: () => ({})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const emit = defineEmits(['success', 'close'])
|
||||||
|
const formRef = shallowRef<FormInstance>()
|
||||||
|
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||||
|
const mode = ref('add')
|
||||||
|
|
||||||
|
const bankLists = ref<any[]>([])
|
||||||
|
// 获取已填加的银行卡列表
|
||||||
|
const getBankLists = async () => {
|
||||||
|
const data = await apiBankLists({})
|
||||||
|
bankLists.value = data
|
||||||
|
}
|
||||||
|
getBankLists()
|
||||||
|
|
||||||
|
|
||||||
|
// 弹窗标题
|
||||||
|
const popupTitle = computed(() => {
|
||||||
|
return mode.value = '提现申请'
|
||||||
|
})
|
||||||
|
|
||||||
|
// 表单数据
|
||||||
|
const formData = reactive({
|
||||||
|
id: '',
|
||||||
|
bank_id: '',
|
||||||
|
amount: '',
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 表单验证
|
||||||
|
const formRules = reactive<any>({
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 获取详情
|
||||||
|
const setFormData = async (data: Record<any, any>) => {
|
||||||
|
for (const key in formData) {
|
||||||
|
if (data[key] != null && data[key] != undefined) {
|
||||||
|
//@ts-ignore
|
||||||
|
formData[key] = data[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const getDetail = async (row: Record<string, any>) => {
|
||||||
|
const data = await apiBrokerReflectDetail({
|
||||||
|
id: row.id
|
||||||
|
})
|
||||||
|
setFormData(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 提交按钮
|
||||||
|
const handleSubmit = async () => {
|
||||||
|
await formRef.value?.validate()
|
||||||
|
const data = { ...formData, }
|
||||||
|
mode.value == 'edit'
|
||||||
|
? await apiBrokerReflectEdit(data)
|
||||||
|
: await apiBrokerReflectAdd(data)
|
||||||
|
popupRef.value?.close()
|
||||||
|
emit('success')
|
||||||
|
}
|
||||||
|
|
||||||
|
//打开弹窗
|
||||||
|
const open = (type = 'add') => {
|
||||||
|
mode.value = type
|
||||||
|
popupRef.value?.open()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭回调
|
||||||
|
const handleClose = () => {
|
||||||
|
emit('close')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
setFormData,
|
||||||
|
getDetail
|
||||||
|
})
|
||||||
|
</script>
|
||||||
159
src/views/withdraw/broker_reflect/index.vue
Normal file
159
src/views/withdraw/broker_reflect/index.vue
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
|
<el-form-item label="账户余额" prop="order_sn">
|
||||||
|
¥{{ accountInfo.money }}
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
|
<el-form-item label="订单编号" prop="order_sn">
|
||||||
|
<el-input class="w-[280px]" v-model="queryParams.order_sn" clearable placeholder="请输入订单编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="w-[280px]" label="审核状态" prop="server_type">
|
||||||
|
<el-select v-model="queryParams.status" clearable placeholder="请选择">
|
||||||
|
<el-option label="待审核" value="0"></el-option>
|
||||||
|
<el-option label="审核通过" value="1"></el-option>
|
||||||
|
<el-option label="审核失败" value="2"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
|
<el-button v-perms="['broker_reflect/add']" type="primary" @click="handleAdd">
|
||||||
|
<template #icon>
|
||||||
|
<icon name="el-icon-Plus" />
|
||||||
|
</template>
|
||||||
|
新增
|
||||||
|
</el-button>
|
||||||
|
<el-button v-perms="['broker_reflect/delete']" :disabled="!selectData.length"
|
||||||
|
@click="handleDelete(selectData)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
<div class="mt-4">
|
||||||
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="订单编号" prop="order_sn" show-overflow-tooltip />
|
||||||
|
<el-table-column label="提现信息" prop="bank_id" show-overflow-tooltip>
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div>银行名称:{{ row.bank[0].bank_name }}</div>
|
||||||
|
<div>开户行:{{ row.bank[0].bank_open_name }}</div>
|
||||||
|
<div>手机号:{{ row.bank[0].mobile }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="提现金额" prop="amount" show-overflow-tooltip>
|
||||||
|
<template #default="{ row }">
|
||||||
|
¥{{ row.amount }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="审核状态" prop="status" show-overflow-tooltip>
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-tag v-if="row.status == 0">待审核</el-tag>
|
||||||
|
<el-tag v-else-if="row.status == 1" type="success">审核通过</el-tag>
|
||||||
|
<el-tag v-else-if="row.status == 2" type="danger">审核拒绝</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="提现时间" prop="dtime" show-overflow-tooltip />
|
||||||
|
<!-- <el-table-column label="操作" width="120" fixed="right">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button
|
||||||
|
v-perms="['broker_reflect/edit']"
|
||||||
|
type="primary"
|
||||||
|
link
|
||||||
|
@click="handleEdit(row)"
|
||||||
|
>
|
||||||
|
编辑
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-perms="['broker_reflect/delete']"
|
||||||
|
type="danger"
|
||||||
|
link
|
||||||
|
@click="handleDelete(row.id)"
|
||||||
|
>
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="flex mt-4 justify-end">
|
||||||
|
<pagination v-model="pager" @change="getLists" />
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists(); getAccountInfo();"
|
||||||
|
@close="showEdit = false" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="brokerReflectLists">
|
||||||
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
|
import { apiBrokerReflectLists, apiBrokerReflectDelete } from '@/api/broker_reflect'
|
||||||
|
import { getUserAccountInfo } from '@/api/user'
|
||||||
|
import { timeFormat } from '@/utils/util'
|
||||||
|
import feedback from '@/utils/feedback'
|
||||||
|
import EditPopup from './edit.vue'
|
||||||
|
|
||||||
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
|
// 是否显示编辑框
|
||||||
|
const showEdit = ref(false)
|
||||||
|
|
||||||
|
|
||||||
|
// 查询条件
|
||||||
|
const queryParams = reactive({
|
||||||
|
order_sn: '',
|
||||||
|
status: ''
|
||||||
|
})
|
||||||
|
|
||||||
|
// 选中数据
|
||||||
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
|
// 表格选择后回调事件
|
||||||
|
const handleSelectionChange = (val: any[]) => {
|
||||||
|
selectData.value = val.map(({ id }) => id)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取字典数据
|
||||||
|
const { dictData } = useDictData('')
|
||||||
|
|
||||||
|
// 分页相关
|
||||||
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
|
fetchFun: apiBrokerReflectLists,
|
||||||
|
params: queryParams
|
||||||
|
})
|
||||||
|
|
||||||
|
// 添加
|
||||||
|
const handleAdd = async () => {
|
||||||
|
showEdit.value = true
|
||||||
|
await nextTick()
|
||||||
|
editRef.value?.open('add')
|
||||||
|
}
|
||||||
|
|
||||||
|
// 编辑
|
||||||
|
const handleEdit = async (data: any) => {
|
||||||
|
showEdit.value = true
|
||||||
|
await nextTick()
|
||||||
|
editRef.value?.open('edit')
|
||||||
|
editRef.value?.setFormData(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
const handleDelete = async (id: number | any[]) => {
|
||||||
|
await feedback.confirm('确定要删除?')
|
||||||
|
await apiBrokerReflectDelete({ id })
|
||||||
|
getLists()
|
||||||
|
}
|
||||||
|
|
||||||
|
getLists()
|
||||||
|
|
||||||
|
// 获取用户账户信息
|
||||||
|
const accountInfo = ref({})
|
||||||
|
const getAccountInfo = async () => {
|
||||||
|
const data = await getUserAccountInfo()
|
||||||
|
accountInfo.value = data.user
|
||||||
|
}
|
||||||
|
getAccountInfo()
|
||||||
|
</script>
|
||||||
@ -14,17 +14,6 @@
|
|||||||
<div class="w-20">当前版本</div>
|
<div class="w-20">当前版本</div>
|
||||||
<span> {{ workbenchData.version.version }}</span>
|
<span> {{ workbenchData.version.version }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex leading-9">
|
|
||||||
<div class="w-20">获取渠道</div>
|
|
||||||
<div>
|
|
||||||
<a :href="workbenchData.version.channel.website" target="_blank">
|
|
||||||
<el-button type="success" size="small">官网</el-button>
|
|
||||||
</a>
|
|
||||||
<a class="ml-3" :href="workbenchData.version.channel.gitee" target="_blank">
|
|
||||||
<el-button type="danger" size="small">Gitee</el-button>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none mb-4 lg:mr-4 lg:w-[350px]" shadow="never" v-if="workbenchData.url">
|
<el-card class="!border-none mb-4 lg:mr-4 lg:w-[350px]" shadow="never" v-if="workbenchData.url">
|
||||||
@ -32,7 +21,8 @@
|
|||||||
<span class="card-title">推广码</span>
|
<span class="card-title">推广码</span>
|
||||||
</template>
|
</template>
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<img :src="workbenchData.url" width="100px" height="100px" class="object-fill" alt="">
|
<el-image :src="workbenchData.url" :preview-src-list="[workbenchData.url]" preview-teleported
|
||||||
|
style="width: 100px; height: 100px" fit="fill" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none mb-4 flex-1" shadow="never">
|
<el-card class="!border-none mb-4 flex-1" shadow="never">
|
||||||
@ -47,31 +37,17 @@
|
|||||||
|
|
||||||
<div class="flex flex-wrap">
|
<div class="flex flex-wrap">
|
||||||
<div class="w-1/2 md:w-1/4">
|
<div class="w-1/2 md:w-1/4">
|
||||||
<div class="leading-10">销售额</div>
|
<div class="leading-10">今日收益</div>
|
||||||
<div class="text-6xl">{{ workbenchData.today.today_sales }}</div>
|
<div class="text-6xl">{{ workbenchData.today.today_sales }}</div>
|
||||||
<div class="text-tx-secondary text-xs">
|
<div class="text-tx-secondary text-xs">
|
||||||
总:{{ workbenchData.today.total_sales }}
|
总:{{ workbenchData.today.total_sales }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 md:w-1/4">
|
<div class="w-1/2 md:w-1/3">
|
||||||
<div class="leading-10">成交订单</div>
|
<div class="leading-10">茶艺师收益</div>
|
||||||
<div class="text-6xl">{{ workbenchData.today.order_num }}</div>
|
<div class="text-6xl">{{ workbenchData.today.today_teamaster_sales }}</div>
|
||||||
<div class="text-tx-secondary text-xs">
|
<div class="text-tx-secondary text-xs">
|
||||||
总:{{ workbenchData.today.order_sum }}
|
总:{{ workbenchData.today.total_teamaster_sales }}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="w-1/2 md:w-1/4">
|
|
||||||
<div class="leading-10">新增用户</div>
|
|
||||||
<div class="text-6xl">{{ workbenchData.today.today_new_user }}</div>
|
|
||||||
<div class="text-tx-secondary text-xs">
|
|
||||||
总:{{ workbenchData.today.total_new_user }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="w-1/2 md:w-1/4">
|
|
||||||
<div class="leading-10">新增访问量</div>
|
|
||||||
<div class="text-6xl">{{ workbenchData.today.today_visitor }}</div>
|
|
||||||
<div class="text-tx-secondary text-xs">
|
|
||||||
总:{{ workbenchData.today.total_visitor }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -96,7 +72,7 @@
|
|||||||
<div class="lg:flex gap-4">
|
<div class="lg:flex gap-4">
|
||||||
<el-card class="!border-none mb-4 lg:mb-0 w-full lg:w-2/3" shadow="never">
|
<el-card class="!border-none mb-4 lg:mb-0 w-full lg:w-2/3" shadow="never">
|
||||||
<template #header>
|
<template #header>
|
||||||
<span>访问量趋势图</span>
|
<span>订单趋势图</span>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<v-charts ref="visitorChart" style="height: 350px" :option="workbenchData.visitorOption"
|
<v-charts ref="visitorChart" style="height: 350px" :option="workbenchData.visitorOption"
|
||||||
@ -105,7 +81,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none w-full lg:w-1/3" shadow="never">
|
<el-card class="!border-none w-full lg:w-1/3" shadow="never">
|
||||||
<template #header>
|
<template #header>
|
||||||
<span>销售额趋势图</span>
|
<span>经纪人收益图</span>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<v-charts ref="saleChart" style="height: 350px" :option="workbenchData.saleOption"
|
<v-charts ref="saleChart" style="height: 350px" :option="workbenchData.saleOption"
|
||||||
|
|||||||
Reference in New Issue
Block a user