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