mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 18:36:46 +08:00
培训发生组织审批中心增加提交按钮
This commit is contained in:
@@ -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}`)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user