mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
-- fix bug
This commit is contained in:
@@ -4,9 +4,11 @@ export const USER_LIST_PAGE = '/userbasic/user/list post'
|
||||
export const USER_LIST = '/userbasic/user/searchList post'
|
||||
export const ORG_LIST = '/userbasic/org/list post'
|
||||
export const ORG_CHILD_LIST = '/userbasic/org/info post'
|
||||
export const AUDIENCE_LIST = '/userbasic/audience/list post'
|
||||
// export const AUDIENCE_LIST = '/userbasic/audience/list post'
|
||||
//当前用户可以查看的受众接口
|
||||
export const AUDIENCE_LIST = '/userbasic/audience/userAudiencesFilter post'
|
||||
export const USER_PERMISSION = '/userbasic/permission/listByUser post'
|
||||
export const CASE_PAGE = '/systemapi/xboe/m/boe/cases/pagelist post formData'
|
||||
export const EXAM_PAPER_PAGE = '/systemapi/xboe/m/exam/paper/querylist post formData'
|
||||
export const TEST_PAGE = '/api/b1/system/quiz/quiz-list post formData'
|
||||
export const ONLINE_PAGE = '/systemapi/xboe/m/course/manage/pagelist post formData'
|
||||
export const ONLINE_PAGE = '/systemapi/xboe/m/course/manage/pagelist post formData'
|
||||
@@ -391,7 +391,6 @@ const getStu = () => {
|
||||
console.log("获取项目学员", obj);
|
||||
getStuPage(obj).then((res) => {
|
||||
console.log("获取项目学员", res);
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data.records;
|
||||
let array = [];
|
||||
arr.map((value) => {
|
||||
@@ -408,7 +407,6 @@ const getStu = () => {
|
||||
});
|
||||
projectList.value = array;
|
||||
projectListTotal.value = res.data.data.total;
|
||||
}
|
||||
});
|
||||
};
|
||||
getStu();
|
||||
|
||||
@@ -262,7 +262,6 @@
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- 概览(无数据) -->
|
||||
<!-- 概览(有数据) -->
|
||||
<div v-if="hasTask">
|
||||
<div class="onerow">
|
||||
@@ -2909,10 +2908,7 @@ export default {
|
||||
let objtl = {
|
||||
projectId: state.projectId,
|
||||
};
|
||||
apitl
|
||||
.getProjectDetail(objtl)
|
||||
.then((res) => {
|
||||
if (res.status == 200) {
|
||||
apitl.getProjectDetail(objtl).then((res) => {
|
||||
console.log("阶段列表", res);
|
||||
for (let i = 0; i < res.data.data.stageList.length; i++) {
|
||||
for (
|
||||
@@ -2927,7 +2923,7 @@ export default {
|
||||
}
|
||||
}
|
||||
levelList.stageList = res.data.data.stageList;
|
||||
if (levelList.stageList.length == 1) {
|
||||
if (levelList.stageList.length === 1) {
|
||||
// 无解段任务
|
||||
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
||||
state.valuestu2 = 0;
|
||||
@@ -2948,10 +2944,6 @@ export default {
|
||||
state.valuestu2 = arrStage[0].value;
|
||||
state.choosedStageName = levelList.stageList[0].name;
|
||||
}
|
||||
console.log(
|
||||
"----------------------------------->",
|
||||
res.data.data.stageList
|
||||
);
|
||||
//暂时传个固定的id用 到时候看数据里面是否有在更换
|
||||
// state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId
|
||||
let leng = res.data.data.stageList.length;
|
||||
@@ -2959,17 +2951,13 @@ export default {
|
||||
let taskarr = res.data.data.stageList;
|
||||
console.log("11-22-33", taskarr);
|
||||
if (taskarr.length == 1) {
|
||||
if (taskarr[0].stageId == "0") {
|
||||
if (taskarr[0].id == "0") {
|
||||
taskarr[0].name = "无阶段任务";
|
||||
}
|
||||
}
|
||||
state.taskSyllabus = taskarr;
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取任务列表失败", err);
|
||||
});
|
||||
};
|
||||
//学员学员管理渲染
|
||||
// const getTableDate = () => {
|
||||
@@ -3728,7 +3716,7 @@ export default {
|
||||
gangw: value.userInfoBo.jobName, //岗位
|
||||
completeStageCnt: value.completeStageCnt, //当前完成阶段数
|
||||
totalStageCnt: value.totalStageCnt, //总阶段数
|
||||
excellent: value.topFlag == 1 ? true : false, //是否优秀学员
|
||||
excellent: value.topFlag == 1, //是否优秀学员
|
||||
progress: value.completeStageCnt + "/" + value.totalStageCnt,
|
||||
putin:
|
||||
value.source == 0
|
||||
@@ -3910,6 +3898,8 @@ export default {
|
||||
state.hasTask = !!res.data.data?.stageList.some(
|
||||
({ taskList }) => taskList.length
|
||||
);
|
||||
console.log(111111111111);
|
||||
console.log(state.hasTask);
|
||||
// state.attach = info.attach;
|
||||
// state.templateId = info.templateId;
|
||||
state.sourceBelong =
|
||||
|
||||
@@ -32,6 +32,14 @@ module.exports = defineConfig({
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
},
|
||||
"/file": {
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
},
|
||||
"/upload": {
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user