chenrui 4 gadi atpakaļ
vecāks
revīzija
072f2cc8bf

+ 1 - 2
src/views/dealerManagement/dealerAccountManagement/editModal.vue

@@ -156,8 +156,6 @@ export default {
           this.form.password = this.detailData.password || ''
           const childUserMaxNum = this.detailData ? (this.detailData.org ? (this.detailData.org.childUserMaxNum ? this.detailData.org.childUserMaxNum : '') : '') : ''
           this.form.org.childUserMaxNum = childUserMaxNum
-          // const orgName = this.detailData ? (this.detailData.org ? (this.detailData.org.name ? this.detailData.org.name : undefined) : undefined) : undefined
-          // this.$refs.custList.handleChange({ key: this.detailData.tenantSn || undefined, label: orgName })
         } else {
           this.detailData = null
           this.$refs.ruleForm.resetFields()
@@ -181,6 +179,7 @@ export default {
         this.form.loginName = ''
         this.form.password = ''
         this.form.org.childUserMaxNum = ''
+        this.$refs.custList.resetForm()
       }
     },
     itemId (newValue, oldValue) {