โครงสร้างอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-29 13:14:13 +07:00
parent 0ca406eb04
commit b92c9283a5
6 changed files with 60 additions and 13 deletions

View file

@ -25,6 +25,13 @@ const modal = defineModel<boolean>("newStructure", { required: true });
const status = defineModel<boolean>("status", { required: true });
const type = defineModel<string>("type", { default: "NEW" });
const props = defineProps({
fetchActive: {
type: Function,
require: true,
},
});
const typeOp = ref<DataOption[]>([
{
id: "NEW",
@ -43,7 +50,6 @@ const typeOp = ref<DataOption[]>([
name: "ทำสำเนาโครงสร้าง ตำแหน่ง และคนครอง",
},
]);
const orgRevisionId = ref<string>("");
const orgRevisionOpMain = ref<DataOption[]>([]);
const orgRevisionOp = ref<DataOption[]>([]);
@ -89,9 +95,10 @@ function onSubmit() {
http
.post(config.API.createOrganization, formData)
.then(() => {
status.value = true;
store.typeOrganizational = "draft";
// status.value = true;
// store.typeOrganizational = "draft";
success($q, "บันทึกข้อมูลสำเร็จ");
props.fetchActive?.();
})
.catch((err) => {
messageError($q, err);