diff --git a/src/api/homesteadSurvey/index.js b/src/api/homesteadSurvey/index.js index c744154c..c140855d 100644 --- a/src/api/homesteadSurvey/index.js +++ b/src/api/homesteadSurvey/index.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询数据调查任务列表 export function listTask(query) { return request({ - url: '/houseSurvey/task/list', + url: '/houseSurvey/task/getList', method: 'get', params: query }) diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 64f7513d..2530581e 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -2643,24 +2643,29 @@ }, created(){ if(this.$cookies.get("search")){ - this.active = this.$cookies.get("search").active - this.item = this.$cookies.get("search").mapZjdAData - let zrz = this.$cookies.get("search").mapZrzAData - let fsss = this.$cookies.get("search").mapFsssAData - if(this.$cookies.get("search").active=="3"){ - this.showzrz= true - this.getZrzList() - setTimeout(() => { - this.showPopupzrz(zrz) - }, 500); + if(this.$cookies.get("search").active!=null){ + this.active = this.$cookies.get("search").active + this.item = this.$cookies.get("search").mapZjdAData + let zrz = this.$cookies.get("search").mapZrzAData + let fsss = this.$cookies.get("search").mapFsssAData + if(this.$cookies.get("search").active=="3"){ + this.showzrz= true + this.getZrzList() + setTimeout(() => { + this.showPopupzrz(zrz) + }, 500); - }else if(this.$cookies.get("search").active=="4"){ - this.showfsss= true - this.getFsssList() - setTimeout(() => { - this.showPopupfsss(fsss) - }, 500); + }else if(this.$cookies.get("search").active=="4"){ + this.showfsss= true + this.getFsssList() + setTimeout(() => { + this.showPopupfsss(fsss) + }, 500); + } + }else{ + this.item = this.$cookies.get("search") } + }else{ this.$set(this.item,"deptId",this.$cookies.get("item").deptId) }