Browse Source

宅基地调查

wulanhaote
nsgkyjk 3 years ago
parent
commit
831d0f4b69
4 changed files with 5361 additions and 218 deletions
  1. +53
    -129
      src/views/homesteadSurvey/add.vue
  2. +18
    -1
      src/views/homesteadSurvey/index.vue
  3. +73
    -88
      src/views/homesteadSurvey/list.vue
  4. +5217
    -0
      static/dictyType.json

+ 53
- 129
src/views/homesteadSurvey/add.vue View File

@@ -2927,6 +2927,7 @@
import { listVillage} from "@/api/homesteadSurvey/village"; import { listVillage} from "@/api/homesteadSurvey/village";
import { sysConfig} from "@/api/homesteadSurvey/index"; import { sysConfig} from "@/api/homesteadSurvey/index";
import { Notify, Dialog, Toast } from 'vant'; import { Notify, Dialog, Toast } from 'vant';
import axios from "axios";
export default { export default {
name: "homesteadAdd", name: "homesteadAdd",
components: { MapGisDrawing,}, components: { MapGisDrawing,},
@@ -3153,9 +3154,50 @@
zjdProductResh:this.guidProduct(), zjdProductResh:this.guidProduct(),
zrzProductResh:this.guidProduct(), zrzProductResh:this.guidProduct(),
fsssProductResh:this.guidProduct(), fsssProductResh:this.guidProduct(),
// 字典列表json
dictTypeList:null,
}; };
}, },
created(){ created(){
axios.get('../static/dictyType.json').then(res => {
this.dictTypeList = res.data
this.lyzkOptions= this.dictTypeList.zjdlyzk
console.log(this.dictTypeList.zjdlyzk)
this.zjdqdfsOptions = this.dictTypeList.acquisition_method;
this.sjlyOptions = this.dictTypeList.sjly;
this.fssslxOptions = this.dictTypeList.fsss_type;
this.qslyOptions = this.dictTypeList.acquisition_method;
this.fwztOptions = this.dictTypeList.fwzt;
this.jglxOptions = this.dictTypeList.house_jglx;
this.jzwqkOptions = this.dictTypeList.fwzt;
this.tdzkOptions = this.dictTypeList.land_state;
this.pzsjOptions = this.dictTypeList.approve_time;
this.phlymsOptions = this.dictTypeList.phlyms;
this.fwlxOptions = this.dictTypeList.fwlx;
this.fwxzOptions = this.dictTypeList.fwxz;
this.hxOptions = this.dictTypeList.nmfwhx;
this.hxjgOptions = this.dictTypeList.nmfwhxjg;
this.fwjgOptions = this.dictTypeList.housing_structure;
this.fwytOptions = this.dictTypeList.fwyt;
this.gyfsOptions = this.dictTypeList.common_mode;
this.qlrlxOptions = this.dictTypeList.obligee_type;
this.zjlxOptions = this.dictTypeList.zjlx;
this.hjszssOptions = this.dictTypeList.hjszss;
this.qlxzOptions = this.dictTypeList.rights_nature;
this.qllxOptions = this.dictTypeList.rights_type;
this.qlsdfsOptions = this.dictTypeList.right_setting_mode;
this.ytOptions = this.dictTypeList.land_use;
this.jzhcssfyzfOptions = this.dictTypeList.jzhcssfyzf;
this.occupationOptions = this.dictTypeList.occupation;
this.hyzkOptions = this.dictTypeList.hyzk;
this.cybzOptions = this.dictTypeList.member_remark;
this.jzqkOptions = this.dictTypeList.living_condition;
if(this.dictTypeList.tddj){
this.tddjOptions = this.dictTypeList.tddj;
}
this.industryOptions = this.dictTypeList.Industry;
})
this.baseUrl = this.$cookies.get("url")
console.log(this.$route.query.res); console.log(this.$route.query.res);
console.log(this.$cookies.get("search")); console.log(this.$cookies.get("search"));
//this.itemBc = this.$cookies.get("map"); //this.itemBc = this.$cookies.get("map");
@@ -3190,7 +3232,7 @@
} }
this.form = this.cookiesInfo.mapZjdAData; this.form = this.cookiesInfo.mapZjdAData;
this.getnhdmlist(); this.getnhdmlist();
this.getBaseUrl();
/*this.getBaseUrl();*/
this.getZjd(); this.getZjd();
if(this.ztMap){ if(this.ztMap){
this.$cookies.set("search",this.backMap); this.$cookies.set("search",this.backMap);
@@ -3223,7 +3265,7 @@
if(this.item.houseDataConfirmStatus!="CONFIRMED"){ if(this.item.houseDataConfirmStatus!="CONFIRMED"){
this.isFinished = true this.isFinished = true
} }
this.getBaseUrl();
/*this.getBaseUrl();*/
this.getnhdmlist(); this.getnhdmlist();
this.getZjd(); this.getZjd();


@@ -3233,119 +3275,21 @@
if(this.item.houseDataConfirmStatus!="CONFIRMED"){ if(this.item.houseDataConfirmStatus!="CONFIRMED"){
this.isFinished = true this.isFinished = true
} }
this.getBaseUrl();
/*this.getBaseUrl();*/
this.getnhdmlist(); this.getnhdmlist();
this.getZjd(); this.getZjd();
} }
this.getDicts("zjdlyzk").then(response => {
this.lyzkOptions = response.data;
});
this.getDicts("acquisition_method").then(response => {
this.zjdqdfsOptions = response.data;
});
this.getDicts("sjly").then(response => {
this.sjlyOptions = response.data;
});
this.getDicts("fsss_type").then(response => {
this.fssslxOptions = response.data;
});
this.getDicts("acquisition_method").then(response => {
this.qslyOptions = response.data;
});
this.getDicts("fwzt").then(response => {
this.fwztOptions = response.data;
});
this.getDicts("house_jglx").then(response => {
this.jglxOptions = response.data;
});
this.getDicts("fwzt").then(response => {
this.jzwqkOptions = response.data;
});
this.getDicts("land_state").then(response => {
this.tdzkOptions = response.data;
});
this.getDicts("approve_time").then(response => {
this.pzsjOptions = response.data;
});
this.getDicts("phlyms").then(response => {
this.phlymsOptions = response.data;
});
this.getDicts("fwlx").then(response => {
this.fwlxOptions = response.data;
});
this.getDicts("fwxz").then(response => {
this.fwxzOptions = response.data;
});
this.getDicts("nmfwhx").then(response => {
this.hxOptions = response.data;
});
this.getDicts("nmfwhxjg").then(response => {
this.hxjgOptions = response.data;
});
this.getDicts("housing_structure").then(response => {
this.fwjgOptions = response.data;
});
this.getDicts("fwyt").then(response => {
this.fwytOptions = response.data;
});
this.getDicts("common_mode").then(response => {
this.gyfsOptions = response.data;
});
this.getDicts("obligee_type").then(response => {
this.qlrlxOptions = response.data;
});
this.getDicts("zjlx").then(response => {
this.zjlxOptions = response.data;
});
this.getDicts("hjszss").then(response => {
this.hjszssOptions = response.data;
});
this.getDicts("family_status").then(response => { this.getDicts("family_status").then(response => {
var arr = [];response.data.forEach(function (item) {
let arr = [];response.data.forEach(function (item) {
if (item.dictLabel !== '户主') { if (item.dictLabel !== '户主') {
arr.push(item) arr.push(item)
} }
}); });
this.yhzgxOptions = arr; this.yhzgxOptions = arr;
}); });
this.getDicts("rights_nature").then(response => {
this.qlxzOptions = response.data;
});
this.getDicts("rights_type").then(response => {
this.qllxOptions = response.data;
});
this.getDicts("right_setting_mode").then(response => {
this.qlsdfsOptions = response.data;
});
this.getDicts("land_use").then(response => {
this.ytOptions = response.data;
});
this.getDicts("jzhcssfyzf").then(response => {
this.jzhcssfyzfOptions = response.data;
});
this.getDicts("occupation").then(response => {
this.occupationOptions = response.data;
});
this.getDicts("hyzk").then(response => {
this.hyzkOptions = response.data;
});
this.getDicts("member_remark").then(response => {
this.cybzOptions = response.data;
});
this.getDicts("living_condition").then(response => {
this.jzqkOptions = response.data;
});
this.getDicts("tddj").then(response => {
this.tddjOptions = response.data;
});
this.getDicts("Industry").then(response => {
this.industryOptions = response.data;
});
}, },
mounted(){ mounted(){
// if(this.active ==1 && !this.ztMap){
// this.mapClickLoading();
// }

}, },
methods: { methods: {
showPic(){ showPic(){
@@ -3617,14 +3561,13 @@
}) })
} }
}, },
getBaseUrl(){
/*getBaseUrl(){
let params={ let params={
configKey: "system.attachment.url"} configKey: "system.attachment.url"}
sysConfig(params).then(response => { sysConfig(params).then(response => {
this.baseUrl = response.rows[0].configValue this.baseUrl = response.rows[0].configValue
console.log(this.baseUrl)
}) })
},
},*/
// 验证 // 验证
validator(val){ validator(val){
if(val>1||val<0||val.length>4){ if(val>1||val<0||val.length>4){
@@ -4517,29 +4460,10 @@
} }
this.fileListzjd = [] this.fileListzjd = []
if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){ if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){
if(this.baseUrl==""){
let tt = setInterval( function ()
{
if(this.baseUrl!=""){
clearInterval(tt)
if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
let li = this.form.zjdxctp.split(",");
li.map(res => {
this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
console.log({"url":this.baseUrl+res,"baseUrl":res})
})
}
}
},1000);
}else{
if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
let li = this.form.zjdxctp.split(",");
li.map(res => {
this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
console.log({"url":this.baseUrl+res,"baseUrl":res})
})
}
}
let li = this.form.zjdxctp.split(",");
li.map(res => {
this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
})
} }


this.lyzkOptions.map(res => { this.lyzkOptions.map(res => {


+ 18
- 1
src/views/homesteadSurvey/index.vue View File

@@ -171,9 +171,11 @@
<script> <script>
import {addTask, complete, delTask, exportTask, getTask, listTask, publish, updateTask, userList} from "@/api/homesteadSurvey/index"; import {addTask, complete, delTask, exportTask, getTask, listTask, publish, updateTask, userList} from "@/api/homesteadSurvey/index";
import {getInfo} from "../../api/login"; import {getInfo} from "../../api/login";
import CircleProccess from "@/components/circleProccess.vue";
import CircleProccess from "@/components/circleProccess.vue";
import {updateUserPwd} from "../../api/onlineHome/my"; import {updateUserPwd} from "../../api/onlineHome/my";
import {Dialog} from "vant"; import {Dialog} from "vant";
import {sysConfig} from "../../api/homesteadSurvey";
import axios from "axios";
export default { export default {
name: "homesteadIndex", name: "homesteadIndex",
components: { components: {
@@ -218,6 +220,8 @@
taskExecutortions:[], taskExecutortions:[],
//当前用户级别 //当前用户级别
businessLevel:1, businessLevel:1,
// 字典列表json
dictTypeList:null,
}; };
}, },
created(){ created(){
@@ -231,6 +235,9 @@
this.queryParams.taskExecutor = response.user.userName this.queryParams.taskExecutor = response.user.userName
this.getList(); this.getList();
}); });
axios.get('../static/dictyType.json').then(res => {
this.dictTypeList = res.data
})
}, },
mounted(){ mounted(){


@@ -245,8 +252,18 @@
}, },
false false
); );
if(this.$cookies.get("url")==null||this.$cookies.get("url")==""){
this.getBaseUrl()
}
}, },
methods: { methods: {
getBaseUrl(){
let params={
configKey: "system.attachment.url"}
sysConfig(params).then(response => {
this.$cookies.set("url",response.rows[0].configValue)
})
},
chooseValue(item){ chooseValue(item){
let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed() let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed()
return a return a


+ 73
- 88
src/views/homesteadSurvey/list.vue View File

@@ -1232,6 +1232,7 @@
import $ from "jquery"; import $ from "jquery";
import {Dialog} from "vant"; import {Dialog} from "vant";
import {ref} from "vue"; import {ref} from "vue";
import axios from "axios";
export default { export default {
name: "homesteadList", name: "homesteadList",
data() { data() {
@@ -1405,37 +1406,30 @@
showImageList:false, showImageList:false,
uploadImgList:[], uploadImgList:[],
uploadImgList1:[], uploadImgList1:[],
// 字典列表json
dictTypeList:null,
}; };
}, },
mounted(){ mounted(){
}, },
created(){ 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;
})
if(location.href.indexOf("#reloaded")==-1){ if(location.href.indexOf("#reloaded")==-1){
location.href=location.href+"#reloaded"; location.href=location.href+"#reloaded";
location.reload(); location.reload();
} }
this.getDicts("zjlx").then(response => {
this.zjlxOptions = response.data;
});
this.getDicts("qsxz").then(response => {
this.suyqxzOptions = response.data;
});
this.getDicts("sjly").then(response => {
this.sjlyOptions = response.data;
});
this.getDicts("hyzk").then(response => {
this.hyzkOptions = response.data;
});
this.getDicts("occupation").then(response => {
this.occupationOptions = response.data;
});
this.getDicts("living_condition").then(response => {
this.jzqkOptions = response.data;
});
this.getDicts("jzhcssfyzf").then(response => {
this.jzhcssfyzfOptions = response.data;
});
this.getDicts("family_status").then(response => { this.getDicts("family_status").then(response => {
console.log(response)
var arr = []; var arr = [];
response.data.forEach(function (item) { response.data.forEach(function (item) {
if (item.dictLabel !== '户主') { if (item.dictLabel !== '户主') {
@@ -1443,12 +1437,8 @@
} }
}); });
this.yhzgxOptions = arr; this.yhzgxOptions = arr;

/*this.yhzgxOptions = response.data;*/
});
this.getDicts("member_remark").then(response => {
this.cybzOptions = response.data;
}); });

if(this.$cookies.get("search") != null && this.$cookies.get("search") !="" && this.$cookies.get("search")!=undefined){ if(this.$cookies.get("search") != null && this.$cookies.get("search") !="" && this.$cookies.get("search")!=undefined){
if(this.$cookies.get("search").activeBtn !=null){ if(this.$cookies.get("search").activeBtn !=null){
if(this.$cookies.get("search").activeBtn == 4){ if(this.$cookies.get("search").activeBtn == 4){
@@ -2419,70 +2409,65 @@
} }
}) })
}, },
getZjdList(){
/*if(this.active==1){
let params = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "CONFIRMED",
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.yhcNums = response.total
this.list1 = response.rows
}
});
}else if(this.active==2){
let params = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "UNCONFIRMED",
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.whcNums = response.total
this.list2 = response.rows
}
});
}else{*/
let params = {
"deptId" : this.item.deptId,
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params).then((response) => {
if (response.code == 200) {
this.qbNums = response.total
this.list = response.rows
}
});
let params1 = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "CONFIRMED",
"pageNum": 1,
"pageSize":10,
getZjdList(){
let params = {
"deptId" : this.item.deptId
/*"pageNum": 1,
"pageSize":10,*/
}
listZjdzd(params).then((response) => {
if (response.code == 200) {
let newList = response.rows
this.qbNums = response.total
if(response.rows.length>=10){
this.list = newList.slice(0,9)
}else {
this.list = newList
} }
listZjdzd(params1).then((response) => {
if (response.code == 200) {
this.yhcNums = response.total
this.list1 = response.rows
}
});
let params2 = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "UNCONFIRMED",
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params2).then((response) => {
if (response.code == 200) {
this.whcNums = response.total
this.list2 = response.rows
this.yhcNums = 0
this.whcNums = 0
this.list1 = []
this.list2 = []
response.rows.map(res => {
if(res.houseDataConfirmStatus == 'CONFIRMED'){
if(this.list1.length<10){
this.list1.push(res)
}
this.yhcNums ++
}else{
if(this.list2.length<10){
this.list2.push(res)
}
this.whcNums ++
} }
});
/* }*/
})

}
});
/*let params1 = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "CONFIRMED",
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params1).then((response) => {
if (response.code == 200) {
this.yhcNums = response.total
this.list1 = response.rows
}
});
let params2 = {
"deptId" : this.item.deptId,
"houseDataConfirmStatus" : "UNCONFIRMED",
"pageNum": 1,
"pageSize":10,
}
listZjdzd(params2).then((response) => {
if (response.code == 200) {
this.whcNums = response.total
this.list2 = response.rows
}
});*/
}, },
onConfirm(){}, onConfirm(){},
/*onSubmithncy(){ /*onSubmithncy(){


+ 5217
- 0
static/dictyType.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save