Merge remote-tracking branch 'origin/zcwy_0712' into zcwy_0827_pingcode817

This commit is contained in:
zhangsir
2024-09-27 16:11:23 +08:00
10 changed files with 54 additions and 33 deletions

View File

@@ -491,7 +491,7 @@
{
name: "感恩教师",
}, {
name:'认证讲师库2023'
name:'认证讲师库'
}
];
}

View File

@@ -394,7 +394,7 @@
circle: selectedKeys[0] === 'sub22-4' ? false : true,
}"
></span>
<router-link to="/teachertopic">认证讲师库2023</router-link>
<router-link to="/teachertopic">认证讲师库</router-link>
</a-menu-item>
<a-menu-item key="sub22-5" v-if="checkMenu('tooldown')">
<span
@@ -935,7 +935,7 @@ export default {
href: "/teachertopic",
openKeys: "sub22",
selectedKeys: "sub22-4",
pagename: "认证讲师库2023",
pagename: "认证讲师库",
},
{
href: "/tooldown",

View File

@@ -487,18 +487,20 @@ const columns = ref([
key: "teacher",
width: "20%",
align: "center",
ellipsis: true,
customRender: ({ record }) => {
const teachers = record.offteachers;
return teachers.map((teacher, index) => {
// 如果需要显示为列表形式
return (
<div key={index}>
{teacher.teacherName}
{index !== teachers.length - 1 && ', '}
</div>
);
});
},
// const teachers = record.offteachers;
// return teachers.map((teacher, index) => {
// // 如果需要显示为列表形式
// return (
// <div key={index}>
// {teacher.teacherName}
// {index !== teachers.length - 1 && ', '}
// </div>
// );
// });
return record.offteachers.map(item=>item.teacherName).join(',')
},
},
{

View File

@@ -189,7 +189,7 @@ export default {
pageSize: 10,
currentPage: 1,
tableDataTotal: 0,
projectName: undefined,
projectName: null,
projectNameListNot: [
{
id: 1,
@@ -377,7 +377,7 @@ export default {
ctx.emit("update:Tvisible", false);
state.currentPage = 1;
state.name = "";
state.projectName = undefined;
state.projectName = null;
state.tabledata = [];
};
const afterVisibleChange = (bol) => {
@@ -389,6 +389,9 @@ export default {
};
const selectProjectName = (value) => {
state.projectName = value;
if(value === undefined){
state.projectName = null;
}
};
//催促
const godie = () => {
@@ -515,7 +518,7 @@ export default {
state.tableDataTotalLoading = true;
state.currentPage = 1;
state.name = "";
state.projectName = "";
state.projectName = null;
getData();
}

View File

@@ -192,7 +192,7 @@ export default {
pageSize: 10,
currentPage: 1,
tableDataTotal: 0,
projectName: undefined,
projectName: null,
projectNameListNot: [
{
id: 1,
@@ -384,7 +384,7 @@ export default {
ctx.emit("update:CommonModelVisible", false);
state.currentPage = 1;
state.name = "";
state.projectName = undefined;
state.projectName = null;
state.tabledata = [];
};
const afterVisibleChange = (bol) => {
@@ -396,6 +396,9 @@ export default {
};
const selectProjectName = (value) => {
state.projectName = value;
if(value === undefined){
state.projectName = null;
}
};
//催促
const godie = () => {
@@ -523,7 +526,7 @@ export default {
state.tableDataTotalLoading = true;
state.currentPage = 1;
state.name = "";
state.projectName = undefined;
state.projectName = null;
getData();
}

View File

@@ -442,6 +442,10 @@ export default {
{/* 导出数据 */ }
function exportData() {
if(state.tabledata.length==0){
message.error("没有数据可以导出");
return
}
// window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`)
window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?currentStageId=${props.datasource.chapterId}&type=${1}&pid=${props.datasource.routerId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&taskType=${props.datasource.type}`)

View File

@@ -618,7 +618,7 @@ function exportTaskStu() {
window.open(
`${
process.env.VUE_APP_BASE_API
}/admin/student/exportTaskStudent?type=${1}&pid=${props.id}`
}/admin/student/exportTaskStudent?type=${1}&pid=${props.id}&studentName=${tableParam.value.studentName === null ?'':tableParam.value.studentName}&studentDepartName=${tableParam.value.studentDepartName===null?'':tableParam.value.studentDepartName}&topFlag=${tableParam.value.topFlag===null?'':tableParam.value.topFlag}`
);
}