讲师认证管理认证
@@ -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 getDataById = (data) => http.post('/activityApi/teacher/getDataById',data)
|
||||||
//获取认证状态
|
//获取认证状态
|
||||||
export const getCertificationProcess = (data) => http.post('/activityApi/teacher/getCertificationProcess',data)
|
export const getCertificationProcess = (data) => http.post('/activityApi/teacher/getCertificationProcess',data)
|
||||||
|
//编辑认证
|
||||||
|
export const updateExamine = (data) => http.post('/activityApi/examine/updateExamine',data)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/images/gratefulteacher/s5.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/gratefulteacher/su5.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@@ -1,7 +1,7 @@
|
|||||||
<script setup >
|
<script setup >
|
||||||
import { ref,onMounted } from 'vue';
|
import { ref,onMounted } from 'vue';
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
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 dialog from "@/utils/dialog";
|
||||||
import DropDown from "@/components/common/DropDown";
|
import DropDown from "@/components/common/DropDown";
|
||||||
import OwnerTableModelStudent from "./tablemodel";
|
import OwnerTableModelStudent from "./tablemodel";
|
||||||
@@ -112,8 +112,22 @@ const handleOk = async () => {
|
|||||||
getlist()
|
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) => {
|
const editFee = (record) => {
|
||||||
|
editId.value = record.id
|
||||||
console.log(record,'record')
|
console.log(record,'record')
|
||||||
visible.value = true
|
visible.value = true
|
||||||
createParam.value = {...record}
|
createParam.value = {...record}
|
||||||
@@ -130,6 +144,7 @@ const OnlineLearning = async () => {
|
|||||||
}
|
}
|
||||||
//创建认证
|
//创建认证
|
||||||
const createData = () => {
|
const createData = () => {
|
||||||
|
editId.value = ''
|
||||||
createParam.value = {
|
createParam.value = {
|
||||||
name: '',
|
name: '',
|
||||||
description: '',
|
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" />
|
<a-pagination :defaultPageSize="pageSize" :showSizeChanger="false" v-model:current="current1" show-quick-jumper :total="total" @change="onChange" />
|
||||||
</div>
|
</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 class="form_item">
|
||||||
|
|
||||||
<a-form-item :rules="[{ required: true, message: 'Please input your password!' }]" label="认证项目名称" style="width: 381px;margin-left: 32px;margin-top: 24px">
|
<a-form-item :rules="[{ required: true, message: 'Please input your password!' }]" label="认证项目名称" style="width: 381px;margin-left: 32px;margin-top: 24px">
|
||||||
|
|||||||
@@ -221,17 +221,7 @@ const columnsTeacher = [
|
|||||||
dataIndex: 'reviewTime',
|
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) => {
|
const downLoadCoures = (id) => {
|
||||||
console.log(id,'id')
|
console.log(id,'id')
|
||||||
@@ -701,6 +691,7 @@ const activeKey = ref('1');
|
|||||||
const showViewInstructor =ref(false)
|
const showViewInstructor =ref(false)
|
||||||
const techerDetail = ref(null)
|
const techerDetail = ref(null)
|
||||||
const processData = ref()
|
const processData = ref()
|
||||||
|
const attestation = ref([])
|
||||||
const show= async (record)=>{
|
const show= async (record)=>{
|
||||||
showViewInstructor.value=true
|
showViewInstructor.value=true
|
||||||
await getDataById({teacherId:record.teacherId}).then(res=>{
|
await getDataById({teacherId:record.teacherId}).then(res=>{
|
||||||
@@ -712,7 +703,41 @@ const show= async (record)=>{
|
|||||||
})
|
})
|
||||||
await getCertificationProcess({teacherId:record.teacherId}).then(res=>{
|
await getCertificationProcess({teacherId:record.teacherId}).then(res=>{
|
||||||
console.log(res,'getCertificationProcess')
|
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) => {
|
const returnPage = (record) => {
|
||||||
@@ -1242,11 +1267,11 @@ const vwtext = ref(null)
|
|||||||
认证流程
|
认证流程
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 13px; height: 125px;width: 100%;display: flex;align-items: center;justify-content: center;" >
|
<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 class="step_box" v-for="(item,index) in attestation" :key="index">
|
||||||
<div v-if="item != 1" style="height: 1px;width: 81px;background-color: #DEDEDE;"></div>
|
<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">
|
<div style="display: flex;width: 70px;height: 78px;flex-direction: column;align-items: center">
|
||||||
<img src="../../assets/8.png" alt="">
|
<img :src="require(`../../assets/images/gratefulteacher/${item.images[item.status]}`)" alt="">
|
||||||
<div style="color: #409EFF;font-size: 14px;">初稿已上传</div>
|
<div style="color: #409EFF;font-size: 14px;">{{item.name[item.status]}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="display: flex;width: 70px;height: 78px;flex-direction: column;align-items: center">
|
<!-- <div style="display: flex;width: 70px;height: 78px;flex-direction: column;align-items: center">
|
||||||
|
|||||||