wangziqian 5 жил өмнө
parent
commit
9ce06428c5

+ 5 - 5
src/views/ToConfigure/components/modifyNotice.vue

@@ -316,7 +316,7 @@ export default {
     'noticeList.Email': {
       handler(newV, oldV) {
         if (newV) {
-          if (this.EmailList.length === 0) this.EmailList.push({ type: 0, member: false, teams: [], customStaffs: [] })
+          if (this.EmailList.length === 0) this.EmailList.push({ type: 0, member: true, teams: [], customStaffs: [] })
         } else {
           this.EmailList = []
         }
@@ -325,7 +325,7 @@ export default {
     'noticeList.DChart': {
       handler(newV, oldV) {
         if (newV) {
-          if (this.DChartList.length === 0) this.DChartList.push({ type: 0, member: false, teams: [], customStaffs: [] })
+          if (this.DChartList.length === 0) this.DChartList.push({ type: 0, member: true, teams: [], customStaffs: [] })
         } else {
           this.DChartList = []
         }
@@ -361,14 +361,14 @@ export default {
         noticeTime: data.noticeTime // 通知时刻
       }
       if (data.noticeSetting.email && data.noticeSetting.email.length > 0) {
-        this.EmailList = Array(data.noticeSetting.email.length).fill({ type: 0, member: false, teams: [], customStaffs: [] })
+        this.EmailList = Array(data.noticeSetting.email.length).fill({ type: 0, member: true, teams: [], customStaffs: [] })
         this.$nextTick(() => {
           this.EmailList = data.noticeSetting.email
         })
         this.noticeList.Email = true
       }
       if (data.noticeSetting.dChat && data.noticeSetting.dChat.length > 0) {
-        this.DChartList = Array(data.noticeSetting.dChat.length).fill({ type: 0, member: false, teams: [], customStaffs: [] })
+        this.DChartList = Array(data.noticeSetting.dChat.length).fill({ type: 0, member: true, teams: [], customStaffs: [] })
         this.$nextTick(() => {
           this.DChartList = data.noticeSetting.dChat
         })
@@ -472,7 +472,7 @@ export default {
       this.formData.noticeConditionList.splice(index, 1)
     },
     addMembers(list) { // 添加成员
-      list.push({ type: 0, member: false, teams: [], customStaffs: [] })
+      list.push({ type: 0, member: true, teams: [], customStaffs: [] })
     },
     removeMembers(list, index) { // 移除成员
       list.splice(index, 1)