feat(laptops): update default IP address prefix from 192.168. to 192.168.1.
This commit is contained in:
parent
0c3d2315ca
commit
5e46514f62
1 changed files with 3 additions and 3 deletions
|
|
@ -477,7 +477,7 @@
|
||||||
<label class="block text-[10px] font-black text-slate-400 uppercase mb-2 ml-1">고정 IP
|
<label class="block text-[10px] font-black text-slate-400 uppercase mb-2 ml-1">고정 IP
|
||||||
주소</label>
|
주소</label>
|
||||||
<input type="text" x-model="formData.ip_address" placeholder="192.168.x.x"
|
<input type="text" x-model="formData.ip_address" placeholder="192.168.x.x"
|
||||||
@focus="if(!formData.ip_address) formData.ip_address = '192.168.'"
|
@focus="if(!formData.ip_address) formData.ip_address = '192.168.1.'"
|
||||||
class="w-full px-4 py-3 bg-white border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none transition-all text-sm font-bold text-slate-700">
|
class="w-full px-4 py-3 bg-white border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none transition-all text-sm font-bold text-slate-700">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -855,7 +855,7 @@
|
||||||
this.isEdit = false;
|
this.isEdit = false;
|
||||||
this.formData = {
|
this.formData = {
|
||||||
id: '', asset_tag: '', model_id: '', current_user_id: '', status: 'stock',
|
id: '', asset_tag: '', model_id: '', current_user_id: '', status: 'stock',
|
||||||
serial_number: '', purchase_date: new Date().toISOString().split('T')[0], last_confirmed_date: '', ip_address: '192.168.',
|
serial_number: '', purchase_date: new Date().toISOString().split('T')[0], last_confirmed_date: '', ip_address: '192.168.1.',
|
||||||
cpu: '', npu: '', ram: '', hdd0_model: '', hdd0_capacity: '', hdd1_model: '', hdd1_capacity: '',
|
cpu: '', npu: '', ram: '', hdd0_model: '', hdd0_capacity: '', hdd1_model: '', hdd1_capacity: '',
|
||||||
asset_status: '', assigned_user_name: '', fixed_ip: '', options: '', power_rating: '',
|
asset_status: '', assigned_user_name: '', fixed_ip: '', options: '', power_rating: '',
|
||||||
manufacturer: '', vendor: '', product_name: '', remarks: '',
|
manufacturer: '', vendor: '', product_name: '', remarks: '',
|
||||||
|
|
@ -870,7 +870,7 @@
|
||||||
editAsset(asset) {
|
editAsset(asset) {
|
||||||
this.isEdit = true;
|
this.isEdit = true;
|
||||||
this.formData = { ...asset };
|
this.formData = { ...asset };
|
||||||
if (!this.formData.ip_address) this.formData.ip_address = '192.168.';
|
if (!this.formData.ip_address) this.formData.ip_address = '192.168.1.';
|
||||||
if (asset.current_user_id) {
|
if (asset.current_user_id) {
|
||||||
const user = this.allUsers.find(u => u.id == asset.current_user_id);
|
const user = this.allUsers.find(u => u.id == asset.current_user_id);
|
||||||
this.userSearchQuery = user ? `${user.name} (${user.emp_id})` : asset.user_name;
|
this.userSearchQuery = user ? `${user.name} (${user.emp_id})` : asset.user_name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue