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