From 00a2a8e080d0822529c8b09fc5029ac6519fda16 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 01 Jun 2022 18:14:43 +0800
Subject: [PATCH] 新增溯源码二维码下载
---
src/views/farm/farmingrecord.vue | 49 +++++++++++++++++++++++++++++--------------------
1 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/src/views/farm/farmingrecord.vue b/src/views/farm/farmingrecord.vue
index 01a71ed..be9d152 100644
--- a/src/views/farm/farmingrecord.vue
+++ b/src/views/farm/farmingrecord.vue
@@ -63,7 +63,7 @@
landList: [],
option: {
tip: false,
- height: "auto",
+ height: 520,
editBtn: true,
delBtn: true,
viewBtn: true,
@@ -73,12 +73,19 @@
selection: true,
searchShow: true,
searchMenuSpan: 6,
+ indexFixed: false,
+ selectionFixed: false,
+ expandFixed: false,
+ menuFixed: false,
column: [
{
label: "农事类型",
prop: "type",
type: "select",
+ search: true,
+ searchSpan: 4,
labelWidth: 110,
+ searchValue:this.getType(),
dicUrl: "/api/blade-system/dict-biz/dictionary?code=farmingType",
props: {
label: "dictValue",
@@ -121,8 +128,6 @@
{
label: "农资",
prop: "stockId",
- searchSpan: 4,
- search: true,
type: "tree",
// hide:true,
dicData: [],
@@ -143,8 +148,6 @@
{
label: "作业方式",
prop: "jobWay",
- search: true,
- searchSpan: 4,
labelWidth: 110,
type: "select",
dicData: [
@@ -183,8 +186,6 @@
{
label: "操作人",
prop: "operator",
- searchSpan: 4,
- search: true,
type: "tree",
hide: true,
dicData: [],
@@ -203,21 +204,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: "备注",
@@ -250,7 +253,7 @@
}
},
immediate: true,
- },
+ }
},
created() {
this.initData();
@@ -273,8 +276,12 @@
return ids.join(",");
},
},
- mounted() {},
+ mounted() {
+ },
methods: {
+ getType(){
+ return this.type;
+ },
//初始化数据
initData() {
var that = this;
@@ -414,6 +421,8 @@
},
onLoad(page, params = {}) {
this.loading = true;
+ var datas = this.$route.query.id;
+ params.landId=datas;
getList(
page.currentPage,
page.pageSize,
--
Gitblit v1.9.3