diff --git a/mycomponents/job/jobFilter.vue b/mycomponents/job/jobFilter.vue index 695ef2de..a209c2af 100644 --- a/mycomponents/job/jobFilter.vue +++ b/mycomponents/job/jobFilter.vue @@ -8,14 +8,14 @@ 只看当天 - + 只看待处理 - + @@ -69,15 +69,27 @@ data() { return { dataContent: {}, - checkedToday:'', - checkedWaitTask:'', + checkedTodayModel:false, + checkedWaitModel:false, } }, watch: { + checkedToday: { + handler(newName, oldName) { + this.checkedTodayModel = this.checkedToday + }, + immediate: true, + deep: true + }, + checkedWaitTask: { + handler(newName, oldName) { + this.checkedWaitModel = this.checkedWaitTask + }, + immediate: true, + deep: true + } }, mounted() { - this.checkedToday = this.checkedToday - this.checkedWaitTask = this.checkedWaitTask }, methods: { // 点击遮罩 diff --git a/mycomponents/request/requestFilter.vue b/mycomponents/request/requestFilter.vue index 3d1777c5..9e2c35ce 100644 --- a/mycomponents/request/requestFilter.vue +++ b/mycomponents/request/requestFilter.vue @@ -3,11 +3,18 @@ + 只看处理中 - + @@ -35,6 +42,8 @@ data() { return { dataContent: {}, + checkedTodayModel:false, + checkedWaitModel:false } }, props: { @@ -56,6 +65,20 @@ } }, watch: { + checkedToday: { + handler(newName, oldName) { + this.checkedTodayModel = this.checkedToday + }, + immediate: true, + deep: true + }, + checkedWaitTask: { + handler(newName, oldName) { + this.checkedWaitModel = this.checkedWaitTask + }, + immediate: true, + deep: true + } }, mounted() {