|
|
@@ -2,23 +2,13 @@
|
|
|
<div class="screen-common-wrap">
|
|
|
<el-card class="content-z" v-if="selectList">
|
|
|
<a-tabs v-model="activeKey">
|
|
|
- <a-tab-pane
|
|
|
- v-for="item in tabs"
|
|
|
- :key="item.name"
|
|
|
- :tab="item.title"
|
|
|
- >
|
|
|
- <component
|
|
|
- :is="item.name"
|
|
|
- v-if="activeKey === item.name"
|
|
|
- :selectedGQ="selectedGQ"
|
|
|
- :gqPath="params.path"
|
|
|
- :gqStPath="params.stPath"
|
|
|
- />
|
|
|
+ <a-tab-pane v-for="item in tabs" :key="item.name" :tab="item.title">
|
|
|
+ <component :is="item.name" v-if="activeKey === item.name" :selectedGQ="selectedGQ" :gqPath="params.path"
|
|
|
+ :gqStPath="params.stPath" />
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
-
|
|
|
</template>
|
|
|
<script>
|
|
|
|
|
|
@@ -58,14 +48,14 @@ export default {
|
|
|
title: '(推送)电力异常信息',
|
|
|
name: 'Dl'
|
|
|
},
|
|
|
- {
|
|
|
- title: '(自主发现)变电异常信息',
|
|
|
- name: 'ZzBd'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '(自主发现)电力异常信息',
|
|
|
- name: 'ZzDl'
|
|
|
- }]
|
|
|
+ {
|
|
|
+ title: '(自主发现)变电异常信息',
|
|
|
+ name: 'ZzBd'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '(自主发现)电力异常信息',
|
|
|
+ name: 'ZzDl'
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
@@ -106,21 +96,15 @@ export default {
|
|
|
this.tabs = [{
|
|
|
title: '(推送)变电异常信息',
|
|
|
name: 'Bd'
|
|
|
- }, {
|
|
|
- title: '(推送)电力异常信息',
|
|
|
- name: 'Dl'
|
|
|
}]
|
|
|
this.activeKey = 'Bd'
|
|
|
} else {
|
|
|
- this.tabs = [{
|
|
|
- title: '(自主发现)变电异常信息',
|
|
|
- name: 'ZzBd'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '(自主发现)电力异常信息',
|
|
|
- name: 'ZzDl'
|
|
|
- }]
|
|
|
- this.activeKey = 'ZzBd'
|
|
|
+ this.tabs = [
|
|
|
+ {
|
|
|
+ title: '(自主发现)电力异常信息',
|
|
|
+ name: 'ZzDl'
|
|
|
+ }]
|
|
|
+ this.activeKey = 'ZzDl'
|
|
|
}
|
|
|
}
|
|
|
}
|