|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
</div> -->
|
|
|
|
|
<div class="select-input">
|
|
|
|
|
<div class="select-span">经济类型:</div>
|
|
|
|
|
<el-select v-model="form.economicsType" placeholder="请选择">
|
|
|
|
|
<el-select v-model="form.ecoTypeLarge" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in dict.type.economic_categories"
|
|
|
|
|
:key="item.value"
|
|
|
|
@ -355,7 +355,7 @@ export default {
|
|
|
|
|
subdistrict:'',
|
|
|
|
|
form: {
|
|
|
|
|
subdistrict: [],
|
|
|
|
|
frimType: "",
|
|
|
|
|
ecoTypeLarge: "",
|
|
|
|
|
indusTypeClass: "",
|
|
|
|
|
isPoint: "",
|
|
|
|
|
majorHazardLevel: "",
|
|
|
|
@ -392,6 +392,7 @@ export default {
|
|
|
|
|
// unselected: 0,
|
|
|
|
|
selectList: [],
|
|
|
|
|
disabled:false,
|
|
|
|
|
county:false,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -431,7 +432,7 @@ export default {
|
|
|
|
|
// 匹配行政区划
|
|
|
|
|
componendDistrict(district){
|
|
|
|
|
let name
|
|
|
|
|
this.myDistrict.map((item)=>{
|
|
|
|
|
this.district.map((item)=>{
|
|
|
|
|
if(item.subdistrict == district) {
|
|
|
|
|
name = item.institutionName
|
|
|
|
|
} else {
|
|
|
|
@ -471,18 +472,25 @@ export default {
|
|
|
|
|
let obj
|
|
|
|
|
// 如果是苏州市或者是某个区
|
|
|
|
|
if(!this.disabled) {
|
|
|
|
|
if(this.form.subdistrict.length > 0){
|
|
|
|
|
// console.log('123')
|
|
|
|
|
if(Array.isArray(this.form.subdistrict)){
|
|
|
|
|
if(this.form.subdistrict.length == 2) {
|
|
|
|
|
this.form.subdistrict = this.form.subdistrict[1]
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
this.subdistrict = this.form.subdistrict[2].slice(1, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
} else if(this.form.subdistrict.length == 1) {
|
|
|
|
|
this.form.subdistrict = this.form.subdistrict[0]
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
this.subdistrict = this.form.subdistrict[1].slice(1, 8);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
} else {
|
|
|
|
|
obj = {...this.pages,...this.form}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
obj = {...this.pages,...this.form}
|
|
|
|
|
if(this.county){
|
|
|
|
|
let subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict };
|
|
|
|
|
} else {
|
|
|
|
|
let subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// 不是苏州市是乡镇
|
|
|
|
@ -647,9 +655,17 @@ export default {
|
|
|
|
|
this.pages = pages;
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
if(this.dept.ancestors.split(',').length == 2){
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
if(Array.isArray(this.form.subdistrict)) {
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
} else {
|
|
|
|
|
this.subdistrict = this.form.subdistrict;
|
|
|
|
|
}
|
|
|
|
|
} else if(this.dept.ancestors.split(',').length == 3){
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
if(Array.isArray(this.form.subdistrict)) {
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
} else {
|
|
|
|
|
this.subdistrict = this.form.subdistrict;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.getTable({...pages,...this.form,subdistrict:this.subdistrict});
|
|
|
|
|
},
|
|
|
|
@ -767,36 +783,46 @@ export default {
|
|
|
|
|
return "";
|
|
|
|
|
},
|
|
|
|
|
commentData(item,dept) {
|
|
|
|
|
// item.map((item)=>{
|
|
|
|
|
// if(item.children instanceof Array && item.children.length == 0){
|
|
|
|
|
// item.county = item.subdistrict
|
|
|
|
|
// delete item.children;
|
|
|
|
|
// } else {
|
|
|
|
|
// // this.props.value = 'subdistrict'
|
|
|
|
|
// this.commentData(item.children,dept)
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
item.map((item)=>{
|
|
|
|
|
if(item.children instanceof Array && item.children.length == 0){
|
|
|
|
|
item.county = item.subdistrict
|
|
|
|
|
delete item.children;
|
|
|
|
|
} else {
|
|
|
|
|
// this.props.value = 'subdistrict'
|
|
|
|
|
this.commentData(item.children,dept)
|
|
|
|
|
}
|
|
|
|
|
item.children.map((itemTwo)=>{
|
|
|
|
|
itemTwo.county = itemTwo.subdistrict
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.myDistrict = item;
|
|
|
|
|
// this.myDistrict = item;
|
|
|
|
|
this.listOne = item
|
|
|
|
|
if(dept.ancestors.split(',').length == 2) {
|
|
|
|
|
this.listOne = this.listOne.filter((item)=>{
|
|
|
|
|
return item.institutionName == dept.deptName
|
|
|
|
|
})
|
|
|
|
|
// this.listOne.map((item)=>{
|
|
|
|
|
// if(item.institutionName == dept.deptName) {
|
|
|
|
|
// this.form.subdistrict = item.county
|
|
|
|
|
// this.workingArea = item.county
|
|
|
|
|
// delete item.children
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// this.disabled = true;
|
|
|
|
|
} else if(dept.ancestors.split(',').length == 3) {
|
|
|
|
|
this.listOne.map((item)=>{
|
|
|
|
|
if(item.institutionName == dept.deptName) {
|
|
|
|
|
this.form.subdistrict = item.subdistrict
|
|
|
|
|
console.log(item.county)
|
|
|
|
|
this.form.subdistrict = item.county
|
|
|
|
|
this.workingArea = item.county
|
|
|
|
|
this.county = true;
|
|
|
|
|
// delete item.children
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// this.disabled = true;
|
|
|
|
|
} else if(dept.ancestors.split(',').length == 3) {
|
|
|
|
|
this.listOne.map((item)=>{
|
|
|
|
|
item.children.map((itemTwo)=>{
|
|
|
|
|
if(itemTwo.institutionName == dept.deptName) {
|
|
|
|
|
this.form.subdistrict = itemTwo.subdistrict
|
|
|
|
|
this.workingArea = itemTwo.county
|
|
|
|
|
this.county = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|