You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.4 KiB
66 lines
2.4 KiB
/*
|
|
* Copyright (c) 2019.
|
|
* author: wally
|
|
* email: 18603454788@163.com
|
|
*/
|
|
import axios from 'axios';
|
|
let { proxyUrl, msgUrl } = require('@/config/setting');
|
|
|
|
const greenvalley = `${proxyUrl}/greenvalley`;
|
|
const researchTeam = `${greenvalley}/researchTeam`; // 创新平台相关操作
|
|
const page = `${greenvalley}/page`; // 页面管理相关操作
|
|
const industryInfo = `${greenvalley}/industryInfo`; // 行业资讯相关操作
|
|
const activity = `${greenvalley}/activity`; // 活动公告相关操作
|
|
const creatingPlatform = `${greenvalley}/creatingPlatform`; // 合作意向相关操作
|
|
|
|
|
|
// websocket基础地址
|
|
export const WS_BASE_URL = msgUrl;
|
|
|
|
// 页面列表查询
|
|
export const getPageList = params => axios.post(`${page}/list`, params);
|
|
|
|
// 页面配置添加
|
|
export const addPage = params => axios.post(`${page}/add`, params);
|
|
|
|
// 页面配置删除
|
|
export const deletePage = params => axios.post(`${page}/delete`, params);
|
|
|
|
// 页面配置修改
|
|
export const updatePage = params => axios.post(`${page}/update`, params);
|
|
|
|
// 行业资讯列表查询
|
|
export const getBackendSearch = params => axios.post(`${industryInfo}/backendSearch`, params);
|
|
|
|
// 行业资讯列表删除
|
|
export const deleteIndustryInfo = params => axios.post(`${industryInfo}/delete`, params);
|
|
|
|
// 活动公告列表查询
|
|
export const getQueryBack = params => axios.post(`${activity}/query/back`, params);
|
|
|
|
// // 活动公告列表删除
|
|
// export const deleteIndustryInfo = params => axios.post(`${activity}/delete`, params);
|
|
|
|
// 合作意向列表查询
|
|
export const getCreatingPlatformSearch = params => axios.post(`${creatingPlatform}/search`, params);
|
|
|
|
// 合作意向删除
|
|
export const getCreatingPlatformDelete = params => axios.post(`${creatingPlatform}/delete`, params);
|
|
|
|
// 查询所有的研发团队相关信息
|
|
export const getAllTeam = () => axios.post(`${researchTeam}/selectAllTeam`);
|
|
|
|
// 添加一条研发团队信息
|
|
export const addTeam = params => axios.post(`${researchTeam}/addTeam`, params);
|
|
|
|
// 根据团队id查看研发团队相关信息
|
|
export const getSelectTeam = params => axios.post(`${researchTeam}/selectTeam`, params);
|
|
|
|
// 根据团队id删除研发团队
|
|
export const delTeam = params => axios.post(`${researchTeam}/delTeam`, params);
|
|
|
|
// 根据团队id修改研发团队
|
|
export const upTeam = params => axios.post(`${researchTeam}/upTeam`, params);
|
|
|
|
// 根据团队名称搜索团队
|
|
export const selLikeTeam = params => axios.post(`${researchTeam}/selLikeTeam`, params);
|
|
|