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: { props: {
label: "dictValue", label: "dictValue",
value: "dictKey" value: "dictKey"
}, search: true, },
search: true,
}, },
{ {
label: "名称", label: "名称",

View File

@@ -32,11 +32,20 @@ export default {
label: "用户账号", label: "用户账号",
prop: "userAccount", prop: "userAccount",
type: "input", type: "input",
search: true,
}, },
{ {
label: "商品类型", label: "类型",
prop: "type", 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: "商品名称", label: "商品名称",
@@ -57,7 +66,15 @@ export default {
{ {
label: "缩略图", label: "缩略图",
prop: "thumbImageUrl", 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: "单价", label: "单价",

View File

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