โครงสร้างอัตรากำลัง => คัดลอกตำแหน่ง
This commit is contained in:
parent
fab3b9e5f3
commit
2ddaa0543c
2 changed files with 15 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ function onSubmit() {
|
||||||
};
|
};
|
||||||
|
|
||||||
showLoader();
|
showLoader();
|
||||||
props.actionType === "ADD"
|
props.actionType === "ADD" || props.actionType === "COPY"
|
||||||
? await http
|
? await http
|
||||||
.post(config.API.orgPosMaster, body)
|
.post(config.API.orgPosMaster, body)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,12 @@ const listMenu = ref<ListMenu[]>([
|
||||||
type: "EDIT",
|
type: "EDIT",
|
||||||
color: "edit",
|
color: "edit",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "คัดลอก",
|
||||||
|
icon: "content_copy",
|
||||||
|
type: "COPY",
|
||||||
|
color: "blue-6",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "ลบ",
|
label: "ลบ",
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
|
|
@ -259,6 +265,12 @@ function onClickPosition(type: string, id: string) {
|
||||||
dialogPosition.value = !dialogPosition.value;
|
dialogPosition.value = !dialogPosition.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onClickCopyPosition(type: string, id: string) {
|
||||||
|
rowId.value = id ? id : "";
|
||||||
|
actionType.value = type;
|
||||||
|
dialogPosition.value = !dialogPosition.value;
|
||||||
|
}
|
||||||
|
|
||||||
const dialogDetail = ref<boolean>(false);
|
const dialogDetail = ref<boolean>(false);
|
||||||
const dataDetailPos = ref<DataPosition[]>([]);
|
const dataDetailPos = ref<DataPosition[]>([]);
|
||||||
/**
|
/**
|
||||||
|
|
@ -650,6 +662,8 @@ async function onClickDownloadReport(val: string, name: string) {
|
||||||
? onClickHistoryPos(props.row.id)
|
? onClickHistoryPos(props.row.id)
|
||||||
: item.type === 'INHERIT'
|
: item.type === 'INHERIT'
|
||||||
? onClickInherit(props.row.id)
|
? onClickInherit(props.row.id)
|
||||||
|
: item.type === 'COPY'
|
||||||
|
? onClickCopyPosition('COPY', props.row.id)
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue