|
@@ -32,12 +32,19 @@ import {
|
|
|
} from '../composables/useEntModule'
|
|
|
import { useEntChartModel } from '@/views/portrayal/composables/useEntChart'
|
|
|
import { useStore } from '@/store'
|
|
|
-import { ajaxEmptyLeaveInfo, getEntChart } from '@/api/modules'
|
|
|
+import {
|
|
|
+ ajaxEmptyLeaveInfo,
|
|
|
+ getEntChart,
|
|
|
+ getSubVipEntChart
|
|
|
+} from '@/api/modules'
|
|
|
const store = useStore()
|
|
|
// 是否是免费用户
|
|
|
const isFree = computed(() => {
|
|
|
return store.getters['user/isFree']
|
|
|
})
|
|
|
+const isMember = computed(() => {
|
|
|
+ return store.getters['user/isMember']
|
|
|
+})
|
|
|
|
|
|
const props = defineProps({
|
|
|
_eId: {
|
|
@@ -258,7 +265,9 @@ const loadingChart = (data) => {
|
|
|
|
|
|
// 供父组件下载报告弹框调用(弹框内信息需获取画像信息内的数据)
|
|
|
const getEntChartInfo = async () => {
|
|
|
- const res = await getEntChart({ entId: props._eId })
|
|
|
+ const res = isMember.value
|
|
|
+ ? await getEntChart({ entId: props._eId })
|
|
|
+ : await getSubVipEntChart({ entId: props._eId })
|
|
|
Emit('loadingChart', false)
|
|
|
if (res.error_code === 0) {
|
|
|
if (res.data && Object.keys(res.data).length !== 0) {
|