NEZ-651 fix : 清理浏览器控制台打印代码
This commit is contained in:
@@ -212,7 +212,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.info(baseUrl, url)
|
|
||||||
this.terminalSocket = new WebSocket(url)
|
this.terminalSocket = new WebSocket(url)
|
||||||
// 连接成功
|
// 连接成功
|
||||||
this.terminalSocket.onopen = () => {
|
this.terminalSocket.onopen = () => {
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
edit (u) {
|
edit (u) {
|
||||||
console.info(u)
|
|
||||||
this.$get(`${this.url}/${u.id}`).then(response => {
|
this.$get(`${this.url}/${u.id}`).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.object = response.data
|
this.object = response.data
|
||||||
|
|||||||
@@ -62,24 +62,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {},
|
||||||
// valueArr: {
|
|
||||||
// immediate: true,
|
|
||||||
// handler (n) {
|
|
||||||
// console.log(n);
|
|
||||||
// if(n.length){
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// keyName:{
|
|
||||||
// deep:true,
|
|
||||||
// immediate: true,
|
|
||||||
// handler(n) {
|
|
||||||
// console.log(n);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
colors: '#ffffff',
|
colors: '#ffffff',
|
||||||
|
|||||||
@@ -191,8 +191,6 @@ export default {
|
|||||||
rightToLeft () {
|
rightToLeft () {
|
||||||
this.$emit('rightToLeft', this.selectedSelection)
|
this.$emit('rightToLeft', this.selectedSelection)
|
||||||
this.selectedData = this.selectedData.filter(d => !this.selectedSelection.find(s => d.id === s.id))
|
this.selectedData = this.selectedData.filter(d => !this.selectedSelection.find(s => d.id === s.id))
|
||||||
console.info(this.selectableSelection)
|
|
||||||
console.info(this.selectedData)
|
|
||||||
},
|
},
|
||||||
startLoading () {
|
startLoading () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -122,14 +122,6 @@ export default {
|
|||||||
},
|
},
|
||||||
undo () { // 撤销
|
undo () { // 撤销
|
||||||
getTopology(this.index).undo()
|
getTopology(this.index).undo()
|
||||||
// if(!this.redoFlag){
|
|
||||||
// this.$emit('redoIndexChange',getTopology(this.index).caches.index)
|
|
||||||
// }
|
|
||||||
// let a = getTopology(this.index).undo();
|
|
||||||
// console.log(a);
|
|
||||||
// setTimeout(()=>{
|
|
||||||
// this.redoFlag=true;
|
|
||||||
// },200)
|
|
||||||
},
|
},
|
||||||
redo () { // 重做
|
redo () { // 重做
|
||||||
getTopology(this.index).redo()
|
getTopology(this.index).redo()
|
||||||
|
|||||||
@@ -109,7 +109,6 @@ export default {
|
|||||||
init () {
|
init () {
|
||||||
this.$get('/module/stat', { id: this.moduleId }).then(res => {
|
this.$get('/module/stat', { id: this.moduleId }).then(res => {
|
||||||
this.moduleInfo = res.data
|
this.moduleInfo = res.data
|
||||||
// console.info(this.moduleInfo);
|
|
||||||
endpointChart = echarts.init(document.querySelector('#chart--endpoint'))
|
endpointChart = echarts.init(document.querySelector('#chart--endpoint'))
|
||||||
assetChart = echarts.init(document.querySelector('#chart--asset'))
|
assetChart = echarts.init(document.querySelector('#chart--asset'))
|
||||||
const endpointOption = chartConfig.getOption('topoPie')
|
const endpointOption = chartConfig.getOption('topoPie')
|
||||||
|
|||||||
@@ -806,7 +806,7 @@ export default {
|
|||||||
}
|
}
|
||||||
data.pens.forEach(item => {
|
data.pens.forEach(item => {
|
||||||
if (item.type === 0 && item.data.imageId) {
|
if (item.type === 0 && item.data.imageId) {
|
||||||
console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
// console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
||||||
item.image = this.iconArray.find(item1 => item1.id == item.data.imageId).image
|
item.image = this.iconArray.find(item1 => item1.id == item.data.imageId).image
|
||||||
}
|
}
|
||||||
if (item.type === 0) {
|
if (item.type === 0) {
|
||||||
@@ -1796,7 +1796,7 @@ export default {
|
|||||||
// 保存
|
// 保存
|
||||||
saveTopology () {
|
saveTopology () {
|
||||||
const topologyData = getTopology(this.topologyIndex).pureData()
|
const topologyData = getTopology(this.topologyIndex).pureData()
|
||||||
console.log(JSON.stringify(topologyData))
|
// console.log(JSON.stringify(topologyData))
|
||||||
let flag = true
|
let flag = true
|
||||||
const arr = []
|
const arr = []
|
||||||
this.notModuleIDArr = []
|
this.notModuleIDArr = []
|
||||||
|
|||||||
@@ -806,7 +806,7 @@
|
|||||||
}
|
}
|
||||||
data.pens.forEach(item => {
|
data.pens.forEach(item => {
|
||||||
if (item.type === 0 && item.data.imageId) {
|
if (item.type === 0 && item.data.imageId) {
|
||||||
console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
// console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
||||||
item.image = this.iconArray.find(item1 => item1.id == item.data.imageId).image
|
item.image = this.iconArray.find(item1 => item1.id == item.data.imageId).image
|
||||||
}
|
}
|
||||||
if (item.type === 0) {
|
if (item.type === 0) {
|
||||||
@@ -1796,7 +1796,7 @@
|
|||||||
// 保存
|
// 保存
|
||||||
saveTopology () {
|
saveTopology () {
|
||||||
const topologyData = getTopology(this.topologyIndex).pureData()
|
const topologyData = getTopology(this.topologyIndex).pureData()
|
||||||
console.log(JSON.stringify(topologyData))
|
// console.log(JSON.stringify(topologyData))
|
||||||
let flag = true
|
let flag = true
|
||||||
const arr = []
|
const arr = []
|
||||||
this.notModuleIDArr = []
|
this.notModuleIDArr = []
|
||||||
|
|||||||
@@ -263,7 +263,6 @@ export default {
|
|||||||
deep: true,
|
deep: true,
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
// console.info(n);
|
|
||||||
this.editAsset = JSON.parse(JSON.stringify(n))
|
this.editAsset = JSON.parse(JSON.stringify(n))
|
||||||
if (!this.editAsset.accounts) {
|
if (!this.editAsset.accounts) {
|
||||||
this.$set(this.editAsset, 'accounts', [])
|
this.$set(this.editAsset, 'accounts', [])
|
||||||
|
|||||||
@@ -239,7 +239,6 @@ export default {
|
|||||||
param: n.param && typeof n.param === 'string' ? JSON.parse(n.param) : {},
|
param: n.param && typeof n.param === 'string' ? JSON.parse(n.param) : {},
|
||||||
type: n.type.toUpperCase()
|
type: n.type.toUpperCase()
|
||||||
}
|
}
|
||||||
console.info(this.editAssetMeta)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'editAssetMeta.search': {
|
'editAssetMeta.search': {
|
||||||
|
|||||||
@@ -277,7 +277,6 @@ export default {
|
|||||||
response.data.list[i].labelsModule.push({ key: k, value: tempObj1[k] })
|
response.data.list[i].labelsModule.push({ key: k, value: tempObj1[k] })
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// console.info(response.data.list[i], err);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.moduleList = response.data.list
|
this.moduleList = response.data.list
|
||||||
|
|||||||
@@ -333,7 +333,6 @@ export default {
|
|||||||
response.data.list[i].paramObj.push({ key: k, value: tempObj[k] })
|
response.data.list[i].paramObj.push({ key: k, value: tempObj[k] })
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// console.info(response.data.list[i], err);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.moduleList = response.data.list
|
this.moduleList = response.data.list
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ export default {
|
|||||||
deep: true,
|
deep: true,
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler: function (n, o) {
|
handler: function (n, o) {
|
||||||
console.info(n)
|
|
||||||
if (n) {
|
if (n) {
|
||||||
this.editCabinet = JSON.parse(JSON.stringify(n))
|
this.editCabinet = JSON.parse(JSON.stringify(n))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -886,7 +886,7 @@ export default {
|
|||||||
objectInfo[val.label] = val.val
|
objectInfo[val.label] = val.val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('search obj', objectInfo)
|
// console.log('search obj', objectInfo)
|
||||||
})
|
})
|
||||||
this.getHeight()
|
this.getHeight()
|
||||||
// 搜索完成后存储在本地历史记录中
|
// 搜索完成后存储在本地历史记录中
|
||||||
@@ -1376,8 +1376,6 @@ export default {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this.getHeight()
|
_this.getHeight()
|
||||||
})
|
})
|
||||||
|
|
||||||
// console.info(e.target.parentElement.parentElement.parentElement.getBoundingClientRect());
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 计算select弹框的位置 */
|
/* 计算select弹框的位置 */
|
||||||
|
|||||||
@@ -271,7 +271,6 @@ export default {
|
|||||||
},
|
},
|
||||||
dragend () {
|
dragend () {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.info(1)
|
|
||||||
this.$refs.dataTable.doLayout()
|
this.$refs.dataTable.doLayout()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -594,7 +594,6 @@ export default {
|
|||||||
}
|
}
|
||||||
this.snmpSetFormVisible = false
|
this.snmpSetFormVisible = false
|
||||||
} */
|
} */
|
||||||
console.info(this.searchParam)
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$post('mib/browser', this.searchParam).then(response => {
|
this.$post('mib/browser', this.searchParam).then(response => {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export const tableCommon = {
|
|||||||
let result = true
|
let result = true
|
||||||
for (const field in this.rules) {
|
for (const field in this.rules) {
|
||||||
const rule = this.rules[field]
|
const rule = this.rules[field]
|
||||||
console.log(field, !data[field])
|
// console.log(field, !data[field])
|
||||||
if (rule.required && !data[field]) {
|
if (rule.required && !data[field]) {
|
||||||
rule.switch = true
|
rule.switch = true
|
||||||
result = false
|
result = false
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ export default {
|
|||||||
},
|
},
|
||||||
edit (u) {
|
edit (u) {
|
||||||
this.$get(`${this.url}/${u.id}`).then(response => {
|
this.$get(`${this.url}/${u.id}`).then(response => {
|
||||||
console.log(response)
|
|
||||||
const user = response.user
|
const user = response.user
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.object = {
|
this.object = {
|
||||||
|
|||||||
@@ -775,7 +775,6 @@ export default {
|
|||||||
rule = 'ifOutOctets'
|
rule = 'ifOutOctets'
|
||||||
}
|
}
|
||||||
if (this.trendSearchParam.select.length > 0) {
|
if (this.trendSearchParam.select.length > 0) {
|
||||||
// console.info("select", this.trendSearchParam.select);
|
|
||||||
const dc = []
|
const dc = []
|
||||||
const tags = []
|
const tags = []
|
||||||
this.trendSearchParam.select.forEach(select => {
|
this.trendSearchParam.select.forEach(select => {
|
||||||
@@ -878,7 +877,6 @@ export default {
|
|||||||
step: bus.getStep(before, end),
|
step: bus.getStep(before, end),
|
||||||
query: 'sum(irate(' + rule + metricString + '[' + (this.trendSearchParam.timeRange ? this.trendSearchParam.timeRange : '1h') + ']))'
|
query: 'sum(irate(' + rule + metricString + '[' + (this.trendSearchParam.timeRange ? this.trendSearchParam.timeRange : '1h') + ']))'
|
||||||
}
|
}
|
||||||
// console.info("params", params);
|
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
initMap () {
|
initMap () {
|
||||||
@@ -894,7 +892,6 @@ export default {
|
|||||||
const vm = this
|
const vm = this
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const data = param.tooltip.options.data
|
const data = param.tooltip.options.data
|
||||||
// console.info(tooltipEndpointChart);
|
|
||||||
tooltipEndpointChart = echarts.init(document.querySelector('#tooltip-chart--endpoint'))
|
tooltipEndpointChart = echarts.init(document.querySelector('#tooltip-chart--endpoint'))
|
||||||
tooltipPrometheusChart = echarts.init(document.querySelector('#tooltip-chart--prometheus'))
|
tooltipPrometheusChart = echarts.init(document.querySelector('#tooltip-chart--prometheus'))
|
||||||
const endpointOption = chartConfig.getOption('tooltipPie')
|
const endpointOption = chartConfig.getOption('tooltipPie')
|
||||||
@@ -1031,7 +1028,6 @@ export default {
|
|||||||
shadowMarker.bindTooltip(this.mapTooltipFormatter(dcStat), { sticky: false, pane: 'myPane', direction: 'left', data: dcStat })
|
shadowMarker.bindTooltip(this.mapTooltipFormatter(dcStat), { sticky: false, pane: 'myPane', direction: 'left', data: dcStat })
|
||||||
}
|
}
|
||||||
shadowMarker.on('mouseover', (param) => {
|
shadowMarker.on('mouseover', (param) => {
|
||||||
// console.info(param);
|
|
||||||
const point = param.containerPoint
|
const point = param.containerPoint
|
||||||
const event = param.originalEvent
|
const event = param.originalEvent
|
||||||
this.tooltip.x = event.clientX + point.x - event.layerX - 5
|
this.tooltip.x = event.clientX + point.x - event.layerX - 5
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const store = new Vuex.Store({
|
|||||||
return state.showTopoScreen
|
return state.showTopoScreen
|
||||||
},
|
},
|
||||||
getLogo (state) {
|
getLogo (state) {
|
||||||
console.log('get logo', state)
|
// console.log('get logo', state)
|
||||||
return state.logo
|
return state.logo
|
||||||
},
|
},
|
||||||
getIsShrink (state) {
|
getIsShrink (state) {
|
||||||
@@ -140,7 +140,7 @@ const store = new Vuex.Store({
|
|||||||
state.showTopoScreen = boolean
|
state.showTopoScreen = boolean
|
||||||
},
|
},
|
||||||
setLogo (state, logo) {
|
setLogo (state, logo) {
|
||||||
console.log('set log', logo)
|
// console.log('set log', logo)
|
||||||
state.logo = logo
|
state.logo = logo
|
||||||
},
|
},
|
||||||
isShrink (state) {
|
isShrink (state) {
|
||||||
|
|||||||
Reference in New Issue
Block a user