管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-15 343e6c2730ffb99db591732ff5ef1494e233c6bc
src/components/navMenu.vue
@@ -76,7 +76,7 @@
</template>
<script>
import { logout, selectMenuRecursive } from '@/api/api';
import { logout, selectMenuRecursive, sign_insertOpLog } from '@/api/api';
import { removeToken, getToken } from '@/utils/auth';
import customElMenu from '../components/customElMenu.vue';
import { queryMenuTree, getPerms } from '../api/api';
@@ -187,6 +187,9 @@
      this.$router.push('/');
    },
    getTimeCookies() {
      if(!localStorage.getItem('LFToken')){
        return false
      }
      var time1 = new Date(JSON.parse(localStorage.getItem('LFToken')).time);
      var time2 = new Date();
      if (time2 > time1) {
@@ -195,9 +198,16 @@
        return true;
      }
    },
    //主题切换
 //主题切换
    setThemeColors() { },
    async signInsertOpLog(m1, m2) {
      var obj = {
        m1: m1,
        m2: m2,
      }
      const data = await sign_insertOpLog(obj);
    },
    //鼠标移入菜单事件
    setMenuMove(index, item) {
      if (item.perms != null) {
@@ -207,6 +217,9 @@
          this.changeliSelect = '%%';
          this.showFlag = null;
        }
          if (item.url == "Thematic") {
          this.signInsertOpLog("综合展示", item.cnName)
        }
      } else {
        if (this.showFlag != index) {
          this.showFlag = index;
@@ -215,7 +228,7 @@
          this.showFlag = null;
        }
      }
      // debugger
      //
      if (index === 4 || index === 5 || index === 6) {
        sessionStorage.removeItem('changeliSelect')
        this.$set(this, 'changeliSelect', null)
@@ -243,6 +256,7 @@
      }
    },
    setLiClick(res, index) {
        this.signInsertOpLog(this.listMenu[index].cnName, res.cnName)
      setTimeout(() => {
        this.changeliSelect = res.cnName;