fix: 测试计划页面优化

This commit is contained in:
chenjianxing 2021-07-07 19:56:09 +08:00 committed by jianxing
parent 63f74454da
commit 71d32d30a8
2 changed files with 11 additions and 2 deletions

View File

@ -610,11 +610,13 @@ export default {
document.addEventListener("keydown", this.createCtrlSHandle);
document.addEventListener("keydown", this.createCtrlRHandle);
document.addEventListener("scroll", this.handleScroll, true);
window.addEventListener("resize", this.handleScroll);
},
removeListener() {
document.removeEventListener("keydown", this.createCtrlSHandle);
document.removeEventListener("keydown", this.createCtrlRHandle);
document.removeEventListener("scroll", this.handleScroll);
document.removeEventListener("scroll", this.handleScroll, true);
window.removeEventListener("onresize", this.handleScroll);
},
createCtrlSHandle(event) {
handleCtrlSEvent(event, this.editScenario);
@ -1269,7 +1271,7 @@ export default {
let stepInfo = this.$refs.stepInfo;
let debugHeader = this.$refs.debugHeader;
if (debugHeader) {
let originWidth = debugHeader.clientWidth;
let originWidth = debugHeader.parentElement.clientWidth;
if (stepInfo.getBoundingClientRect().top <= 178) {
this.isTop = true;
if (originWidth > 0) {

View File

@ -45,6 +45,7 @@
:filters="statusFilters"
:label="$t('test_track.plan.plan_status')"
show-overflow-tooltip
:min-width="100"
:key="index">
<template v-slot:default="scope">
<span @click.stop="clickt = 'stop'">
@ -80,6 +81,7 @@
:filters="stageFilters"
:label="$t('test_track.plan.plan_stage')"
show-overflow-tooltip
:min-width="110"
:key="index">
<template v-slot:default="scope">
<plan-stage-table-item :stage="scope.row.stage"/>
@ -115,6 +117,7 @@
prop="executionTimes"
:label="$t('commons.execution_times')"
show-overflow-tooltip
:min-width="100"
:key="index">
</el-table-column>
<el-table-column
@ -130,6 +133,7 @@
prop="plannedStartTime"
:label="$t('test_track.plan.planned_start_time')"
show-overflow-tooltip
:min-width="110"
:key="index">
<template v-slot:default="scope">
<span>{{ scope.row.plannedStartTime | timestampFormatDate }}</span>
@ -141,6 +145,7 @@
prop="plannedEndTime"
:label="$t('test_track.plan.planned_end_time')"
show-overflow-tooltip
:min-width="110"
:key="index">
<template v-slot:default="scope">
<span>{{ scope.row.plannedEndTime | timestampFormatDate }}</span>
@ -150,6 +155,7 @@
v-if="item.id == 'actualStartTime'"
sortable
prop="actualStartTime"
:min-width="110"
:label="$t('test_track.plan.actual_start_time')"
show-overflow-tooltip
:key="index">
@ -160,6 +166,7 @@
<el-table-column
v-if="item.id == 'actualEndTime'"
sortable
:min-width="110"
prop="actualEndTime"
:label="$t('test_track.plan.actual_end_time')"
show-overflow-tooltip