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

修复测试问题

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