|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
name: 'MyHistoricalWeekly',
|
|
|
data() {
|
|
|
return {
|
|
|
- isHandle: '0',
|
|
|
+ isHandle: '1',
|
|
|
disabled: false,
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
@@ -225,12 +225,15 @@ export default {
|
|
|
userDeptLevel: '',
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ activated() {
|
|
|
// userDeptLevel用户部门等级字段,0-总部,1-公司,2-大区,3-销售部,4-业务员
|
|
|
- this.userDeptLevel = localStorage.getItem('userDeptLevel');
|
|
|
- if (this.userDeptLevel == '4') {
|
|
|
- this.isHandle = '2';
|
|
|
- }
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.userDeptLevel = localStorage.getItem('userDeptLevel');
|
|
|
+ if (this.userDeptLevel == '4') {
|
|
|
+ this.isHandle = '2';
|
|
|
+ }
|
|
|
+ this.tabChange();
|
|
|
+ });
|
|
|
this.radio = [];
|
|
|
getStoreTypeList({}).then((res) => {
|
|
|
this.storeTypeList = res.data;
|
|
|
@@ -242,19 +245,19 @@ export default {
|
|
|
// this.approveList()
|
|
|
},
|
|
|
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) {
|