fix:图片显示

This commit is contained in:
wangzenghua 2025-04-22 03:25:36 +01:00
parent 9261b0b7f2
commit 7160526321
3 changed files with 4 additions and 5 deletions

View File

@ -22,8 +22,8 @@
<el-table-column label="名称" align="center" prop="introName" /> <el-table-column label="名称" align="center" prop="introName" />
<el-table-column label="图片" align="center" prop="introImg" width="180"> <el-table-column label="图片" align="center" prop="introImg" width="180">
<template v-slot:default="{ row }"> <template v-slot:default="{ row }">
<div class="image" @click="previewImage(`${image.baseUrl + row.introImg}`, row)"> <div class="image" @click="previewImage(row.introImg, row)">
<img style="width: 50px; height: 50px" :src="`${image.baseUrl + row.introImg}`" /> <img style="width: 50px; height: 50px" :src="row.introImg" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -22,8 +22,8 @@
<el-table-column label="名称" align="center" prop="methodName" /> <el-table-column label="名称" align="center" prop="methodName" />
<el-table-column label="图片" align="center" prop="methodImg" width="180"> <el-table-column label="图片" align="center" prop="methodImg" width="180">
<template v-slot:default="{ row }"> <template v-slot:default="{ row }">
<div class="image" @click="previewImage(`${image.baseUrl + row.methodImg}`, row)"> <div class="image" @click="previewImage(row.methodImg, row)">
<img style="width: 50px; height: 50px" :src="`${image.baseUrl + row.methodImg}`" /> <img style="width: 50px; height: 50px" :src="row.methodImg" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -150,7 +150,6 @@ export default {
this.loading = true; this.loading = true;
listStandardJob(this.queryParams).then((response) => { listStandardJob(this.queryParams).then((response) => {
this.standardJobList = response.rows; this.standardJobList = response.rows;
console.log(777, this.standardJobList);
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });