map
ZZJ
2021-10-29 0bb459c121f04f573230fa98de5ffc75b53f9960
src/pages/shuohuangMonitorAnalyze/index/App.vue
@@ -6,36 +6,43 @@
    <div class="right">
      <div class="top">
        <div class="collapse-trigger" @click="toggleCollapse">
          <i :class="isCollapse?'el-icon-s-unfold':'el-icon-s-fold'"></i>
          <i :class="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'"></i>
        </div>
        <top-nav></top-nav>
      </div>
      <div class="container">
        <!-- 首页 -->
        <GuideIndex ref="GuideIndex" v-if="actPage=='guideIndex'"></GuideIndex>
        <searchForVideoAnalyze v-if="actPage=='searchForVideoAnalyze'"></searchForVideoAnalyze>
        <memberManage v-if="actPage=='memberManage'"></memberManage>
        <taskManage v-if="actPage=='taskManage'"></taskManage>
        <transferMemo v-if="actPage=='transferMemo'"></transferMemo>
        <transferDeviceManage v-if="actPage=='transferDeviceManage'"></transferDeviceManage>
        <configManage v-if="actPage=='configManage'"></configManage>
        <lkg v-if="actPage=='lkgManage'"></lkg>
        <GuideIndex
          ref="GuideIndex"
          v-if="actPage == 'guideIndex'"
        ></GuideIndex>
        <searchForVideoAnalyze
          v-if="actPage == 'searchForVideoAnalyze'"
        ></searchForVideoAnalyze>
        <memberManage v-if="actPage == 'memberManage'"></memberManage>
        <taskManage v-if="actPage == 'taskManage'"></taskManage>
        <transferMemo v-if="actPage == 'transferMemo'"></transferMemo>
        <transferDeviceManage
          v-if="actPage == 'transferDeviceManage'"
        ></transferDeviceManage>
        <configManage v-if="actPage == 'configManage'"></configManage>
        <lkg v-if="actPage == 'lkgManage'"></lkg>
      </div>
    </div>
  </div>
</template>
<script>
import Lkg from '../components/lkgManage'
import TopNav from '../components/topNav';
import LeftNav from '../components/leftNav';
import GuideIndex from '../components/guideIndex';
import TaskManage from '../components/taskManage';
import TransferMemo from '../components/transferMemo';
import ConfigManage from '../components/configManage';
import MemberManage from '../components/memberManage';
import TransferDeviceManage from '../components/transferDeviceManage';
import SearchForVideoAnalyze from '../components/searchForVideoAnalyze';
import Lkg from "../components/lkgManage";
import TopNav from "../components/topNav";
import LeftNav from "../components/leftNav";
import GuideIndex from "../components/guideIndex";
import TaskManage from "../components/taskManage";
import TransferMemo from "../components/transferMemo";
import ConfigManage from "../components/configManage";
import MemberManage from "../components/memberManage";
import TransferDeviceManage from "../components/transferDeviceManage";
import SearchForVideoAnalyze from "../components/searchForVideoAnalyze";
export default {
  components: {
@@ -48,20 +55,20 @@
    TransferMemo,
    TransferDeviceManage,
    ConfigManage,
    GuideIndex
    GuideIndex,
  },
  data() {
    return {
      isCollapse: false,
      actPage: 'guideIndex',
    }
      actPage: "guideIndex",
    };
  },
  mounted() {
    // this.actPage = 'guideIndex';
  },
  methods: {
    markNav() {
      sessionStorage.setItem('actPage', this.actPage);
      sessionStorage.setItem("actPage", this.actPage);
      this.menuChange(this.actPage);
    },
    toggleCollapse() {
@@ -69,20 +76,23 @@
      //通知当前活动页table(如果有) doLayout
    },
    menuChange(path) {
      if (path=='guideIndex') {
      if (path == "guideIndex") {
        // this.$refs.GuideIndex.refreshShoubiNum()
      }
      if (path == 'taskscreen') {
      if (path == "taskscreen") {
        //window.location.href = window.location.href+'taskscreen/index.html'
        window.open(window.location.href + 'taskscreen/index.html', '_blank')
      } else if (path == 'hiddendangerscreen') {
        window.open(window.location.href + "taskscreen/index.html", "_blank");
      } else if (path == "hiddendangerscreen") {
        //window.location.href = window.location.href+'hiddendangerscreen/index.html'
        window.open(window.location.href + 'hiddendangerscreen/index.html', '_blank')
        window.open(
          window.location.href + "hiddendangerscreen/index.html",
          "_blank"
        );
      }
      this.actPage = path;
    }
  }
}
    },
  },
};
</script>
<style lang="scss">