NEZ-2256 fix:terminal 回放 全屏后 窗口大小未变
This commit is contained in:
@@ -265,7 +265,6 @@ export default {
|
||||
chart.selectAll('[index=' + index + ']').style('fill-opacity', '1').selectAll('foreignObject').style('opacity', '1')
|
||||
})
|
||||
// 显示悬浮框
|
||||
console.log(d)
|
||||
this.tooltip.title = d.source.node + ' ——> ' + d.target.node
|
||||
this.tooltip.value = d.showValue
|
||||
this.tooltip.mapping = ''
|
||||
|
||||
@@ -1774,8 +1774,8 @@ export default {
|
||||
obj.pens = []
|
||||
}
|
||||
getTopology(this.topologyIndex).open(obj)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
let flag = false
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<!--terminal-log的记录和回放-->
|
||||
<terminal-log-cmd-tab v-if="from === fromRoute.terminalLog && targetTab === 'cmdTab'" :from="from" :obj="obj" :tabs="tabs.terminalLog.cmd" @changeTab="changeTab" :targetTab.sync="targetTab"></terminal-log-cmd-tab>
|
||||
<terminal-log-record-tab v-if="from === fromRoute.terminalLog && targetTab === 'recordTab'" :from="from" :obj="obj" :tabs="tabs.terminalLog.record" @changeTab="changeTab" :targetTab.sync="targetTab"></terminal-log-record-tab>
|
||||
<terminal-log-record-tab v-if="from === fromRoute.terminalLog && targetTab === 'recordTab'" ref="reminalLogRecordTab" :from="from" :obj="obj" :tabs="tabs.terminalLog.record" @changeTab="changeTab" :targetTab.sync="targetTab"></terminal-log-record-tab>
|
||||
<terminal-log-monitor-tab v-if="from === fromRoute.terminalLog && targetTab === 'monitorTab'" :from="from" :obj="obj" :tabs="tabs.terminalLog.monitor" @changeTab="changeTab" @exit="closeSubList" :targetTab.sync="targetTab"></terminal-log-monitor-tab>
|
||||
|
||||
<asset-tab v-if="from === fromRoute.dc && targetTab === 'asset'" :tabs="tabs.dc.asset" ref="assetTab" :from="from" :obj="obj" @changeTab="changeTab" @exit="closeSubList" :targetTab.sync="targetTab"></asset-tab>
|
||||
@@ -316,13 +316,12 @@ export default {
|
||||
afterResize () {
|
||||
if (this.from === this.fromRoute.endpoint && this.targetTab === 'endpointQuery') {
|
||||
this.$refs.endpointQuery.tableReload()
|
||||
} else if (this.from === this.fromRoute.terminalLog && this.targetTab === 'record') {
|
||||
} else if (this.from === this.fromRoute.terminalLog && this.targetTab === 'recordTab') {
|
||||
setTimeout(() => {
|
||||
this.$refs.reminalLogRecordTab.consoleResize()
|
||||
}, 600)
|
||||
}
|
||||
const subListDom = document.querySelector('.sub-list') // 副列表
|
||||
console.log(subListDom.style.height, subListDom.offsetHeight)
|
||||
if (subListDom.offsetHeight < 505) {
|
||||
this.$store.dispatch('dispatchTimeBoxClass', 'date-range-panel--top')
|
||||
} else {
|
||||
|
||||
@@ -167,10 +167,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleNodeClick (data) {
|
||||
console.log(data)
|
||||
},
|
||||
handleClick (tab, event) {
|
||||
console.log(tab, event)
|
||||
},
|
||||
addcommentBtn () {
|
||||
this.textareaShow = true
|
||||
@@ -209,8 +207,6 @@ export default {
|
||||
if (response.code === 200) {
|
||||
this.changeData = response.data.list
|
||||
this.time = response.time
|
||||
console.log(response.time)
|
||||
console.log(response.data, 1)
|
||||
// console.log(response.data, 2)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
<div class="record-container--record">
|
||||
<div class="record--title">{{$t('config.terminallog.cmd.history')}}</div>
|
||||
<div class="record--list">
|
||||
<template v-for="record in records">
|
||||
<template v-for="(item, index) in record.list">
|
||||
<template v-for="record in records" >
|
||||
<template v-for="(item, index) in record.list" >
|
||||
<div :key="index" class="detail--time"><span>{{calcTime(item.time)}}</span></div>
|
||||
<div :key="index" class="detail--cmd"><span :class="matchBgColor(item.cmd)">{{item.cmd}}</span></div>
|
||||
<div :key="'cmd' + index" class="detail--cmd"><span :class="matchBgColor(item.cmd)">{{item.cmd}}</span></div>
|
||||
</template>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -195,7 +195,6 @@ export default {
|
||||
})
|
||||
},
|
||||
valueEnter (meta, index) {
|
||||
console.log(123)
|
||||
meta.valueIsEditing = false
|
||||
for (let i = 0; i < this.rule.length; i++) {
|
||||
const item = this.rule[i]
|
||||
@@ -210,7 +209,6 @@ export default {
|
||||
this.$emit('change')
|
||||
},
|
||||
valueBlur (meta, index, type) {
|
||||
console.log(456)
|
||||
meta.valueIsEditing = false
|
||||
for (let i = 0; i < this.rule.length; i++) {
|
||||
const item = this.rule[i]
|
||||
|
||||
@@ -1546,7 +1546,6 @@ export default {
|
||||
if (value === 'lineDash') {
|
||||
this.selection.pen.lineDash = val ? (val == 1 ? [5, 5] : ((val == 2 ? [10, 10] : [10, 10, 2, 10]))) : []
|
||||
}
|
||||
console.log(this.selection.pen)
|
||||
this.$emit('change', this.selection.pen)
|
||||
// if(!this.selection.pen.type||this.selection.pens){
|
||||
// this.$emit('change',this.selection.pen||this.selection.pens);
|
||||
|
||||
@@ -1650,7 +1650,6 @@ export default {
|
||||
|
||||
onUpdateProps (node) { // 更新pen
|
||||
const obj = this.$loadsh.cloneDeep(node)
|
||||
console.log(obj)
|
||||
delete obj.x
|
||||
delete obj.y
|
||||
delete obj.center
|
||||
|
||||
@@ -343,7 +343,6 @@ export default {
|
||||
this.key = ''
|
||||
},
|
||||
focusSearchInput () {
|
||||
console.log(123)
|
||||
},
|
||||
contentShow (key) {
|
||||
this.keyShow = false // key 的下拉
|
||||
|
||||
@@ -195,7 +195,6 @@ export default {
|
||||
this.singleDelete = []
|
||||
this.singleDelete.push(row)
|
||||
}
|
||||
console.log(this.singleDelete)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -258,7 +258,6 @@ export default {
|
||||
this.qrCodeArr = []
|
||||
const self = this
|
||||
this.$get('/sys/license/token').then(res => {
|
||||
console.log(res.data.length)
|
||||
this.totalQrCode = Math.ceil(res.data.length / (1024 + 512))
|
||||
if (this.totalQrCode < 1) {
|
||||
this.totalQrCode = 1
|
||||
@@ -271,7 +270,6 @@ export default {
|
||||
for (let i = 0; i < this.totalQrCode; i++) {
|
||||
const num = (1024 + 512)
|
||||
let str1 = res.data.slice(num * i, num * (i + 1))
|
||||
console.log(str1)
|
||||
const index = i < 10 ? ('0' + (i + 1)) : (i + 1)
|
||||
const md5 = SparkMD5.hashBinary(str1).slice(0, 8)
|
||||
str1 = total + '' + index + totalMD5 + md5 + '' + str1
|
||||
|
||||
@@ -221,7 +221,6 @@ export default {
|
||||
const data = response.data.result
|
||||
if (data) {
|
||||
data.forEach((result, i) => {
|
||||
console.log(result)
|
||||
const metrics = Object.assign({}, result.metric)
|
||||
if (!Array.isArray(result.values)) {
|
||||
const val = result
|
||||
@@ -292,7 +291,6 @@ export default {
|
||||
return
|
||||
}
|
||||
const promqlIndex = promqlInputIndexs[index]
|
||||
console.log(response)
|
||||
if (response.data) {
|
||||
const data = response.data.result
|
||||
if ((!data || data.length < 1) && response.message) {
|
||||
|
||||
@@ -113,7 +113,6 @@ export default {
|
||||
},
|
||||
onScroll () {
|
||||
const _self = this
|
||||
console.log(this.scrollbarWrap)
|
||||
this.scrollbarWrap.addEventListener('scroll', bus.debounce(function () {
|
||||
|
||||
_self.showTopBtn = _self.scrollbarWrap.scrollTop > 50
|
||||
|
||||
Reference in New Issue
Block a user