diff --git a/src/api/admin/customer.js b/src/api/admin/customer.js index 0b0461e..937b8ef 100644 --- a/src/api/admin/customer.js +++ b/src/api/admin/customer.js @@ -3,7 +3,8 @@ import { axios } from '@/utils/request' const api = { customer: '/admin/customer', // 客户管理 customerContacts: 'admin/contacts', // 客户管理-联系人 - customerAttachments: '/admin/attachments' // 客户管理-相关文件 + customerAttachments: '/admin/attachments', // 客户管理-相关文件 + icsCustomerStaff: '/admin/staff' } export function getCustomerList (parameter) { @@ -14,6 +15,34 @@ export function getCustomerList (parameter) { }) } + +export function getStaffList (parameter) { + return axios({ + url: api.icsCustomerStaff + '/list', + method: 'get', + params: parameter + }) +} + +export function getStaffListNotId (parameter) { + return axios({ + url: api.icsCustomerStaff + '/getStaffListNotId', + method: 'get', + params: parameter + }) +} + +export function updateStaff (parameter) { + return axios({ + url: api.icsCustomerStaff + '/update', + method: 'post', + data: parameter, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} + export function saveCustomer (parameter) { return axios({ url: api.customer + (parameter.id > 0 ? '/update' : '/save'), diff --git a/src/views/admin/CustomerEdit.vue b/src/views/admin/CustomerEdit.vue index 6ef5508..0864a37 100644 --- a/src/views/admin/CustomerEdit.vue +++ b/src/views/admin/CustomerEdit.vue @@ -243,8 +243,8 @@