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

View File

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

View File

@@ -36,8 +36,6 @@ const CancelReview = ()=>{
formState.reviewname = '' formState.reviewname = ''
formState.time = '' formState.time = ''
InitiateReviewShow.value = false; InitiateReviewShow.value = false;
teacherNames.value = []
teacherid.value = []
} }
const namelist = ref([]) const namelist = ref([])
//表格点击时间 //表格点击时间
@@ -73,8 +71,6 @@ const startReviewSave = async () => {
return message.info('请填写评审时间'); return message.info('请填写评审时间');
} }
if (!rwname.value) { if (!rwname.value) {
reviewSave({ reviewSave({
"examineId": route.query.id, "examineId": route.query.id,
@@ -84,19 +80,15 @@ const startReviewSave = async () => {
}).then(res => { }).then(res => {
console.log(res); console.log(res);
message.info('发起成功'); message.info('发起成功');
rwname.value = null rwname.value = null
searchReview() searchReview()
InitiateReviewShow.value = false InitiateReviewShow.value = false
return return
}).catch(err => { }).catch(err => {
if (err) { if (err) {
console.log(err,'错误信息'); console.log(err,'错误信息');
InitiateReviewShow.value = false InitiateReviewShow.value = false
return message.info('添加失败'); return message.info('添加失败');
} }
}) })
@@ -137,9 +129,6 @@ const startReviewSave = async () => {
}) })
} }
} }
//编辑评审 //编辑评审
const editName = ref(null) const editName = ref(null)
@@ -760,13 +749,14 @@ const closeTeacher = (item,i) => {
teacherNames.value.splice(i,1) teacherNames.value.splice(i,1)
teacherid.value.splice(i,1) teacherid.value.splice(i,1)
} }
const teacherRowSelection = { const teacherRowSelection = computed(() =>({
selectedRowKeys: teacherid.value,
onChange: async (selectedRowKeys, selectedRows) => { onChange: async (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
teacherid.value = selectedRowKeys teacherid.value = selectedRowKeys
teacherNames.value = selectedRows teacherNames.value = selectedRows
}, },
}; }));
const AddSwitch = ref(null) const AddSwitch = ref(null)
const handleChildEmit = data => { 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.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.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:'终稿已退回'},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'){ if(processData.value.secondResult == '0'){
processData.value.draftStatus = 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:'认证进行中',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.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:'终稿已退回'},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') console.log(attestation.value,'value')
@@ -1065,7 +1055,7 @@ const vwtext = ref(null)
<template v-else-if="column.key === 'draftStatus'"> <template v-else-if="column.key === 'draftStatus'">
<span> <span>
{{ text===1?'未上传':(text===2?'已退回':'已上传') }} {{ '已上传' }}
</span> </span>
</template> </template>
<template v-else-if="column.key === 'onlineLearning'"> <template v-else-if="column.key === 'onlineLearning'">