update user

This commit is contained in:
kamoa457 2023-11-05 19:19:25 +07:00
parent f9aebcee2e
commit fdee2f0401
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,29 @@
{
"users": [
{
"label": "นาย มานพ อยู่ดี",
"value": "นาย มานพ อยู่ดี"
},
{
"label": "ส.ต.ต. ทรงศักด์ ดีเลิศ",
"value": "ส.ต.ต. ทรงศักด์ ดีเลิศ"
},
{
"label": "พล.ต.ต มานะ อยู่ดี",
"value": "พล.ต.ต มานะ อยู่ดี"
},
{
"label": "ด.ต. มรสุม อยู่ดี",
"value": "ด.ต. มรสุม อยู่ดี"
},
{
"label": "ส.ต.ท. พลดี มานพ",
"value": "ส.ต.ท. พลดี มานพ"
},
{
"label": "นาง แสงสร้อย สืบสิงห์",
"value": "นาง แสงสร้อย สืบสิงห์"
}
]
}

View File

@ -3,6 +3,7 @@ import MaterialInput from "@/components/MaterialInput.vue";
import MaterialButton from "@/components/MaterialButton.vue";
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
import vueMkHeader from "@/assets/img/bg.jpg";
import userData from "@/assets/dataJson/users.json";
const listRoom = [
{ title: "ตึก 1" },
@ -63,6 +64,7 @@ export default {
NoRoom,
userlist,
vueMkHeader,
userData,
};
},
@ -82,7 +84,7 @@ export default {
rank: "", //
idcard: "",
phone: "",
booknumber: ""
booknumber: "",
};
},
watch: {
@ -234,7 +236,7 @@ export default {
<div>
<div class="mb-3">
<label>อผเช</label>
<v-select :options="options" v-model="selectedColor"></v-select>
<v-select :options="userData?.users" v-model="selectedColor"></v-select>
</div>
<div class="mb-3">
<label style="margin-left: -5px">กรอกเลขลงรบหนงส</label>