diff --git a/src/api/config.js b/src/api/config.js index 23099d44..b970a072 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-30 13:45:23 + * @LastEditTime: 2022-11-30 15:03:21 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -53,7 +53,7 @@ http.interceptors.response.use( return response; } else { if (code === 1000) { - window.open("https://u-pre.boe.com/web/", '_self'); + // window.open("https://u-pre.boe.com/web/", '_self'); } console.log("api %o", msg); } diff --git a/src/views/projectcenter/SonProject.vue b/src/views/projectcenter/SonProject.vue index 0dfa4326..3eb8acdc 100644 --- a/src/views/projectcenter/SonProject.vue +++ b/src/views/projectcenter/SonProject.vue @@ -672,6 +672,9 @@ export default { // state.tableDataTotal = res.data.data.total; // return res.data.data.rows; } + }) + .catch((err) => { + console.log("获取学员失败", err); }); }; getMember(); diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index c7fe51a2..2dd6467a 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -576,12 +576,33 @@ " >
部门:
- +
{ + return store.state.orgtreeList ? store.state.orgtreeList : []; + }); //任务大纲渲染 const getTaskList = () => { @@ -3192,6 +3219,7 @@ export default { const getStu = (obj) => { let objf = obj || { deptIds: [], //部门 + groupId: 0, groupName: "", name: "", pageNo: state.currentPageStu, @@ -3201,7 +3229,7 @@ export default { }; getProjStu(objf) .then((res) => { - console.log(res.data, "获取学员列表"); + console.log("获取学员列表", res.data); if (res.data.code === 200) { let leng = res.data.data.rows.length; state.total = res.data.data.total; @@ -3285,12 +3313,12 @@ export default { } else if (info.attach.length !== 0 && d == -1) { return; } else { - console.log(info.attach, "xgo"); + // console.log(info.attach, "xgo"); // let str = JSON.parse(info.attach) // console.log("赚回来",str) // let luj = info.attach.split(",") let luj = info.attach; - console.log("lulj", luj); + // console.log("lulj", luj); console.log("赚回来", JSON.parse(luj)); state.fileList = JSON.parse(luj); // state.fileList = luj @@ -3690,6 +3718,7 @@ export default { .then((res) => { console.log("添加学员成功", res); message.success("添加学员成功"); + getStu(); }) .catch((err) => { console.log("添加学员失败", err);