diff --git a/src/views/tested/dashboard/components/tableList.vue b/src/views/tested/dashboard/components/tableList.vue
index 69a7629..3ad2465 100644
--- a/src/views/tested/dashboard/components/tableList.vue
+++ b/src/views/tested/dashboard/components/tableList.vue
@@ -27,7 +27,13 @@
limit: 5,
readStatus: '0',
}).then((res) => {
- notice.value = res.data.rows
+ notice.value = res.data.rows.map((item: any, index: number) => {
+ return {
+ ...item,
+ messageTopic: index % 3 === 0 ? '吸烟检测模型' : index % 3 === 0 ? '安全帽检测模型' : '工服检测模型',
+ sourceModule: '智能模型',
+ }
+ })
})
}
else {
@@ -36,7 +42,13 @@
offset: 1,
limit: 5,
}).then((res) => {
- notice.value = res.data.rows
+ notice.value = res.data.rows.map((item: any, index: number) => {
+ return {
+ ...item,
+ sourceModule: index % 3 === 0 ? '吸烟检测模型' : index % 3 === 0 ? '安全帽检测模型' : '工服检测模型',
+ messageTopic: '智能模型',
+ }
+ })
})
}
}
@@ -126,7 +138,7 @@
-
+