From dc82bab824073c99217519739e38f112520499fa Mon Sep 17 00:00:00 2001
From: taozi <1362265981@qq.com>
Date: Tue, 30 Dec 2025 18:01:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/firstOrder/list.vue | 2 +-
src/views/materials/index.vue | 36 ++++++++++++++++++++---------------
2 files changed, 22 insertions(+), 16 deletions(-)
diff --git a/src/views/firstOrder/list.vue b/src/views/firstOrder/list.vue
index 944dd5d..8f72088 100644
--- a/src/views/firstOrder/list.vue
+++ b/src/views/firstOrder/list.vue
@@ -22,7 +22,7 @@
-
+
diff --git a/src/views/materials/index.vue b/src/views/materials/index.vue
index 9a5589a..1c3543e 100644
--- a/src/views/materials/index.vue
+++ b/src/views/materials/index.vue
@@ -13,7 +13,7 @@ import { getList, add, remove, update, getCode } from "@/api/materials/list";
export default {
data() {
return {
- form: {imageUrl: ""},
+ form: { imageUrl: "" },
selectionList: [],
query: {},
loading: true,
@@ -96,26 +96,32 @@ export default {
}
},
{
- label: '图片',
- prop: 'picture',
- type: 'upload',
- multiple: true,
- headerAlign: "center",
- align: "center",
- span: 12,
- propsHttp: { //配置请求接口返回的数据结构
- // url: 'picture', //路径地址
- // name: 'name', //图片名称
- // res: 'data' //返回数据层级结构
- },
- formatter: (row, column) => {
+ label: '图片',
+ prop: 'picture',
+ type: 'upload',
+ headerAlign: "center",
+ align: "center",
+ loadText: "图片上传中,请稍等",
+ span: 12,
+ // propsHttp: { //配置请求接口返回的数据结构
+ // url: 'picture', //路径地址
+ // name: 'name', //图片名称
+ // res: 'data' //返回数据层级结构
+ // },
+ tip: "只能上传jpg/png文件",
+ rules: [{
+ required: true,
+ message: "请上传图片",
+ trigger: "change",
+ }],
+ formatter: (row, column) => {
const value = row.picture;
if (value === null || value === undefined || value === "") {
return "无"
}
return value;
}
- },
+ },
],
},
data: [],