|
@@ -50,7 +50,13 @@
|
|
text-color="#fff"
|
|
text-color="#fff"
|
|
background-color="#132444"
|
|
background-color="#132444"
|
|
active-text-color="#fff"
|
|
active-text-color="#fff"
|
|
- :style="`height:100%;${
|
|
|
|
|
|
+ :style="`height:${
|
|
|
|
+ $route.path === '/economicsOperation'
|
|
|
|
+ ? 'calc(100% - 82px - 80px)'
|
|
|
|
+ : '100%'
|
|
|
|
+ };margin-top:${
|
|
|
|
+ $route.path === '/economicsOperation' ? '40px' : '0'
|
|
|
|
+ };${
|
|
showMenuData?.[0]?.width && !isCollapse
|
|
showMenuData?.[0]?.width && !isCollapse
|
|
? `width: ${showMenuData?.[0]?.width}`
|
|
? `width: ${showMenuData?.[0]?.width}`
|
|
: ''
|
|
: ''
|
|
@@ -74,7 +80,7 @@
|
|
<div v-html="menu.svg" class="svgSty"></div>
|
|
<div v-html="menu.svg" class="svgSty"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <!-- :class="getSelectState(menuitem)" -->
|
|
|
|
|
|
+ <!-- :class="getSelectState(menuitem)" -->
|
|
<el-menu-item-group
|
|
<el-menu-item-group
|
|
v-for="(menuitem, index) in menu.children"
|
|
v-for="(menuitem, index) in menu.children"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -112,6 +118,23 @@
|
|
</div>
|
|
</div>
|
|
<!-- <alarmBadge /> -->
|
|
<!-- <alarmBadge /> -->
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="curTabsBox" v-if="$route.path === '/economicsOperation'">
|
|
|
|
+ <div
|
|
|
|
+ class="item"
|
|
|
|
+ :class="activeTab === 'yxzb' ? 'active' : ''"
|
|
|
|
+ @click="openWeb"
|
|
|
|
+ >
|
|
|
|
+ 运行指标
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="item"
|
|
|
|
+ :class="activeTab === 'jjfx' ? 'active' : ''"
|
|
|
|
+ @click="jumpUrl"
|
|
|
|
+ >
|
|
|
|
+ 经济分析
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<!-- <div v-else class="login"><login-page @onLogin="login" /></div> -->
|
|
<!-- <div v-else class="login"><login-page @onLogin="login" /></div> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -146,6 +169,7 @@ export default {
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ activeTab: "jjfx",
|
|
routepath: "",
|
|
routepath: "",
|
|
showMenuData: [],
|
|
showMenuData: [],
|
|
isCollapse: false,
|
|
isCollapse: false,
|
|
@@ -546,6 +570,7 @@ export default {
|
|
],
|
|
],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+
|
|
computed: {
|
|
computed: {
|
|
isLogined() {
|
|
isLogined() {
|
|
return this.$store.state.user?.loginState;
|
|
return this.$store.state.user?.loginState;
|
|
@@ -628,14 +653,24 @@ export default {
|
|
console.log("离开标记", this.socketLeaveFlag);
|
|
console.log("离开标记", this.socketLeaveFlag);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ openWeb() {
|
|
|
|
+ this.activeTab = "yxzb";
|
|
|
|
+ window.location.href = `${process.env.VUE_APP_URL}/index.html/#/runtime/b0d3f1f4-3e5d-429b-af81-2661e7099caa/862c8272-8cf8-435c-b3fc-b28936b4bfe0?instanceId=82546b6b-59a3-7a1b-fbd4-b2d4516cf991`;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ jumpUrl() {
|
|
|
|
+ this.activeTab = "jjfx";
|
|
|
|
+ this.$router.push({ path: "/economicsOperation" });
|
|
|
|
+ },
|
|
|
|
+
|
|
getSelectState(idx) {
|
|
getSelectState(idx) {
|
|
- // routepath === $route.path ? 'isSelect' : ''
|
|
|
|
|
|
+ // routepath === $route.path ? 'isSelect' : ''
|
|
const href = window.location.href;
|
|
const href = window.location.href;
|
|
const path = this.$route.path;
|
|
const path = this.$route.path;
|
|
|
|
|
|
const reg = new RegExp(path);
|
|
const reg = new RegExp(path);
|
|
|
|
|
|
- // return idx !== "/" && reg.test(path) ? "isSelect" : "";
|
|
|
|
|
|
+ // return idx !== "/" && reg.test(path) ? "isSelect" : "";
|
|
return idx !== "/" && path.indexOf(idx) !== -1 ? "isSelect" : "";
|
|
return idx !== "/" && path.indexOf(idx) !== -1 ? "isSelect" : "";
|
|
},
|
|
},
|
|
initMenu() {
|
|
initMenu() {
|
|
@@ -1054,6 +1089,31 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
@import "~@/assets/styles/main.less";
|
|
@import "~@/assets/styles/main.less";
|
|
|
|
+
|
|
|
|
+.curTabsBox {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 82px;
|
|
|
|
+ background: #030713;
|
|
|
|
+ z-index: 2003;
|
|
|
|
+ width: 220px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ .item {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ margin: 0 16px;
|
|
|
|
+ line-height: 34px;
|
|
|
|
+ color: #97a8ca;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+
|
|
|
|
+ &.active {
|
|
|
|
+ color: #f8f8ff;
|
|
|
|
+ border-bottom: 2px solid #40a7ee;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
#screen {
|
|
#screen {
|
|
z-index: 100;
|
|
z-index: 100;
|
|
transform-origin: 0 0;
|
|
transform-origin: 0 0;
|
|
@@ -1326,10 +1386,10 @@ body {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
- .isSelect{
|
|
|
|
|
|
+ .isSelect {
|
|
background: #1c69bb;
|
|
background: #1c69bb;
|
|
- .grounpItemSpan{
|
|
|
|
- color: #a5b7df;
|
|
|
|
|
|
+ .grounpItemSpan {
|
|
|
|
+ color: #a5b7df;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|