From 855deb4dfb6458a1eed217363625b13d58143f58 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 30 四月 2025 15:33:32 +0800 Subject: [PATCH] fix:修改图片地址,路由懒加载 --- src/views/facility/monitorList/index.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/facility/monitorList/index.vue b/src/views/facility/monitorList/index.vue index 5363288..45c5957 100644 --- a/src/views/facility/monitorList/index.vue +++ b/src/views/facility/monitorList/index.vue @@ -238,7 +238,7 @@ </el-col> </el-row> <!--表格及分页--> - <el-table v-loading="loading" :data="tableData"> + <el-table v-loading="loading" :data="tableData" class="table"> <el-table-column v-for="(item, key, index) of tableHeader" :prop="key.toString()" @@ -248,7 +248,7 @@ > <template #default="scope"> <div v-if="key === 'imageUrl'"> - <img :src="imgBaseUrl + scope.row.headImg" class="table-headImg" alt="" /> + <img :src="imgBaseUrl + scope.row.imageUrl" class="table-headImg" alt="" /> </div> <div v-else-if="key === 'pointType'"> {{ scope.row.pointType === 1 ? '水温监测点' : '生态流量监测点' }} @@ -327,4 +327,10 @@ flex-grow: 1; } } +.table{ + .table-headImg{ + height: 50px; + margin: 0 auto; + } +} </style> \ No newline at end of file -- Gitblit v1.9.3