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