讲师管理bug

This commit is contained in:
zhangsir
2024-11-19 10:56:57 +08:00
parent 430f8e09b2
commit 957b8beed7
4 changed files with 22 additions and 10 deletions

View File

@@ -679,7 +679,7 @@ export default {
getTeacherById({id:state.id}).then((res) => {
console.log("外部讲师详情", res.data);
state.formParam = res.data.data
state.formParam.description = state.formParam.description === null ? '' : state.formParam.description
state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description
// state.formParam.photo = state.formParam.photo === null ? userInfo.value?.avatar : state.formParam.photo
})
.catch((err) => {

View File

@@ -1203,9 +1203,9 @@ export default {
// objA.neworgName= objA.neworgName[objA.neworgName.length-1]
// }
state.formParam = res.data.data
state.formParam.description = state.formParam.description === null ? '' : state.formParam.description
state.formParam.workExp0erience = state.formParam.workExperience === null ? '' : state.formParam.workExperience
state.formParam.courses = state.formParam.courses === null ? '' : state.formParam.courses
state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description
state.formParam.workExperience = state.formParam.workExperience == null ? '<p><br></p>' : state.formParam.workExperience
state.formParam.courses = state.formParam.courses == null ? '<p><br></p>' : state.formParam.courses
// state.formParam.photo = state.formParam.photo === null ? avatar : state.formParam.photo
state.tSystemNames.systemName = res.data.data.tsystemName
state.tSystemNames.systemId = res.data.data.tsystemId

View File

@@ -303,7 +303,7 @@
<script lang="jsx">
import { ref, reactive,toRefs,watch,onMounted,computed } from 'vue'
import { submitApproval,updateTeacherFee,getTeacherFeeDetail,withdrawRecord,queryById,queryExpnseByBillId,CreateSummaryAgain, } from "../../api/lecturerFeeManagement";
import { isConfirm,updateTeacherFee,getTeacherFeeDetail,withdrawRecord,queryById,queryExpnseByBillId,CreateSummaryAgain, } from "../../api/lecturerFeeManagement";
import SearchTeacher from "@/components/project/SearchTeacher";
import { useRouter,useRoute } from 'vue-router'
import dialog from '@/utils/dialog'
@@ -428,6 +428,9 @@ export default {
content: '正在重新汇总数据,请稍后...',
ok: () => {
CreateSummaryAgain(route.query.id).then(res=>{
queryById({id: state.paramsId}).then(res=>{
state.formData = res.data.data
})
search();
}).catch(err=>{
message.destroy()
@@ -592,8 +595,17 @@ export default {
dialog({
content: '是否确定提交',
ok: ()=>{
submitApproval().then(res=>{
closeDrawer()
isConfirm({
id: route.query.id,
status: 2
}).then(res=>{
if(res.data.code == 200){
message.success('提交成功')
closeDrawer();
}
}).catch(err=>{
message.destroy()
message.error(err.data.msg)
})
}
})

View File

@@ -57,7 +57,7 @@
<span class="line" ></span>
<a-descriptions title="其他信息" bordered :column="4" :contentStyle="rowCenter" :labelStyle="rowCenters" >
<!-- 一层 -->
<a-descriptions-item label="讲师介绍" :span="4" >
<a-descriptions-item style="max-width: 200px;" label="讲师介绍" :span="4" >
<div v-if="formParam.description !=null&&resp(formParam.description)" style="min-width: 500px;" v-html="formParam.description" ></div>
<div v-else>-</div>
</a-descriptions-item>
@@ -425,7 +425,7 @@ const handleup = ()=>{
// sysTypeOptions,
TeacherSystem,
rowCenter:{"text-align":"left"},
rowCenters:{"text-align":"center"},
rowCenters:{"text-align":"center",'width':'160px'},
teacherrecordstableData,
teacherrecordsColumns,
resp,