feat(frontend): cwmp change device password
This commit is contained in:
parent
a70b662234
commit
57ca6bd52b
|
|
@ -140,9 +140,18 @@ export const DevicesWiFi = () => {
|
||||||
{item.password.value != null &&
|
{item.password.value != null &&
|
||||||
<TextField
|
<TextField
|
||||||
fullWidth
|
fullWidth
|
||||||
|
type="password"
|
||||||
label="Password"
|
label="Password"
|
||||||
disabled={!item.password.writable}
|
disabled={!item.password.writable}
|
||||||
value={item.password.value}
|
value={item.password.value}
|
||||||
|
onChange={(e) => {
|
||||||
|
applyContent[index].hasChanges = true
|
||||||
|
applyContent[index].password = {
|
||||||
|
value : e.target.value
|
||||||
|
}
|
||||||
|
setApplyContent([...applyContent])
|
||||||
|
item.password.value = e.target.value
|
||||||
|
}}
|
||||||
/>}
|
/>}
|
||||||
{item.standard.value != null &&
|
{item.standard.value != null &&
|
||||||
<TextField
|
<TextField
|
||||||
|
|
@ -150,6 +159,14 @@ export const DevicesWiFi = () => {
|
||||||
label="Standard"
|
label="Standard"
|
||||||
disabled={!item.standard.writable}
|
disabled={!item.standard.writable}
|
||||||
value={item.standard.value}
|
value={item.standard.value}
|
||||||
|
onChange={(e) => {
|
||||||
|
applyContent[index].hasChanges = true
|
||||||
|
applyContent[index].standard = {
|
||||||
|
value : e.target.value
|
||||||
|
}
|
||||||
|
setApplyContent([...applyContent])
|
||||||
|
item.standard.value = e.target.value
|
||||||
|
}}
|
||||||
/>}
|
/>}
|
||||||
</Stack>
|
</Stack>
|
||||||
<CardActions sx={{display:"flex", justifyContent:"flex-end"}}>
|
<CardActions sx={{display:"flex", justifyContent:"flex-end"}}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user