1. 修复错误
This commit is contained in:
@@ -123,13 +123,6 @@
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="deviceStatus">设备状态</label>
|
||||
<select id="deviceStatus" v-model="deviceForm.status" required>
|
||||
<option value="active">启用</option>
|
||||
<option value="inactive">停用</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -154,8 +147,7 @@ export default {
|
||||
id: null,
|
||||
name: '',
|
||||
type: '',
|
||||
parent_id: null,
|
||||
status: 'active'
|
||||
parent_id: null
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -248,8 +240,7 @@ export default {
|
||||
id: null,
|
||||
name: '',
|
||||
type: '',
|
||||
parent_id: null,
|
||||
status: 'active'
|
||||
parent_id: null
|
||||
}
|
||||
this.showModal = true
|
||||
},
|
||||
@@ -258,6 +249,7 @@ export default {
|
||||
editDevice(device) {
|
||||
this.editingDevice = device
|
||||
this.deviceForm = { ...device }
|
||||
delete this.deviceForm.status
|
||||
this.showModal = true
|
||||
},
|
||||
|
||||
@@ -292,8 +284,7 @@ export default {
|
||||
id: this.deviceForm.id,
|
||||
name: this.deviceForm.name,
|
||||
type: this.deviceForm.type,
|
||||
parent_id: this.deviceForm.parent_id,
|
||||
status: this.deviceForm.status
|
||||
parent_id: this.deviceForm.parent_id
|
||||
})
|
||||
})
|
||||
} else {
|
||||
@@ -307,8 +298,7 @@ export default {
|
||||
body: JSON.stringify({
|
||||
name: this.deviceForm.name,
|
||||
type: this.deviceForm.type,
|
||||
parent_id: this.deviceForm.parent_id,
|
||||
status: this.deviceForm.status
|
||||
parent_id: this.deviceForm.parent_id
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user