Merge branch 'dev_iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into dev_iscs

This commit is contained in:
fan 2020-01-16 09:23:48 +08:00
commit 69850add99
3 changed files with 66 additions and 8 deletions

View File

@ -91,6 +91,12 @@ export default {
mode: 'hmi', mode: 'hmi',
id: '1', id: '1',
type: 'interface' type: 'interface'
},
{
name: 'BAS界面',
mode: 'bas',
id: '2',
type: 'interface'
} }
] ]
} }

View File

@ -5,7 +5,8 @@
<iscs-plate ref="iscsPlate" /> <iscs-plate ref="iscsPlate" />
</div> </div>
<div class="map-draft"> <div class="map-draft">
<iscs-operate ref="iscsOperate" @iscsChange="iscsChange" /> <iscs-operate v-if="iscsMode=='hmi'" ref="iscsOperate" @iscsChange="iscsChange" />
<iscs-bas-operate v-else-if="iscsMode=='bas'" ref="iscsBasOperate" @iscsChange="iscsChange" />
</div> </div>
</div> </div>
</transition> </transition>
@ -13,12 +14,13 @@
<script> <script>
import IscsPlate from '@/views/iscsSystem/index'; import IscsPlate from '@/views/iscsSystem/index';
import IscsOperate from './iscsOperate/index'; import IscsOperate from './iscsOperate/index';
import IscsBasOperate from './iscsBasOperate/index';
export default { export default {
name: 'IscsView', name: 'IscsView',
components: { components: {
IscsPlate, IscsPlate,
IscsOperate IscsOperate,
IscsBasOperate
}, },
data() { data() {
return { return {
@ -28,6 +30,11 @@ export default {
} }
}; };
}, },
computed:{
iscsMode() {
return this.$route.params.mode;
}
},
watch: { watch: {
}, },
@ -51,6 +58,7 @@ export default {
@import "src/styles/mixin.scss"; @import "src/styles/mixin.scss";
.map-draft{ .map-draft{
height:100%;
/deep/{ /deep/{
.v-modal{ .v-modal{
opacity: 0; opacity: 0;

View File

@ -0,0 +1,44 @@
<template>
<transition name="el-zoom-in-center">
<div class="map-control heightClass">
<el-card type="border-card" class="heightClass">
<div slot="header" class="clearfix">
<div>111111</div>
<el-button
type="text"
style="float: right; padding: 3px 0; margin-right: 5px;"
@click="handleSave"
>{{ $t('ibp.save') }}</el-button>
</div>
<el-tabs v-model="enabledTab" class="mapEdit" type="card" @tab-click="handleTabClick">
<el-tab-pane label="冷冻泵/冷却泵" name="frozenPump">
<manual-alarm-button
ref="clock"
style="width:90%"
@createDataModel="createDataModel"
@deleteDataModel="deleteDataModel"
/>
</el-tab-pane>
</el-tabs>
</el-card>
</div>
</transition>
</template>
<script>
export default {
name: 'IscsOperate',
// components: {
// ManualAlarmButton
// },
mixins: [
],
data() {
return {
enabledTab: 'frozenPump'
};
}
};
</script>
<style lang="scss" scoped>
.heightClass{height:100%;}
</style>