This commit is contained in:
zhangsir
2024-05-21 22:18:55 +08:00
parent 2c93420420
commit dce7e7fdfe
3 changed files with 15 additions and 27 deletions

View File

@@ -18,13 +18,7 @@
<div class="main">
<div class="minatitl">
<div class="up1">请下载</div>
<a
class="up2"
:href="locationHref + template"
target="_blank"
style="cursor: pointer"
>模板</a
>
<span class="up2" @click="downloadTemplate">模板</span>
<div class="up1">按要求填写数据并导入</div>
</div>
<div class="upload">
@@ -253,7 +247,9 @@ export default {
console.log("state", bool);
console.log("store", store.state.userInfo);
};
const downloadTemplate = (info) => {
window.open(`${process.env.VUE_APP_BOE_API_URL}/upload/activityfile/教师专区-导入教师信息模板.xlsx`)
}
//上传文件
const handleChange = (info) => {
console.log("info", info);
@@ -339,6 +335,7 @@ export default {
// change,
headers,
handleChange,
downloadTemplate,
BATCH_IMPORT_SCORE,
downloadEeeorData,
removeUpload,
@@ -392,6 +389,7 @@ export default {
font-weight: 400;
color: #4ea6ff;
margin-left: 4px;
cursor: pointer;
}
}
.upload {

View File

@@ -435,12 +435,12 @@ function handleOper(record, type, status = "") {
>
<template #action="{ record, column }">
<a-space>
<a-button type="link" @click="resizeRe(record,index)">
<span>{{record.status==1?'启用':'禁用'}}</span>
</a-button>
<a-button type="link" @click="deleteReview(record,index)">
<span>删除</span>
</a-button>
<a-button type="link" @click="resizeRe(record,index)">
<span>{{record.status==0?'启用':'禁用'}}</span>
</a-button>
</a-space>
</template>

View File

@@ -36,8 +36,6 @@ const CancelReview = ()=>{
formState.reviewname = ''
formState.time = ''
InitiateReviewShow.value = false;
teacherNames.value = []
teacherid.value = []
}
const namelist = ref([])
//表格点击时间
@@ -73,8 +71,6 @@ const startReviewSave = async () => {
return message.info('请填写评审时间');
}
if (!rwname.value) {
reviewSave({
"examineId": route.query.id,
@@ -84,19 +80,15 @@ const startReviewSave = async () => {
}).then(res => {
console.log(res);
message.info('发起成功');
rwname.value = null
searchReview()
InitiateReviewShow.value = false
return
}).catch(err => {
if (err) {
console.log(err,'错误信息');
InitiateReviewShow.value = false
return message.info('添加失败');
}
})
@@ -137,9 +129,6 @@ const startReviewSave = async () => {
})
}
}
//编辑评审
const editName = ref(null)
@@ -760,13 +749,14 @@ const closeTeacher = (item,i) => {
teacherNames.value.splice(i,1)
teacherid.value.splice(i,1)
}
const teacherRowSelection = {
const teacherRowSelection = computed(() =>({
selectedRowKeys: teacherid.value,
onChange: async (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
teacherid.value = selectedRowKeys
teacherNames.value = selectedRows
},
};
}));
const AddSwitch = ref(null)
const handleChildEmit = data => {
@@ -818,7 +808,7 @@ const show= async (record)=>{
{name:{0:'线上学习已完成',1:'线上学习未完成',2:'线上学习进行中'},status:processData?.value.onlineLearning,images:{0:'su2.png',1:'s2.png',2:'j1.png'},color:['#409EFF','#979797','#FFA050','#31AF0D']},
{name:{0:'线下辅导已完成',1:'线上辅导未完成',2:'线上辅导已退回'},status:processData?.value.offlineTutoring,images:{0:'su3.png',1:'s3.png',2:'e2.png'},color:['#409EFF','#979797','#FF4040','#31AF0D']},
{name:{0:'终稿已上传',1:'终稿未上传',2:'终稿已退回'},status:processData?.value.endStatus,images:{0:'su4.png',1:'s4.png',2:'e3.png'},color:['#409EFF','#979797','#FF4040','#31AF0D']},
{name:{0:'认证已通过',1:'认证未通过',2:'认证进行中',3:'认证'},status:processData?.value.reviewResult,images:{0:'success.png',1:'e1.png',2:'j2.png',3:'s5.png',},color:['#31AF0D','#FF4040','#FFA050','#979797']},
{name:{0:'认证已通过',1:'认证未通过',2:'认证',3:'认证'},status:processData?.value.reviewResult,images:{0:'success.png',1:'e1.png',2:'s5.png',3:'s5.png',},color:['#31AF0D','#FF4040','#979797','#979797']},
]
if(processData.value.secondResult == '0'){
processData.value.draftStatus = 0
@@ -834,7 +824,7 @@ const show= async (record)=>{
{name:{0:'认证已通过',1:'认证未通过',2:'认证进行中',3:'认证已报名'},status:processData?.value.reviewResultOne,images:{0:'su5.png',2:'su5.png',1:'e1.png',3:'success.png',},color:['#3DA8F0','#FF4040','#FF4040','#DEDEDE']},
{name:{0:'线下辅导已完成',1:'线下辅导未完成',2:'线下辅导已退回'},status:processData?.value.offlineTutoring,images:{0:'su3.png',1:'s3.png',2:'e2.png'},color:['#409EFF','#979797','#FF4040','#31AF0D']},
{name:{0:'终稿已上传',1:'终稿未上传',2:'终稿已退回'},status:processData?.value.endStatus,images:{0:'su4.png',1:'s4.png',2:'e3.png'},color:['#409EFF','#979797','#FF4040','#31AF0D']},
{name:{0:'认证已通过',1:'认证未通过',2:'认证进行中',3:'认证'},status:processData?.value.reviewResult,images:{0:'success.png',1:'e1.png',2:'j2.png',3:'s5.png',},color:['#31AF0D','#FF4040','#FFA050','#979797']},
{name:{0:'认证已通过',1:'认证未通过',2:'认证',3:'认证'},status:processData?.value.reviewResult,images:{0:'success.png',1:'e1.png',2:'s5.png',3:'s5.png',},color:['#31AF0D','#FF4040','#979797','#979797']},
]
}
console.log(attestation.value,'value')
@@ -1065,7 +1055,7 @@ const vwtext = ref(null)
<template v-else-if="column.key === 'draftStatus'">
<span>
{{ text===1?'未上传':(text===2?'已退回':'已上传') }}
{{ '已上传' }}
</span>
</template>
<template v-else-if="column.key === 'onlineLearning'">