From a79af29ac4cfe60fb538dc7707af68bf16239aa3 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 14 May 2022 09:46:56 +0800
Subject: [PATCH] 农事图片上传修改为多张,最多5张
---
src/views/farm/farmingrecord.vue | 24 +++++++++++++-----------
src/views/farmplant/farmplant.vue | 1 +
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/src/views/farm/farmingrecord.vue b/src/views/farm/farmingrecord.vue
index 01a71ed..84c84c3 100644
--- a/src/views/farm/farmingrecord.vue
+++ b/src/views/farm/farmingrecord.vue
@@ -203,21 +203,23 @@
},
{
label: "农事照片",
+ prop: "tp",
type: "upload",
- listType: "picture-img",
- propsHttp: {
- res: "data",
- url: "url",
- },
+ labelWidth: 110,
+ dataType: "string",
+ span: 24,
+ limit: 5,
+ listType: "picture-card",
+ tip: "建议上传手机横屏拍摄的照片,宽高比16:9,最多上传5张",
canvasOption: {
- text: " ",
+ text: "",
ratio: 1.0,
},
- action: "/api/blade-resource/oss/endpoint/put-files",
- tip: "",
- span: 24,
- labelWidth: 110,
- prop: "tp",
+ propsHttp: {
+ res: "data",
+ url: "url"
+ },
+ action: "/api/blade-resource/oss/endpoint/put-files"
},
{
label: "备注",
diff --git a/src/views/farmplant/farmplant.vue b/src/views/farmplant/farmplant.vue
index b0ecf77..270f566 100644
--- a/src/views/farmplant/farmplant.vue
+++ b/src/views/farmplant/farmplant.vue
@@ -532,6 +532,7 @@
//新增
rowSave(row, done, loading) {
row['farmType'] = 0;
+ row['createUser'] = this.userInfo.user_id;
save(row).then(
() => {
this.onLoad(this.page);
--
Gitblit v1.9.3