123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import request from '@/api'
- import qs from 'qs'
- /**
- * @param {*} actionMode
- * 常用功能更新(保存):commonlyRenew
- * 常用功能列表:commonlyList
- * 菜单模式更新:menuMode
- * @returns
- */
- const actionModeMap = {
- save: 'commonlyRenew',
- list: 'commonlyList',
- mode: 'menuMode'
- }
- export function workspaceCommonUse(type, data) {
- const actionMode = actionModeMap[type]
- if (!actionMode) {
- return console.warn('未知类型type')
- }
- return request({
- baseURL: '/userCenter',
- url: `/workDesktop/renew/${actionMode}`,
- method: 'POST',
- data
- })
- }
- // 获取工作桌面菜单
- export function getWorkspaceMenu() {
- return request({
- baseURL: '/userCenter',
- url: '/workDesktop/menuInfo',
- method: 'POST'
- })
- }
- // 商机管理 - 我的客户
- export function customerQuery(data) {
- return request({
- baseURL: '/entnicheNew',
- url: '/customer/query',
- method: 'POST',
- data
- })
- }
- // 商机管理 - 客户关注列表
- export function entNewFollowClientList(params) {
- return request({
- baseURL: '/entnicheNew',
- url: '/customer/list',
- method: 'GET',
- params
- })
- }
- // 商机管理 - 过程数据看板 - 数据概览 - 个人数据概览
- export function getEmployeeDataOverview(data) {
- data = qs.stringify(data)
- return request({
- baseURL: '/entnicheNew',
- url: '/employeeDataBoard/userDataView',
- method: 'POST',
- data
- })
- }
- // 商机管理 - 过程数据看板 - 数据概览 - 部门数据概览
- export function getDepDataOverview(data) {
- data = qs.stringify(data)
- return request({
- baseURL: '/entnicheNew',
- url: '/reportform/departDataOverView',
- method: 'POST',
- data
- })
- }
- // 商机管理 - 查询用户关键词列表
- export function getEntNicheSubKeyList() {
- return request({
- baseURL: '/entnicheNew',
- url: '/subscribe/key/get',
- method: 'POST'
- })
- }
- // 消息中心 - 消息列表查询
- export function getMessageCenterList(data) {
- return request({
- baseURL: '/jyapi/messageCenter',
- url: '/MessageList',
- method: 'POST',
- data
- })
- }
- // 获工作台介绍
- export function getWhatIsWorkspace() {
- return request({
- baseURL: '/front',
- url: '/bootstrap/specification',
- method: 'get'
- })
- }
|