|
@@ -76,17 +76,21 @@
|
|
lastUpdateTime: '',
|
|
lastUpdateTime: '',
|
|
sts:1,
|
|
sts:1,
|
|
companyFlag:'',
|
|
companyFlag:'',
|
|
|
|
+ // excelCityparam: ""
|
|
|
|
+ memberFamilyBtnShow: "-1"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
outexl(){
|
|
outexl(){
|
|
let url = '';
|
|
let url = '';
|
|
let paramsf = {};
|
|
let paramsf = {};
|
|
|
|
+ if(window.sessionStorage.excelCityparam){
|
|
|
|
+ paramsf.regionName = window.sessionStorage.excelCityparam
|
|
|
|
+ }
|
|
if(this.sts == 1){
|
|
if(this.sts == 1){
|
|
url = '/market/cMemberWo/excelExportSummaryByProv';
|
|
url = '/market/cMemberWo/excelExportSummaryByProv';
|
|
}else{
|
|
}else{
|
|
url = '/market/cMemberWo/excelExportSummaryByArea';
|
|
url = '/market/cMemberWo/excelExportSummaryByArea';
|
|
- // paramsf.regionName =
|
|
|
|
}
|
|
}
|
|
this.$http({
|
|
this.$http({
|
|
url: url,
|
|
url: url,
|
|
@@ -118,8 +122,30 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
choseperson(v){
|
|
choseperson(v){
|
|
- console.log(v)
|
|
|
|
|
|
+ if(v.showButton){
|
|
|
|
+ window.sessionStorage.memberFamilyBtnShow = v.showButton;
|
|
|
|
+ }
|
|
if(this.companyFlag == 0){
|
|
if(this.companyFlag == 0){
|
|
|
|
+ if(v.regionName == "省公司"){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/employeeInfo",
|
|
|
|
+ query:{
|
|
|
|
+ regionName:v.regionName
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.setabList("员工信息", "/employeeInfo?regionName="+v.regionName);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ // if(v.areaName == "省公司"){
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: "/employeeInfo",
|
|
|
|
+ // query:{
|
|
|
|
+ // regionName:v.areaName
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // this.setabList("员工信息", "/employeeInfo?regionName="+v.areaName);
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if(this.sts == 2){
|
|
if(this.sts == 2){
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/employeeInfo",
|
|
path: "/employeeInfo",
|
|
@@ -130,6 +156,7 @@
|
|
this.setabList("员工信息", "/employeeInfo?regionName="+v.areaName);
|
|
this.setabList("员工信息", "/employeeInfo?regionName="+v.areaName);
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ window.sessionStorage.excelCityparam = v.regionName;
|
|
this.$http({
|
|
this.$http({
|
|
url: "/market/cMemberWo/querySummaryByAreaPage",
|
|
url: "/market/cMemberWo/querySummaryByAreaPage",
|
|
method: "post",
|
|
method: "post",
|
|
@@ -144,14 +171,16 @@
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.sts = 2;
|
|
this.sts = 2;
|
|
});
|
|
});
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: "/employeeInfo?regionName="+v.regionName,
|
|
|
|
|
|
+ path: "/employeeInfo?regionName="+v.areaName,
|
|
query:{
|
|
query:{
|
|
- regionName:v.regionName
|
|
|
|
|
|
+ regionName:v.areaName
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.setabList("员工信息", "/employeeInfo?regionName="+v.regionName);
|
|
|
|
|
|
+
|
|
|
|
+ this.setabList("员工信息", "/employeeInfo?regionName="+v.areaName);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setabList(n, p) {
|
|
setabList(n, p) {
|
|
@@ -172,7 +201,7 @@
|
|
this.$store.commit("setTabList", Array.from(set));
|
|
this.$store.commit("setTabList", Array.from(set));
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- console.log(val)
|
|
|
|
|
|
+ console.log(val)
|
|
},
|
|
},
|
|
//搜索数据
|
|
//搜索数据
|
|
searchInfo(v) {
|
|
searchInfo(v) {
|
|
@@ -192,6 +221,8 @@
|
|
}else if(this.companyFlag == 1){
|
|
}else if(this.companyFlag == 1){
|
|
url="/market/cMemberWo/querySummaryByAreaPage"
|
|
url="/market/cMemberWo/querySummaryByAreaPage"
|
|
v.regionName = this.userInfo.cityName
|
|
v.regionName = this.userInfo.cityName
|
|
|
|
+ window.sessionStorage.excelCityparam = this.userInfo.cityName;
|
|
|
|
+ this.sts = 2
|
|
}
|
|
}
|
|
this.$http({
|
|
this.$http({
|
|
url: url,
|
|
url: url,
|
|
@@ -205,6 +236,7 @@
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
this.total = res.data.totalRecord;
|
|
this.total = res.data.totalRecord;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
+
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 分页
|
|
// 分页
|
|
@@ -268,6 +300,7 @@
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getUser();
|
|
this.getUser();
|
|
|
|
+ window.sessionStorage.memberFamilyBtnShow = this.memberFamilyBtnShow
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
|