调整模块iscs显示样式

This commit is contained in:
zyy 2020-01-20 10:55:33 +08:00
parent a033690502
commit 8b68d80a81
5 changed files with 28 additions and 14 deletions

View File

@ -106,6 +106,8 @@ export default {
$route(val) { $route(val) {
if (val.path === '/orderauthor/rules/manage') { if (val.path === '/orderauthor/rules/manage') {
this.$refs.keMenu.activeIndex = val.path; this.$refs.keMenu.activeIndex = val.path;
} else if (val.path === '/design/home') {
this.$refs.keMenu.activeIndex = val.path;
} }
} }
}, },

View File

@ -940,15 +940,15 @@ export const asyncRouter = [
path: '/iscs', path: '/iscs',
component: Layout, component: Layout,
meta: { meta: {
i18n: 'router.iscsSystem', i18n: 'router.iscsSystem'
roles: [admin]
}, },
children: [ children: [
{ {
path:'design', path:'design',
component: IscsDesign, component: IscsDesign,
meta: { meta: {
i18n: 'router.iscsDraw' i18n: 'router.iscsDraw',
roles: [admin]
}, },
children: [ children: [
{ {
@ -962,7 +962,8 @@ export const asyncRouter = [
path: 'system', path: 'system',
component: IscsSystem, component: IscsSystem,
meta: { meta: {
i18n: 'router.iscsSystem' i18n: 'router.iscsSystem',
roles: [admin, user]
}, },
children: [ children: [
{ {

View File

@ -1,5 +1,5 @@
<template> <template>
<div style="height: 100%; width: 100%;"> <div style="height: 100%; width: 100%;overflow-y: auto;">
<standFAS v-if="mode == 'standFAS'" /> <standFAS v-if="mode == 'standFAS'" />
<stationHallFAS v-else-if="mode == 'stationHallFAS'" /> <stationHallFAS v-else-if="mode == 'stationHallFAS'" />
<systemFAS v-else-if="mode == 'systemFAS'" /> <systemFAS v-else-if="mode == 'systemFAS'" />

View File

@ -11,13 +11,11 @@
<script> <script>
import TopNav from './nav.vue'; import TopNav from './nav.vue';
// import bottom from './bottom.vue'; // import bottom from './bottom.vue';
// import ConfigContent from './config/index';
export default { export default {
components: { components: {
TopNav TopNav
// bottom, // bottom
// ConfigContent
}, },
data() { data() {
return { return {
@ -31,13 +29,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.iscs-system-box{ .iscs-system-box{
position: relative; // position: relative;
height: 100%; height: 100%;
overflow-y: auto;
} }
.content-box{ .content-box{
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 95px 0 0; padding: 34px 0 0;
background: #45607B; background: #45607B;
} }
</style> </style>

View File

@ -13,6 +13,7 @@
<div class="station-name">{{ item.name }}</div> <div class="station-name">{{ item.name }}</div>
</div> </div>
</div> </div>
<div class="back-box" @click="back">返回主页面</div>
</div> </div>
</template> </template>
@ -21,8 +22,8 @@ export default {
data() { data() {
return { return {
selectIndex: 0, selectIndex: 0,
selectChildIndex: 0, selectChildIndex: -1,
selectStationIndex: 0, selectStationIndex: -1,
navList: [ navList: [
{ {
name: '火灾报警', name: '火灾报警',
@ -214,8 +215,10 @@ export default {
this.$router.push({ path: `/iscs/system/config/${item.type}` }); this.$router.push({ path: `/iscs/system/config/${item.type}` });
}, },
selectStation(item, index) { // selectStation(item, index) { //
console.log(item);
this.selectStationIndex = index; this.selectStationIndex = index;
},
back() {
this.$router.push({ path: `/design/home` });
} }
} }
}; };
@ -292,6 +295,15 @@ export default {
background: #A1D9DC; background: #A1D9DC;
} }
} }
.back-box{
display: table;
position: absolute;
right: 20px;
top: 15px;
cursor: pointer;
&:hover{
color: #3161cc;
}
}
} }
</style> </style>