调整图片预览

This commit is contained in:
ctw committed 2024-12-31 17:30:02 +08:00
1 parent 6ca8b29bde
commit 49ded5ac77
5 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/
#VITE_ADMIN_PROXY_PATH = http://192.168.110.156:9999
# 图片访问基础地址
# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api
VITE_IMAGE_BASE_PATH = http://localhost:9999
VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api
# VITE_IMAGE_BASE_PATH = http://localhost:9999
# 代码生成服务地址
VITE_GEN_PROXY_PATH = http://192.168.110.156:5003
+4 -4
View File
@@ -50,10 +50,10 @@
<el-table-column prop="categoryId" label="商品分类编号" width="120px" show-overflow-tooltip />
<el-table-column prop="picUrl" label="商品封面图" align="center" width="160px" show-overflow-tooltip>
<template #default="scope">
<el-image style="width: 100px; height: 100px" :src="imageBaseUrl + scope.row.picUrl" fit="cover" />
<preview-image style="width: 50px; height: 50px" :src="imageBaseUrl + scope.row.picUrl" />
</template>
</el-table-column>
<!-- <el-table-column prop="sliderPicUrls" label="商品轮播图" show-overflow-tooltip/>-->
<!-- <el-table-column prop="sliderPicUrls" label="商品轮播图" show-overflow-tooltip /> -->
<el-table-column prop="sort" label="排序字段" show-overflow-tooltip />
<el-table-column prop="status" label="上架状态" show-overflow-tooltip>
<template #default="scope">
@@ -64,9 +64,9 @@
<el-table-column prop="marketPrice" label="市场价" show-overflow-tooltip />
<el-table-column prop="costPrice" label="成本价" show-overflow-tooltip />
<el-table-column prop="stock" label="库存" show-overflow-tooltip />
<!-- <el-table-column prop="giveIntegral" label="赠送积分" show-overflow-tooltip />-->
<!-- <el-table-column prop="giveIntegral" label="赠送积分" show-overflow-tooltip /> -->
<el-table-column prop="salesCount" label="商品销量" show-overflow-tooltip />
<!-- <el-table-column prop="virtualSalesCount" label="虚拟销量" show-overflow-tooltip />-->
<!-- <el-table-column prop="virtualSalesCount" label="虚拟销量" show-overflow-tooltip /> -->
<el-table-column prop="createTime" label="创建时间" show-overflow-tooltip />
<el-table-column label="操作" width="150" fixed="right">
<template #default="scope">
@@ -74,7 +74,7 @@
</div>
</template>
<script setup lang="ts" name="systemSupermarketAuxiliaryCode">
<script setup lang="ts">
// import { BasicTableProps, useTable } from '/@/hooks/table';
// import { fetchList, delObjs } from '/@/api/supermarket/supermarketAuxiliaryCode';
// import { useMessage, useMessageBox } from '/@/hooks/message';
@@ -87,7 +87,7 @@
</div>
</template>
<script setup lang="ts" name="systemSupermarketAuxiliaryCode">
<script setup lang="ts">
// import { BasicTableProps, useTable } from '/@/hooks/table';
// import { fetchList, delObjs } from '/@/api/supermarket/supermarketUnit';
// import { useMessage, useMessageBox } from '/@/hooks/message';
@@ -63,9 +63,9 @@
{{ supermarketCategory?.find((item: any) => item.id === scope.row.categoryId)?.name }}
</template>
</el-table-column>
<el-table-column prop="picUrl" label="封面图" width="140">
<el-table-column prop="picUrl" label="封面图" width="100">
<template #default="scope">
<el-image style="width: 100px; height: 100px" :src="imageBaseUrl + scope.row.picUrl" fit="cover" />
<preview-image style="width: 50px; height: 50px" :src="imageBaseUrl + scope.row.picUrl" />
</template>
</el-table-column>
<el-table-column prop="status" label="商品状态" width="100">