提交 539e2a19 authored 作者: matian's avatar matian

updates

上级 a7e6e3a6
......@@ -12,29 +12,32 @@ getGooseUserDetail(params).then(res => {
</script>
<template>
<el-row justify="end">
<div style="display: flex; justify-content: flex-end; margin-bottom: 20px">
<div v-permission="'customer-dustess-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/chenfeng/detail', query: { id: gooseInfo.other_system_customer?.dustess } })"
v-if="gooseInfo?.other_system_customer?.dustess !== null"
v-permission="'customer-dustess-view'"
@click="router.push({ path: '/user/chenfeng/detail', query: { id: gooseInfo.other_system_customer?.dustess } })"
>尘峰渠道</el-button
>
</div>
<div v-permission="'customer-wechat-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/weixin/detail', query: { id: gooseInfo.other_system_customer?.wechat } })"
v-if="gooseInfo.other_system_customer?.wechat !== null"
v-permission="'customer-wechat-view'"
@click="router.push({ path: '/user/weixin/detail', query: { id: gooseInfo.other_system_customer?.wechat } })"
>企微渠道</el-button
>
</div>
<div v-permission="'customer-zws-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/zws/detail', query: { id: gooseInfo.other_system_customer?.zws } })"
v-if="gooseInfo.other_system_customer?.zws !== null"
v-permission="'customer-zws-view'"
>ZWS渠道</el-button
>
</el-row>
</div>
</div>
<AppCard title="基本信息">
<el-descriptions :column="4">
<el-descriptions-item label="用户姓名">{{ gooseInfo.name || '-' }}</el-descriptions-item>
......@@ -57,3 +60,8 @@ getGooseUserDetail(params).then(res => {
</el-descriptions>
</AppCard>
</template>
<style lang="scss" scoped>
.el-button {
margin-right: 10px;
}
</style>
......@@ -4,37 +4,46 @@ import { getPeakUserDetail } from '../api'
const route = useRoute()
const router = useRouter()
const infoList: any = ref({})
const params: any = { id: route.query.id }
getPeakUserDetail(params).then(res => {
onMounted(() => {
const params: any = { id: route.query.id }
getPeakUserDetail(params).then(res => {
res.data.custom_fields = JSON.parse(res.data.custom_fields)
infoList.value = res.data
})
})
</script>
<template>
<el-row justify="end" style="margin-bottom: 20px">
<div style="display: flex; justify-content: flex-end; margin-bottom: 20px">
<div v-permission="'customer-xiaoe-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/chenfeng/detail', query: { id: infoList.other_system_customer?.xiaoe } })"
v-if="infoList.other_system_customer?.xiaoe !== null"
v-permission="'customer-xiaoe-view'"
@click="
router.push({ path: '/user/chenfeng/detail', query: { id: infoList.other_system_customer?.xiaoe || '' } })
"
>小鹅通渠道</el-button
>
</div>
<div v-permission="'customer-wechat-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/weixin/detail', query: { id: infoList.other_system_customer?.wechat } })"
v-if="infoList.other_system_customer?.wechat !== null"
v-permission="'customer-wechat-view'"
@click="
router.push({ path: '/user/weixin/detail', query: { id: infoList.other_system_customer?.wechat || '' } })
"
>企微渠道</el-button
>
</div>
<div v-permission="'customer-zws-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/zws/detail', query: { id: infoList.other_system_customer?.zws } })"
v-if="infoList.other_system_customer?.zws !== null"
v-permission="'customer-zws-view'"
@click="router.push({ path: '/user/zws/detail', query: { id: infoList.other_system_customer?.zws || '' } })"
>ZWS渠道</el-button
>
</el-row>
</div>
</div>
<AppCard>
<el-descriptions :column="4">
<el-descriptions-item label="用户姓名">{{ infoList.name || '-' }}</el-descriptions-item>
......@@ -67,3 +76,8 @@ getPeakUserDetail(params).then(res => {
</el-descriptions>
</AppCard>
</template>
<style lang="scss" scoped>
.el-button {
margin-right: 10px;
}
</style>
......@@ -29,29 +29,32 @@ const handleView = () => {
</script>
<template>
<el-row justify="end">
<div style="display: flex; justify-content: flex-end; margin-bottom: 20px">
<div v-permission="'customer-dustess-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/chenfeng/detail', query: { id: zwsInfo?.other_system_customer?.dustess } })"
v-if="zwsInfo?.other_system_customer?.dustess !== null"
v-permission="'customer-dustess-view'"
>尘峰渠道</el-button
>
</div>
<div v-permission="'customer-xiaoe-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/xaioe/detail', query: { id: zwsInfo?.other_system_customer?.xiaoe } })"
v-if="zwsInfo?.other_system_customer?.xiaoe !== null"
v-permission="'customer-xiaoe-view'"
>小鹅通渠道</el-button
>
</div>
<div v-permission="'customer-wechat-view'">
<el-button
type="primary"
@click="router.push({ path: '/user/weixin/detail', query: { id: zwsInfo?.other_system_customer?.wechat } })"
v-if="zwsInfo?.other_system_customer?.wechat !== null"
v-permission="'customer-wechat-view'"
>企微渠道</el-button
>
</el-row>
</div>
</div>
<AppCard title="基本信息" style="margin-top: 20px">
<el-descriptions :column="3" border>
<el-descriptions-item label="用户姓名">{{ zwsInfo.user_name || '-' }}</el-descriptions-item>
......@@ -114,3 +117,8 @@ const handleView = () => {
<el-empty></el-empty>
</AppCard>
</template>
<style lang="scss" scoped>
.el-button {
margin-right: 10px;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论