From 500b29c404ea82f322e75f2417e16ce61af63e32 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Tue, 17 Aug 2021 14:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/list.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/task/list.vue b/src/views/task/list.vue index 96c5cee..63be94a 100644 --- a/src/views/task/list.vue +++ b/src/views/task/list.vue @@ -32,7 +32,7 @@ - + @@ -233,7 +233,7 @@ import Utils from '../../utils/contact.js' import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu' import { cancelRenwuFn } from '@/api/common' import Enclosure from '@/views/common/Enclosure' -import {mapGetters} from 'vuex' +import { mapGetters } from 'vuex' export default { name: 'MyTask', components: { Sticky, Pagination, SliceUpload, Enclosure }, @@ -294,18 +294,20 @@ export default { }, currentRenwuId: 0, dialogEnclosureVisible: false, - isSysUser: this.$store.getters.clientType === 'System' + isSysUser: this.$store.getters.clientType === 'System', + searchNblist:[] } }, computed: { ...mapGetters(['allCategory']) }, - watch:{ - allCategory:{ - handler(n,o){ - return n.filter(item=>item.parentId!==null) + watch: { + allCategory: { + handler(n, o) { + console.log(n.filter(item => item.parentId)) + this.searchNblist = n.filter(item => item.parentId) }, - deep:true + deep: true } }, created() {