提交 cf908661 authored 作者: matian's avatar matian

updates

上级 f1e0bed8
...@@ -39,7 +39,7 @@ const logout = async () => { ...@@ -39,7 +39,7 @@ const logout = async () => {
<img :src="userInfo.avatar || 'https://webapp-pub.ezijing.com/website/base/images/avatar.svg'" /> <img :src="userInfo.avatar || 'https://webapp-pub.ezijing.com/website/base/images/avatar.svg'" />
</div> </div>
<div class="app-header-user-main"> <div class="app-header-user-main">
<h3>{{ userStore.name }}</h3> <h3>{{ userInfo.name }}</h3>
<p>{{ userInfo.email || userInfo.mobile }}</p> <p>{{ userInfo.email || userInfo.mobile }}</p>
</div> </div>
<div class="app-header-user-buttons"> <div class="app-header-user-buttons">
......
<script setup lang="ts"> <script setup lang="ts">
import { getChannelDetail } from '../api' import { getChannelDetail } from '../api'
const route = useRoute() const route = useRoute()
const props = defineProps<Props>()
interface Props {
id: string
}
const channelInfo: any = ref({}) const channelInfo: any = ref({})
getChannelDetail({ id: route.query.id || props.id }).then(res => { const params: any = { id: route.query.id }
getChannelDetail(params).then(res => {
channelInfo.value = res.data channelInfo.value = res.data
}) })
// 列表配置 // 列表配置
......
...@@ -4,10 +4,11 @@ const props = defineProps({ ...@@ -4,10 +4,11 @@ const props = defineProps({
type: Array type: Array
} }
}) })
const totalListMap = toRefs(props.totalList)
</script> </script>
<template> <template>
<div class="statistics-list"> <div class="statistics-list">
<div class="item" v-for="(item, index) in props.totalList" :key="index"> <div class="item" v-for="(item, index) in totalListMap" :key="index">
<div class="item_desc"> <div class="item_desc">
<div class="tit">{{ item.name }}</div> <div class="tit">{{ item.name }}</div>
<div class="text"> <div class="text">
......
<script setup lang="ts"> <script setup lang="ts">
import { getContactDetail } from '../api' import { getContactDetail } from '../api'
const route = useRoute() const route = useRoute()
interface Props {
id: string
}
const props = defineProps<Props>()
const contactInfo: any = ref({}) const contactInfo: any = ref({})
const params: any = { id: route.query.id || props.id } const params: any = { id: route.query.id }
getContactDetail(params).then(res => { getContactDetail(params).then(res => {
contactInfo.value = res.data contactInfo.value = res.data
......
...@@ -4,9 +4,8 @@ const route = useRoute() ...@@ -4,9 +4,8 @@ const route = useRoute()
interface Props { interface Props {
id: string id: string
} }
const props = defineProps<Props>()
const projectInfo: any = ref({}) const projectInfo: any = ref({})
const params: any = { id: route.query.id || props.id } const params: any = { id: route.query.id }
getProjectDetail(params).then(res => { getProjectDetail(params).then(res => {
projectInfo.value = res.data projectInfo.value = res.data
}) })
......
<script setup lang="ts"> <script setup lang="ts">
import { getSchoolDetail } from '../api' import { getSchoolDetail } from '../api'
const route = useRoute() const route = useRoute()
interface Props {
id: string
}
const props = defineProps<Props>()
const schoolDatail: any = ref({}) const schoolDatail: any = ref({})
const params: any = { id: route.query.id || props.id } const params: any = { id: route.query.id }
getSchoolDetail(params).then(res => { getSchoolDetail(params).then(res => {
schoolDatail.value = res.data schoolDatail.value = res.data
}) })
......
...@@ -4,7 +4,9 @@ const route = useRoute() ...@@ -4,7 +4,9 @@ const route = useRoute()
const router = useRouter() const router = useRouter()
const gooseInfo: any = ref({}) const gooseInfo: any = ref({})
getGooseUserDetail({ id: route.query.id }).then(res => { const params: any = { id: route.query.id }
getGooseUserDetail(params).then(res => {
gooseInfo.value = res.data gooseInfo.value = res.data
}) })
</script> </script>
......
...@@ -4,7 +4,8 @@ import { getPeakUserDetail } from '../api' ...@@ -4,7 +4,8 @@ import { getPeakUserDetail } from '../api'
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
const infoList: any = ref({}) const infoList: any = ref({})
getPeakUserDetail({ id: route.query.id }).then(res => { const params: any = { id: route.query.id }
getPeakUserDetail(params).then(res => {
res.data.custom_fields = JSON.parse(res.data.custom_fields) res.data.custom_fields = JSON.parse(res.data.custom_fields)
infoList.value = res.data infoList.value = res.data
}) })
......
...@@ -5,7 +5,8 @@ const router = useRouter() ...@@ -5,7 +5,8 @@ const router = useRouter()
const wechatFollow: any = ref([]) const wechatFollow: any = ref([])
const other_system_customers: any = ref({}) const other_system_customers: any = ref({})
getwechatUserDetail({ id: route.query.id }).then(res => { const params: any = { id: route.query.id }
getwechatUserDetail(params).then(res => {
const { follow, other_system_customer, ...info } = res.data const { follow, other_system_customer, ...info } = res.data
other_system_customers.value = other_system_customer other_system_customers.value = other_system_customer
wechatFollow.value = res.data.follow.map((item: any) => { wechatFollow.value = res.data.follow.map((item: any) => {
......
...@@ -2,12 +2,9 @@ ...@@ -2,12 +2,9 @@
import { getZwsUserDetail } from '../api' import { getZwsUserDetail } from '../api'
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
interface Props {
id: string
}
const props = defineProps<Props>()
const zwsInfo: any = ref({}) const zwsInfo: any = ref({})
const params: any = { id: route.query.id || props.id } const params: any = { id: route.query.id }
getZwsUserDetail(params).then(res => { getZwsUserDetail(params).then(res => {
zwsInfo.value = res.data zwsInfo.value = res.data
console.log(res) console.log(res)
......
...@@ -24,13 +24,13 @@ export default defineConfig(({ mode }) => ({ ...@@ -24,13 +24,13 @@ export default defineConfig(({ mode }) => ({
cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem')) cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem'))
}, },
proxy: { proxy: {
'/api/users': { // '/api/users': {
// target: 'http://localhost-customer-system-backend.ezijing.com', // // target: 'http://localhost-customer-system-backend.ezijing.com',
target: 'https://customer-backend-api.ezijing.com', // target: 'https://customer-backend-api.ezijing.com',
rewrite: path => path.replace(/^\/api\/users/, ''), // rewrite: path => path.replace(/^\/api\/users/, ''),
changeOrigin: true // changeOrigin: true
}, // },
'/api': 'https://resource-center.ezijing.com' '/api': 'https://customer-backend-api.ezijing.com'
} }
}, },
resolve: { resolve: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论