qinzhipeng_v@didiglobal.com %!s(int64=4) %!d(string=hai) anos
pai
achega
456bda0dea
Modificáronse 1 ficheiros con 8 adicións e 6 borrados
  1. 8 6
      src/views/ToConfigure/components/modifyNotice.vue

+ 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()
     },