|
|
@@ -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 = []
|