| | |
| | | }, |
| | | data() { |
| | | return { |
| | | button:{ |
| | | setButton:false |
| | | }, |
| | | totalData: [], |
| | | // 保存设置 |
| | | save: false, |
| | |
| | | checkedShops: [] |
| | | } |
| | | |
| | | // chartInstance: [] |
| | | // // 内部设备 |
| | | // devices: [] |
| | | }; |
| | | }, |
| | | watch: { |
| | | // 'outside.checkedShops'(){ |
| | | // this.saveOutsideData() |
| | | // console.log('111'); |
| | | // } |
| | | }, |
| | | |
| | | methods: { |
| | | //获取所有店铺名字 |
| | | getDeviceInfo() { |
| | |
| | | |
| | | // 点击按钮触发 |
| | | show() { |
| | | // |
| | | this.button.setButton = true |
| | | // 当取消选择时,防止图形还保留在页面。 |
| | | if (this.outside.checkedShops.length == 0) { |
| | | this.outside.realTimeData = []; |
| | |
| | | } |
| | | // 根据所选的店铺请求数据 |
| | | this.request(); |
| | | this.button.setButton = false |
| | | // 定时更新 |
| | | setInterval(() => { |
| | | this.request(); |
| | | }, this.timeInterval); |
| | |
| | | content="点击展示实时数据" |
| | | placement="top-start" |
| | | > |
| | | <el-button type="success" @click="show" style="margin-left: 10px"> |
| | | <el-button type="success" :loading="button.setButton" @click="show" style="margin-left: 10px"> |
| | | 设置 |
| | | </el-button> |
| | | </el-tooltip> |
| | |
| | | :key="device.mvStatCode" |
| | | > |
| | | <!-- 内部设备 --> |
| | | <el-card v-if="index < inner.inFumeValue.length" height="1900px"> |
| | | <el-card v-if="index < inner.inFumeValue.length" class="card-font-color" height="1900px"> |
| | | <template #header> |
| | | <div class="card-header">{{ device.siteName }} |
| | | <img src="@/assets/inner_device.jpg" class="icon-inner"/> |
| | |
| | | </template> |
| | | <div class="report-time-text">数据发布时间:{{ device.time }}</div> |
| | | <DashBoard :data="device.value"></DashBoard> |
| | | |
| | | <div >设备编号:{{ device.mnCode }}</div> |
| | | <!-- <hr class="divider-margin" /> --> |
| | | |
| | | <div class="horizontal-line"></div> |
| | | |
| | | <div class="status" :class="{ exceed: device.value > 1 }"> |
| | |
| | | <br /> |
| | | </el-card> |
| | | <!-- 外部设备 --> |
| | | <el-card v-else> |
| | | <el-card v-else class="card-font-color"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | {{ device.diName }} |
| | |
| | | </span> |
| | | </div> |
| | | <div class="horizontal-line"></div> |
| | | <!-- <hr class="divider-margin" /> --> |
| | | |
| | | <div>设备编号:{{ device.mvStatCode }}</div> |
| | | |
| | | <div class="horizontal-line"></div> |
| | | <!-- <hr class="divider-margin" /> --> |
| | | |
| | | <div>设备供应商:{{ device.diSupplier }}</div> |
| | | <div |
| | | class="status" |
| | |
| | | color: #999999; |
| | | } |
| | | |
| | | .card-font-color { |
| | | color: #000000; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | width: calc(100% / 6); |
| | | // margin-left: 70px; |
| | | } |
| | | // .input-search { |
| | | // display: flex; |
| | | // justify-content: left; |
| | | // } |
| | | |
| | | .save-switch { |
| | | margin-top: 20px; |
| | | margin-left: 20px; |