소스 검색

bug 修复

lilei 3 년 전
부모
커밋
5e3ec72f0e
2개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      src/views/allocationManagement/storeTransferOut/basicInfoModal.vue
  2. 5 4
      src/views/salesManagement/salesman/editModal.vue

+ 1 - 0
src/views/allocationManagement/storeTransferOut/basicInfoModal.vue

@@ -164,6 +164,7 @@ export default {
       if (!newValue) {
         this.$emit('close')
         this.$refs.ruleForm.resetFields()
+        this.$refs.custList.resetForm()
       } else {
         this.getPutPersonTypeList()
         this.getStoreCallOutTypeAllList()

+ 5 - 4
src/views/salesManagement/salesman/editModal.vue

@@ -212,6 +212,9 @@ export default {
         idCard: '', // 身份证号
         entryDate: undefined // 入职时间
       }
+      // this.$nextTick(() => {
+      //   this.$refs.ruleForm.resetFields()
+      // })
     }
   },
   watch: {
@@ -224,18 +227,16 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-        this.$refs.ruleForm.resetFields()
       }
     },
     itemId (newValue, oldValue) {
       if (this.isShow && newValue) {
         this.getDetail()
-      } else {
-        this.$refs.ruleForm.resetFields()
       }
     },
     modalTitle (newValue, oldValue) {
-      if (this.isShow && newValue) {
+      console.log(newValue)
+      if (newValue) {
         if (newValue == '编辑' || newValue == '新增') {
           this.isView = false
         } else {