mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 01:06:45 +08:00
讲师管理bug
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,9 +595,18 @@ 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)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user