use sync for check Hslserver connection
This commit is contained in:
@@ -186,7 +186,11 @@ export default {
|
||||
try {
|
||||
// 定义测试动作
|
||||
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) {
|
||||
this.$message({
|
||||
message: '测试通过!',
|
||||
@@ -208,13 +212,13 @@ export default {
|
||||
this.serverSettings.Content.ServerInfoConfig.DeviceName = row.deviceName
|
||||
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
||||
console.log(this.serverSettings.Content.ServerInfoConfig)
|
||||
await this.$api.MODIFY_SERVER(
|
||||
this.$api.MODIFY_SERVER(
|
||||
'http://' + row.url + ':' + row.port,
|
||||
row.userName,
|
||||
row.password,
|
||||
{ data: this.serverSettings.Content }
|
||||
)
|
||||
await this.$api.ADD_SERVER({
|
||||
this.$api.ADD_SERVER({
|
||||
action: 'add_server',
|
||||
name: row.deviceName,
|
||||
url: row.url,
|
||||
@@ -239,13 +243,13 @@ export default {
|
||||
async handleRowEdit ({ index, row }, done) {
|
||||
this.formOptions.saveLoading = true
|
||||
this.serverSettings.Content.ServerInfoConfig.CaptureURL = row.address
|
||||
await this.$api.MODIFY_SERVER(
|
||||
this.$api.MODIFY_SERVER(
|
||||
'http://' + row.url + ':' + row.port,
|
||||
row.userName,
|
||||
row.password,
|
||||
{ data: this.serverSettings.Content }
|
||||
)
|
||||
await this.$api.UPDATE_SERVER({
|
||||
this.$api.UPDATE_SERVER({
|
||||
action: 'update_server',
|
||||
id: row.id,
|
||||
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