浏览代码

招聘进展

Xiao_123 8 月之前
父节点
当前提交
18fd14bf5b
共有 1 个文件被更改,包括 20 次插入21 次删除
  1. 20 21
      src/views/recruit/enterprise/statistics/components/overview.vue

+ 20 - 21
src/views/recruit/enterprise/statistics/components/overview.vue

@@ -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">