use sync for check Hslserver connection
This commit is contained in:
@@ -186,7 +186,11 @@ export default {
|
|||||||
try {
|
try {
|
||||||
// 定义测试动作
|
// 定义测试动作
|
||||||
if (this.formOptions.saveButtonText === '测试') {
|
if (this.formOptions.saveButtonText === '测试') {
|
||||||
this.serverSettings = await this.$api.VERIFY_SERVER('http://' + row.url + ':' + row.port, row.userName, row.password)
|
this.serverSettings = await this.$api.VERIFY_SERVER(
|
||||||
|
'http://' + row.url + ':' + row.port,
|
||||||
|
row.userName,
|
||||||
|
row.password
|
||||||
|
)
|
||||||
if (this.serverSettings) {
|
if (this.serverSettings) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '测试通过!',
|
message: '测试通过!',
|
||||||
@@ -208,13 +212,13 @@ export default {
|
|||||||
this.serverSettings.Content.ServerInfoConfig.DeviceName = row.deviceName
|
this.serverSettings.Content.ServerInfoConfig.DeviceName = row.deviceName
|
||||||
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
||||||
console.log(this.serverSettings.Content.ServerInfoConfig)
|
console.log(this.serverSettings.Content.ServerInfoConfig)
|
||||||
await this.$api.MODIFY_SERVER(
|
this.$api.MODIFY_SERVER(
|
||||||
'http://' + row.url + ':' + row.port,
|
'http://' + row.url + ':' + row.port,
|
||||||
row.userName,
|
row.userName,
|
||||||
row.password,
|
row.password,
|
||||||
{ data: this.serverSettings.Content }
|
{ data: this.serverSettings.Content }
|
||||||
)
|
)
|
||||||
await this.$api.ADD_SERVER({
|
this.$api.ADD_SERVER({
|
||||||
action: 'add_server',
|
action: 'add_server',
|
||||||
name: row.deviceName,
|
name: row.deviceName,
|
||||||
url: row.url,
|
url: row.url,
|
||||||
@@ -239,13 +243,13 @@ export default {
|
|||||||
async handleRowEdit ({ index, row }, done) {
|
async handleRowEdit ({ index, row }, done) {
|
||||||
this.formOptions.saveLoading = true
|
this.formOptions.saveLoading = true
|
||||||
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
||||||
await this.$api.MODIFY_SERVER(
|
this.$api.MODIFY_SERVER(
|
||||||
'http://' + row.url + ':' + row.port,
|
'http://' + row.url + ':' + row.port,
|
||||||
row.userName,
|
row.userName,
|
||||||
row.password,
|
row.password,
|
||||||
{ data: this.serverSettings.Content }
|
{ data: this.serverSettings.Content }
|
||||||
)
|
)
|
||||||
await this.$api.UPDATE_SERVER({
|
this.$api.UPDATE_SERVER({
|
||||||
action: 'update_server',
|
action: 'update_server',
|
||||||
id: row.id,
|
id: row.id,
|
||||||
address: row.address
|
address: row.address
|
||||||
|
|||||||
0
src/views/edgeServer/edgeServerMonitor/index.vue
Normal file
0
src/views/edgeServer/edgeServerMonitor/index.vue
Normal file
Reference in New Issue
Block a user