mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
受众列表、复制、发布、启用、停用、删除
This commit is contained in:
72
src/api/indexAudience.js
Normal file
72
src/api/indexAudience.js
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
import http from "./confign";
|
||||||
|
|
||||||
|
|
||||||
|
//评估问题创建接口
|
||||||
|
export const createResearch = (obj) =>
|
||||||
|
http.post("/assessment/createAssessment", obj);
|
||||||
|
//删除评估基础信息
|
||||||
|
export const deleteResearch = (obj) =>
|
||||||
|
http.post("/assessment/deleteAssessment", obj, {
|
||||||
|
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
||||||
|
});
|
||||||
|
//选择题删除题干或选项接口-修改时删除
|
||||||
|
export const deleteChoiceQuestion = (obj) =>
|
||||||
|
http.post("/assessment/deleteChoiceQuestion", obj);
|
||||||
|
//问答题或评分题删除题干-修改时删除
|
||||||
|
export const deleteQuestionScAndQa = (obj) =>
|
||||||
|
http.post("/assessment/deleteQuestionScAndQa", obj);
|
||||||
|
//修改评估问题的接口
|
||||||
|
export const editResearchMessage = (obj) =>
|
||||||
|
http.post("/assessment/editAssessmentMessage", obj);
|
||||||
|
//评估信息编辑修改评估名称
|
||||||
|
export const editAssessmentName = (obj) =>
|
||||||
|
http.post("/assessment/editAssessmentName", obj);
|
||||||
|
//评估信息发布状态的接口
|
||||||
|
export const editReleaseStatus = (obj) =>
|
||||||
|
http.post("/assessment/editReleaseStatus", obj);
|
||||||
|
//根据ID查询评估基础信息详情
|
||||||
|
export const queryResearchDetailById = (obj) =>
|
||||||
|
http.post("/assessment/queryAssessmentDetailById", obj, {
|
||||||
|
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
||||||
|
});
|
||||||
|
//获取全部评估信息接口
|
||||||
|
export const queryResearchDetailList = (obj) =>
|
||||||
|
http.post("/assessment/queryAssessmentDetailList", obj);
|
||||||
|
//评估管理-管理-获取评估部分信息
|
||||||
|
export const queryAssessmentDetailList = (obj) =>
|
||||||
|
http.post("/assessment/queryAssessmentPartDetail", obj, {
|
||||||
|
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
||||||
|
});
|
||||||
|
|
||||||
|
// 请求组织接口
|
||||||
|
export const userGetUserOrg = (obj) => http.post('/user/getUserOrg', obj)
|
||||||
|
|
||||||
|
// 概览页面 tab头数据
|
||||||
|
export const boeuAllTotal = (obj) => http.get('/boeu/all/total', obj)
|
||||||
|
|
||||||
|
|
||||||
|
// 获取受众列表
|
||||||
|
export const getAudienceList = (obj) =>
|
||||||
|
http.post("/audience/list", obj, {
|
||||||
|
headers: { 'Content-Type':'application/json', },
|
||||||
|
});
|
||||||
|
// 停用受众
|
||||||
|
export const stopAudience = (obj) =>
|
||||||
|
http.post("/audience/stop", obj, {
|
||||||
|
headers: { 'Content-Type':'application/json', },
|
||||||
|
});
|
||||||
|
// 复制受众
|
||||||
|
export const copyAudience = (obj) =>
|
||||||
|
http.post("/audience/copy", obj, {
|
||||||
|
headers: { 'Content-Type':'application/json', },
|
||||||
|
});
|
||||||
|
// 删除受众
|
||||||
|
export const deleteAudience = (obj) =>
|
||||||
|
http.post("/audience/delete", obj, {
|
||||||
|
headers: { 'Content-Type':'application/json', },
|
||||||
|
});
|
||||||
|
// 发布、启用受众
|
||||||
|
export const publishAudience = (obj) =>
|
||||||
|
http.post("/audience/publish", obj, {
|
||||||
|
headers: { 'Content-Type':'application/json', },
|
||||||
|
});
|
||||||
1202
src/views/audience/audienceManage.vue
Normal file
1202
src/views/audience/audienceManage.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user