mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
feat:创建单层项目部分数据接入
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import http from "./config";
|
||||
import qs from 'qs';
|
||||
// import qs from 'qs';
|
||||
|
||||
|
||||
/**
|
||||
@@ -37,39 +37,27 @@ import qs from 'qs';
|
||||
|
||||
// 接口-请求
|
||||
|
||||
// 根据投票ID获取题干信息
|
||||
export const getStemInfo = (stemId) => http.post('/vote/queryStemByStemId', qs.stringify({ stemId: stemId }));
|
||||
|
||||
// 测试方法
|
||||
// import * as api from '../../api/index'
|
||||
// api.getStemInfo(4).then(res => {
|
||||
// console.log(res)
|
||||
// }).catch(err => {
|
||||
// console.log(err)
|
||||
// })
|
||||
|
||||
// 获取字典列表
|
||||
export const getList = (pageno, pagesize) => http.post('/dict/getList', {
|
||||
"dictCode": "",
|
||||
"pageNo": pageno,
|
||||
"pageSize": pagesize
|
||||
// 创建编辑单层项目
|
||||
export const createProject = (obj) => http.post('/admin/project/edit', {
|
||||
"attach": obj.attach,
|
||||
"beginTime": obj.beginTime,
|
||||
"boeFlag": obj.boeFlag,
|
||||
"category": obj.category,
|
||||
"courseSyncFlag": obj.courseSyncFlag,
|
||||
"endTime": obj.endTime,
|
||||
"level": obj.level,
|
||||
"manager": obj.manager,
|
||||
"managerId": obj.managerId,
|
||||
"name": obj.name,
|
||||
"notice": obj.notice,
|
||||
"noticeFlag": obj.noticeFlag,
|
||||
"parentId": obj.parentId,
|
||||
"picUrl": obj.picUrl,
|
||||
"projectId": obj.projectId,
|
||||
"remark": obj.remark,
|
||||
"sourceBelongId": obj.sourceBelongId,
|
||||
"status": obj.status,
|
||||
"systemId": obj.systemId,
|
||||
"templateId": obj.templateId,
|
||||
"type": obj.type
|
||||
})
|
||||
|
||||
// 测试方法
|
||||
// import * as api from '../../api/index'
|
||||
// api.getList(0,0).then(res => {
|
||||
// console.log(res)
|
||||
// }).catch(err => {
|
||||
// console.log(err)
|
||||
// })
|
||||
|
||||
// 根据活动ID获取活动信息接口
|
||||
export const getActivityList = (activityId) => http.get('/activity', { params: { "activityId": activityId } })
|
||||
|
||||
// 测试方法
|
||||
// import * as api from '../../api/index'
|
||||
// api.getActivityList(4).then(res => {
|
||||
// console.log(res)
|
||||
// }).catch(err => {
|
||||
// console.log(err)
|
||||
// })
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user