mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
Merge remote-tracking branch 'origin/zcwy_0712' into zcwy_0827_pingcode817
This commit is contained in:
@@ -374,7 +374,9 @@ export function usePage(_url, params, init = true,listing = false) {
|
|||||||
state.totalPage = r.data.total/10 || 1;
|
state.totalPage = r.data.total/10 || 1;
|
||||||
state.total = r.data.total;
|
state.total = r.data.total;
|
||||||
state.loading = false;
|
state.loading = false;
|
||||||
});
|
}).catch(err => {
|
||||||
|
state.loading = false;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
init && fetch();
|
init && fetch();
|
||||||
@@ -498,6 +500,9 @@ export async function request(_url, params) {
|
|||||||
if (res.code === 0 || res.code === 200) {
|
if (res.code === 0 || res.code === 200) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
if (res.code === 4 ){
|
||||||
|
return Promise.reject(res);
|
||||||
|
}
|
||||||
if (res.code === 1000 || res.code === 1002) {
|
if (res.code === 1000 || res.code === 1002) {
|
||||||
window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath)
|
window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath)
|
||||||
localStorage.removeItem('refreshPage')
|
localStorage.removeItem('refreshPage')
|
||||||
|
|||||||
@@ -491,7 +491,7 @@
|
|||||||
{
|
{
|
||||||
name: "感恩教师",
|
name: "感恩教师",
|
||||||
}, {
|
}, {
|
||||||
name:'认证讲师库(2023)'
|
name:'认证讲师库'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -394,7 +394,7 @@
|
|||||||
circle: selectedKeys[0] === 'sub22-4' ? false : true,
|
circle: selectedKeys[0] === 'sub22-4' ? false : true,
|
||||||
}"
|
}"
|
||||||
></span>
|
></span>
|
||||||
<router-link to="/teachertopic">认证讲师库(2023)</router-link>
|
<router-link to="/teachertopic">认证讲师库</router-link>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="sub22-5" v-if="checkMenu('tooldown')">
|
<a-menu-item key="sub22-5" v-if="checkMenu('tooldown')">
|
||||||
<span
|
<span
|
||||||
@@ -935,7 +935,7 @@ export default {
|
|||||||
href: "/teachertopic",
|
href: "/teachertopic",
|
||||||
openKeys: "sub22",
|
openKeys: "sub22",
|
||||||
selectedKeys: "sub22-4",
|
selectedKeys: "sub22-4",
|
||||||
pagename: "认证讲师库(2023)",
|
pagename: "认证讲师库",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: "/tooldown",
|
href: "/tooldown",
|
||||||
|
|||||||
@@ -487,18 +487,20 @@ const columns = ref([
|
|||||||
key: "teacher",
|
key: "teacher",
|
||||||
width: "20%",
|
width: "20%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
const teachers = record.offteachers;
|
// const teachers = record.offteachers;
|
||||||
return teachers.map((teacher, index) => {
|
// return teachers.map((teacher, index) => {
|
||||||
// 如果需要显示为列表形式
|
// // 如果需要显示为列表形式
|
||||||
return (
|
// return (
|
||||||
<div key={index}>
|
// <div key={index}>
|
||||||
{teacher.teacherName}
|
// {teacher.teacherName}
|
||||||
{index !== teachers.length - 1 && ', '}
|
// {index !== teachers.length - 1 && ', '}
|
||||||
</div>
|
// </div>
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
},
|
return record.offteachers.map(item=>item.teacherName).join(',')
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: 0,
|
tableDataTotal: 0,
|
||||||
projectName: undefined,
|
projectName: null,
|
||||||
projectNameListNot: [
|
projectNameListNot: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -377,7 +377,7 @@ export default {
|
|||||||
ctx.emit("update:Tvisible", false);
|
ctx.emit("update:Tvisible", false);
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = undefined;
|
state.projectName = null;
|
||||||
state.tabledata = [];
|
state.tabledata = [];
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bol) => {
|
const afterVisibleChange = (bol) => {
|
||||||
@@ -389,6 +389,9 @@ export default {
|
|||||||
};
|
};
|
||||||
const selectProjectName = (value) => {
|
const selectProjectName = (value) => {
|
||||||
state.projectName = value;
|
state.projectName = value;
|
||||||
|
if(value === undefined){
|
||||||
|
state.projectName = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
//催促
|
//催促
|
||||||
const godie = () => {
|
const godie = () => {
|
||||||
@@ -515,7 +518,7 @@ export default {
|
|||||||
state.tableDataTotalLoading = true;
|
state.tableDataTotalLoading = true;
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = "";
|
state.projectName = null;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: 0,
|
tableDataTotal: 0,
|
||||||
projectName: undefined,
|
projectName: null,
|
||||||
projectNameListNot: [
|
projectNameListNot: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -384,7 +384,7 @@ export default {
|
|||||||
ctx.emit("update:CommonModelVisible", false);
|
ctx.emit("update:CommonModelVisible", false);
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = undefined;
|
state.projectName = null;
|
||||||
state.tabledata = [];
|
state.tabledata = [];
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bol) => {
|
const afterVisibleChange = (bol) => {
|
||||||
@@ -396,6 +396,9 @@ export default {
|
|||||||
};
|
};
|
||||||
const selectProjectName = (value) => {
|
const selectProjectName = (value) => {
|
||||||
state.projectName = value;
|
state.projectName = value;
|
||||||
|
if(value === undefined){
|
||||||
|
state.projectName = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
//催促
|
//催促
|
||||||
const godie = () => {
|
const godie = () => {
|
||||||
@@ -523,7 +526,7 @@ export default {
|
|||||||
state.tableDataTotalLoading = true;
|
state.tableDataTotalLoading = true;
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = undefined;
|
state.projectName = null;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -442,6 +442,10 @@ export default {
|
|||||||
|
|
||||||
{/* 导出数据 */ }
|
{/* 导出数据 */ }
|
||||||
function exportData() {
|
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?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}`)
|
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}`)
|
||||||
|
|
||||||
|
|||||||
@@ -618,7 +618,7 @@ function exportTaskStu() {
|
|||||||
window.open(
|
window.open(
|
||||||
`${
|
`${
|
||||||
process.env.VUE_APP_BASE_API
|
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}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2001,16 +2001,17 @@ const columns6 = [
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
const teachers = record.offteachers;
|
// const teachers = record.offteachers;
|
||||||
return teachers.map((teacher, index) => {
|
// return teachers.map((teacher, index) => {
|
||||||
// 如果需要显示为列表形式
|
// // 如果需要显示为列表形式
|
||||||
return (
|
// return (
|
||||||
<div key={index}>
|
// <div key={index}>
|
||||||
{teacher.teacherName}
|
// {teacher.teacherName}
|
||||||
{index !== teachers.length - 1 && ', '}
|
// {index !== teachers.length - 1 && ', '}
|
||||||
</div>
|
// </div>
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
|
return record.offteachers.map(item=>item.teacherName).join(',')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2277,6 +2278,7 @@ export default defineComponent({
|
|||||||
const durationText = computed(() => state.xjkkinputV3?.length?dayjs(state.xjkkinputV3[1]).diff(dayjs(state.xjkkinputV3[0]),'minute'):'请输入持续时间');
|
const durationText = computed(() => state.xjkkinputV3?.length?dayjs(state.xjkkinputV3[1]).diff(dayjs(state.xjkkinputV3[0]),'minute'):'请输入持续时间');
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
tableCoursePlanLoading: false,
|
||||||
permissions:null,
|
permissions:null,
|
||||||
createId:null,
|
createId:null,
|
||||||
workInfo: {},
|
workInfo: {},
|
||||||
@@ -3581,6 +3583,7 @@ function onFocusEnd(){
|
|||||||
// 渲染开课操作
|
// 渲染开课操作
|
||||||
const getTableDate3 = async (type) => {
|
const getTableDate3 = async (type) => {
|
||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
|
state.tableCoursePlanLoading = true
|
||||||
// let datas = state.tableData6;
|
// let datas = state.tableData6;
|
||||||
let beginTime = "";
|
let beginTime = "";
|
||||||
let endTime = "";
|
let endTime = "";
|
||||||
@@ -3635,6 +3638,7 @@ function onFocusEnd(){
|
|||||||
itm.pageNo = pageNo;
|
itm.pageNo = pageNo;
|
||||||
});
|
});
|
||||||
state.tableData6 = datas;
|
state.tableData6 = datas;
|
||||||
|
state.tableCoursePlanLoading = false
|
||||||
console.log("state.tableData6", state.tableData6);
|
console.log("state.tableData6", state.tableData6);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1635,7 +1635,7 @@ export default {
|
|||||||
var day = dayjs(new Date()).date();
|
var day = dayjs(new Date()).date();
|
||||||
console.log("initTime year:",year,"month:",month,"day:",day);
|
console.log("initTime year:",year,"month:",month,"day:",day);
|
||||||
var year1 = year;
|
var year1 = year;
|
||||||
var month1 = parseInt(month) - 5;
|
var month1 = parseInt(month) - 1;
|
||||||
if(month1<=0){
|
if(month1<=0){
|
||||||
year1 = parseInt(year1) - 1;
|
year1 = parseInt(year1) - 1;
|
||||||
month1 = 12 - (Math.abs(month1)%12);
|
month1 = 12 - (Math.abs(month1)%12);
|
||||||
|
|||||||
Reference in New Issue
Block a user