修改代码格式

This commit is contained in:
weiwei committed 2025-04-21 17:39:54 +08:00
1 parent 3fa0011ebf
commit 8870a68fba
18 files changed
+416 -339

No files matched your search

@@ -12,16 +12,11 @@
</el-form>
</el-row> -->
<el-table v-loading="state.loading" :data="state.dataList" @row-click="handleRowClick" :row-style="{ cursor: 'pointer' }">
<!-- <el-table v-loading="state.loading" :data="state.dataList" @row-click="handleRowClick" :row-style="{ cursor: 'pointer' }">
<el-table-column type="index" label="#" width="50" align="center" />
<el-table-column prop="productName" label="商品名称" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="brandId" label="商品品牌" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="categoryId" label="商品分类" width="100px" align="center" show-overflow-tooltip>
<template #default="{ row }">
<!-- {{ categoryOptions?.find((item: any) => item?.id === row?.categoryId)?.name }} -->
{{ row.categoryId }}
</template>
</el-table-column>
<el-table-column prop="categoryId" label="商品分类" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="merchantId" label="商户" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="sliderPicUrls" label="商品轮播图" align="center" show-overflow-tooltip>
<template #default="scope">
@@ -35,9 +30,9 @@
</el-table-column>
<el-table-column prop="barcode" label="商品条码" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="supplierId" label="供货商" width="100px" align="center" show-overflow-tooltip />
<el-table-column prop="sort" label="排序字段" align="center" show-overflow-tooltip />
<el-table-column prop="sort" label="排序字段" align="center" show-overflow-tooltip /> -->
<!-- <el-table-column prop="price" label="商品价格" align="center" show-overflow-tooltip>
<!-- <el-table-column prop="price" label="商品价格" align="center" show-overflow-tooltip>
<template #default="scope">
{{ displayPrice(scope.row.price) }}
</template>
@@ -51,13 +46,14 @@
<el-table-column prop="stock" label="库存" align="center" show-overflow-tooltip />
<el-table-column prop="salesCount" label="商品销量" align="center" show-overflow-tooltip />
<el-table-column prop="createTime" label="创建时间" align="center" show-overflow-tooltip /> -->
</el-table>
<!-- </el-table> -->
<!-- <pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" /> -->
<template #footer>
<div class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
<!-- <el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button> -->
</div>
</template>
</el-dialog>