|
|
@ -2,7 +2,7 @@
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<div class="centerImg"></div>
|
|
|
|
<div class="centerImg"></div>
|
|
|
|
<div class="leftMenu">
|
|
|
|
<div class="leftMenu">
|
|
|
|
<div v-for="i in deviceList" class="item" @click="getRightData(i)">
|
|
|
|
<div v-for="(i,k) in deviceList" class="item" @click="getRightData(i)" :key="k">
|
|
|
|
<span>{{ i.deviceModeName }}</span>
|
|
|
|
<span>{{ i.deviceModeName }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -23,13 +23,14 @@
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
|
<el-button type="primary" @click="()=>{}">查询</el-button>
|
|
|
|
<el-button @click="onSubmit">重置</el-button>
|
|
|
|
<el-button @click="()=>{}">重置</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div :style="{height:maxHeight+'px'}" class="table">
|
|
|
|
<div :style="{height:maxHeight+'px'}" class="table">
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
v-loading="loading"
|
|
|
|
v-if='tableShow'
|
|
|
|
v-if='tableShow'
|
|
|
|
:cell-style="setStyle"
|
|
|
|
:cell-style="setStyle"
|
|
|
|
:data="tableData"
|
|
|
|
:data="tableData"
|
|
|
@ -93,6 +94,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
loading:false,
|
|
|
|
tableShow: false,
|
|
|
|
tableShow: false,
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
data1: '',
|
|
|
|
data1: '',
|
|
|
@ -115,6 +117,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async getRightData(e){
|
|
|
|
async getRightData(e){
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
await this.setSelectLatestDataByDeviceMode({
|
|
|
|
await this.setSelectLatestDataByDeviceMode({
|
|
|
|
"sceneId": this.$store.getters.sceneId,
|
|
|
|
"sceneId": this.$store.getters.sceneId,
|
|
|
|
"deviceModeId": e.deviceModeId,
|
|
|
|
"deviceModeId": e.deviceModeId,
|
|
|
@ -122,6 +125,7 @@ export default {
|
|
|
|
"offset": this.offset,
|
|
|
|
"offset": this.offset,
|
|
|
|
"limit": 10
|
|
|
|
"limit": 10
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.loading = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getData() {
|
|
|
|
async getData() {
|
|
|
|
await this.setDeviceModesBySceneId()
|
|
|
|
await this.setDeviceModesBySceneId()
|
|
|
|