Commit e81317a0 by 李姝悦

--no commit message

parent 8e658efd
......@@ -11,8 +11,7 @@
id="header"
:style="{ width: isCollapseP == true ? '72px' : '240px' }"
>
<img v-if="isCollapseP == true" src="../../assets//img/login/logo.png" alt="" style="width: 30px;margin-left: 25px;">
<img v-else src="../../assets/img/login/logoTitle.png" alt=""/>
<img src="../../assets/img/login/logoTitle.png" alt=""/>
<!-- <span
v-show="!isCollapseP"
>{{ headerTitle }}</span
......@@ -29,7 +28,7 @@
</div>
<div class="rightContent">
<div class="rightTitle">
<div style="display:flex">
<div>
<i
@click="collapse"
:class="
......@@ -37,8 +36,8 @@
? 'iconfont icondaohangshouqi'
: 'iconfont icondaohangzhankai'
"
></i>
<div v-if="name != '技术人员信息采集' && name != '警犬信息采集'" @click="handleTabs">{{ newPaths }} </div>
></i
><span v-if="name != '技术人员信息采集' && name != '警犬信息采集'">{{ name }} </span>
<!-- <span v-if="name == '现案管理'">
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/maglIndex/xagl' }"
......@@ -49,7 +48,7 @@
>
</el-breadcrumb>
</span> -->
<!-- <span v-if="name == '技术人员信息采集'||name == '警犬信息采集'">
<span v-if="name == '技术人员信息采集'||name == '警犬信息采集'">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/jqglIndex/jqxxcj' }"
......@@ -63,26 +62,8 @@
>
</el-breadcrumb>
</span> -->
<!-- 头部导航 -->
<!-- <el-tabs
class="tabs"
:closable="paths.length > 1"
v-model="routePath"
@tab-click="handleClike"
@tab-remove="tabRemove"
>
<el-tab-pane
v-for="item in paths"
:key="item.routeName"
:label="item.name"
:name="item.routeName"
>
</el-tab-pane>
</el-tabs> -->
</span>
</div>
<!-- 数据大屏+头像 -->
<div style="float: right">
<!-- <span-->
<!-- style="font-size: 12px; padding-right: 10px; cursor: pointer"-->
......@@ -137,12 +118,9 @@
</span>
</div>
</div>
<keep-alive>
<router-view></router-view>
</keep-alive>
</div>
</div>
<!-- 消息中心 -->
<el-dialog custom-class="msgDialog" :visible.sync="dialogTableVisible">
<template #title>
<i class="iconfont iconxiaoxitongzhi msgIcon"/>
......@@ -210,9 +188,11 @@
</div>
</div>
</el-dialog>
<!-- 命案管理应用系统通告 -->
<el-dialog custom-class="tzggDialogs" :visible.sync="dialogFormVisible"
<el-dialog
:visible.sync="dialogFormVisible"
:show-close="false"
custom-class="tzggDialogs"
>
<div
style="
......@@ -336,7 +316,6 @@
</el-button>
</div>
</el-dialog>
<!-- 附件下载 -->
<el-dialog custom-class="yhscxzDialog" :visible.sync="dialogyhcsxzVisible">
<template #title>
<span>附件下载</span>
......@@ -426,40 +405,11 @@ export default {
total: 2
}
],
flag: true,
paths:["数据分析"],
newPaths:"数据分析",
routePath:""
}
},
watch:{
"name"(newV,oldV){
// console.log('====================================');
// console.log(newV,oldV);
// console.log('====================================');
if(newV != oldV){
this.paths.push(newV)
for(var i=0; i<this.paths.length; i++){
for(var j=i+1; j<this.paths.length; j++){
if(this.paths[i]==this.paths[j]){
this.paths.splice(j,1);
j--;
}
}
}
this.paths.toString()
}
this.newPaths = this.paths.toString().replace(/,/g, " / ")
flag: true
}
},
methods: {
handleTabs(e){
console.log('====================================');
console.log(e.currentTarget);
console.log('====================================');
},
hanndleClickBreadcrumb(msg){
if(msg=='new'){
......@@ -547,9 +497,6 @@ export default {
//默认显示
changeName(index) {
if (index.indexOf('-') == -1) {
console.log('====================================');
console.log(index);
console.log('====================================');
this.name = maglPropLeftMenu[index - 1].label
} else {
//子级的情况有-,如3-1
......@@ -618,16 +565,7 @@ export default {
}
},
mounted() {
// this.menuActive = this.$route.name
// this.routePath = this.$route.name //当前页面的路由
// console.log('====================================');
// console.log(maglPropLeftMenu);
// console.log('====================================');
// console.log(this.$route.name)
// console.log(this.$router.options.routes); // 全部路由信息
// this.paths = '/jqglIndex/sjfx'
this.$router.push('/jqglIndex/sjfx')
console.log(this.$route.name)
// zoom("home_box");
// window.addEventListener("resize", function () {
// zoom("home_box");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment