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) => {
|
getTeacherById({id:state.id}).then((res) => {
|
||||||
console.log("外部讲师详情", res.data);
|
console.log("外部讲师详情", res.data);
|
||||||
state.formParam = res.data.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
|
// state.formParam.photo = state.formParam.photo === null ? userInfo.value?.avatar : state.formParam.photo
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
@@ -1203,9 +1203,9 @@ export default {
|
|||||||
// objA.neworgName= objA.neworgName[objA.neworgName.length-1]
|
// objA.neworgName= objA.neworgName[objA.neworgName.length-1]
|
||||||
// }
|
// }
|
||||||
state.formParam = res.data.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.workExp0erience = state.formParam.workExperience === null ? '' : state.formParam.workExperience
|
state.formParam.workExperience = state.formParam.workExperience == null ? '<p><br></p>' : state.formParam.workExperience
|
||||||
state.formParam.courses = state.formParam.courses === null ? '' : state.formParam.courses
|
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.formParam.photo = state.formParam.photo === null ? avatar : state.formParam.photo
|
||||||
state.tSystemNames.systemName = res.data.data.tsystemName
|
state.tSystemNames.systemName = res.data.data.tsystemName
|
||||||
state.tSystemNames.systemId = res.data.data.tsystemId
|
state.tSystemNames.systemId = res.data.data.tsystemId
|
||||||
|
|||||||
@@ -303,7 +303,7 @@
|
|||||||
|
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { ref, reactive,toRefs,watch,onMounted,computed } from 'vue'
|
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 SearchTeacher from "@/components/project/SearchTeacher";
|
||||||
import { useRouter,useRoute } from 'vue-router'
|
import { useRouter,useRoute } from 'vue-router'
|
||||||
import dialog from '@/utils/dialog'
|
import dialog from '@/utils/dialog'
|
||||||
@@ -428,6 +428,9 @@ export default {
|
|||||||
content: '正在重新汇总数据,请稍后...',
|
content: '正在重新汇总数据,请稍后...',
|
||||||
ok: () => {
|
ok: () => {
|
||||||
CreateSummaryAgain(route.query.id).then(res=>{
|
CreateSummaryAgain(route.query.id).then(res=>{
|
||||||
|
queryById({id: state.paramsId}).then(res=>{
|
||||||
|
state.formData = res.data.data
|
||||||
|
})
|
||||||
search();
|
search();
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
message.destroy()
|
message.destroy()
|
||||||
@@ -592,9 +595,18 @@ export default {
|
|||||||
dialog({
|
dialog({
|
||||||
content: '是否确定提交',
|
content: '是否确定提交',
|
||||||
ok: ()=>{
|
ok: ()=>{
|
||||||
submitApproval().then(res=>{
|
isConfirm({
|
||||||
closeDrawer()
|
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>
|
<span class="line" ></span>
|
||||||
<a-descriptions title="其他信息" bordered :column="4" :contentStyle="rowCenter" :labelStyle="rowCenters" >
|
<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-if="formParam.description !=null&&resp(formParam.description)" style="min-width: 500px;" v-html="formParam.description" ></div>
|
||||||
<div v-else>-</div>
|
<div v-else>-</div>
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
@@ -425,7 +425,7 @@ const handleup = ()=>{
|
|||||||
// sysTypeOptions,
|
// sysTypeOptions,
|
||||||
TeacherSystem,
|
TeacherSystem,
|
||||||
rowCenter:{"text-align":"left"},
|
rowCenter:{"text-align":"left"},
|
||||||
rowCenters:{"text-align":"center"},
|
rowCenters:{"text-align":"center",'width':'160px'},
|
||||||
teacherrecordstableData,
|
teacherrecordstableData,
|
||||||
teacherrecordsColumns,
|
teacherrecordsColumns,
|
||||||
resp,
|
resp,
|
||||||
|
|||||||
Reference in New Issue
Block a user