|
@@ -30,22 +30,6 @@
|
|
|
:header-cell-style="{ background: '#606266', color: '#FFFFFF' }">
|
|
|
<el-table-column fixed type="index" width="50" align="center" />
|
|
|
<el-table-column fixed prop="deviceSn" label="设备SN" header-align="center" width="120" />
|
|
|
- <!-- <el-table-column label="数据准确性" header-align="center" width="100">
|
|
|
- <template #default="scope">
|
|
|
- <el-space direction="vertical" alignment="start">
|
|
|
- <el-tag size="small">完整:<span style="color: blue">{{
|
|
|
- tool.formatPercent(scope.row.dataAccuracy)
|
|
|
- }}</span> </el-tag>
|
|
|
- <el-tag size="small">读数:<span style="color: blue">{{
|
|
|
- tool.formatPercent(scope.row.dataAccuracy)
|
|
|
- }}</span>
|
|
|
- </el-tag>
|
|
|
- <el-tag size="small">原始:<span style="color: green">{{
|
|
|
- tool.formatPercent(scope.row.originaldataAccuracy)
|
|
|
- }}</span></el-tag>
|
|
|
- </el-space>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column label="时间" header-align="center" width="180">
|
|
|
<template #default="scope">
|
|
|
<el-space direction="vertical" alignment="start">
|
|
@@ -62,7 +46,7 @@
|
|
|
<el-table-column label="图片" header-align="center" width="150">
|
|
|
<template #default="scope">
|
|
|
<div style="display: flex; align-items: center">
|
|
|
- <el-image :preview-src-list="scope.row.srcList" />
|
|
|
+ <el-image :src="scope.row.src" :preview-src-list="scope.row.srcList" />
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -182,16 +166,18 @@ const queryList = () => {
|
|
|
if (flag === "1") {
|
|
|
const pageData = res as PageResult<TAireadModel[]>;
|
|
|
const list = [] as TAireadModel[];
|
|
|
- // pageData.list.forEach(element => {
|
|
|
- // element.srcList=[];
|
|
|
- // if (element.smallJpgUrl) {
|
|
|
- // element.srcList.push(element.smallJpgUrl);
|
|
|
- // }
|
|
|
+ pageData.list.forEach(element => {
|
|
|
+ element.srcList = [];
|
|
|
+ if (element.smallJpgUrl) {
|
|
|
+ element.src = element.smallJpgUrl;
|
|
|
+ element.srcList.push(element.smallJpgUrl);
|
|
|
+ }
|
|
|
|
|
|
- // if (element.bigJpgRul) {
|
|
|
- // element.srcList.push(element.smallJpgUrl);
|
|
|
- // }
|
|
|
- // });
|
|
|
+ if (element.bigJpgRul) {
|
|
|
+ element.src = element.bigJpgRul;
|
|
|
+ element.srcList.push(element.bigJpgRul);
|
|
|
+ }
|
|
|
+ });
|
|
|
state.tableData = pageData.list;
|
|
|
state.total = pageData.total;
|
|
|
} else {
|
|
@@ -210,8 +196,8 @@ const queryList = () => {
|
|
|
};
|
|
|
|
|
|
const handleClick = (tab: any) => {
|
|
|
- if (tab.index === 1) {
|
|
|
-
|
|
|
+ if (tab.index === "1") {
|
|
|
+ init();
|
|
|
}
|
|
|
};
|
|
|
|