Merge branch 'develop' of github.com:Frappet/hrms-mgt into develop
This commit is contained in:
commit
1d512528b7
1 changed files with 10 additions and 4 deletions
|
|
@ -536,9 +536,15 @@ function onClickCloseDialog() {
|
|||
* map ช้อมูลตาม option id
|
||||
* @param id id
|
||||
*/
|
||||
function updatePosTypeName(id: string,index:number) {
|
||||
|
||||
formGroupTarget.positions[index].posLevel = ''
|
||||
function updatePosTypeName(id: string, index?: number | null, type?: string) {
|
||||
if (index && index >= 0) {
|
||||
formGroupTarget.positions[index].posLevel = "";
|
||||
}
|
||||
|
||||
if (type && type == "targetReal") {
|
||||
formGroupTarget.posLevel = "";
|
||||
}
|
||||
|
||||
const posLevel = posTypeMain.value.find((e: ResGroup) => e.id === id);
|
||||
posLevelOp.value =
|
||||
posLevel?.posLevels.map((e: ResLevel) => ({
|
||||
|
|
@ -1127,7 +1133,7 @@ onMounted(() => {
|
|||
: 'กลุ่มงาน'
|
||||
"
|
||||
clearable
|
||||
@update:model-value="updatePosTypeName"
|
||||
@update:model-value="(value:string)=>{updatePosTypeName(value,null,'targetReal')}"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue