mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56: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 affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
|
||||||
//删除 待提交 ,拒绝 的培训发生组织
|
//删除 待提交 ,拒绝 的培训发生组织
|
||||||
export const affiliatRemoveById = (id) => http.post(`/admin/affiliation/removeById?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>
|
<div style="color: #1890ff; cursor: pointer">查看</div>
|
||||||
</lockLecturer>
|
</lockLecturer>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status == 1"
|
||||||
|
type="link"
|
||||||
|
@click="() => submitModal(record)"
|
||||||
|
>提交</a-button>
|
||||||
<!-- <a-button
|
<!-- <a-button
|
||||||
v-if="record.status != 2 && checkMenu('lecturerTrainOrgEdit')"
|
v-if="record.status != 2 && checkMenu('lecturerTrainOrgEdit')"
|
||||||
type="link"
|
type="link"
|
||||||
@@ -525,6 +530,7 @@ import * as lecturer from "../../api/Lecturer.js";
|
|||||||
import lockLecturer from "@/components/project/lockLecturer";
|
import lockLecturer from "@/components/project/lockLecturer";
|
||||||
import AddApprover from "@/components/project/AddApprover";
|
import AddApprover from "@/components/project/AddApprover";
|
||||||
import { checkMenu } from "@/utils/utils";
|
import { checkMenu } from "@/utils/utils";
|
||||||
|
import {affiliatSubmit} from "../../api/Lecturer.js";
|
||||||
export default {
|
export default {
|
||||||
name: "organizationList",
|
name: "organizationList",
|
||||||
components: {
|
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) => {
|
const deleteModal = (record) => {
|
||||||
let contents = "";
|
let contents = "";
|
||||||
@@ -1253,6 +1275,7 @@ export default {
|
|||||||
valueChange,
|
valueChange,
|
||||||
validateField,
|
validateField,
|
||||||
checkMenu,
|
checkMenu,
|
||||||
|
submitModal,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user