Просмотр исходного кода

自动分配左右时增加判断,未填写安置人时

theo 3 лет назад
Родитель
Сommit
3f8b7090d2
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      frontendEle/src/views/user/dec.vue

+ 4 - 1
frontendEle/src/views/user/dec.vue

@@ -527,8 +527,8 @@ export default {
       }
     },
     setAutoPlace (val) {
-      this.loading = true
       if (this.recRealName !== '-') {
+        this.loading = true
         network.getData('user/get-auto-place', {userName: this.form.recUserName, side: val}).then(response => {
           // console.log(response)
           this.form.conUserName = response.USER_NAME
@@ -539,6 +539,9 @@ export default {
           // this.recRealName = '-'
           this.loading = false
         })
+      } else {
+        this.form.autoPlace = ''
+        return false
       }
       // console.log(val)
     },