|
@@ -164,17 +164,35 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
dailyLink() {
|
|
dailyLink() {
|
|
|
|
|
+ if (!this.isAllow()) return;
|
|
|
this.$router.push('/daily');
|
|
this.$router.push('/daily');
|
|
|
},
|
|
},
|
|
|
weeklyLink() {
|
|
weeklyLink() {
|
|
|
|
|
+ if (!this.isAllow()) return;
|
|
|
this.$router.push('/weekly');
|
|
this.$router.push('/weekly');
|
|
|
},
|
|
},
|
|
|
doubleWeeklyLink() {
|
|
doubleWeeklyLink() {
|
|
|
|
|
+ if (!this.isAllow()) return;
|
|
|
this.$router.push('/doubleWeekly');
|
|
this.$router.push('/doubleWeekly');
|
|
|
},
|
|
},
|
|
|
dailyLinks() {
|
|
dailyLinks() {
|
|
|
|
|
+ if (!this.isAllow()) return;
|
|
|
this.$router.push('/myHistoricalDaily');
|
|
this.$router.push('/myHistoricalDaily');
|
|
|
},
|
|
},
|
|
|
|
|
+ // 是否允许填写汇报
|
|
|
|
|
+ isAllow() {
|
|
|
|
|
+ let reportRemark = this.reportInfoData.reportRemark;
|
|
|
|
|
+ if (reportRemark) {
|
|
|
|
|
+ this.$dialog
|
|
|
|
|
+ .alert({
|
|
|
|
|
+ message: reportRemark,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {});
|
|
|
|
|
+ return false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|