From 3bab8cb3e60c4905f87583b6e27568af6ac7db86 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 18 四月 2024 14:08:07 +0800 Subject: [PATCH] 工单阈值调整bug --- src/views/system/threshold/index.vue | 42 +++++++++++++++++++++++++++++++++--------- 1 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/views/system/threshold/index.vue b/src/views/system/threshold/index.vue index b1acb98..3a2d583 100644 --- a/src/views/system/threshold/index.vue +++ b/src/views/system/threshold/index.vue @@ -25,17 +25,33 @@ </el-table-column> <el-table-column label="宸ュ崟闃堝��" align="center" prop="indicator"> <template slot-scope="scope"> - <div v-for="item in JSON.parse(scope.row.indicator)" :key="item" style="display: flex;flex-direction: row"> - <div style="width: 120px;text-align: right">{{ item.label }}</div> - <div style="width: 60px;text-align: right">{{ item.value}}</div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">鍥惧儚璐ㄩ噺</div> + <div class="table-row-item">{{ scope.row.imageQuality }}</div> + </div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">瑙嗛璐ㄩ噺</div> + <div class="table-row-item">{{ scope.row.videoQuality }}</div> + </div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">鏍囨敞鍑嗙‘鐜�</div> + <div class="table-row-item">{{ scope.row.annotationAccuracy }}</div> </div> </template> </el-table-column> <el-table-column label="涓嬪彂闃堝��" align="center" prop="indicator"> <template slot-scope="scope"> - <div v-for="item in JSON.parse(scope.row.indicator)" :key="item" style="display: flex;flex-direction: row"> - <div style="width: 120px;text-align: right">{{ item.label }}</div> - <div style="width: 60px;text-align: right">{{ item.value2}}</div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">鍥惧儚璐ㄩ噺</div> + <div class="table-row-item">{{ scope.row.imageQualityAuto }}</div> + </div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">瑙嗛璐ㄩ噺</div> + <div class="table-row-item">{{ scope.row.videoQualityAuto }}</div> + </div> + <div class="table-row" style="display: flex;flex-direction: row"> + <div class="table-row-item">鏍囨敞鍑嗙‘鐜�</div> + <div class="table-row-item">{{ scope.row.annotationAccuracyAuto }}</div> </div> </template> </el-table-column> @@ -346,17 +362,17 @@ /** 淇敼鎸夐挳鎿嶄綔 */ updateWho(row) { if (row.monitorType === 'face') { - getFace(id).then(response => { + getFace(row.id).then(response => { this.faceForm = response.data this.faceOpen = true; }) } else if (row.monitorType === 'car') { - getCar(id).then(response => { + getCar(row.id).then(response => { this.carForm = response.data this.carOpen = true; }) } else { - getVideo(id).then(response => { + getVideo(row.id).then(response => { this.videoForm = response.data this.videoOpen = true; }) @@ -501,4 +517,12 @@ .el-input-half-width { width: calc(50% - 6px); /* 鍑忓幓涓�浜涢棿闅� */ } +.table-row { + display: flex; + flex-direction: row; +} +.table-row-item { + width: 120px; + text-align: center; +} </style> -- Gitblit v1.8.0