โครงสร้างอัตรากำลัง
This commit is contained in:
parent
0ca406eb04
commit
b92c9283a5
6 changed files with 60 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue