refactor: add id for robot

This commit is contained in:
oat 2023-12-01 17:49:25 +07:00
parent 3bda1bd620
commit 2f706f879b
5 changed files with 26 additions and 6 deletions

View file

@ -129,6 +129,7 @@ const file = ref<File | undefined>()
icon="close"
color="red"
@click="() => ($emit('update:open', !open), reset())"
id="fileFormIconClose"
/>
</q-toolbar>
@ -148,6 +149,7 @@ const file = ref<File | undefined>()
? 'ไม่สามารถเพิ่มไฟล์ที่ชื่อยาวเกิน 85 ตัวอักษรได้'
: ''
"
id="inputFile"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -165,6 +167,7 @@ const file = ref<File | undefined>()
:model-value="title"
:rules="[(v) => v.length > 3 || 'ชื่อต้องยาวกว่า 3 ตัวอักษร']"
@update:model-value="(v) => $emit('update:title', v)"
id="inputTitle"
/>
</section>
@ -178,6 +181,7 @@ const file = ref<File | undefined>()
placeholder="กรอกรายละเอียด"
:model-value="description"
@update:model-value="(v) => $emit('update:description', v)"
id="inputDescription"
/>
</section>
@ -196,6 +200,7 @@ const file = ref<File | undefined>()
@filter="filterCategory"
style="width: 250px"
@update:model-value="(v) => $emit('update:category', v)"
id="inputCategory"
>
<template v-slot:no-option>
<q-item>
@ -220,6 +225,7 @@ const file = ref<File | undefined>()
:model-value="props.keyword"
@update:model-value="(v) => $emit('update:keyword', v)"
@new-value="createKeyword"
id="inputKeyword"
>
</q-select>
</div>
@ -231,6 +237,7 @@ const file = ref<File | undefined>()
type="submit"
color="primary"
:disable="error.fileName2Long"
id="submitFile"
/>
<q-btn
label="ยกเลิก"
@ -238,6 +245,7 @@ const file = ref<File | undefined>()
color="primary"
flat
@click="() => ($emit('update:open', false), reset())"
id="fileFormBtnClose"
/>
</section>
</q-form>