qinzhipeng_v@didiglobal.com 4 жил өмнө
parent
commit
456bda0dea

+ 8 - 6
src/views/ToConfigure/components/modifyNotice.vue

@@ -635,12 +635,14 @@ export default {
         dChatGroup: this.noticeList.Group ? this.GroupList : []
       }
       if (this.type === 'bug') {
-        const numDay = this.formData.noticeConditionList[0].greaterTime
-        const str = numDay.split('')
-        const targetStr = str[str.length - 1]
-        this.formData.noticeConditionList[0].timeUnit = targetStr === 'D' ? 'DAY' : 'HOUR'
-        const num = numDay.slice(0, numDay.length - 1)
-        this.$set(this.formData.noticeConditionList[0], 'greaterTime', num)
+        this.formData.noticeConditionList.map(item => {
+          const numDay = item.greaterTime
+          const str = numDay.split('')
+          const targetStr = str[str.length - 1]
+          item.timeUnit = targetStr === 'D' ? 'DAY' : 'HOUR'
+          const num = numDay.slice(0, numDay.length - 1)
+          item.greaterTime = num
+        })
       }
       this.data && !this.copy ? this.updateBizNoticeSetting() : this.addBizNoticeSetting()
     },