From b534cfe68f6c31f96c528928326f3f6e3ab38620 Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Mon, 28 Feb 2022 11:43:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/homesteadSurvey/index.js | 4 ++-- src/api/homesteadSurvey/zjdzd.js | 2 +- src/views/homesteadSurvey/add.vue | 26 ++++++++++++-------------- src/views/homesteadSurvey/list.vue | 9 +-------- 4 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/api/homesteadSurvey/index.js b/src/api/homesteadSurvey/index.js index c744154c..1e2a1812 100644 --- a/src/api/homesteadSurvey/index.js +++ b/src/api/homesteadSurvey/index.js @@ -68,9 +68,9 @@ export function delTask(id) { }) } // 查询附件上传配置列表 -export function listAttachmentConfig(query) { +export function sysConfig(query) { return request({ - url: '/system/attachmentConfig/list', + url: '/system/config/list', method: 'get', params: query }) diff --git a/src/api/homesteadSurvey/zjdzd.js b/src/api/homesteadSurvey/zjdzd.js index 26ef0607..f62148f9 100644 --- a/src/api/homesteadSurvey/zjdzd.js +++ b/src/api/homesteadSurvey/zjdzd.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询数据调查-宅基地宗地列表 export function listZjdzd(query) { return request({ - url: '/houseSurvey/zjdzd/list', + url: '/houseSurvey/zjdzd/searchList', method: 'get', params: query }) diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 2530581e..1af8dbd4 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -2464,7 +2464,7 @@ import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList} from "@/api/homesteadSurvey/fsss"; import { listTown, getTown } from "@/api/homesteadSurvey/town"; import { listVillage} from "@/api/homesteadSurvey/village"; - import { listAttachmentConfig} from "@/api/homesteadSurvey/index"; + import { sysConfig} from "@/api/homesteadSurvey/index"; import { Notify, Dialog, Toast } from 'vant'; export default { name: "homesteadAdd", @@ -2639,6 +2639,9 @@ jzqkOptions:[], // 土地等级字典 tddjOptions:[], + + // 图片上传路径 + baseUrl:"", }; }, created(){ @@ -2777,16 +2780,9 @@ methods: { getBaseUrl(){ let params={ - parentId: null, - processKey: null, - nodeStatus: null, - fileType: null, - fileTypeName: null, - configLevel: null, - nodeStatusName: null, - businessType: null} - listAttachmentConfig(params).then(response => { - console.log(response) + configKey: "system.attachment.url"} + sysConfig(params).then(response => { + this.baseUrl = response.rows[0].configValue }) }, // 验证 @@ -2812,6 +2808,7 @@ "deptId" : this.item.deptId } listNh(params).then((response) => { + console.log(response) this.syqrnhdmlist = response.rows }); }, @@ -3349,7 +3346,7 @@ if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){ let li = this.form.zjdxctp.split(","); li.map(res => { - this.fileListzjd.push({"url":location.protocol+"//"+location.host+process.env.VUE_APP_BASE_API+res,"baseUrl":res}) + this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res}) }) } @@ -3443,7 +3440,6 @@ } listZrz(params).then(response => { this.zrzlist = response.rows; - this.fwlist = [] }); listNmfw(params).then(r => { this.fwlist = r.rows @@ -4134,7 +4130,9 @@ }, searchCommit(){ this.showesign = true - this.resultImg = location.protocol+"//"+location.host+process.env.VUE_APP_BASE_API+this.form.dzqm + if(this.form.dzqm!=null&&this.form.dzqm!=""){ + this.resultImg = this.baseUrl+this.form.dzqm + } }, searchCommit1(){ this.form.houseDataConfirmStatus = "CONFIRMED" diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 87c0540e..18544aee 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -1140,7 +1140,6 @@