Commit 3ffb7bfb by maxiaohan

Merge remote-tracking branch 'origin/dev_zwpt' into dev_zwpt

parents 8699df37 b7c049de
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-22 11:36:10 * @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-11-09 17:26:00 * @LastEditTime: 2021-11-09 20:02:20
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue * @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...@@ -1369,7 +1369,6 @@ export default { ...@@ -1369,7 +1369,6 @@ export default {
// 更新vuex数据 // 更新vuex数据
self.$store.commit('zwbj/setAutoTzdall', self.autoTzdArr) self.$store.commit('zwbj/setAutoTzdall', self.autoTzdArr)
} }
// auto_tzdDom // auto_tzdDom
} }
} }
......
...@@ -105,10 +105,28 @@ ...@@ -105,10 +105,28 @@
</el-header> </el-header>
<el-main class="main"> <el-main class="main">
<div class="contain"> <div class="contain">
<!-- 导航 --> <el-tabs
closable
v-model="routePath"
@tab-click="handleClick"
@tab-remove="tabRemove"
>
<el-tab-pane
label="活体指纹采集"
name="/Home/htzwcj"
></el-tab-pane>
<el-tab-pane
:label="item.name"
:name="item.path"
v-for="(item, i) in paths"
:key="i"
:class="{ active: $route.path == item.path }"
></el-tab-pane>
</el-tabs>
<div class="breadcrumb"> <div class="breadcrumb">
<div <!-- <div
@click="goManager" @click="goManager"
ref="path"
class="home-path path" class="home-path path"
:class="{ active: $route.path == '/Home/htzwcj' }" :class="{ active: $route.path == '/Home/htzwcj' }"
> >
...@@ -116,6 +134,7 @@ ...@@ -116,6 +134,7 @@
</div> </div>
<div <div
class="path" class="path"
ref="path"
@click="changeRouter(item)" @click="changeRouter(item)"
v-for="(item, i) in paths" v-for="(item, i) in paths"
:key="i" :key="i"
...@@ -125,7 +144,7 @@ ...@@ -125,7 +144,7 @@
<div class="closeIcon" @click.stop="closePaths(item.name)"> <div class="closeIcon" @click.stop="closePaths(item.name)">
× ×
</div> </div>
</div> </div> -->
</div> </div>
<!-- 路由出口 --> <!-- 路由出口 -->
<router-view></router-view> <router-view></router-view>
...@@ -160,6 +179,7 @@ export default { ...@@ -160,6 +179,7 @@ export default {
paths: [], paths: [],
menuActive: "", menuActive: "",
isHoverLogout: false, isHoverLogout: false,
routePath: "",
}; };
}, },
mounted() { mounted() {
...@@ -210,6 +230,32 @@ export default { ...@@ -210,6 +230,32 @@ export default {
this.searchTxt = ""; this.searchTxt = "";
console.log(this.searchTxt); console.log(this.searchTxt);
}, },
handleClick({ name }) {
if (name == "/Home/htzwcj") {
this.$router.push(name);
this.menuActive = "";
} else {
this.$router.push(name);
let routerObj = this.paths.find((i) => i.path == name);
this.menuActive = routerObj.routeName;
}
},
tabRemove(name) {
let routerObj = this.paths.find((i) => i.path == name);
if (routerObj) {
let pathName = routerObj.name;
let res = this.paths.filter((item) => {
return item.name != pathName;
});
this.paths = res;
console.log(pathName == this.$route.meta.title);
if (pathName == this.$route.meta.title) {
this.$router.push("/Home/htzwcj");
this.$refs.menu.activeIndex = "";
}
}
sessionStorage.setItem("crumbs", JSON.stringify(this.paths));
},
/** /**
* @description: 调回任务管理 * @description: 调回任务管理
* @param {*} * @param {*}
...@@ -271,6 +317,7 @@ export default { ...@@ -271,6 +317,7 @@ export default {
watch: { watch: {
$route: { $route: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
this.routePath = newValue.path;
setTimeout(() => { setTimeout(() => {
console.log(1); console.log(1);
if (newValue.path != "/Home/htzwcj") { if (newValue.path != "/Home/htzwcj") {
...@@ -299,8 +346,13 @@ export default { ...@@ -299,8 +346,13 @@ export default {
immediate: true, immediate: true,
}, },
}, },
mounted() {
console.log(this.$refs.path);
},
created() { created() {
this.paths = sessionStorage.getItem("crumbs") ? JSON.parse(sessionStorage.getItem("crumbs")) : []; this.paths = sessionStorage.getItem("crumbs")
? JSON.parse(sessionStorage.getItem("crumbs"))
: [];
}, },
}; };
</script> </script>
...@@ -435,7 +487,41 @@ export default { ...@@ -435,7 +487,41 @@ export default {
.aside .minLogo { .aside .minLogo {
background-size: 36px auto; background-size: 36px auto;
} }
.el-tabs /deep/ {
.el-tabs__header {
margin: 0;
margin-top: 8px;
}
.is-active {
color: #0077ff;
border-bottom: 2px solid #006aff;
}
.el-tabs__active-bar {
background-color: #006aff;
display: none;
}
.el-tabs__item {
position: relative;
padding-right: 35px !important;
padding-left: 35px !important;
&:not(:nth-of-type(2)) {
&:hover {
.el-icon-close {
display: inline-block;
}
}
}
.el-icon-close {
display: none;
position: absolute;
top: 0;
right: 0;
}
&:hover {
color: #0077ff;
}
}
}
.header { .header {
height: 64px; height: 64px;
background: #ffffff; background: #ffffff;
...@@ -559,7 +645,16 @@ export default { ...@@ -559,7 +645,16 @@ export default {
background: #ffffff; background: #ffffff;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
.scrollbar {
width: 100%;
position: relative;
height: 47px;
overflow: hidden;
}
.breadcrumb { .breadcrumb {
position: absolute;
left: 0;
top: 0;
display: flex; display: flex;
height: 47px; height: 47px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
...@@ -571,6 +666,7 @@ export default { ...@@ -571,6 +666,7 @@ export default {
padding: 11px 24px; padding: 11px 24px;
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
flex-shrink: 0;
color: #666666; color: #666666;
&:hover { &:hover {
.closeIcon { .closeIcon {
......
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