Browse Source

联系人新建调整

qymljy 4 months ago
parent
commit
077624d2fa
1 changed files with 1 additions and 39 deletions
  1. 1 39
      src/HManagement/addressList/mycontact/modules/addContact.vue

+ 1 - 39
src/HManagement/addressList/mycontact/modules/addContact.vue

@@ -236,6 +236,7 @@ export default {
   },
   methods:{
     onShow () {
+      this.form.sys_enterpriseids = []
       this.dialogFormVisible = true
       this.queryGroup()
       console.log(this.tagList,'tagList')
@@ -264,26 +265,6 @@ export default {
           this.$store.commit('setLoading',false)
           this.dialogFormVisible = false
           this.$refs.form.resetFields()
-          this.form = {
-            "sys_phonebookid":0,     //sys_phonebookid<=0时 为新增
-            "sys_phonebookgroupid":"",
-            "name": "",
-            "phonenumber": "",
-            "company": "",
-            "depname": "",
-            "position": "",
-            "email": "",
-            "sex": "男",
-            "birthday": '',
-            "homeaddress": "",
-            "remarks": "",
-            "tag": [],
-            "isTelephone":'0',
-            "fax":"",
-            "areaCode":'',
-            "telephone":'',
-            "groupname":"",
-          }
           this.$emit('onAddSuccess')
         })
       });
@@ -291,25 +272,6 @@ export default {
     onClose(){
       this.dialogFormVisible = false
       this.$refs.form.resetFields()
-      this.form = {
-        "sys_phonebookid":0,     //sys_phonebookid<=0时 为新增
-        "sys_phonebookgroupid":"",
-        "name": "",
-        "phonenumber": "",
-        "company": "",
-        "depname": "",
-        "position": "",
-        "email": "",
-        "sex": "男",
-        "birthday": '',
-        "homeaddress": "",
-        "remarks": "",
-        "tag": [],
-        "isTelephone":'0',
-        "fax":"",
-        "areaCode":'',
-        "telephone":''
-      }
     },
     hasDisabledTag (item) {
       let arr = []