瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
5e3ec72f0e

+ 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 {