diff --git a/client/src/views/dashboard/index.vue b/client/src/views/dashboard/index.vue index 48bc5e0..c330926 100644 --- a/client/src/views/dashboard/index.vue +++ b/client/src/views/dashboard/index.vue @@ -72,7 +72,7 @@ 条记录待整改 -
+
您有 {{todos.toconfirm}} diff --git a/client/src/views/supervision/record.vue b/client/src/views/supervision/record.vue index b01056e..d15343a 100644 --- a/client/src/views/supervision/record.vue +++ b/client/src/views/supervision/record.vue @@ -115,8 +115,7 @@ diff --git a/client/src/views/supervision/report.vue b/client/src/views/supervision/report.vue index a788f56..0a132d9 100644 --- a/client/src/views/supervision/report.vue +++ b/client/src/views/supervision/report.vue @@ -29,13 +29,13 @@ - + - + - + - + @@ -144,7 +144,7 @@ export default { return { centerDialogVisible: false, dialogVisible: false, - activeName: "first", + activeName: "toup", state:"待上报", can_doself:true, contents: [], @@ -158,11 +158,17 @@ export default { }; }, created() { + this.getTab(); this.getContentList(); this.getRecordList(); }, methods: { checkPermission, + getTab(){ + if(this.$route.params.tab){ + this.activeName = this.$route.params.tab + } + }, getRecordList(){ getRecordList({state:this.state}).then((res) => { @@ -178,19 +184,19 @@ export default { handleClick(tab, event) { switch (tab.name) { - case "first": + case "toup": this.state="待上报"; this.getRecordList(); break; - case "second": + case "uped": this.state="已上报"; this.getRecordList(); break; - case "third": + case "tozg": this.state="待整改"; this.getRecordList(); break; - case "forth": + case "confirmed": this.state="已确认"; this.getRecordList(); break;