props type
This commit is contained in:
parent
e66a5f8258
commit
30befa38c2
6 changed files with 44 additions and 15 deletions
|
|
@ -39,7 +39,7 @@ const {
|
|||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const title = defineModel<string>("title", { required: true });
|
||||
|
||||
const type = defineModel<any>("type", { required: true });
|
||||
const posType = defineModel<any>("posType", { required: true });
|
||||
const posLevel = defineModel<any>("posLevel", { required: true });
|
||||
const position = defineModel<any>("position", { required: true });
|
||||
|
|
@ -214,7 +214,7 @@ function close() {
|
|||
filter.value = "";
|
||||
isAll.value = false;
|
||||
isBlank.value = false;
|
||||
|
||||
type.value = null;
|
||||
nodes.value = [];
|
||||
expanded.value = [];
|
||||
nodeLevel.value = 0;
|
||||
|
|
@ -232,7 +232,7 @@ async function getDataTable(id: string, level: number = 0) {
|
|||
posType: position.value ? position.value : "",
|
||||
isAll: isAll.value,
|
||||
isBlank: isBlank.value,
|
||||
typeCommand: null,
|
||||
typeCommand: type.value,
|
||||
};
|
||||
|
||||
await http
|
||||
|
|
@ -481,6 +481,7 @@ function onSubmit() {
|
|||
posLevelName: selectedPos.value[0].posLevelName, //ชื่อตำแหน่ง
|
||||
reportingDate: datePos.value,
|
||||
posmasterId: dataPosMaster.id,
|
||||
typeCommand: type.value,
|
||||
};
|
||||
props.onSubmit?.(body);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue