NEZ-2256 fix:terminal 回放 全屏后 窗口大小未变

This commit is contained in:
zhangyu
2022-10-17 14:34:56 +08:00
parent 1b908bb1f1
commit a383f0ef92
13 changed files with 7 additions and 24 deletions

View File

@@ -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 = ''

View File

@@ -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

View File

@@ -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 {

View File

@@ -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)
}
})

View File

@@ -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>

View File

@@ -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]

View File

@@ -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);

View File

@@ -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

View File

@@ -343,7 +343,6 @@ export default {
this.key = ''
},
focusSearchInput () {
console.log(123)
},
contentShow (key) {
this.keyShow = false // key 的下拉

View File

@@ -195,7 +195,6 @@ export default {
this.singleDelete = []
this.singleDelete.push(row)
}
console.log(this.singleDelete)
}
},

View File

@@ -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

View File

@@ -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) {

View File

@@ -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