Sfoglia il codice sorgente

关闭相关平台功能接口

zhengnaiwen_citu 3 mesi fa
parent
commit
85b767feb0

+ 12 - 12
src/App.vue

@@ -6,8 +6,8 @@
 
 <script>
 import axios from 'axios'
-import { setBurialPoint } from '@/api/system'
-import { getToken } from '@/utils/auth'
+// import { setBurialPoint } from '@/api/system'
+// import { getToken } from '@/utils/auth'
 export default {
   name: 'App',
   data () {
@@ -16,9 +16,9 @@ export default {
     }
   },
   mounted () {
-    if (getToken()) {
-      this.handleBurialPoint(0)
-    }
+    // if (getToken()) {
+    //   this.handleBurialPoint(0)
+    // }
     if (process.env.NODE_ENV !== 'production') return
     this.timer = setInterval(() => {
       this.checkVersion()
@@ -45,14 +45,14 @@ export default {
           }, 0)
         }
       })
-    },
-    async handleBurialPoint () {
-      try {
-        await setBurialPoint({ accessRecordIndex: 'home' })
-      } catch (error) {
-        console.log('访问新增失败')
-      }
     }
+    // async handleBurialPoint () {
+    //   try {
+    //     await setBurialPoint({ accessRecordIndex: 'home' })
+    //   } catch (error) {
+    //     console.log('访问新增失败')
+    //   }
+    // }
   }
 }
 </script>

+ 15 - 15
src/components/Side/index.vue

@@ -7,7 +7,7 @@
           <side-list :items="list" :mini-menu="isMini" />
         </v-list>
       </div>
-      <div class="list-bottom white">
+      <!-- <div class="list-bottom white">
         <v-divider></v-divider>
         <div class="pa-3">
           <div class="d-flex mb-1">
@@ -19,7 +19,7 @@
             <div>{{ total }}</div>
           </div>
         </div>
-      </div>
+      </div> -->
     </div>
     <!-- <div class="tools"> -->
       <!-- 判断是否有权限 -->
@@ -39,7 +39,7 @@
 <script>
 import SideList from '@/components/Side/sideList.vue'
 import { mapGetters } from 'vuex'
-import { getBurialPointStatistics } from '@/api/system'
+// import { getBurialPointStatistics } from '@/api/system'
 export default {
   name: 'side-index',
   components: { SideList },
@@ -62,9 +62,9 @@ export default {
       return this.getList(this.roles)
     }
   },
-  created () {
-    this.handleGetBurialPointStatistics()
-  },
+  // created () {
+  //   this.handleGetBurialPointStatistics()
+  // },
   methods: {
     getList (arr, obj = []) {
       arr.sort((a, b) => a - b).forEach(element => {
@@ -84,16 +84,16 @@ export default {
         obj.push(data)
       })
       return obj
-    },
-    async handleGetBurialPointStatistics () {
-      try {
-        const { data } = await getBurialPointStatistics()
-        this.dayTotal = data.dayTotal ?? 0
-        this.total = data.total ?? 0
-      } catch (error) {
-        this.$snackbar.error(error)
-      }
     }
+    // async handleGetBurialPointStatistics () {
+    //   try {
+    //     const { data } = await getBurialPointStatistics()
+    //     this.dayTotal = data.dayTotal ?? 0
+    //     this.total = data.total ?? 0
+    //   } catch (error) {
+    //     this.$snackbar.error(error)
+    //   }
+    // }
   }
 }
 </script>

+ 1 - 1
src/layout/components/bellDrawer.vue

@@ -129,7 +129,7 @@ export default {
     }
   },
   created () {
-    this.init()
+    // this.init()
   },
   methods: {
     async init () {

+ 19 - 19
src/layout/index.vue

@@ -80,9 +80,9 @@ import { mapGetters } from 'vuex'
 import TheDrawer from './components/bellDrawer.vue'
 // import cloneDeep from 'lodash/cloneDeep'
 import MKnowledge from '@/components/Knowledge'
-import {
-  getMessageList
-} from '@/api/system'
+// import {
+//   getMessageList
+// } from '@/api/system'
 const showAI = [
   '/data-book/data-metadata',
   '/data-book/data-resource',
@@ -158,13 +158,13 @@ export default {
       this.showChip = show
     })
 
-    this.getMessageUnRead()
-    if (this.timer) {
-      clearInterval(this.timer)
-    }
-    this.timer = setInterval(() => {
-      this.getMessageUnRead()
-    }, 10000)
+    // this.getMessageUnRead()
+    // if (this.timer) {
+    //   clearInterval(this.timer)
+    // }
+    // this.timer = setInterval(() => {
+    //   this.getMessageUnRead()
+    // }, 10000)
   },
   mounted () {
     if (!this.$refs.body) return
@@ -215,16 +215,16 @@ export default {
     },
     handleClickModules () {
       this.$emit('$HANDLE_EDIT_MODULES')
-    },
-    // 查询是否存在未读消息
-    async getMessageUnRead () {
-      try {
-        const { data } = await getMessageList({ readState: 0, userId: this.userInfo.id })
-        this.bellMessage = data.total > 0
-      } catch (error) {
-        this.$snackbar.error(error)
-      }
     }
+    // 查询是否存在未读消息
+    // async getMessageUnRead () {
+    //   try {
+    //     const { data } = await getMessageList({ readState: 0, userId: this.userInfo.id })
+    //     this.bellMessage = data.total > 0
+    //   } catch (error) {
+    //     this.$snackbar.error(error)
+    //   }
+    // }
   }
 }
 </script>

+ 6 - 6
src/views/login/components/login.vue

@@ -21,10 +21,10 @@
 <script>
 
 import FormData from '@/components/Form'
-import {
-  getSettingInfo
-  // setBurialPoint
-} from '@/api/system'
+// import {
+// getSettingInfo
+// setBurialPoint
+// } from '@/api/system'
 import { mapMutations } from 'vuex'
 
 export default {
@@ -122,8 +122,8 @@ export default {
             return
           }
           this.$snackbar.success('登录成功')
-          const { data } = await getSettingInfo({ path: '', hostName: '' })
-          this.SET_SYSTEM_INFO(this.flattenObject(data))
+          // const { data } = await getSettingInfo({ path: '', hostName: '' })
+          // this.SET_SYSTEM_INFO(this.flattenObject(data))
           if (this.$route.query?.redirect) {
             this.$router.push(this.$route.query.redirect)
             return