mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-04 22:45:31
|
* @Date: 2022-11-04 22:45:31
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-01-05 11:06:02
|
* @LastEditTime: 2023-01-05 14:22:29
|
||||||
* @FilePath: /fe-manage/src/api/index1.js
|
* @FilePath: /fe-manage/src/api/index1.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -159,9 +159,10 @@ export const noticeList = (projectId) =>
|
|||||||
// 获取任务学员的信息
|
// 获取任务学员的信息
|
||||||
export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/getTaskStudent`, { params: obj })
|
export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/getTaskStudent`, { params: obj })
|
||||||
|
|
||||||
// 考试导出任务学员信息
|
// 导出任务学员信息
|
||||||
export const exportTaskStudent = (obj) => http.post('/admin/student/exportTaskStudent', obj)
|
export const exportTaskStudent = (obj) => http.post('/admin/student/exportTaskStudent', obj)
|
||||||
|
//导出任务作业
|
||||||
|
export const exportHomeWork = (obj) => http.post('/admin/student/exportHomeWork', obj)
|
||||||
|
|
||||||
// //面授课批量导入成绩
|
// //面授课批量导入成绩
|
||||||
export const batchImportScore = (offcoursePlanId, obj) =>
|
export const batchImportScore = (offcoursePlanId, obj) =>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">导出数据</div>
|
<div class="wz">导出数据</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn btn2">
|
<div class="btn btn2" @click="exportHomeWork">
|
||||||
<div class="wz">导出作业</div>
|
<div class="wz">导出作业</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -129,8 +129,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn1">取消</button>
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2">确定</button>
|
<button class="btn2" @click="closeDrawer">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
@@ -194,20 +194,20 @@ export default {
|
|||||||
projectName: null,
|
projectName: null,
|
||||||
projectNameList: [
|
projectNameList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 0,
|
||||||
value: "-1",
|
value: "0",
|
||||||
label: "未开始",
|
label: "未开始",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 1,
|
||||||
value: "0",
|
|
||||||
label: "未完成",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
value: "1",
|
value: "1",
|
||||||
label: "已完成",
|
label: "已完成",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
value: "2",
|
||||||
|
label: "未完成",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
|
|
||||||
@@ -362,11 +362,26 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "任务状态",
|
title: "任务状态",
|
||||||
dataIndex: "status",
|
dataIndex: "finishStatus",
|
||||||
key: "status",
|
key: "finishStatus",
|
||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.finishStatus == 0
|
||||||
|
? "未开始"
|
||||||
|
: text.record.finishStatus == 1
|
||||||
|
? "已完成"
|
||||||
|
: text.record.finishStatus == 2
|
||||||
|
? "未完成"
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
@@ -382,7 +397,7 @@ export default {
|
|||||||
const ListOpera = () => {
|
const ListOpera = () => {
|
||||||
let arr = state.tabledata;
|
let arr = state.tabledata;
|
||||||
arr.map((value) => {
|
arr.map((value) => {
|
||||||
if (value.status == "已完成") {
|
if (value.finishStatus == 1) {
|
||||||
value.operation = (
|
value.operation = (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
@@ -443,7 +458,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
ListOpera();
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:Fvisible", false);
|
ctx.emit("update:Fvisible", false);
|
||||||
state.name = "";
|
state.name = "";
|
||||||
@@ -463,9 +477,9 @@ export default {
|
|||||||
state.projectName = value;
|
state.projectName = value;
|
||||||
};
|
};
|
||||||
const onSelectChange = (selectedRowKeys) => {
|
const onSelectChange = (selectedRowKeys) => {
|
||||||
if (selectedRowKeys.length > 2) {
|
// if (selectedRowKeys.length > 2) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -493,7 +507,7 @@ export default {
|
|||||||
currentStageId: props.projectTaskInfo.stageId,
|
currentStageId: props.projectTaskInfo.stageId,
|
||||||
type: 1,
|
type: 1,
|
||||||
pid: props.projectTaskInfo.projectId,
|
pid: props.projectTaskInfo.projectId,
|
||||||
status: state.projectName,
|
status: Number(state.projectName),
|
||||||
studentName: state.name,
|
studentName: state.name,
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
});
|
});
|
||||||
@@ -504,14 +518,21 @@ export default {
|
|||||||
currentStageId: props.projectTaskInfo.stageId,
|
currentStageId: props.projectTaskInfo.stageId,
|
||||||
type: 1,
|
type: 1,
|
||||||
pid: props.projectTaskInfo.projectId,
|
pid: props.projectTaskInfo.projectId,
|
||||||
status: state.projectName,
|
status: Number(state.projectName),
|
||||||
studentName: state.name,
|
studentName: state.name,
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
|
taskType: props.projectTaskInfo.type,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("获取面授管理学员", res);
|
console.log("获取面授管理学员", res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
state.tabledata = res.data.data.records;
|
let newData = [];
|
||||||
|
for (let i = 0; i < res.data.data.records.length; i++) {
|
||||||
|
res.data.data.records[i].key = res.data.data.records[i].id;
|
||||||
|
newData.push(res.data.data.records[i]);
|
||||||
|
}
|
||||||
|
state.tabledata = newData;
|
||||||
|
ListOpera();
|
||||||
state.tableDataTotal = res.data.data.total;
|
state.tableDataTotal = res.data.data.total;
|
||||||
state.tableDataTotal2 = res.data.data.total;
|
state.tableDataTotal2 = res.data.data.total;
|
||||||
}
|
}
|
||||||
@@ -547,21 +568,44 @@ export default {
|
|||||||
|
|
||||||
// 导出数据
|
// 导出数据
|
||||||
function exportTaskStu() {
|
function exportTaskStu() {
|
||||||
api
|
console.log("props.projectTaskInfo", props.projectTaskInfo);
|
||||||
.exportTaskStudent({
|
window.open(
|
||||||
pageNo: state.currentPage,
|
`${
|
||||||
pageSize: state.pageSize,
|
process.env.VUE_APP_PROXY_URL
|
||||||
currentStageId: props.projectTaskInfo.stageId,
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
props.projectTaskInfo.stageId
|
||||||
type: 1,
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskId=${
|
||||||
pid: props.projectTaskInfo.projectId,
|
props.projectTaskInfo.projectTaskId
|
||||||
})
|
}&taskType=${props.projectTaskInfo.type}`
|
||||||
.then((res) => {
|
);
|
||||||
console.log(res);
|
// api
|
||||||
})
|
// .exportTaskStudent({
|
||||||
.catch((err) => {
|
// pageNo: state.currentPage,
|
||||||
console.log(err);
|
// pageSize: state.pageSize,
|
||||||
});
|
// currentStageId: props.projectTaskInfo.stageId,
|
||||||
|
// currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
|
// type: 1,
|
||||||
|
// pid: props.projectTaskInfo.projectId,
|
||||||
|
// })
|
||||||
|
// .then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// })
|
||||||
|
// .catch((err) => {
|
||||||
|
// console.log(err);
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
//导出作业
|
||||||
|
function exportHomeWork() {
|
||||||
|
console.log("props.projectTaskInfo", props.projectTaskInfo);
|
||||||
|
window.open(
|
||||||
|
`${
|
||||||
|
process.env.VUE_APP_PROXY_URL
|
||||||
|
}admin/student/exportHomeWork?currentStageId=${
|
||||||
|
props.projectTaskInfo.stageId
|
||||||
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskId=${
|
||||||
|
props.projectTaskInfo.projectTaskId
|
||||||
|
}&taskType=${props.projectTaskInfo.type}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
@@ -577,6 +621,7 @@ export default {
|
|||||||
resetTaskList,
|
resetTaskList,
|
||||||
changePaginationStu,
|
changePaginationStu,
|
||||||
exportTaskStu,
|
exportTaskStu,
|
||||||
|
exportHomeWork,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -68,11 +68,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnss" style="margin-top: 20px">
|
<div class="btnss" style="margin-top: 20px">
|
||||||
<div class="btn btn2">
|
<div class="btn btn2" @click="exportTaskStu">
|
||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">导出数据</div>
|
<div class="wz">导出数据</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn btn2">
|
<div class="btn btn2" @click="exportHomeWork">
|
||||||
<div class="wz">导出作业</div>
|
<div class="wz">导出作业</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn btn2">
|
<div class="btn btn2">
|
||||||
@@ -189,20 +189,20 @@ export default {
|
|||||||
projectName: null,
|
projectName: null,
|
||||||
projectNameList: [
|
projectNameList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 0,
|
||||||
value: "-1",
|
value: "0",
|
||||||
label: "未开始",
|
label: "未开始",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 1,
|
||||||
value: "0",
|
|
||||||
label: "未完成",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
value: "1",
|
value: "1",
|
||||||
label: "已完成",
|
label: "已完成",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
value: "2",
|
||||||
|
label: "未完成",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
|
|
||||||
@@ -231,6 +231,15 @@ export default {
|
|||||||
width: 50,
|
width: 50,
|
||||||
align: "left",
|
align: "left",
|
||||||
className: "h head",
|
className: "h head",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.studentUserNo ? text.record.studentUserNo : "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "姓名",
|
title: "姓名",
|
||||||
@@ -239,6 +248,15 @@ export default {
|
|||||||
width: 50,
|
width: 50,
|
||||||
align: "left",
|
align: "left",
|
||||||
className: "h head",
|
className: "h head",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.studentName ? text.record.studentName : "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "所在部门",
|
title: "所在部门",
|
||||||
@@ -247,6 +265,17 @@ export default {
|
|||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.studentDepartName
|
||||||
|
? text.record.studentDepartName
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "所在岗位",
|
title: "所在岗位",
|
||||||
@@ -255,6 +284,17 @@ export default {
|
|||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.studentJobName
|
||||||
|
? text.record.studentJobName
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "所属小组",
|
title: "所属小组",
|
||||||
@@ -263,31 +303,77 @@ export default {
|
|||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.studentOrgName
|
||||||
|
? text.record.studentOrgName
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "成绩",
|
title: "成绩",
|
||||||
dataIndex: "score",
|
dataIndex: "workScore",
|
||||||
key: "score",
|
key: "workScore",
|
||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.workScore || text.record.workScore == 0
|
||||||
|
? text.record.workScore
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "完成时间",
|
title: "完成时间",
|
||||||
dataIndex: "comptime",
|
dataIndex: "lastStudyTime",
|
||||||
key: "comptime",
|
key: "lastStudyTime",
|
||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.lastStudyTime ? text.record.lastStudyTime : "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "任务状态",
|
title: "任务状态",
|
||||||
dataIndex: "status",
|
dataIndex: "finishStatus",
|
||||||
key: "status",
|
key: "finishStatus",
|
||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span>
|
||||||
|
{text.record.finishStatus == 0
|
||||||
|
? "未开始"
|
||||||
|
: text.record.finishStatus == 1
|
||||||
|
? "已完成"
|
||||||
|
: text.record.finishStatus == 2
|
||||||
|
? "未完成"
|
||||||
|
: "-"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
@@ -303,7 +389,7 @@ export default {
|
|||||||
const ListOpera = () => {
|
const ListOpera = () => {
|
||||||
let arr = state.tabledata;
|
let arr = state.tabledata;
|
||||||
arr.map((value) => {
|
arr.map((value) => {
|
||||||
if (value.status == "已完成") {
|
if (value.finishStatus == 1) {
|
||||||
value.operation = (
|
value.operation = (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
@@ -346,7 +432,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
ListOpera();
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:Wvisible", false);
|
ctx.emit("update:Wvisible", false);
|
||||||
state.name = "";
|
state.name = "";
|
||||||
@@ -366,9 +451,9 @@ export default {
|
|||||||
state.projectName = value;
|
state.projectName = value;
|
||||||
};
|
};
|
||||||
const onSelectChange = (selectedRowKeys) => {
|
const onSelectChange = (selectedRowKeys) => {
|
||||||
if (selectedRowKeys.length > 2) {
|
// if (selectedRowKeys.length > 2) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -396,9 +481,10 @@ export default {
|
|||||||
currentStageId: props.projectTaskInfo.stageId,
|
currentStageId: props.projectTaskInfo.stageId,
|
||||||
type: 1,
|
type: 1,
|
||||||
pid: props.projectTaskInfo.projectId,
|
pid: props.projectTaskInfo.projectId,
|
||||||
status: state.projectName,
|
status: Number(state.projectName),
|
||||||
studentName: state.name,
|
studentName: state.name,
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
|
taskType: props.projectTaskInfo.type,
|
||||||
});
|
});
|
||||||
api
|
api
|
||||||
.AssessmentManagementMessage({
|
.AssessmentManagementMessage({
|
||||||
@@ -407,14 +493,21 @@ export default {
|
|||||||
currentStageId: props.projectTaskInfo.stageId,
|
currentStageId: props.projectTaskInfo.stageId,
|
||||||
type: 1,
|
type: 1,
|
||||||
pid: props.projectTaskInfo.projectId,
|
pid: props.projectTaskInfo.projectId,
|
||||||
status: state.projectName,
|
status: Number(state.projectName),
|
||||||
studentName: state.name,
|
studentName: state.name,
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
|
taskType: props.projectTaskInfo.type,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.status == 200) {
|
if (res.data.code == 200) {
|
||||||
state.tabledata = res.data.data.records;
|
let newData = [];
|
||||||
|
for (let i = 0; i < res.data.data.records.length; i++) {
|
||||||
|
res.data.data.records[i].key = res.data.data.records[i].id;
|
||||||
|
newData.push(res.data.data.records[i]);
|
||||||
|
}
|
||||||
|
state.tabledata = newData;
|
||||||
|
ListOpera();
|
||||||
state.tableDataTotal = res.data.data.total;
|
state.tableDataTotal = res.data.data.total;
|
||||||
state.tableDataTotal2 = res.data.data.total;
|
state.tableDataTotal2 = res.data.data.total;
|
||||||
}
|
}
|
||||||
@@ -450,21 +543,43 @@ export default {
|
|||||||
|
|
||||||
// 导出数据
|
// 导出数据
|
||||||
function exportTaskStu() {
|
function exportTaskStu() {
|
||||||
api
|
window.open(
|
||||||
.exportTaskStudent({
|
`${
|
||||||
pageNo: state.currentPage,
|
process.env.VUE_APP_PROXY_URL
|
||||||
pageSize: state.pageSize,
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
currentStageId: props.projectTaskInfo.stageId,
|
props.projectTaskInfo.stageId
|
||||||
currentTaskId: props.projectTaskInfo.projectTaskId,
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskId=${
|
||||||
type: 1,
|
props.projectTaskInfo.projectTaskId
|
||||||
pid: props.projectTaskInfo.projectId,
|
}&taskType=${props.projectTaskInfo.type}`
|
||||||
})
|
);
|
||||||
.then((res) => {
|
// api
|
||||||
console.log(res);
|
// .exportTaskStudent({
|
||||||
})
|
// pageNo: state.currentPage,
|
||||||
.catch((err) => {
|
// pageSize: state.pageSize,
|
||||||
console.log(err);
|
// currentStageId: props.projectTaskInfo.stageId,
|
||||||
});
|
// currentTaskId: props.projectTaskInfo.projectTaskId,
|
||||||
|
// type: 1,
|
||||||
|
// pid: props.projectTaskInfo.projectId,
|
||||||
|
// })
|
||||||
|
// .then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// })
|
||||||
|
// .catch((err) => {
|
||||||
|
// console.log(err);
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
//导出作业
|
||||||
|
function exportHomeWork() {
|
||||||
|
console.log("props.projectTaskInfo", props.projectTaskInfo);
|
||||||
|
window.open(
|
||||||
|
`${
|
||||||
|
process.env.VUE_APP_PROXY_URL
|
||||||
|
}admin/student/exportHomeWork?currentStageId=${
|
||||||
|
props.projectTaskInfo.stageId
|
||||||
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskId=${
|
||||||
|
props.projectTaskInfo.projectTaskId
|
||||||
|
}&taskType=${props.projectTaskInfo.type}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
@@ -481,6 +596,7 @@ export default {
|
|||||||
resetTaskList,
|
resetTaskList,
|
||||||
changePaginationStu,
|
changePaginationStu,
|
||||||
exportTaskStu,
|
exportTaskStu,
|
||||||
|
exportHomeWork,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1491,7 +1491,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="cstm_items">
|
<div class="cstm_items">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<div class="sign">
|
<div class="sign">
|
||||||
@@ -1510,8 +1509,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="cstm_items">
|
<div class="cstm_items">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<span style="margin-right: 3px">报名设置</span>
|
<span style="margin-right: 3px">报名设置</span>
|
||||||
@@ -6043,113 +6040,111 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.items_fj {
|
.items_fj {
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
.fujian{
|
.fujian {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.mbl_items12 {
|
.mbl_items12 {
|
||||||
width: 440px;
|
width: 440px;
|
||||||
margin-right:56px;
|
margin-right: 56px;
|
||||||
|
|
||||||
.i12_box1 {
|
.i12_box1 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 17px 0px 17px 21px;
|
padding: 17px 0px 17px 21px;
|
||||||
border: 1px solid #eff4fc;
|
border: 1px solid #eff4fc;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
.file_img {
|
.file_img {
|
||||||
width: 27px;
|
width: 27px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
background-image: url(@/assets/images/coursewareManage/imgs.png);
|
background-image: url(@/assets/images/coursewareManage/imgs.png);
|
||||||
margin-right: 22px;
|
margin-right: 22px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.file_detail {
|
.file_detail {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
margin-right: 21px;
|
margin-right: 21px;
|
||||||
|
|
||||||
.file_updata {
|
.file_updata {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.updatabox {
|
.updatabox {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 230px;
|
width: 230px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background-color: rgba(192, 192, 192, 0.25);
|
background-color: rgba(192, 192, 192, 0.25);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
||||||
.updatacolor {
|
.updatacolor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background-color: #57c887;
|
background-color: #57c887;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.updatacolor2 {
|
.updatacolor2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background-color: #ff7474;
|
background-color: #ff7474;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.updatacolor3 {
|
.updatacolor3 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background-color: #4ea6ff;
|
background-color: #4ea6ff;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.updataxq {
|
.updataxq {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
color: #57c887;
|
color: #57c887;
|
||||||
}
|
}
|
||||||
|
|
||||||
.updataxq2 {
|
.updataxq2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
color: #ff7474;
|
color: #ff7474;
|
||||||
}
|
}
|
||||||
|
|
||||||
.updataxq3 {
|
.updataxq3 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.file_operation {
|
.file_operation {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.fobox {
|
.fobox {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.items_btn {
|
.items_btn {
|
||||||
@@ -6998,8 +6993,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -440,11 +440,13 @@
|
|||||||
/>
|
/>
|
||||||
<span class="progresstext" style="margin-left: 10px"
|
<span class="progresstext" style="margin-left: 10px"
|
||||||
>{{
|
>{{
|
||||||
item.totalStuNum == 0 ? 0 :
|
item.totalStuNum == 0
|
||||||
item.finishStuNum == 0 ? 0 :
|
? 0
|
||||||
parseInt(
|
: item.finishStuNum == 0
|
||||||
(item.finishStuNum / item.totalStuNum) * 100
|
? 0
|
||||||
)
|
: parseInt(
|
||||||
|
(item.finishStuNum / item.totalStuNum) * 100
|
||||||
|
)
|
||||||
}}%</span
|
}}%</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -473,6 +475,12 @@
|
|||||||
>
|
>
|
||||||
考勤
|
考勤
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="operation"
|
||||||
|
v-if="
|
||||||
|
item.type != 2 && item.type != 6 && item.type != 9
|
||||||
|
"
|
||||||
|
></div>
|
||||||
<div
|
<div
|
||||||
class="operation"
|
class="operation"
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
@@ -1102,23 +1110,46 @@
|
|||||||
<!-- 二维码弹窗 -->
|
<!-- 二维码弹窗 -->
|
||||||
|
|
||||||
<!-- 面授管理抽屉 开始 -->
|
<!-- 面授管理抽屉 开始 -->
|
||||||
<router-face-teach-manage v-model:FaceTeachModelVisible="faceTeachModelVisible" :title="faceTeachModelVisibleTitle" :datasource="faceData" />
|
<router-face-teach-manage
|
||||||
|
v-model:FaceTeachModelVisible="faceTeachModelVisible"
|
||||||
|
:title="faceTeachModelVisibleTitle"
|
||||||
|
:datasource="faceData"
|
||||||
|
/>
|
||||||
<!-- 面授管理抽屉 结束-->
|
<!-- 面授管理抽屉 结束-->
|
||||||
|
|
||||||
<!-- 考试管理抽屉 开始-->
|
<!-- 考试管理抽屉 开始-->
|
||||||
<router-examination-manage v-model:ExaminationModelVisible="examinationModelVisible" :title="examinationModelVisibleTitle" :datasource="examinationData" :levelName="examLevelName"/>
|
<router-examination-manage
|
||||||
|
v-model:ExaminationModelVisible="examinationModelVisible"
|
||||||
|
:title="examinationModelVisibleTitle"
|
||||||
|
:datasource="examinationData"
|
||||||
|
:levelName="examLevelName"
|
||||||
|
/>
|
||||||
<!-- 考试管理抽屉 结束-->
|
<!-- 考试管理抽屉 结束-->
|
||||||
|
|
||||||
<!-- 测评管理抽屉 开始-->
|
<!-- 测评管理抽屉 开始-->
|
||||||
<router-evaluation-manage v-model:EvaluationModelVisible="evaluationModelVisible" :title="evaluationModelVisibleTitle" :datasource="evaluationData" :levelName="evaluationLevelName" />
|
<router-evaluation-manage
|
||||||
|
v-model:EvaluationModelVisible="evaluationModelVisible"
|
||||||
|
:title="evaluationModelVisibleTitle"
|
||||||
|
:datasource="evaluationData"
|
||||||
|
:levelName="evaluationLevelName"
|
||||||
|
/>
|
||||||
<!-- 测评管理抽屉 结束-->
|
<!-- 测评管理抽屉 结束-->
|
||||||
|
|
||||||
<!-- 作业管理抽屉 开始-->
|
<!-- 作业管理抽屉 开始-->
|
||||||
<router-homework-manage v-model:HomeworkModelVisible="homeworkModelVisible" :title="homeworkModelVisibleTitle" :datasource="homeworkData" />
|
<router-homework-manage
|
||||||
|
v-model:HomeworkModelVisible="homeworkModelVisible"
|
||||||
|
:title="homeworkModelVisibleTitle"
|
||||||
|
:datasource="homeworkData"
|
||||||
|
/>
|
||||||
<!-- 作业管理抽屉 结束-->
|
<!-- 作业管理抽屉 结束-->
|
||||||
|
|
||||||
<!-- 公共管理抽屉 开始-->
|
<!-- 公共管理抽屉 开始-->
|
||||||
<router-common-manage v-model:CommonModelVisible="commonModelVisible" :title="commonModelVisibleTitle" :datasource="commonData" :levelName="commonLevelName" />
|
<router-common-manage
|
||||||
|
v-model:CommonModelVisible="commonModelVisible"
|
||||||
|
:title="commonModelVisibleTitle"
|
||||||
|
:datasource="commonData"
|
||||||
|
:levelName="commonLevelName"
|
||||||
|
/>
|
||||||
<!-- 公共管理抽屉 结束-->
|
<!-- 公共管理抽屉 结束-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -1178,7 +1209,7 @@ export default {
|
|||||||
RouterExaminationManage,
|
RouterExaminationManage,
|
||||||
RouterEvaluationManage,
|
RouterEvaluationManage,
|
||||||
RouterHomeworkManage,
|
RouterHomeworkManage,
|
||||||
RouterCommonManage
|
RouterCommonManage,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -1350,20 +1381,20 @@ export default {
|
|||||||
evaluationModelVisible: false,
|
evaluationModelVisible: false,
|
||||||
homeworkModelVisible: false,
|
homeworkModelVisible: false,
|
||||||
commonModelVisible: false,
|
commonModelVisible: false,
|
||||||
faceTeachModelVisibleTitle: '',
|
faceTeachModelVisibleTitle: "",
|
||||||
examinationModelVisibleTitle: '',
|
examinationModelVisibleTitle: "",
|
||||||
evaluationModelVisibleTitle: '',
|
evaluationModelVisibleTitle: "",
|
||||||
homeworkModelVisibleTitle: '',
|
homeworkModelVisibleTitle: "",
|
||||||
commonModelVisibleTitle: '',
|
commonModelVisibleTitle: "",
|
||||||
|
|
||||||
faceData: '',
|
faceData: "",
|
||||||
examinationData: '',
|
examinationData: "",
|
||||||
evaluationData: '',
|
evaluationData: "",
|
||||||
homeworkData: '',
|
homeworkData: "",
|
||||||
commonData: '',
|
commonData: "",
|
||||||
commonLevelName: '',
|
commonLevelName: "",
|
||||||
examLevelName: '',
|
examLevelName: "",
|
||||||
evaluationLevelName: ''
|
evaluationLevelName: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const levelList = reactive({
|
const levelList = reactive({
|
||||||
@@ -1631,47 +1662,47 @@ export default {
|
|||||||
|
|
||||||
// 面授课点击管理弹框
|
// 面授课点击管理弹框
|
||||||
const faceTeachModel = (data) => {
|
const faceTeachModel = (data) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
state.faceTeachModelVisible = true;
|
state.faceTeachModelVisible = true;
|
||||||
state.faceTeachModelVisibleTitle = data.name;
|
state.faceTeachModelVisibleTitle = data.name;
|
||||||
state.faceData = data;
|
state.faceData = data;
|
||||||
// 面授课弹框名称 RouterFaceTeachManage
|
// 面授课弹框名称 RouterFaceTeachManage
|
||||||
}
|
};
|
||||||
// 考试点击管理弹框
|
// 考试点击管理弹框
|
||||||
const examinationModel = (data, levelname) => {
|
const examinationModel = (data, levelname) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
state.examLevelName = levelname;
|
state.examLevelName = levelname;
|
||||||
state.examinationModelVisible = true;
|
state.examinationModelVisible = true;
|
||||||
state.examinationModelVisibleTitle = data.name;
|
state.examinationModelVisibleTitle = data.name;
|
||||||
state.examinationData = data;
|
state.examinationData = data;
|
||||||
// 考试弹框名称 RouterExaminationManage
|
// 考试弹框名称 RouterExaminationManage
|
||||||
}
|
};
|
||||||
// 测评点击管理弹框
|
// 测评点击管理弹框
|
||||||
const evaluationModel = (data, levelname) => {
|
const evaluationModel = (data, levelname) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
state.evaluationLevelName = levelname;
|
state.evaluationLevelName = levelname;
|
||||||
state.evaluationModelVisible = true;
|
state.evaluationModelVisible = true;
|
||||||
state.evaluationModelVisibleTitle = data.name;
|
state.evaluationModelVisibleTitle = data.name;
|
||||||
state.evaluationData = data;
|
state.evaluationData = data;
|
||||||
// 测评弹框名称 RouterEvaluationManage
|
// 测评弹框名称 RouterEvaluationManage
|
||||||
}
|
};
|
||||||
// 作业点击管理弹框
|
// 作业点击管理弹框
|
||||||
const homeworkModel = (data) => {
|
const homeworkModel = (data) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
state.homeworkModelVisible = true;
|
state.homeworkModelVisible = true;
|
||||||
state.homeworkModelVisibleTitle = data.name;
|
state.homeworkModelVisibleTitle = data.name;
|
||||||
state.homeworkData = data;
|
state.homeworkData = data;
|
||||||
// 作业弹框名称 RouterHomeworkManage
|
// 作业弹框名称 RouterHomeworkManage
|
||||||
}
|
};
|
||||||
// 在线、案例、外链、评估、直播、活动点击管理弹框
|
// 在线、案例、外链、评估、直播、活动点击管理弹框
|
||||||
const commonModel = (data, levelname) => {
|
const commonModel = (data, levelname) => {
|
||||||
state.commonLevelName = levelname;
|
state.commonLevelName = levelname;
|
||||||
console.log(data)
|
console.log(data);
|
||||||
state.commonModelVisible = true;
|
state.commonModelVisible = true;
|
||||||
state.commonModelVisibleTitle = data.name;
|
state.commonModelVisibleTitle = data.name;
|
||||||
state.commonData = data;
|
state.commonData = data;
|
||||||
// 公共模块弹框名称 RouterCommonManage
|
// 公共模块弹框名称 RouterCommonManage
|
||||||
}
|
};
|
||||||
|
|
||||||
//学员管理------------------------------------------------
|
//学员管理------------------------------------------------
|
||||||
//获取学员列表
|
//获取学员列表
|
||||||
@@ -2366,7 +2397,7 @@ export default {
|
|||||||
examinationModel,
|
examinationModel,
|
||||||
evaluationModel,
|
evaluationModel,
|
||||||
homeworkModel,
|
homeworkModel,
|
||||||
commonModel
|
commonModel,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -3940,7 +3971,7 @@ export default {
|
|||||||
|
|
||||||
.operations {
|
.operations {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 200px;
|
width: 240px;
|
||||||
|
|
||||||
//flex-grow: 1;
|
//flex-grow: 1;
|
||||||
.operation {
|
.operation {
|
||||||
@@ -3948,6 +3979,8 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
width: 63px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user