提交一部分丰都大屏
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section class="fengduHead">
|
||||
<div class="content flex">
|
||||
<ai-area class="fill" v-model="current" :mask="false">
|
||||
<ai-area class="fill" v-model="current" :mask="false" :root="currentRoot">
|
||||
<template slot-scope="{areaname}">
|
||||
<el-input class="areaPicker" :value="areaname" readonly suffix-icon="el-icon-arrow-down"/>
|
||||
</template>
|
||||
@@ -17,6 +17,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "fengduHead",
|
||||
model: {
|
||||
@@ -30,9 +32,9 @@ export default {
|
||||
currentTime: {default: null}
|
||||
},
|
||||
computed: {
|
||||
tabs: v => [
|
||||
...v.views,
|
||||
]
|
||||
...mapState(['user']),
|
||||
currentRoot: v => v.user.info.areaId.substr(0, 6).padEnd(12, '0'),
|
||||
tabs: v => [...v.views ]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -57,6 +59,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.current = this.$copy(this.user.info.areaId)
|
||||
// this.getWeather()
|
||||
}
|
||||
}
|
||||
@@ -77,7 +80,7 @@ export default {
|
||||
position: relative;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("../assets/bg-lighting.png");
|
||||
background-position:top center;
|
||||
background-position: top center;
|
||||
|
||||
.content {
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user