fix: 删除页面console
This commit is contained in:
@@ -202,7 +202,7 @@ export default {
|
|||||||
endpointTabTitle: [
|
endpointTabTitle: [
|
||||||
{ prop: 'panelTab', name: this.$t('overall.detail') },
|
{ prop: 'panelTab', name: this.$t('overall.detail') },
|
||||||
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
|
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
|
||||||
{ prop: 'endpointQuery', name: 'Query' },
|
{ prop: 'endpointQuery', name: 'Metrics' },
|
||||||
{ prop: 'log', name: 'Log' },
|
{ prop: 'log', name: 'Log' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -401,7 +401,6 @@ export const chartResizeTool = {
|
|||||||
const titleHeight = this.titleHeight
|
const titleHeight = this.titleHeight
|
||||||
const containerWidth = data.groupId ? document.getElementById('listContainer' + data.groupId).offsetWidth + 40 : document.getElementById('listContainer').offsetWidth
|
const containerWidth = data.groupId ? document.getElementById('listContainer' + data.groupId).offsetWidth + 40 : document.getElementById('listContainer').offsetWidth
|
||||||
const step = this.stepWidth(containerWidth)
|
const step = this.stepWidth(containerWidth)
|
||||||
console.log(originalData,containerWidth)
|
|
||||||
const mouseOriginalX = event.clientX // 鼠标初始坐标
|
const mouseOriginalX = event.clientX // 鼠标初始坐标
|
||||||
const mouseOriginalY = event.clientY
|
const mouseOriginalY = event.clientY
|
||||||
const originalWidth = step * data.span // 图表、阴影初始宽高
|
const originalWidth = step * data.span // 图表、阴影初始宽高
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ export default {
|
|||||||
initData: {
|
initData: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler () {
|
handler () {
|
||||||
// console.log(this.initData)
|
|
||||||
if (this.initData) {
|
if (this.initData) {
|
||||||
this.mapParam = JSON.parse(JSON.stringify(this.initData))
|
this.mapParam = JSON.parse(JSON.stringify(this.initData))
|
||||||
this.lnglat = this.mapParam.longitude + ',' + this.mapParam.latitude
|
this.lnglat = this.mapParam.longitude + ',' + this.mapParam.latitude
|
||||||
@@ -151,7 +150,6 @@ export default {
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.$get('/sysConfig?paramKey=map_center_config').then(response => {
|
this.$get('/sysConfig?paramKey=map_center_config').then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
// console.log(response)
|
|
||||||
this.mapParam = JSON.parse(response.data.paramKey.map_center_config)
|
this.mapParam = JSON.parse(response.data.paramKey.map_center_config)
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,7 +328,6 @@ export default {
|
|||||||
initEvent () {
|
initEvent () {
|
||||||
bus.$on('profile-dialog', () => {
|
bus.$on('profile-dialog', () => {
|
||||||
this.authBindShow = true
|
this.authBindShow = true
|
||||||
console.log(1)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -170,7 +170,6 @@ export default {
|
|||||||
if (this.editRole.id) {
|
if (this.editRole.id) {
|
||||||
this.editRole.i18n = this.editRole.name
|
this.editRole.i18n = this.editRole.name
|
||||||
this.$put(this.url, this.editRole).then(res => {
|
this.$put(this.url, this.editRole).then(res => {
|
||||||
// console.log(this.editRole)
|
|
||||||
this.prevent_opt.save = false
|
this.prevent_opt.save = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ export default {
|
|||||||
if (this.editDc.id) {
|
if (this.editDc.id) {
|
||||||
const param = { ...this.editDc }
|
const param = { ...this.editDc }
|
||||||
const attr = this.$refs.latlngPicker.getAttribute()
|
const attr = this.$refs.latlngPicker.getAttribute()
|
||||||
// console.log(attr)
|
|
||||||
param.latitude = attr.latitude
|
param.latitude = attr.latitude
|
||||||
param.longitude = attr.longitude
|
param.longitude = attr.longitude
|
||||||
this.$put('/dc', param).then(response => {
|
this.$put('/dc', param).then(response => {
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ export default {
|
|||||||
if (!cabinet) {
|
if (!cabinet) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log('load u',cabinet,isInit)
|
|
||||||
this.selectedData.cabinet = cabinet
|
this.selectedData.cabinet = cabinet
|
||||||
this.selectedData.u = null
|
this.selectedData.u = null
|
||||||
const cabinetUKey = 'cabinet-' + this.selectedData.dc.id + '-' + cabinet.id
|
const cabinetUKey = 'cabinet-' + this.selectedData.dc.id + '-' + cabinet.id
|
||||||
|
|||||||
@@ -429,7 +429,6 @@ export default {
|
|||||||
searchMsg: {
|
searchMsg: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
// console.log(n);
|
|
||||||
if (n) {
|
if (n) {
|
||||||
n.searchLabelList.forEach(item => {
|
n.searchLabelList.forEach(item => {
|
||||||
if (item.id === 27 && item.type === 'idc' && item.label === 'idcId') {
|
if (item.id === 27 && item.type === 'idc' && item.label === 'idcId') {
|
||||||
@@ -897,7 +896,6 @@ export default {
|
|||||||
objectInfo[val.label] = val.val
|
objectInfo[val.label] = val.val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log('search obj', objectInfo)
|
|
||||||
})
|
})
|
||||||
this.getHeight()
|
this.getHeight()
|
||||||
// 搜索完成后存储在本地历史记录中
|
// 搜索完成后存储在本地历史记录中
|
||||||
@@ -1036,7 +1034,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// input框监听是按删除还是回车
|
// input框监听是按删除还是回车
|
||||||
enter (val, e) {
|
enter (val, e) {
|
||||||
// console.log(val);
|
|
||||||
const keyCode = window.event ? e.keyCode : e.which
|
const keyCode = window.event ? e.keyCode : e.which
|
||||||
if (val == 'ID' && keyCode == 13) {
|
if (val == 'ID' && keyCode == 13) {
|
||||||
const id = /^[0-9]*$/
|
const id = /^[0-9]*$/
|
||||||
|
|||||||
@@ -266,7 +266,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
copyValue (item) {
|
copyValue (item) {
|
||||||
const str = item
|
const str = item
|
||||||
// console.log(str)
|
|
||||||
const domUrl = document.createElement('input')
|
const domUrl = document.createElement('input')
|
||||||
domUrl.value = JSON.stringify(str)
|
domUrl.value = JSON.stringify(str)
|
||||||
domUrl.id = 'creatDom'
|
domUrl.id = 'creatDom'
|
||||||
|
|||||||
Reference in New Issue
Block a user