ソースを参照

宅基地综合查询优化

rongxin_prod
Xyq123* 1年前
コミット
f5c058f79b
1個のファイルの変更46行の追加67行の削除
  1. +46
    -67
      src/views/homesteadSurvey/list.vue

+ 46
- 67
src/views/homesteadSurvey/list.vue ファイルの表示

@@ -112,7 +112,7 @@
</template>

<script>
import {rhhcList,getQueryLand,getZjdzd,delZjdzd,uploadFile,submitUploadImageList} from "@/api/homesteadSurvey/zjdzd";
import {rhhcList,getQueryLand,listZjdzd,getZjdzd,delZjdzd,uploadFile,submitUploadImageList} from "@/api/homesteadSurvey/zjdzd";
import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
import {addNhhncy, delNhhncy, exportNhhncy, getNhhncy, listNhhncy, updateNhhncy} from "@/api/homesteadSurvey/nhhncy";
import {listShyqr,setSyqrInfo} from "@/api/homesteadSurvey/shyqr";
@@ -321,18 +321,6 @@
mounted(){
},
created(){

axios.get('../static/dictyType.json').then(res => {
this.dictTypeList = res.data
this.zjlxOptions = this.dictTypeList.zjlx;
this.suyqxzOptions = this.dictTypeList.qsxz;
this.sjlyOptions = this.dictTypeList.sjly;
this.hyzkOptions = this.dictTypeList.hyzk;
this.occupationOptions = this.dictTypeList.occupation;
this.jzqkOptions = this.dictTypeList.living_condition;
this.jzhcssfyzfOptions = this.dictTypeList.jzhcssfyzf;
this.cybzOptions = this.dictTypeList.member_remark;
})
this.getDicts("survey_status").then(response => {
var arr = [];
response.data.forEach(function (item) {
@@ -346,7 +334,6 @@
this.surveyStatusOptions = arr;
});
this.getList();
this.getSyqr();
// this.getDicts("family_status").then(response => {
// var arr = [];
// response.data.forEach(function (item) {
@@ -406,23 +393,8 @@
},
methods: {
getList(){
let params = {
"surveyStatus":"1",
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then(res => {
rhhcList({}).then(res => {
this.list1 = res.data.zjdzdxxList;
if(res.data.zjdzdxxList.length>0&&res.data.zjdzdxxList.length<res.data.zjdzs){
this.loading2 = false
this.finished2 = false;
}else{
this.loading2 = false
this.finished2 = true
}

});
rhhcList({surveyStatus:"1,2,3,4,5"}).then(res => {
this.whcNums = res.data.wdcs;
this.hcycNums = res.data.dcycs;
this.hcwcNums = res.data.dcwcs;
@@ -430,6 +402,13 @@
this.spbhNums = res.data.dcbhs;
this.totalH = res.data.zjdzs;
this.totalR = res.data.shyqrs;
if(res.data.zjdzdxxList.length>0&&res.data.zjdzdxxList.length<res.data.zjdzs){
this.loading2 = false
this.finished2 = false;
}else{
this.loading2 = false
this.finished2 = true
}
});
},
showUploadList(id){
@@ -790,9 +769,9 @@
"pageNum": this.countyhc+1,
"pageSize":10,
}
rhhcList(params).then((response) => {
if(response.data.zjdzdxxList.length>0&&this.list2.length<response.data.zjdzs){
response.data.zjdzdxxList.map(res => {
listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list2.length<response.total){
response.rows.map(res => {
_this.list1.push(res)
})
this.countyhc++
@@ -809,9 +788,9 @@
"pageNum": this.countyhc+1,
"pageSize":10,
}
rhhcList(params).then((response) => {
if(response.data.zjdzdxxList.length>0&&this.list1.length<response.data.zjdzs){
response.data.zjdzdxxList.map(res => {
listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list1.length<response.total){
response.rows.map(res => {
_this.list1.push(res)
})
this.countyhc++
@@ -827,9 +806,9 @@
"pageNum": this.countyhc+1,
"pageSize":10,
}
rhhcList(params).then((response) => {
if(response.data.zjdzdxxList.length>0&&this.list1.length<response.data.zjdzs){
response.data.zjdzdxxList.map(res => {
listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list1.length<response.total){
response.rows.map(res => {
_this.list1.push(res)
})
this.countyhc++
@@ -845,9 +824,9 @@
"pageNum": this.countyhc+1,
"pageSize":10,
}
rhhcList(params).then((response) => {
if(response.data.zjdzdxxList.length>0&&this.list1.length<response.data.zjdzs){
response.data.zjdzdxxList.map(res => {
listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list1.length<response.total){
response.rows.map(res => {
_this.list1.push(res)
})
this.countyhc++
@@ -863,9 +842,9 @@
"pageNum": this.countyhc+1,
"pageSize":10,
}
rhhcList(params).then((response) => {
if(response.data.zjdzdxxList.length>0&&this.list1.length<response.data.zjdzs){
response.data.zjdzdxxList.map(res => {
listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list1.length<response.total){
response.rows.map(res => {
_this.list1.push(res)
})
this.countyhc++
@@ -880,7 +859,7 @@
let params = {
"deptId" : this.item.deptId,
"pageNum": 1,
"pageSize":10,
"pageSize":6,
}
listNh(params).then((response) => {
if(response.rows.length>=0){
@@ -899,7 +878,7 @@
let params = {
"deptId" : this.item.deptId,
"pageNum": this.countnh+1,
"pageSize":10,
"pageSize":6,
}
listNh(params).then((response) => {
if(response.rows.length>0&&this.nhlist.length<response.total){
@@ -1570,12 +1549,12 @@
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then((response) => {
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.whcNums = response.data.zjdzs;
this.list1 = response.data.zjdzdxxList;
this.whcNums = response.total;
this.list1 = response.rows;
this.loading2 = false
if(response.data.zjdzdxxList.length>0&&response.data.zjdzdxxList.length<response.data.zjdzs){
if(response.rows.length>0&&response.rows.length<response.total){
this.countyhc++
this.finished2 = false;
}else{
@@ -1590,12 +1569,12 @@
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then((response) => {
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.hcycNums = response.data.zjdzs;
this.list1 = response.data.zjdzdxxList;
this.hcycNums = response.total;
this.list1 = response.rows;
this.loading2 = false
if(response.data.zjdzdxxList.length>0&&response.data.zjdzdxxList.length<response.data.zjdzs){
if(response.rows.length>0&&response.rows.length<response.total){
this.countyhc++
this.finished2 = false;
}else{
@@ -1610,12 +1589,12 @@
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then((response) => {
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.hcwcNums = response.data.zjdzs;
this.list1 = response.data.zjdzdxxList;
this.hcwcNums = response.total;
this.list1 = response.rows;
this.loading2 = false
if(response.data.zjdzdxxList.length>0&&response.data.zjdzdxxList.length<response.data.zjdzs){
if(response.rows.length>0&&response.rows.length<response.total){
this.countyhc++
this.finished2 = false;
}else{
@@ -1630,12 +1609,12 @@
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then((response) => {
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.spbhNums = response.data.zjdzs;
this.list1 = response.data.zjdzdxxList;
this.spbhNums = response.total;
this.list1 = response.rows;
this.loading2 = false
if(response.data.zjdzdxxList.length>0&&response.data.zjdzdxxList.length<response.data.zjdzs){
if(response.rows.length>0&&response.rows.length<response.total){
this.countyhc++
this.finished2 = false;
}else{
@@ -1650,12 +1629,12 @@
"pageNum": 1,
"pageSize":10,
}
rhhcList(params).then((response) => {
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.sptgNums = response.data.zjdzs;
this.list1 = response.data.zjdzdxxList;
this.sptgNums = response.total;
this.list1 = response.rows;
this.loading2 = false
if(response.data.zjdzdxxList.length>0&&response.data.zjdzdxxList.length<response.data.zjdzs){
if(response.rows.length>0&&response.rows.length<response.total){
this.countyhc++
this.finished2 = false;
}else{


読み込み中…
キャンセル
保存