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

updates

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