|
|
@@ -8,7 +8,7 @@
|
|
|
:autoQuery="false"
|
|
|
>
|
|
|
<template #titleLight>
|
|
|
- <el-button size="small" type="primary">新建联系人</el-button>
|
|
|
+ <addContact :tagList="tagList" v-if="tool.checkAuth($route.name,'addContact')" slot="addContact" :group="group" @onAddSuccess="onAddSuccess"></addContact>
|
|
|
</template>
|
|
|
<template #tableLeft style="padding: 0">
|
|
|
<div style="margin: 0;padding: 0;min-width: 320px;max-width: 320px;">
|
|
|
@@ -44,12 +44,15 @@
|
|
|
<script>
|
|
|
import normalBook from "@/components/normal-basic-layout/normalBook";
|
|
|
import myGroup from '../mycontact/index';
|
|
|
+import addContact from '../mycontact/modules/addContact'
|
|
|
export default {
|
|
|
name: "index",
|
|
|
- components:{normalBook,myGroup},
|
|
|
+ components:{normalBook,myGroup,addContact},
|
|
|
data(){
|
|
|
return {
|
|
|
tabIndex:"1",
|
|
|
+ tagList:[],
|
|
|
+ group:[],
|
|
|
param:{
|
|
|
"id": 20231220085804,
|
|
|
"content": {
|
|
|
@@ -83,15 +86,30 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ async getTagList () {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20220929085401,
|
|
|
+ "content": {
|
|
|
+ "ownertable":"sys_phonebook",
|
|
|
+ "ownerid":102
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tagList = res.data.option
|
|
|
+ console.log(this.tagList)
|
|
|
+ },
|
|
|
clickGroup(val){
|
|
|
console.log(val,'1111')
|
|
|
this.$refs.basicLayout.param.content.groupname = val.groupname
|
|
|
this.$refs.basicLayout.param.content.sys_phonebookgroupid = val.sys_phonebookgroupid
|
|
|
this.listData()
|
|
|
- }
|
|
|
+ },
|
|
|
+ onAddSuccess () {
|
|
|
+ this.listData()
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.listData()
|
|
|
+ this.getTagList()
|
|
|
}
|
|
|
}
|
|
|
</script>
|