Преглед изворни кода

去除数字农业-农药信息图片上传

吕宣芝 пре 1 година
родитељ
комит
7ac3d36202

+ 1 - 15
data-ui/src/views/data/digitalagriculture/information/index.vue

@@ -116,12 +116,6 @@
         <el-form-item label="实际使用量(吨)" prop="realityUsage">
           <el-input v-model="form.realityUsage" placeholder="请输入实际使用量(吨)" maxlength="15"/>
         </el-form-item>
-        <el-col :span="24">
-          <el-form-item label="图片" prop="attachPaths">
-            <DataImageUpload ref="ImageUpload" :fileType="['png', 'jpg', 'jpeg']" :value="form.attachPaths"
-                         @input="getUrl"></DataImageUpload>
-          </el-form-item>
-        </el-col>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -145,12 +139,11 @@
   import { treeselect } from "@/api/system/dept";
   import Treeselect from '@riophae/vue-treeselect'
   import '@riophae/vue-treeselect/dist/vue-treeselect.css'
-  import DataImageUpload from "@/components/ImageUpload/dataUpload.vue";
 
   export default {
     name: "Information",
     dicts: ['sys_dept_type'],
-    components: {DataImageUpload, Treeselect, Deptselector},
+    components: { Treeselect, Deptselector},
     data() {
       return {
         // 部门名称
@@ -206,13 +199,6 @@
       this.getTreeselect();
     },
     methods: {
-      /** 上传 */
-      getUrl(url) {
-        //获取图片全路径  例:http://{{ ip }}:{{ port }}/group1/M00/00/07/wKgKEGVxMCiAZbvVAAJE9SGvagw915.jpg
-        this.form.attachPaths = url
-        //获取图片路径  例:group1/M00/00/07/wKgKEGVxL6eACFv2AAJE9SGvagw622.jpg
-        // this.form.attachPaths = this.$refs.ImageUpload.dialogName
-      },
       /** 查询部门下拉树结构 */
       getTreeselect() {
         treeselect().then(response => {

+ 0 - 13
src/main/java/com/sooka/sponest/data/digitalagriculture/domain/CenterdataTFarmPesticideInformation.java

@@ -68,17 +68,4 @@ public class CenterdataTFarmPesticideInformation extends BaseBusinessEntity {
     @ApiModelProperty(value = "实际使用量", required = false)
     @Excel(name = "实际使用量" , suffix = "吨")
     private String realityUsage;
-
-    /**
-     * 图片上传路径
-     */
-    @ApiModelProperty(value = "图片上传路径", required = false)
-    private String attachPaths;
-
-    /**
-     * 图片来源
-     */
-    @ApiModelProperty(value = "图片来源", required = false)
-    private String busSource;
-
 }

+ 0 - 3
src/main/java/com/sooka/sponest/data/digitalagriculture/service/impl/CenterdataTFarmPesticideInformationServiceImpl.java

@@ -48,7 +48,6 @@ public class CenterdataTFarmPesticideInformationServiceImpl extends BaseServiceI
     @Override
     public CenterdataTFarmPesticideInformation selectCenterdataTFarmPesticideInformationById(String id) {
         CenterdataTFarmPesticideInformation centerdataTFarmPesticideInformation = centerdataTFarmPesticideInformationMapper.selectCenterdataTFarmPesticideInformationById(id);
-        centerdataTFarmPesticideInformation.setAttachPaths(DataAttachUtil.getDataAttachUpload(id));
         return centerdataTFarmPesticideInformation;
     }
 
@@ -64,7 +63,6 @@ public class CenterdataTFarmPesticideInformationServiceImpl extends BaseServiceI
         centerdataTFarmPesticideInformation.setCreateBy(SecurityUtils.getUserId().toString());
         centerdataTFarmPesticideInformation.setCreateName(SecurityUtils.getLoginUser().getSysUser().getNickName());
         centerdataTFarmPesticideInformation.setCreateTime(DateUtils.getNowDate());
-        DataAttachUtil.dataAttachUpload(centerdataTFarmPesticideInformation.getId(),centerdataTFarmPesticideInformation.getAttachPaths(),"farm", centerdataTFarmPesticideInformation.getBusSource());
         return centerdataTFarmPesticideInformationMapper.insertCenterdataTFarmPesticideInformation(centerdataTFarmPesticideInformation);
     }
 
@@ -79,7 +77,6 @@ public class CenterdataTFarmPesticideInformationServiceImpl extends BaseServiceI
         centerdataTFarmPesticideInformation.setUpdateBy(SecurityUtils.getLoginUser().getUserid());
         centerdataTFarmPesticideInformation.setUpdateName(SecurityUtils.getLoginUser().getSysUser().getNickName());
         centerdataTFarmPesticideInformation.setUpdateTime(DateUtils.getNowDate());
-        DataAttachUtil.dataAttachUpload(centerdataTFarmPesticideInformation.getId(),centerdataTFarmPesticideInformation.getAttachPaths(),"farm", centerdataTFarmPesticideInformation.getBusSource());
         return centerdataTFarmPesticideInformationMapper.updateCenterdataTFarmPesticideInformation(centerdataTFarmPesticideInformation);
     }