ソースを参照

fix: 客服异常预警 - 预警规则 - 添加人数支持输入0人&文案

zhengxy 2 年 前
コミット
d972b5204a
共有2 個のファイルを変更した13 個の追加12 個の削除を含む
  1. 11 10
      project/src/components/customerAlerts/dialog/warnDialog.vue
  2. 2 2
      project/src/components/customerAlerts/staticTools.js

+ 11 - 10
project/src/components/customerAlerts/dialog/warnDialog.vue

@@ -4,7 +4,7 @@
4 4
     :before-close="handleCancel"
5 5
     class="warn-dialog"
6 6
     :title="title"
7
-    width="560px"
7
+    width="590px"
8 8
     :close-on-click-modal="false"
9 9
   >
10 10
     <div class="form-wrap" v-loading="loading">
@@ -14,7 +14,7 @@
14 14
           <customerServiceCorp
15 15
             title=""
16 16
             :icon_arrow_bg="false"
17
-            width="410px"
17
+            width="430px"
18 18
             style="margin:0;"
19 19
             :afferent_users="form.afferent_djuser_list"
20 20
             @customerDefine="onChangeDjuserList"
@@ -221,7 +221,7 @@ export default {
221 221
     handleFormValidate() {
222 222
       return new Promise((resolve, reject) => {
223 223
         const { monitor_user_list, notice_type, warnUserList, warnGroup, rules } = this.form
224
-        const isHasNullRules = rules.some(rule => !rule.minute || !rule.num)
224
+        const isHasNullRules = rules.some(rule => !rule.minute || rule.num === '')
225 225
 
226 226
         if (!monitor_user_list || !monitor_user_list.length) {
227 227
           this.$message.warning('请选择预警客服')
@@ -330,10 +330,10 @@ export default {
330 330
       this.form.rules[idx].num = getIntegerNumber(inputVal)
331 331
     },
332 332
     onChangeNum(inputVal, idx) {
333
-      if (inputVal !== '' && Number(inputVal) === 0) {
334
-        this.form.rules[idx].num = ''
335
-        this.$message.warning('人数不能为0')
336
-      }
333
+      // if (inputVal !== '' && Number(inputVal) === 0) {
334
+      //   this.form.rules[idx].num = ''
335
+      //   this.$message.warning('人数不能为0')
336
+      // }
337 337
     },
338 338
     // 监听点击“添加规则”
339 339
     onClickAddRules() {
@@ -393,12 +393,13 @@ export default {
393 393
         }
394 394
       }
395 395
       .el-select {
396
-        width: 100%;
396
+        width: 430px;
397 397
       }
398 398
       .rules-wrap {
399
+        box-sizing: border-box;
399 400
         background-color: #F2F2F2;
400 401
         padding: 14px;
401
-        flex: 1;
402
+        width: 430px;
402 403
         .rules-item {
403 404
           display: flex;
404 405
           align-items: center;
@@ -412,7 +413,7 @@ export default {
412 413
             }
413 414
           }
414 415
           .el-select {
415
-            width: 70px;
416
+            width: 100px;
416 417
             margin-right: 6px;
417 418
           }
418 419
           .text {

+ 2 - 2
project/src/components/customerAlerts/staticTools.js

@@ -1,6 +1,6 @@
1 1
 const contrastOptions = [
2
-  { label: '于', value: 1 },
3
-  { label: '于', value: 2 },
2
+  { label: '小于等于', value: 1 },
3
+  { label: '大于等于', value: 2 },
4 4
 ]
5 5
 
6 6
 const noticeTypes = { // 预警类型