培训发生组织审批中心增加提交按钮

This commit is contained in:
sunhonglai
2025-04-25 15:44:23 +08:00
parent 1a667ac821
commit b93faa3761
2 changed files with 26 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ export const isEnable = (obj) => http.post(`/admin/affiliation/isEnable`,obj)
export const affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
//删除 待提交 ,拒绝 的培训发生组织
export const affiliatRemoveById = (id) => http.post(`/admin/affiliation/removeById?id=${id}`)
// 提交
export const affiliatSubmit = (obj) => http.post(`/admin/affiliation/submit?id=${id}`)

View File

@@ -107,6 +107,11 @@
>
<div style="color: #1890ff; cursor: pointer">查看</div>
</lockLecturer>
<a-button
v-if="record.status == 1"
type="link"
@click="() => submitModal(record)"
>提交</a-button>
<!-- <a-button
v-if="record.status != 2 && checkMenu('lecturerTrainOrgEdit')"
type="link"
@@ -525,6 +530,7 @@ import * as lecturer from "../../api/Lecturer.js";
import lockLecturer from "@/components/project/lockLecturer";
import AddApprover from "@/components/project/AddApprover";
import { checkMenu } from "@/utils/utils";
import {affiliatSubmit} from "../../api/Lecturer.js";
export default {
name: "organizationList",
components: {
@@ -819,6 +825,22 @@ export default {
},
});
};
const submitModal = (record) => {
dialog({
content: "是否确认提交?",
ok: () => {
lecturer.affiliatSubmit(record.id)
.then((res) => {
message.success("提交成功");
getTableDate();
})
.catch((err) => {
message.destroy();
message.error(err.data.msg);
});
},
});
};
//删除弹窗
const deleteModal = (record) => {
let contents = "";
@@ -1253,6 +1275,7 @@ export default {
valueChange,
validateField,
checkMenu,
submitModal,
};
},
};