lilei 2 년 전
부모
커밋
7675ad6925
2개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 6
      src/views/allocationManagement/transferOut/basicInfoModal.vue
  2. 1 1
      src/views/common/dealerSubareaScopeList.vue

+ 3 - 6
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -59,7 +59,7 @@
         </a-form-model-item>
       </a-form-model>
       <div class="btn-cont">
-        <a-button type="primary" id="allocateBill-basicInfo-modal-save" @click="handleSave">保存</a-button>
+        <a-button type="primary" :loading="spinning" id="allocateBill-basicInfo-modal-save" @click="handleSave">保存</a-button>
         <a-button id="allocateBill-basicInfo-modal-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
       </div>
     </a-spin>
@@ -177,11 +177,8 @@ export default {
           allocateBillSave(form).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              setTimeout(() => {
-                _this.isShow = false
-                _this.$emit('ok', res.data)
-                _this.spinning = false
-              }, 1000)
+              _this.isShow = false
+              _this.$emit('ok', res.data)
             } else {
               _this.spinning = false
             }

+ 1 - 1
src/views/common/dealerSubareaScopeList.vue

@@ -46,7 +46,7 @@ export default {
       const fetchId = this.lastFetchId
       this.data = []
       this.fetching = true
-      dealerSubareaScopeList({ nameLike: dealerName, pageNo: 1, pageSize: 20 }).then(res => {
+      dealerSubareaScopeList({ nameLike: dealerName.replace(/\s+/g, ''), pageNo: 1, pageSize: 20 }).then(res => {
         if (fetchId !== this.lastFetchId) {
           return
         }