Commit 8b8adda1 authored by derong.zhang's avatar derong.zhang

修复测试问题

parent 58fb478a
......@@ -427,7 +427,6 @@ export default {
this.colorupdata = true
this.colorupdatacolor = true
this.origenselectserver = this.server
// this.testmostatus = this.aftertestmostatus === 'true' ? '开启' : '关闭'
},
serviceAdministrator (key) {
this.changekey = key
......@@ -544,11 +543,6 @@ export default {
this.$Message.error('请先输入要添加的内容')
return
}
if (this.contrastlist.length === 0) {
this.contrastlist = []
} else {
this.contrastlist.push(this.singlebaraddition)
}
this.logData.push({sort: this.singlebaraddition})
this.logparamsarr.push(this.singlebaraddition)
this.singlebaraddition = ''
......@@ -572,12 +566,6 @@ export default {
this.logparamsarr = arr
arr.map(item => {
this.logData.push({sort: item})
if (this.contrastlist.length === 0) {
this.contrastlist = []
} else {
this.contrastlist.push(item)
}
// this.contrastlist.push(item)
})
this.alladdModal = false
this.colorupdata = true
......@@ -666,6 +654,7 @@ export default {
},
confireupdate () {
this.logData[this.updateconfigindex].sort = this.updateconfig
this.logparamsarr[this.updateconfigindex] = this.updateconfig
this.updateconfigModal = false
this.colorupdata = true
this.colorupdatacolor = true
......@@ -744,7 +733,6 @@ export default {
} else {
this.paramscontent = this.logparamsarr
}
// let params = this.logparamsarr
postconfigurelist(data, this.paramscontent).then(data => {
if (data.code === 200) {
this.$Message.success('发布成功')
......@@ -761,6 +749,10 @@ export default {
this.changeserverModal = true
return
}
if (this.changeserverlist === true) {
this.changeserverModal = true
return
}
this.service_name = data
this.getnodeList()
this.getkeytext('url_auth_list')
......@@ -779,6 +771,7 @@ export default {
this.changeserverModal = false
this.colorupdatacolor = false
this.colorupdata = false
this.changeserverlist = false
},
getnodeList () {
let data = {
......@@ -809,6 +802,7 @@ export default {
this.ContrastnodeModal = false
this.nodeData[this.updatenodeIndex].updatacolorclass = false
this.nodeData = this.nodeData.slice()
this.changeserverlist = false
} else {
this.$Message.error(data.body)
}
......@@ -826,6 +820,7 @@ export default {
this.logData = []
this.contrastlist = []
this.testdiv = false
this.colorupdatacolor = false
this.getkeytext(this.changekey)
this.getconfigurlist(this.changekey, this.server)
}
......@@ -836,6 +831,7 @@ export default {
this.listonecolorserv = false
this.listonecolordoma = false
this.listonecolortest = false
this.colorupdatacolor = false
this.isShowList = true
this.testdiv = false
this.logData = []
......@@ -850,6 +846,7 @@ export default {
this.listonecolorserv = false
this.listonecolordoma = false
this.listonecolortest = false
this.colorupdatacolor = false
this.isShowList = true
this.testdiv = false
this.logData = []
......@@ -864,6 +861,7 @@ export default {
this.listonecolorserv = false
this.listonecolordoma = true
this.listonecolortest = false
this.colorupdatacolor = false
this.isShowList = true
this.testdiv = false
this.logData = []
......@@ -878,6 +876,7 @@ export default {
this.listonecolorserv = true
this.listonecolordoma = false
this.listonecolortest = false
this.colorupdatacolor = false
this.isShowList = true
this.testdiv = false
this.logData = []
......@@ -892,6 +891,7 @@ export default {
this.listonecolorserv = false
this.listonecolordoma = false
this.listonecolortest = true
this.colorupdatacolor = false
this.isShowList = false
this.testdiv = true
this.logData = []
......@@ -920,12 +920,14 @@ export default {
confireupdatenode () {
this.nodeData[this.updatenodeIndex].Meta.weight = this.updateweight
this.nodeData[this.updatenodeIndex].updatacolorclass = true
this.changeserverlist = true
this.newupdateweight = this.updateweight
this.updatenodeModal = false
this.nodeData = this.nodeData.slice()
this.updateweight = ''
// this.colorupdata = true
this.colorupdatacolor = true
this.colorupdatacolor = true
this.origenselectserver = this.server
}
},
created () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment