|
@@ -10,7 +10,7 @@
|
|
|
</template>
|
|
|
</v-tooltip>
|
|
|
</div>
|
|
|
- <div class="overview-item-value my-3">{{ overviewData[val.key] }}</div>
|
|
|
+ <div class="overview-item-value my-3 cursor-pointer">{{ overviewData[val.key] }}</div>
|
|
|
<div class="font-size-14">
|
|
|
环比
|
|
|
<span class="color-error">{{ typeof val.ratio === 'number' ? val.ratio : overviewData[val.ratio] }}% ↑</span>
|
|
@@ -22,12 +22,11 @@
|
|
|
|
|
|
<script setup>
|
|
|
defineOptions({ name: 'overview-page'})
|
|
|
-import { ref, watch } from 'vue'
|
|
|
-import { getRecentConversations } from '@/api/recruit/enterprise/statistics'
|
|
|
-
|
|
|
-const props = defineProps({
|
|
|
- query: Object
|
|
|
-})
|
|
|
+import { ref } from 'vue'
|
|
|
+// import { getRecentConversations } from '@/api/recruit/enterprise/statistics'
|
|
|
+// const props = defineProps({
|
|
|
+// query: Object
|
|
|
+// })
|
|
|
|
|
|
const overviewData = ref({
|
|
|
position: 0,
|
|
@@ -46,21 +45,21 @@ const overview = ref([
|
|
|
])
|
|
|
|
|
|
// 主动联系我的、我主动联系的人
|
|
|
-const accountInfo = localStorage.getItem('accountInfo') ? JSON.parse(localStorage.getItem('accountInfo')) : {}
|
|
|
-const getRecent = async () => {
|
|
|
- if (!accountInfo || !accountInfo.userId) return
|
|
|
- const data = await getRecentConversations({ userId: accountInfo.userId, ...props.query })
|
|
|
- overviewData.value = Object.assign(overviewData.value, data)
|
|
|
-}
|
|
|
-getRecent()
|
|
|
+// const accountInfo = localStorage.getItem('accountInfo') ? JSON.parse(localStorage.getItem('accountInfo')) : {}
|
|
|
+// const getRecent = async () => {
|
|
|
+// if (!accountInfo || !accountInfo.userId) return
|
|
|
+// const data = await getRecentConversations({ userId: accountInfo.userId, ...props.query })
|
|
|
+// overviewData.value = Object.assign(overviewData.value, data)
|
|
|
+// }
|
|
|
+// getRecent()
|
|
|
|
|
|
-watch(
|
|
|
- () => props.query,
|
|
|
- (val) => {
|
|
|
- if (val) getRecent()
|
|
|
- },
|
|
|
- { deep: true }
|
|
|
-)
|
|
|
+// watch(
|
|
|
+// () => props.query,
|
|
|
+// (val) => {
|
|
|
+// if (val) getRecent()
|
|
|
+// },
|
|
|
+// { deep: true }
|
|
|
+// )
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|