讲师认证管理认证

This commit is contained in:
zhangsir
2024-05-13 22:39:57 +08:00
parent 3033a32a7f
commit 3d0915f7ec
17 changed files with 60 additions and 18 deletions

View File

@@ -127,3 +127,5 @@ export const backDraft = (data) => http.post('/activityApi/examine/rejected',dat
export const getDataById = (data) => http.post('/activityApi/teacher/getDataById',data)
//获取认证状态
export const getCertificationProcess = (data) => http.post('/activityApi/teacher/getCertificationProcess',data)
//编辑认证
export const updateExamine = (data) => http.post('/activityApi/examine/updateExamine',data)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -1,7 +1,7 @@
<script setup >
import { ref,onMounted } from 'vue';
import { useRoute, useRouter } from 'vue-router'
import {getexamineList,CreateAuthentication,delExamine,getOnlineLearningList,deleteCourse,addCourse} from '@/api/examineApi.js'
import {getexamineList,CreateAuthentication,delExamine,getOnlineLearningList,deleteCourse,addCourse,updateExamine} from '@/api/examineApi.js'
import dialog from "@/utils/dialog";
import DropDown from "@/components/common/DropDown";
import OwnerTableModelStudent from "./tablemodel";
@@ -112,8 +112,22 @@ const handleOk = async () => {
getlist()
})
}
const handleEdit = async () => {
console.log('编辑')
visible.value = false
await updateExamine({
name:createParam.value.name,
cover:createParam.value.cover,
id:createParam.value.id,
description: createParam.value.description
}).then(res=>{
getlist()
})
}
const editId = ref('')
//编辑认证
const editFee = (record) => {
editId.value = record.id
console.log(record,'record')
visible.value = true
createParam.value = {...record}
@@ -130,6 +144,7 @@ const OnlineLearning = async () => {
}
//创建认证
const createData = () => {
editId.value = ''
createParam.value = {
name: '',
description: '',
@@ -449,7 +464,7 @@ function handleOper(record, type, status = "") {
<a-pagination :defaultPageSize="pageSize" :showSizeChanger="false" v-model:current="current1" show-quick-jumper :total="total" @change="onChange" />
</div>
<!--创建认证和编辑认证 -->
<a-modal v-model:visible="visible" title="编辑认证" @ok="handleOk" width="610px">
<a-modal v-model:visible="visible" title="编辑认证" @ok="!editId?handleOk():handleEdit()" width="610px">
<a-form class="form_item">
<a-form-item :rules="[{ required: true, message: 'Please input your password!' }]" label="认证项目名称" style="width: 381px;margin-left: 32px;margin-top: 24px">

View File

@@ -221,17 +221,7 @@ const columnsTeacher = [
dataIndex: 'reviewTime',
},
]
//认证流程
const attestation = [
{name:'初稿已上传',success:'su3.png',error:'',initial:''},
{name:'线上学习已完成',success:'su4.png',error:'',initial:'s1.png'},
{name:'线下辅导已完成',success:'su5.png',error:'',initial:'s2.png'},
{name:'终稿已上传',success:'su1.png',error:'',initial:'s3.png'},
{name:'认证未通过',success:'su2.png',error:'e1.png',initial:'s4.png'},
{name:'线下辅导已完成',success:'su5.png',error:'',initial:'s2.png'},
{name:'终稿已上传',success:'su1.png',error:'',initial:'s3.png'},
{name:'认证',success:'su2.png',error:'e1.png',initial:'s4.png'},
]
//下载课件
const downLoadCoures = (id) => {
console.log(id,'id')
@@ -701,6 +691,7 @@ const activeKey = ref('1');
const showViewInstructor =ref(false)
const techerDetail = ref(null)
const processData = ref()
const attestation = ref([])
const show= async (record)=>{
showViewInstructor.value=true
await getDataById({teacherId:record.teacherId}).then(res=>{
@@ -712,7 +703,41 @@ const show= async (record)=>{
})
await getCertificationProcess({teacherId:record.teacherId}).then(res=>{
console.log(res,'getCertificationProcess')
processData = res.data
processData.value = res.data
//认证流程
attestation.value =[
//0: 已上传 1: 未上传 2:已退回
{name:{0:'初稿已上传',1:'初稿未上传',2:'初稿已退回'},status:processData?.value.draftStatus,images:{
0:'su3.png',
1:'su3.png',
2:''
}},
{name:{0:'线上学习已完成',1:'线上学习未完成',2:'线上学习已退回'},status:processData?.value.onlineLearning,images:{
0:'su4.png',
1:'s1.png',
2:''
}},
{name:{0:'线下辅导已完成',1:'线上辅导未完成',2:'线上辅导已退回'},status:processData?.value.offlineTutoring,images:{
0:'su5.png',
1:'s2.png',
2:''
}},
{name:{0:'终稿已上传',1:'终稿未上传',2:'终稿已退回'},status:processData?.value.endStatus,images:{
0:'su1.png',
1:'s3.png',
2:''
}},
{name:{0:'认证已通过',1:'认证未通过',2:'认证进行中',3:'认证已报名'},status:processData?.value.reviewResult,images:{
0:'su2.png',
1:'s4.png',
2:'e1.png',
3:'e1.png',
}},
// {name:'线下辅导已完成',success:'su5.png',error:'',initial:'s2.png'},
// {name:'终稿已上传',success:'su1.png',error:'',initial:'s3.png'},
// {name:'认证',success:'su2.png',error:'e1.png',initial:'s4.png'},
]
console.log(attestation.value,'value')
})
}
const returnPage = (record) => {
@@ -1242,11 +1267,11 @@ const vwtext = ref(null)
认证流程
</div>
<div style="margin-top: 13px; height: 125px;width: 100%;display: flex;align-items: center;justify-content: center;" >
<div class="step_box" v-for="item in 5">
<div v-if="item != 1" style="height: 1px;width: 81px;background-color: #DEDEDE;"></div>
<div class="step_box" v-for="(item,index) in attestation" :key="index">
<div v-if="index != 0" style="height: 1px;width: 81px;background-color: #DEDEDE;"></div>
<div style="display: flex;width: 70px;height: 78px;flex-direction: column;align-items: center">
<img src="../../assets/8.png" alt="">
<div style="color: #409EFF;font-size: 14px;">初稿已上传</div>
<img :src="require(`../../assets/images/gratefulteacher/${item.images[item.status]}`)" alt="">
<div style="color: #409EFF;font-size: 14px;">{{item.name[item.status]}}</div>
</div>
</div>
<!-- <div style="display: flex;width: 70px;height: 78px;flex-direction: column;align-items: center">