This commit is contained in:
ocya
2024-05-12 00:29:58 +08:00
parent babe05c7d4
commit a4001cfcf2
4 changed files with 16 additions and 6 deletions

View File

@@ -96,11 +96,11 @@
</div> </div>
<div class="cancel" style="margin-left: 15px"></div> <div class="cancel" style="margin-left: 15px"></div>
</div> </div>
<!-- <div v-if="downloadErrUrl !== ''" class="defeat"> <div class="defeat">
<div class="detext" @click="downloadEeeorData"> <div class="detext" @click="downloadEeeorData">
下载失败数据 下载失败数据
</div> </div>
</div> --> </div>
</div> </div>
</div> </div>
<div <div
@@ -221,6 +221,7 @@ export default {
showBottomBar: false, // 显示底部成功条数和失败条数 showBottomBar: false, // 显示底部成功条数和失败条数
fileName: "", fileName: "",
successIds: [], successIds: [],
errorIds: [],
}); });
const headers = { token: getCookieForName("token") }; const headers = { token: getCookieForName("token") };
const userInfo = computed(() => store.state.userInfo); const userInfo = computed(() => store.state.userInfo);
@@ -233,6 +234,7 @@ export default {
console.log(res,'res') console.log(res,'res')
}) })
state.successIds = [] state.successIds = []
state.errorIds = []
// clearInterval(state.timers); // clearInterval(state.timers);
state.fileList = []; state.fileList = [];
state.uploadpercent = -1; state.uploadpercent = -1;
@@ -283,6 +285,7 @@ export default {
examineId: props.courseId, examineId: props.courseId,
}); });
state.successIds = info.file.response.data.successIds state.successIds = info.file.response.data.successIds
state.errorIds = info.file.response.data.failIds
state.fileName = info.file.name; state.fileName = info.file.name;
let i = 0; let i = 0;
// state.timers = setInterval(() => { // state.timers = setInterval(() => {
@@ -325,7 +328,7 @@ export default {
// 下载失败数据 // 下载失败数据
const downloadEeeorData = () => { const downloadEeeorData = () => {
if (state.downloadErrUrl !== "") { if (state.downloadErrUrl !== "") {
window.open(process.env.VUE_APP_FILE_PATH + state.downloadErrUrl); window.open(`/activityApi/teacher/errorExport?ids=${state.errorIds}`);
} }
}; };

View File

@@ -115,6 +115,7 @@ const handleOk = async () => {
//编辑认证 //编辑认证
const editFee = (record) => { const editFee = (record) => {
console.log(record,'record') console.log(record,'record')
visible.value = true
createParam.value = {...record} createParam.value = {...record}
} }
//线上学习课列表显示 //线上学习课列表显示
@@ -136,6 +137,7 @@ const deleteReview = (record) =>{
console.log(res,'res') console.log(res,'res')
if(res.code == 200){ if(res.code == 200){
message.success('删除成功') message.success('删除成功')
OnlineLearning()
} }
}) })
} }

View File

@@ -559,7 +559,7 @@ const options1 = ref([{
</div> </div>
<div> <div>
<img src="../../assets/images/projectadd/return.png" alt=""> <img src="../../assets/images/projectadd/return.png" alt="">
<el-button type="primary" text>返回</el-button> <el-button type="primary" text @click="$router.push({path:'/InstructorCertification'}) ">返回</el-button>
</div> </div>
</div> </div>

View File

@@ -383,7 +383,12 @@
const teaunm = ref([]) const teaunm = ref([])
watch(stuSelectRows,(val)=>{ watch(stuSelectRows,(val)=>{
console.log(val,'val') console.log(val,'val')
teaunm.value = val.map((res,index)=>res.id) teaunm.value = val.map((res,index)=>{
return {
teacherName:res.realName,
teacherNo:res.userNo
}
})
console.log(teaunm.value); console.log(teaunm.value);
}) })
const person = ref(false); const person = ref(false);
@@ -641,7 +646,7 @@ const route = useRoute()
nameSearch.value.keyword = ""; nameSearch.value.keyword = "";
addTutor({ addTutor({
examineId:route.query.id.toString(), examineId:route.query.id.toString(),
teacherIds: teaunm.value teachers: teaunm.value
}).then(() => { }).then(() => {
deleteDepSelect(); deleteDepSelect();
emit("finash", true); emit("finash", true);