Browse Source

fix: 企微助手 - sop设置 - 回显"发送时间"

zhengxy 2 years ago
parent
commit
ab6fadc134
1 changed files with 3 additions and 3 deletions
  1. 3 3
      project/src/components/sop/createSop.vue

+ 3 - 3
project/src/components/sop/createSop.vue

84
   data() {
84
   data() {
85
     return {
85
     return {
86
       loading: false,
86
       loading: false,
87
-      isShowUserOptions: false,
87
+      isShowUserOptions: false, // 控制是否渲染"客服成员"(解决数据回显问题)
88
       form: {
88
       form: {
89
         title: '', // 规则标题
89
         title: '', // 规则标题
90
         is_all: 0, // 是否应用于全部客服 0否 1是
90
         is_all: 0, // 是否应用于全部客服 0否 1是
150
         this.form.user_ids = detail.user_ids.split(',')
150
         this.form.user_ids = detail.user_ids.split(',')
151
         this.form.type = detail.type
151
         this.form.type = detail.type
152
         if (this.form.type == 1) {
152
         if (this.form.type == 1) {
153
-          this.form.time.hour = parseInt(Number(detail.interval_time) / 60) || ''
154
-          this.form.time.minute = (Number(detail.interval_time) % 60) || ''
153
+          this.form.time.hour = parseInt(Number(detail.interval_time) / 60) || 0
154
+          this.form.time.minute = (Number(detail.interval_time) % 60) || 0
155
         } else {
155
         } else {
156
           this.form.time.days = (detail.interval_time) / 60 / 24
156
           this.form.time.days = (detail.interval_time) / 60 / 24
157
           this.form.time.timeNum = detail.notice_time || ''
157
           this.form.time.timeNum = detail.notice_time || ''