เเก้เคลียร์ค่า

This commit is contained in:
setthawutttty 2025-06-13 14:30:01 +07:00
parent 4a559979a5
commit afa441dc33

View file

@ -536,7 +536,9 @@ function onClickCloseDialog() {
* map อมลตาม option id
* @param id id
*/
function updatePosTypeName(id: string) {
function updatePosTypeName(id: string,index:number) {
formGroupTarget.positions[index].posLevel = ''
const posLevel = posTypeMain.value.find((e: ResGroup) => e.id === id);
posLevelOp.value =
posLevel?.posLevels.map((e: ResLevel) => ({
@ -1402,7 +1404,7 @@ onMounted(() => {
: 'กลุ่มงาน'
"
clearable
@update:model-value="updatePosTypeName"
@update:model-value="(value:string)=>{updatePosTypeName(value,index)}"
/>
</div>
<div