|
|
@@ -225,7 +225,7 @@ export default {
|
|
|
userDeptLevel: '',
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ activated() {
|
|
|
// userDeptLevel用户部门等级字段,0-总部,1-公司,2-大区,3-销售部,4-业务员
|
|
|
this.userDeptLevel = localStorage.getItem('userDeptLevel');
|
|
|
if (this.userDeptLevel == '4') {
|
|
|
@@ -240,21 +240,22 @@ export default {
|
|
|
this.moduleList = moduleList.concat(res.rows);
|
|
|
});
|
|
|
// this.approveList()
|
|
|
+ this.tabChange();
|
|
|
},
|
|
|
watch: {
|
|
|
- $route(to, from) {
|
|
|
- this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
- this.pageNum = 1;
|
|
|
- this.radio = [];
|
|
|
- if (to.path == '/signApprovalList' && from.path == '/home') {
|
|
|
- window.scrollTo(0, 0);
|
|
|
- this.approveList();
|
|
|
- }
|
|
|
- if (to.path == '/signApprovalList' && from.path == '/signApproval') {
|
|
|
- this.pageNum = 1;
|
|
|
- this.tabChange();
|
|
|
- }
|
|
|
- },
|
|
|
+ // $route(to, from) {
|
|
|
+ // this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
+ // this.pageNum = 1;
|
|
|
+ // this.radio = [];
|
|
|
+ // if (to.path == '/signApprovalList' && from.path == '/home') {
|
|
|
+ // window.scrollTo(0, 0);
|
|
|
+ // this.approveList();
|
|
|
+ // }
|
|
|
+ // if (to.path == '/signApprovalList' && from.path == '/signApproval') {
|
|
|
+ // this.pageNum = 1;
|
|
|
+ // this.tabChange();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
},
|
|
|
methods: {
|
|
|
onregionConfirm(val) {
|