mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 02:16:45 +08:00
style:项目下作业面授导出参数错误,隐藏部分按钮
This commit is contained in:
@@ -869,7 +869,7 @@ export default {
|
||||
process.env.VUE_APP_BASE_API
|
||||
}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.projectTaskInfo.stageId
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=0`
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=2&thirdType=2`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
|
||||
@@ -274,7 +274,7 @@ export default {
|
||||
title: "工号",
|
||||
dataIndex: "studentUserNo",
|
||||
key: "studentUserNo",
|
||||
width: 50,
|
||||
width: '15%',
|
||||
align: "left",
|
||||
className: "h head",
|
||||
customRender: (text) => {
|
||||
@@ -291,8 +291,8 @@ export default {
|
||||
title: "姓名",
|
||||
dataIndex: "studentName",
|
||||
key: "studentName",
|
||||
width: 50,
|
||||
align: "left",
|
||||
width: '10%',
|
||||
align: "center",
|
||||
className: "h head",
|
||||
customRender: (text) => {
|
||||
return (
|
||||
@@ -308,7 +308,7 @@ export default {
|
||||
title: "所在部门",
|
||||
dataIndex: "studentDepartName",
|
||||
key: "studentDepartName",
|
||||
width: 60,
|
||||
width: '15%',
|
||||
align: "center",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
@@ -328,7 +328,7 @@ export default {
|
||||
title: "所在岗位",
|
||||
dataIndex: "studentJobName",
|
||||
key: "studentJobName",
|
||||
width: 60,
|
||||
width: '10%',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -348,7 +348,7 @@ export default {
|
||||
title: "作业成绩",
|
||||
dataIndex: "workScore",
|
||||
key: "workScore",
|
||||
width: 60,
|
||||
width: '10%',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -368,7 +368,7 @@ export default {
|
||||
title: "考试成绩",
|
||||
dataIndex: "examinationScore",
|
||||
key: "examinationScore",
|
||||
width: 60,
|
||||
width: '10%',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -389,7 +389,7 @@ export default {
|
||||
title: "评分",
|
||||
dataIndex: "assessmentScore",
|
||||
key: "assessmentScore",
|
||||
width: 60,
|
||||
width: '10%',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -410,7 +410,7 @@ export default {
|
||||
title: "任务状态",
|
||||
dataIndex: "finishStatus",
|
||||
key: "finishStatus",
|
||||
width: 60,
|
||||
width: '10%',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -617,7 +617,7 @@ export default {
|
||||
currentStageId: props.projectTaskInfo.stageId,
|
||||
type: 1,
|
||||
pid: props.projectTaskInfo.projectId,
|
||||
status: Number(state.projectName),
|
||||
status: state.projectName,
|
||||
studentName: state.name,
|
||||
taskId: props.projectTaskInfo.projectTaskId,
|
||||
});
|
||||
@@ -628,7 +628,7 @@ export default {
|
||||
currentStageId: props.projectTaskInfo.stageId,
|
||||
type: 1,
|
||||
pid: props.projectTaskInfo.projectId,
|
||||
status: Number(state.projectName),
|
||||
status: state.projectName,
|
||||
studentName: state.name,
|
||||
taskId: props.projectTaskInfo.projectTaskId,
|
||||
taskType: props.projectTaskInfo.type,
|
||||
@@ -683,7 +683,7 @@ export default {
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.projectTaskInfo.stageId
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}taskType=2`
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=2`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
@@ -716,12 +716,12 @@ export default {
|
||||
api
|
||||
.exportHomeWork(obj)
|
||||
.then((res) => {
|
||||
console.log("导出作业", JSON.parse(res.data).data);
|
||||
if (JSON.parse(res.data).code === 200) {
|
||||
message.destroy();
|
||||
message.success("导出作业成功");
|
||||
console.log("导出作业",res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
//message.destroy();
|
||||
//message.success("导出作业成功");
|
||||
state.exportHomeWorkV = true;
|
||||
state.downloadUrl = JSON.parse(res.data).data;
|
||||
state.downloadUrl = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@@ -503,7 +503,7 @@ export default {
|
||||
currentStageId: props.projectTaskInfo.stageId,
|
||||
type: 1,
|
||||
pid: props.projectTaskInfo.projectId,
|
||||
status: Number(state.projectName),
|
||||
status: state.projectName,
|
||||
studentName: state.name,
|
||||
taskId: props.projectTaskInfo.projectTaskId,
|
||||
taskType: props.projectTaskInfo.type,
|
||||
@@ -515,7 +515,7 @@ export default {
|
||||
currentStageId: props.projectTaskInfo.stageId,
|
||||
type: 1,
|
||||
pid: props.projectTaskInfo.projectId,
|
||||
status: Number(state.projectName),
|
||||
status: state.projectName,
|
||||
studentName: state.name,
|
||||
taskId: props.projectTaskInfo.projectTaskId,
|
||||
taskType: props.projectTaskInfo.type,
|
||||
@@ -569,7 +569,7 @@ export default {
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.projectTaskInfo.stageId
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=4`
|
||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=${4}`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
@@ -601,12 +601,12 @@ export default {
|
||||
api
|
||||
.exportHomeWork(obj)
|
||||
.then((res) => {
|
||||
console.log("导出作业", JSON.parse(res.data).data);
|
||||
if (JSON.parse(res.data).code === 200) {
|
||||
console.log("导出作业", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// message.destroy();
|
||||
//message.success("导出作业成功");
|
||||
state.exportHomeWorkV = true;
|
||||
state.downloadUrl = JSON.parse(res.data).data;
|
||||
state.downloadUrl = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@@ -624,7 +624,7 @@ export default {
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.datasource.chapterId
|
||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=2`
|
||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=${1}`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
@@ -657,12 +657,12 @@ export default {
|
||||
api
|
||||
.exportHomeWork(obj)
|
||||
.then((res) => {
|
||||
console.log("导出作业", JSON.parse(res.data).data);
|
||||
if (JSON.parse(res.data).code === 200) {
|
||||
message.destroy();
|
||||
message.success("导出作业成功");
|
||||
console.log("导出作业", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// message.destroy();
|
||||
// message.success("导出作业成功");
|
||||
state.exportHomeWorkV = true;
|
||||
state.downloadUrl = JSON.parse(res.data).data;
|
||||
state.downloadUrl = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@@ -560,7 +560,7 @@ export default {
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.datasource.chapterId
|
||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=4`
|
||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=${4}`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
@@ -592,12 +592,12 @@ export default {
|
||||
api
|
||||
.exportHomeWork(obj)
|
||||
.then((res) => {
|
||||
console.log("导出作业", JSON.parse(res.data).data);
|
||||
if (JSON.parse(res.data).code === 200) {
|
||||
console.log("导出作业", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// message.destroy();
|
||||
// message.success("导出作业成功");
|
||||
state.exportHomeWorkV = true;
|
||||
state.downloadUrl = JSON.parse(res.data).data;
|
||||
state.downloadUrl = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col v-if="type === 1">
|
||||
<!-- <a-col v-if="type === 1">
|
||||
<a-form-item title="小组名称:">
|
||||
<a-input
|
||||
class="cus-input"
|
||||
@@ -23,6 +23,7 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
-->
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="部门:">
|
||||
<div class="select in" style="width: 270px">
|
||||
@@ -98,9 +99,10 @@
|
||||
导入学员
|
||||
</a-button>
|
||||
</a-col>
|
||||
<!--
|
||||
<a-col :span="1.5" v-if="type === 1">
|
||||
<a-button class="cus-btn white"> 批量换组 </a-button>
|
||||
</a-col>
|
||||
</a-col>-->
|
||||
<a-col :span="1.5" v-if="type === 1">
|
||||
<a-button class="cus-btn white" @click="exportTaskStu">
|
||||
导出学习信息
|
||||
@@ -199,7 +201,7 @@
|
||||
<a-col>
|
||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
||||
</a-col>
|
||||
<!-- 新加 换组 通过 拒绝-->
|
||||
<!-- 新加 换组 通过 拒绝
|
||||
<a-col v-if="type === 1">
|
||||
<div
|
||||
style="
|
||||
@@ -213,6 +215,7 @@
|
||||
换组
|
||||
</div>
|
||||
</a-col>
|
||||
-->
|
||||
<a-col v-if="type === 3">
|
||||
<div
|
||||
style="
|
||||
@@ -683,8 +686,8 @@ const exportHomeWorkShow = () => {
|
||||
.exportHomeWork(obj)
|
||||
.then((res) => {
|
||||
console.log("导出作业", res.data.data);
|
||||
message.destroy();
|
||||
message.success("导出作业成功");
|
||||
//message.destroy();
|
||||
// message.success("导出作业成功");
|
||||
exportHomeWorkV.value = true;
|
||||
downloadUrl.value = res.data.data;
|
||||
})
|
||||
|
||||
@@ -1362,10 +1362,10 @@
|
||||
>
|
||||
删除
|
||||
</a-menu-item>
|
||||
<!--新加 二维码 -->
|
||||
<!--新加 二维码
|
||||
<a-menu-item @click="qrcodeVisible(record, 1)">
|
||||
二维码
|
||||
</a-menu-item>
|
||||
</a-menu-item>-->
|
||||
</a-menu>
|
||||
</template>
|
||||
<div class="fb" style="margin-left: -20px">
|
||||
|
||||
@@ -1859,9 +1859,10 @@ export default {
|
||||
title: "最近学习时间",
|
||||
dataIndex: "lastStudyTime",
|
||||
key: "lastStudyTime",
|
||||
width: 80,
|
||||
width: 120,
|
||||
align: "center",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
},
|
||||
],
|
||||
loading: false,
|
||||
@@ -3074,6 +3075,7 @@ export default {
|
||||
width: "20%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
// sorter: {
|
||||
// compare: (a, b) => a.stutime - b.stutime,
|
||||
// multiple: 3,
|
||||
|
||||
Reference in New Issue
Block a user