mirror of
				https://github.com/creativetimofficial/vue-material-kit.git
				synced 2025-11-04 08:05:40 +08:00 
			
		
		
		
	update user
This commit is contained in:
		
							parent
							
								
									f9aebcee2e
								
							
						
					
					
						commit
						fdee2f0401
					
				@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "users": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "นาย มานพ อยู่ดี",
 | 
				
			||||||
 | 
					            "value": "นาย มานพ อยู่ดี"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "ส.ต.ต. ทรงศักด์ ดีเลิศ",
 | 
				
			||||||
 | 
					            "value": "ส.ต.ต. ทรงศักด์ ดีเลิศ"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "พล.ต.ต มานะ อยู่ดี",
 | 
				
			||||||
 | 
					            "value": "พล.ต.ต มานะ อยู่ดี"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "ด.ต. มรสุม อยู่ดี",
 | 
				
			||||||
 | 
					            "value": "ด.ต. มรสุม อยู่ดี"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "ส.ต.ท. พลดี มานพ",
 | 
				
			||||||
 | 
					            "value": "ส.ต.ท. พลดี มานพ"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "นาง แสงสร้อย สืบสิงห์",
 | 
				
			||||||
 | 
					            "value": "นาง แสงสร้อย สืบสิงห์"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3,6 +3,7 @@ import MaterialInput from "@/components/MaterialInput.vue";
 | 
				
			|||||||
import MaterialButton from "@/components/MaterialButton.vue";
 | 
					import MaterialButton from "@/components/MaterialButton.vue";
 | 
				
			||||||
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
 | 
					import Breadcrumbs from "@/examples/Breadcrumbs.vue";
 | 
				
			||||||
import vueMkHeader from "@/assets/img/bg.jpg";
 | 
					import vueMkHeader from "@/assets/img/bg.jpg";
 | 
				
			||||||
 | 
					import userData from "@/assets/dataJson/users.json";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const listRoom = [
 | 
					const listRoom = [
 | 
				
			||||||
  { title: "ตึก 1" },
 | 
					  { title: "ตึก 1" },
 | 
				
			||||||
@ -63,6 +64,7 @@ export default {
 | 
				
			|||||||
      NoRoom,
 | 
					      NoRoom,
 | 
				
			||||||
      userlist,
 | 
					      userlist,
 | 
				
			||||||
      vueMkHeader,
 | 
					      vueMkHeader,
 | 
				
			||||||
 | 
					      userData,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -82,7 +84,7 @@ export default {
 | 
				
			|||||||
      rank: "", //ยศ
 | 
					      rank: "", //ยศ
 | 
				
			||||||
      idcard: "",
 | 
					      idcard: "",
 | 
				
			||||||
      phone: "",
 | 
					      phone: "",
 | 
				
			||||||
      booknumber: ""
 | 
					      booknumber: "",
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  watch: {
 | 
					  watch: {
 | 
				
			||||||
@ -234,7 +236,7 @@ export default {
 | 
				
			|||||||
            <div>
 | 
					            <div>
 | 
				
			||||||
              <div class="mb-3">
 | 
					              <div class="mb-3">
 | 
				
			||||||
                <label>ชื่อผู้เช่า</label>
 | 
					                <label>ชื่อผู้เช่า</label>
 | 
				
			||||||
                <v-select :options="options" v-model="selectedColor"></v-select>
 | 
					                <v-select :options="userData?.users" v-model="selectedColor"></v-select>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="mb-3">
 | 
					              <div class="mb-3">
 | 
				
			||||||
                <label style="margin-left: -5px">กรอกเลขลงรับหนังสือ</label>
 | 
					                <label style="margin-left: -5px">กรอกเลขลงรับหนังสือ</label>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user