diff --git a/src/views/kpi/report/detail/index.vue b/src/views/kpi/report/detail/index.vue index 21cf0a7..57679c9 100644 --- a/src/views/kpi/report/detail/index.vue +++ b/src/views/kpi/report/detail/index.vue @@ -124,8 +124,8 @@ export default { watch: { showDialogDepart (newV, oldV) { if (!newV && oldV) { - this.selectDepName = this.showData.list[0].departmentName - this.selectDepId = this.showData.list[0].departmentId + this.selectDepName = this.showData.list.length > 0 ? this.showData.list[0].departmentName : '全部' + this.selectDepId = this.showData.list.length > 0 ? this.showData.list[0].departmentId : '' this.handleDetailReq(this.selectDepId) } } diff --git a/src/views/kpi/report/home/index.vue b/src/views/kpi/report/home/index.vue index 6022a47..04f51ad 100644 --- a/src/views/kpi/report/home/index.vue +++ b/src/views/kpi/report/home/index.vue @@ -49,26 +49,33 @@