| | |
| | | |
| | | // 添加项目课题方案 |
| | | export function addDispatch(data) { |
| | | return axios.post('/t-experiment-dispatch/api/t-experiment-dispatch/add', { ...data }) |
| | | return axios.post('/api/t-experiment-dispatch/add', { ...data }) |
| | | } |
| | | //修改方案 |
| | | export function updateDispatch(data) { |
| | | return axios.post('/t-experiment-dispatch/api/t-experiment-dispatch/update', { ...data }) |
| | | return axios.post('/api/t-experiment-dispatch/update', { ...data }) |
| | | } |
| | | //查询方案列表 |
| | | export function getDispatchList(data) { |
| | | return axios.post('/t-experiment-dispatch/api/t-experiment-dispatch/pageList', { ...data }) |
| | | return axios.post('/api/t-experiment-dispatch/pageList', { ...data }) |
| | | } |
| | | //上下架 |
| | | // export function upAndDown(data) { |
| | |
| | | |
| | | //删除 |
| | | export function deleteById(data) { |
| | | return axios.delete('/t-experiment-dispatch/open/t-experiment-dispatch/deleteById', { params:data }) |
| | | return axios.delete('/open/t-experiment-dispatch/deleteById', { params:data }) |
| | | } |
| | | |
| | | //批量删除 |
| | | export function deleteByIds(data) { |
| | | return axios.delete('/t-experiment-dispatch/open/t-experiment-dispatch/deleteByIds', { params:data }) |
| | | return axios.delete('/open/t-experiment-dispatch/deleteByIds', { params:data }) |
| | | } |
| | | //根据id查询方案详情 |
| | | export function getDetailById(data) { |
| | | return axios.get('/t-experiment-dispatch/open/t-experiment-dispatch/getDetailById', {params:data }) |
| | | return axios.get('/open/t-experiment-dispatch/getDetailById', {params:data }) |
| | | } |
| | | // 签名 |
| | | export function sign(data) { |
| | | return axios.post('/t-experiment-dispatch/api/t-experiment-dispatch/sign', { ...data }) |
| | | return axios.post('/api/t-experiment-dispatch/sign', { ...data }) |
| | | } |