mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
讲师管理bug
This commit is contained in:
@@ -133,7 +133,8 @@
|
||||
</a-form>
|
||||
<!-- <span>讲师费发放情况</span> -->
|
||||
<a-table :columns="column" :scroll="{ x: '1000' }" :data-source="tableDatas" :loading="tableLoadings" :pagination="false">
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template #action="{ record, column }">
|
||||
<a-button type="link" @click="handleDetail(record)">撤回</a-button>
|
||||
</template>
|
||||
</a-table>
|
||||
<!-- <div :style="{
|
||||
@@ -163,7 +164,7 @@ import { useRouter,useRoute } from "vue-router";
|
||||
import {
|
||||
UploadOutlined,
|
||||
} from '@ant-design/icons-vue';
|
||||
import { getPayRollPlace,expenseSummaryById ,removeBySummaryId,queryDetailId} from "../../api/Lecturer";
|
||||
import { getPayRollPlace,expenseSummaryById ,removeBySummaryId,removeBySummaryDetailId,queryDetailId} from "../../api/Lecturer";
|
||||
import { getOrganization } from "../../api/Teaching";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import {queryTeacherFeeMonthly} from "../../api/lecturerFeeStatistics";
|
||||
@@ -457,7 +458,6 @@ export default {
|
||||
searchSubmitdrawer()
|
||||
}
|
||||
const handleLess = (record) => {
|
||||
console.log(record,'record')
|
||||
dialog({
|
||||
content: '是否确认撤回 ?',
|
||||
ok:()=>{
|
||||
@@ -475,6 +475,26 @@ export default {
|
||||
}
|
||||
})
|
||||
}
|
||||
const handleDetail = (record) => {
|
||||
dialog({
|
||||
content: '是否确认撤回 ?',
|
||||
ok:()=>{
|
||||
removeBySummaryDetailId({detailId:record.detailId}).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
message.success('撤回成功')
|
||||
emits.emit('tableList',true)
|
||||
searchSubmit()
|
||||
searchSubmitdrawer()
|
||||
}else{
|
||||
message.error(res.data.msg)
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
const searchTimeChange = (e) => {
|
||||
console.log(e,'eeeee')
|
||||
if(e){
|
||||
@@ -687,7 +707,16 @@ export default {
|
||||
return text ? text+'元' : '-'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: '操作 ',
|
||||
dataIndex: 'operation',
|
||||
key: 'operation',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
fixed: "right",
|
||||
width: 100,
|
||||
slots: { customRender: "action" },
|
||||
},
|
||||
])
|
||||
//取消按钮 清空输入的数据
|
||||
const cancelTeachingDialog = () => {
|
||||
@@ -720,6 +749,7 @@ export default {
|
||||
handleFeeMonthly,
|
||||
handleLook,
|
||||
handleLess,
|
||||
handleDetail,
|
||||
changePagination,
|
||||
pagination,
|
||||
searchTimeChange,
|
||||
|
||||
Reference in New Issue
Block a user