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: [],