|
@@ -1,22 +1,29 @@
|
|
|
<template>
|
|
|
<div id="bottomMenus">
|
|
|
<!-- 底部菜单动态SVG底座 -->
|
|
|
- <BottomMenuSvg id="svgBox" @changeShowBottomMenusStatus="changeShowBottomMenusStatus()" />
|
|
|
+ <BottomMenuSvg
|
|
|
+ id="svgBox"
|
|
|
+ @changeShowBottomMenusStatus="changeShowBottomMenusStatus()"
|
|
|
+ />
|
|
|
<!-- 申请任务弹窗 -->
|
|
|
- <CreateTaskForm @changeShowBottomMenusStatus="changeShowBottomMenusStatus" />
|
|
|
+ <CreateTaskForm
|
|
|
+ @changeShowBottomMenusStatus="changeShowBottomMenusStatus"
|
|
|
+ />
|
|
|
<!-- 我的任务弹窗 -->
|
|
|
<MyMission @changeShowBottomMenusStatus="changeShowBottomMenusStatus" />
|
|
|
<!-- 同屏对比弹窗 -->
|
|
|
<SameScreenComparison />
|
|
|
<!-- 上传数据弹窗 -->
|
|
|
<UploadingData />
|
|
|
+ <!-- 自定义模型 -->
|
|
|
+ <CustomModelDialog />
|
|
|
<!-- 底部菜单主体 -->
|
|
|
<div
|
|
|
id="menusBox"
|
|
|
:style="{
|
|
|
width: showBottomMenusStatus ? '981px' : '0px',
|
|
|
height: showBottomMenusStatus ? '200px' : '0px',
|
|
|
- border: showBottomMenusStatus ? '1px solid #00aaff' : 'none'
|
|
|
+ border: showBottomMenusStatus ? '1px solid #00aaff' : 'none',
|
|
|
}"
|
|
|
>
|
|
|
<!-- 模块遍历渲染也是menus对象的第一层数组 -->
|
|
@@ -33,15 +40,23 @@
|
|
|
<!-- 遍历渲染每个模块下的子菜单,也是menus数组中subMenu数组 -->
|
|
|
<div
|
|
|
class="colBtuMenu"
|
|
|
- @click="changeBottomMenu(item.index, subItem.index, subItem.clickEmit)"
|
|
|
+ @click="
|
|
|
+ changeBottomMenu(item.index, subItem.index, subItem.clickEmit)
|
|
|
+ "
|
|
|
v-for="(subItem, subIndex) in item.subMenu"
|
|
|
:key="subIndex"
|
|
|
>
|
|
|
<!-- 选中状态的背景高亮(舍弃) -->
|
|
|
<!-- <div :class="ifMenuIndex(item.index, subItem.index) ? 'colBtuMenuShadow' : ''"></div> -->
|
|
|
<!-- 子菜单图标的选择性渲染 -->
|
|
|
- <el-image class="BtuMenu_hover" :src="returnBgImage(subItem.bgImage + '-a')"></el-image>
|
|
|
- <el-image class="BtuMenu" :src="returnBgImage(subItem.bgImage)"></el-image>
|
|
|
+ <el-image
|
|
|
+ class="BtuMenu_hover"
|
|
|
+ :src="returnBgImage(subItem.bgImage + '-a')"
|
|
|
+ ></el-image>
|
|
|
+ <el-image
|
|
|
+ class="BtuMenu"
|
|
|
+ :src="returnBgImage(subItem.bgImage)"
|
|
|
+ ></el-image>
|
|
|
<!-- 子菜单标题 -->
|
|
|
<div class="BtuMenu_title">
|
|
|
{{ subItem.title }}
|
|
@@ -64,9 +79,17 @@ import CreateTaskForm from "./BottomForm/CreateTaskForm.vue";
|
|
|
import MyMission from "./BottomForm/MyMission.vue";
|
|
|
import SameScreenComparison from "./BottomForm/SameScreenComparison.vue";
|
|
|
import UploadingData from "./BottomForm/UploadingData.vue";
|
|
|
+import CustomModelDialog from "./BottomForm/CustomModelDialog.vue";
|
|
|
export default {
|
|
|
name: "BottomMenus",
|
|
|
- components: { BottomMenuSvg, CreateTaskForm, MyMission, SameScreenComparison, UploadingData },
|
|
|
+ components: {
|
|
|
+ BottomMenuSvg,
|
|
|
+ CreateTaskForm,
|
|
|
+ MyMission,
|
|
|
+ SameScreenComparison,
|
|
|
+ UploadingData,
|
|
|
+ CustomModelDialog,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 弹窗打开状态
|
|
@@ -81,35 +104,50 @@ export default {
|
|
|
title: "任务申请",
|
|
|
subMenu: [
|
|
|
{ index: 0, title: "申请任务", bgImage: "sqrw", clickEmit: "sqrw" },
|
|
|
- { index: 1, title: "我的任务", bgImage: "wdrw", clickEmit: "wdrw" }
|
|
|
- ]
|
|
|
+ { index: 1, title: "我的任务", bgImage: "wdrw", clickEmit: "wdrw" },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
index: 1,
|
|
|
width: "509px",
|
|
|
title: "疑点分析",
|
|
|
subMenu: [
|
|
|
- { index: 0, title: "疑点审计", bgImage: "ydsj", clickEmit:"caseAuditEvent" },
|
|
|
- { index: 1, title: "标记疑点", bgImage: "bjyd",clickEmit:"labelCaseEvent" },
|
|
|
+ {
|
|
|
+ index: 0,
|
|
|
+ title: "疑点审计",
|
|
|
+ bgImage: "ydsj",
|
|
|
+ clickEmit: "caseAuditEvent",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: 1,
|
|
|
+ title: "标记疑点",
|
|
|
+ bgImage: "bjyd",
|
|
|
+ clickEmit: "labelCaseEvent",
|
|
|
+ },
|
|
|
{ index: 2, title: "同屏对比", bgImage: "tpdb", clickEmit: "tpdb" },
|
|
|
- { index: 3, title: "卷帘对比", bgImage: "jldb", clickEmit: "JLControl" },
|
|
|
+ {
|
|
|
+ index: 3,
|
|
|
+ title: "卷帘对比",
|
|
|
+ bgImage: "jldb",
|
|
|
+ clickEmit: "JLControl",
|
|
|
+ },
|
|
|
{ index: 4, title: "上传数据", bgImage: "scsj", clickEmit: "scsj" },
|
|
|
- { index: 5, title: "自定义模型", bgImage: "zdymx" }
|
|
|
- ]
|
|
|
+ { index: 5, title: "自定义模型", bgImage: "zdymx",clickEmit:"customModelEvent" },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
index: 2,
|
|
|
width: "94px",
|
|
|
title: "疑点报告",
|
|
|
- subMenu: [{ index: 0, title: "报告输出", bgImage: "bgsc" }]
|
|
|
+ subMenu: [{ index: 0, title: "报告输出", bgImage: "bgsc" }],
|
|
|
},
|
|
|
{
|
|
|
index: 3,
|
|
|
width: "94px",
|
|
|
title: "现场勘查",
|
|
|
- subMenu: [{ index: 0, title: "发到手机", bgImage: "fdsj" }]
|
|
|
- }
|
|
|
- ]
|
|
|
+ subMenu: [{ index: 0, title: "发到手机", bgImage: "fdsj" }],
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
mounted() {},
|
|
@@ -118,12 +156,18 @@ export default {
|
|
|
methods: {
|
|
|
// 根据菜单父级index和子菜单index,判断全局变量已选中底部菜单的index对比,返回状态。
|
|
|
ifMenuIndex(index, subIndex) {
|
|
|
- return this.$store.state.bottomMenuIndexs.index == index && this.$store.state.bottomMenuIndexs.subIndex == subIndex;
|
|
|
+ return (
|
|
|
+ this.$store.state.bottomMenuIndexs.index == index &&
|
|
|
+ this.$store.state.bottomMenuIndexs.subIndex == subIndex
|
|
|
+ );
|
|
|
},
|
|
|
// 根据菜单父级index和子菜单index,更新全局变量。
|
|
|
changeBottomMenu(index, subIndex, clickEvent) {
|
|
|
// 该逻辑可能会舍弃
|
|
|
- this.$store.commit("changeBottomMenu", { index: index, subIndex: subIndex });
|
|
|
+ this.$store.commit("changeBottomMenu", {
|
|
|
+ index: index,
|
|
|
+ subIndex: subIndex,
|
|
|
+ });
|
|
|
if (clickEvent) {
|
|
|
// 调用全局事件总线中的指定事件
|
|
|
this.$bus.$emit(clickEvent);
|
|
@@ -131,7 +175,10 @@ export default {
|
|
|
},
|
|
|
// 根据菜单参数bgImage,菜单父级index和子菜单index,判断全局变量已选中底部菜单的index对比,返回不同状态下的icon图标地址。
|
|
|
returnBgImage(bgImage, index, subIndex) {
|
|
|
- if (this.$store.state.bottomMenuIndexs.index == index && this.$store.state.bottomMenuIndexs.subIndex == subIndex) {
|
|
|
+ if (
|
|
|
+ this.$store.state.bottomMenuIndexs.index == index &&
|
|
|
+ this.$store.state.bottomMenuIndexs.subIndex == subIndex
|
|
|
+ ) {
|
|
|
return "/static/images/bottomMenuIcon/" + bgImage + "-a.png";
|
|
|
} else {
|
|
|
return "/static/images/bottomMenuIcon/" + bgImage + ".png";
|
|
@@ -152,9 +199,9 @@ export default {
|
|
|
// 否则直接切换底部菜单显示隐藏状态
|
|
|
this.showBottomMenusStatus = !this.showBottomMenusStatus;
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
- watch: {}
|
|
|
+ watch: {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -242,7 +289,12 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- background-image: linear-gradient(to left, @topTitleMinLeft, @borderColor, @topTitleMinLeft);
|
|
|
+ background-image: linear-gradient(
|
|
|
+ to left,
|
|
|
+ @topTitleMinLeft,
|
|
|
+ @borderColor,
|
|
|
+ @topTitleMinLeft
|
|
|
+ );
|
|
|
font-size: 16px;
|
|
|
font-family: pingfangSC;
|
|
|
font-weight: 300;
|