1. fix
This commit is contained in:
2026-05-18 21:53:17 +08:00
parent 5432d8aac3
commit 05deb988ef
3 changed files with 34 additions and 23 deletions

View File

@@ -40,7 +40,8 @@ export default {
props: {
label: "dictValue",
value: "dictKey"
}, search: true,
},
search: true,
},
{
label: "名称",

View File

@@ -32,11 +32,20 @@ export default {
label: "用户账号",
prop: "userAccount",
type: "input",
search: true,
},
{
label: "商品类型",
label: "类型",
prop: "type",
type: "input",
type: "select",
dicUrl: "/blade-system/dict/dictionary?code=merchant_product_type",
dataType: "number",
addDisplay: false,
props: {
label: "dictValue",
value: "dictKey"
},
search: true,
},
{
label: "商品名称",
@@ -57,7 +66,15 @@ export default {
{
label: "缩略图",
prop: "thumbImageUrl",
type: "input",
type: "upload",
listType: 'picture-img',
dataType: 'string',
action: '/blade-resource/oss/endpoint/put-file',
propsHttp: {
res: 'data',
url: 'link'
},
span:24
},
{
label: "单价",

View File

@@ -20,17 +20,17 @@
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<el-button type="danger"
icon="el-icon-delete"
plain
v-if="permission.productInventory_delete"
@click="handleDelete">删 除
</el-button>
<el-button type="warning"
plain
icon="el-icon-download"
@click="handleExport">导 出
</el-button>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.productInventory_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
@@ -202,14 +202,7 @@
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;