From 4898b385886794bf0663ec2d883ea808b78ae522 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 19 七月 2023 11:37:25 +0800 Subject: [PATCH] 接口联调相关api添加 --- src/views/client/contacts/index.vue | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/views/custom/contacts/index.vue b/src/views/client/contacts/index.vue similarity index 88% rename from src/views/custom/contacts/index.vue rename to src/views/client/contacts/index.vue index 871f24b..00d264c 100644 --- a/src/views/custom/contacts/index.vue +++ b/src/views/client/contacts/index.vue @@ -21,8 +21,8 @@ </template> <script> -import AddContactsDialog from "@/views/custom/contacts/AddContactsDialog" -import { getContactList } from "@/api/custom/contacts" +import AddContactsDialog from "@/views/client/contacts/AddContactsDialog" +import { getContactList } from "@/api/client/contacts" export default { name: "ContactsView", props: {}, @@ -68,13 +68,13 @@ this.tableList = { tableInfomation: [], tableColumn: [ - { label: "鑱旂郴浜哄鍚�", prop: "contactName", min: 100 }, // 鑱旂郴浜哄鍚� + { label: "鑱旂郴浜哄鍚�", prop: "name", min: 100 }, // 鑱旂郴浜哄鍚� { label: "瀹㈡埛鍚嶇О", prop: "client_name", min: 190 }, // 瀹㈡埛鍚嶇О { label: "鑱旂郴浜虹紪鍙�", prop: "number", min: 100 }, // 鑱旂郴浜虹紪鍙� - { label: "鑱屽姟", prop: "duties", min: 120 }, // 鑱屽姟 + { label: "鑱屽姟", prop: "position", min: 120 }, // 鑱屽姟 { label: "鎵嬫満", prop: "phone", min: 100 }, // 鎵嬫満鍙风爜 - { label: "閿�鍞礋璐d汉", prop: "salesHead", min: 120 }, // 閿�鍞礋璐d汉 - { label: "棣栬鑱旂郴浜�", prop: "name", min: 90 } // 棣栬鑱旂郴浜� + { label: "閿�鍞礋璐d汉", prop: "member_id", min: 120 }, // 閿�鍞礋璐d汉 + { label: "棣栬鑱旂郴浜�", prop: "is_first", min: 90 } // 棣栬鑱旂郴浜� ] } this.searchOptions = [] @@ -93,13 +93,9 @@ if (res.data.list && res.data.list.length > 0) { const list = res.data.list.map((item) => { return { - contactName: "", + ...item, client_name: item.Client.name, - number: item.number, - duties: "", - phone: item.phone, - salesHead: "", - name: item.name + is_first: item.is_first ? "鏄�" : "鍚�" } }) this.tableList.tableInfomation = list || [] -- Gitblit v1.8.0