|
@@ -400,12 +400,10 @@ export default {
|
|
|
this.infolist.areaCode = this.areaCode;
|
|
|
this.infolist.areaName = this.areaName;
|
|
|
|
|
|
- // console.log(this.currentRole);
|
|
|
if(this.currentRole.length == 1){
|
|
|
this.infolist.regionName = this.currentRole[0].compName;
|
|
|
this.infolist.regionCode = this.currentRole[0].compId;
|
|
|
}
|
|
|
- console.log(this.infolist);
|
|
|
|
|
|
if (this.titname === "添加") {
|
|
|
this.submitInfo("/market/cadvContract/add");
|
|
@@ -538,8 +536,6 @@ export default {
|
|
|
// },
|
|
|
getUser() {
|
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
|
-
|
|
|
- console.log();
|
|
|
this.$http({
|
|
|
url: "/sysmgr/regionComp/queryList",
|
|
|
method: "post",
|
|
@@ -550,19 +546,9 @@ export default {
|
|
|
parentCompId: "0"
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- // this.regionOpt = res.data;
|
|
|
- // console.log(res.data);
|
|
|
this.currentRole = res.data.filter(item=>{
|
|
|
return item.compName == this.userInfo.cityName
|
|
|
})
|
|
|
- // this.currentRole = JSON.parse(JSON.stringify(this.currentRole))
|
|
|
- // console.log(this.currentRole);
|
|
|
-
|
|
|
- // if(this.currentRole.length == 1){
|
|
|
- // this.infolist.regionName = this.currentRole[0].compName;
|
|
|
- // this.infolist.regionCode = this.currentRole[0].compId;
|
|
|
- // }
|
|
|
- // console.log(this.infolist.regionName);
|
|
|
// if (
|
|
|
// this.userInfo.countyName == null && this.userInfo.cityName == null
|
|
|
// ) {
|