| | |
| | | } |
| | | tableDataa.value = data.EdgStorageCageinfos[0] |
| | | tableDatab.value = data.taskMessage |
| | | }; |
| | | adjustedRects.value = data.EdgStorageCageinfos[0].map((rect, index) => ({ |
| | | ...rect, |
| | | id: rect.id * 9, |
| | | showRect: !!data.EdgStorageCageinfos[0][index]?.details[0] |
| | | })); |
| | | }; |
| | | // 格式化后端时间并计算一周前的时间 |
| | | const defaultTime = ref<[Date, Date]>([new Date(), new Date()]); |
| | | function parseAndSetTime() { |
| | |
| | | </el-card> |
| | | <div class="awatch"> |
| | | <img src="../../assets/woshihuancun.png" alt="" style="width: 50%;height: 70%;margin-left: 30%;margin-top: 20px;position: relative;"> |
| | | <div style="position: relative; width: 500px;height: 95px;margin-top: -165px;margin-left: 450px;"> |
| | | <div style="position: relative; width: 500px;height: 95px;margin-top: -222px;margin-left: 600px;"> |
| | | <div |
| | | v-for="(rect, index) in adjustedRects" |
| | | v-show="rect.showRect" |
| | | :key="rect" |
| | | :style="{ position: 'absolute', |
| | | top: `${rect.id}px`, left: `10px`, width: `${rect.width}px`, height: `5px`, |
| | | top: `${rect.id}px`, left: `10px`, width: `422px`, height: `3px`, |
| | | backgroundColor: '#409EFF' |
| | | }" |
| | | > |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 历史任务 --> |
| | | <el-dialog v-model="blindb" top="5vh" width="95%"> |
| | | <el-dialog v-model="blindb" top="5vh" width="95%" @close="iframeUrl=''"> |
| | | <iframe |
| | | :src="iframeUrl" |
| | | marginwidth="2000px" |