|
|
|
@ -39,6 +39,7 @@
@@ -39,6 +39,7 @@
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { httpAction } from '@/api/manage' |
|
|
|
|
import EncryptUtil from '@/utils/encryption/encrypt' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ServerInfoModal', |
|
|
|
@ -47,6 +48,7 @@ export default {
@@ -47,6 +48,7 @@ export default {
|
|
|
|
|
title: '操作', |
|
|
|
|
visible: false, |
|
|
|
|
model: {}, |
|
|
|
|
password: '', |
|
|
|
|
labelCol: { |
|
|
|
|
xs: { span: 24 }, |
|
|
|
|
sm: { span: 5 } |
|
|
|
@ -81,6 +83,7 @@ export default {
@@ -81,6 +83,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
edit(record) { |
|
|
|
|
this.model = Object.assign({}, record) |
|
|
|
|
this.password = this.model.password; |
|
|
|
|
if (this.model.status || this.model.status == 1) { |
|
|
|
|
this.model.status = true |
|
|
|
|
} else { |
|
|
|
@ -114,6 +117,9 @@ export default {
@@ -114,6 +117,9 @@ export default {
|
|
|
|
|
} else { |
|
|
|
|
params.status = 0 |
|
|
|
|
} |
|
|
|
|
if (this.password != params.password) { |
|
|
|
|
params.password = EncryptUtil.encrypt(params.password); |
|
|
|
|
} |
|
|
|
|
let success = true; |
|
|
|
|
httpAction(httpurl, params, method) |
|
|
|
|
.then(res => { |
|
|
|
|