|
@@ -6,7 +6,7 @@
|
|
|
<contacts style="flex:1 0 auto" :data="activeGroupData" @clickContacts="clickContacts" @filtetContacts="filtetContacts"></contacts>
|
|
|
<detail :activeContactsData="activeContactsData">
|
|
|
<template v-slot:edit="data">
|
|
|
- <edit :data="data" :group="group" @onAddSuccess="onAddSuccess"></edit>
|
|
|
+ <edit :data="data" :group="group" @onEditSuccess="onEditSuccess"></edit>
|
|
|
</template>
|
|
|
<template v-slot:del="data">
|
|
|
<ondel :data="data" @onDelSuccess="onDelSuccess"></ondel>
|
|
@@ -50,6 +50,10 @@ export default {
|
|
|
this.activeContactsData = this.activeGroupData.phonebook.filter(e=>{return e.rowindex === this.activeContactsData.rowindex})[0]
|
|
|
})
|
|
|
},
|
|
|
+ onEditSuccess (form) {
|
|
|
+ console.log(form)
|
|
|
+ this.activeContactsData = Object.assign({},this.activeGroupData,form)
|
|
|
+ },
|
|
|
setGroupData (val) {
|
|
|
this.group = val
|
|
|
},
|
|
@@ -65,7 +69,7 @@ export default {
|
|
|
return e.sys_phonebookid !== id
|
|
|
})
|
|
|
this.activeContactsData = null
|
|
|
- this.$refs['grouplist'].listData()
|
|
|
+ // this.$refs['grouplist'].listData()
|
|
|
},
|
|
|
filtetContacts (type,val) {
|
|
|
if (type === 'name') {
|