智慧农业后台管理页面
Administrator
2022-05-14 a79af29ac4cfe60fb538dc7707af68bf16239aa3
农事图片上传修改为多张,最多5张
2 files modified
25 ■■■■■ changed files
src/views/farm/farmingrecord.vue 24 ●●●● patch | view | raw | blame | history
src/views/farmplant/farmplant.vue 1 ●●●● patch | view | raw | blame | history
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: "备注",
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);