fix: 测试计划页面优化
This commit is contained in:
parent
63f74454da
commit
71d32d30a8
|
@ -610,11 +610,13 @@ export default {
|
||||||
document.addEventListener("keydown", this.createCtrlSHandle);
|
document.addEventListener("keydown", this.createCtrlSHandle);
|
||||||
document.addEventListener("keydown", this.createCtrlRHandle);
|
document.addEventListener("keydown", this.createCtrlRHandle);
|
||||||
document.addEventListener("scroll", this.handleScroll, true);
|
document.addEventListener("scroll", this.handleScroll, true);
|
||||||
|
window.addEventListener("resize", this.handleScroll);
|
||||||
},
|
},
|
||||||
removeListener() {
|
removeListener() {
|
||||||
document.removeEventListener("keydown", this.createCtrlSHandle);
|
document.removeEventListener("keydown", this.createCtrlSHandle);
|
||||||
document.removeEventListener("keydown", this.createCtrlRHandle);
|
document.removeEventListener("keydown", this.createCtrlRHandle);
|
||||||
document.removeEventListener("scroll", this.handleScroll);
|
document.removeEventListener("scroll", this.handleScroll, true);
|
||||||
|
window.removeEventListener("onresize", this.handleScroll);
|
||||||
},
|
},
|
||||||
createCtrlSHandle(event) {
|
createCtrlSHandle(event) {
|
||||||
handleCtrlSEvent(event, this.editScenario);
|
handleCtrlSEvent(event, this.editScenario);
|
||||||
|
@ -1269,7 +1271,7 @@ export default {
|
||||||
let stepInfo = this.$refs.stepInfo;
|
let stepInfo = this.$refs.stepInfo;
|
||||||
let debugHeader = this.$refs.debugHeader;
|
let debugHeader = this.$refs.debugHeader;
|
||||||
if (debugHeader) {
|
if (debugHeader) {
|
||||||
let originWidth = debugHeader.clientWidth;
|
let originWidth = debugHeader.parentElement.clientWidth;
|
||||||
if (stepInfo.getBoundingClientRect().top <= 178) {
|
if (stepInfo.getBoundingClientRect().top <= 178) {
|
||||||
this.isTop = true;
|
this.isTop = true;
|
||||||
if (originWidth > 0) {
|
if (originWidth > 0) {
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
:filters="statusFilters"
|
:filters="statusFilters"
|
||||||
:label="$t('test_track.plan.plan_status')"
|
:label="$t('test_track.plan.plan_status')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
:min-width="100"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span @click.stop="clickt = 'stop'">
|
<span @click.stop="clickt = 'stop'">
|
||||||
|
@ -80,6 +81,7 @@
|
||||||
:filters="stageFilters"
|
:filters="stageFilters"
|
||||||
:label="$t('test_track.plan.plan_stage')"
|
:label="$t('test_track.plan.plan_stage')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
:min-width="110"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<plan-stage-table-item :stage="scope.row.stage"/>
|
<plan-stage-table-item :stage="scope.row.stage"/>
|
||||||
|
@ -115,6 +117,7 @@
|
||||||
prop="executionTimes"
|
prop="executionTimes"
|
||||||
:label="$t('commons.execution_times')"
|
:label="$t('commons.execution_times')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
:min-width="100"
|
||||||
:key="index">
|
:key="index">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -130,6 +133,7 @@
|
||||||
prop="plannedStartTime"
|
prop="plannedStartTime"
|
||||||
:label="$t('test_track.plan.planned_start_time')"
|
:label="$t('test_track.plan.planned_start_time')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
:min-width="110"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{ scope.row.plannedStartTime | timestampFormatDate }}</span>
|
<span>{{ scope.row.plannedStartTime | timestampFormatDate }}</span>
|
||||||
|
@ -141,6 +145,7 @@
|
||||||
prop="plannedEndTime"
|
prop="plannedEndTime"
|
||||||
:label="$t('test_track.plan.planned_end_time')"
|
:label="$t('test_track.plan.planned_end_time')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
:min-width="110"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{ scope.row.plannedEndTime | timestampFormatDate }}</span>
|
<span>{{ scope.row.plannedEndTime | timestampFormatDate }}</span>
|
||||||
|
@ -150,6 +155,7 @@
|
||||||
v-if="item.id == 'actualStartTime'"
|
v-if="item.id == 'actualStartTime'"
|
||||||
sortable
|
sortable
|
||||||
prop="actualStartTime"
|
prop="actualStartTime"
|
||||||
|
:min-width="110"
|
||||||
:label="$t('test_track.plan.actual_start_time')"
|
:label="$t('test_track.plan.actual_start_time')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="index">
|
:key="index">
|
||||||
|
@ -160,6 +166,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="item.id == 'actualEndTime'"
|
v-if="item.id == 'actualEndTime'"
|
||||||
sortable
|
sortable
|
||||||
|
:min-width="110"
|
||||||
prop="actualEndTime"
|
prop="actualEndTime"
|
||||||
:label="$t('test_track.plan.actual_end_time')"
|
:label="$t('test_track.plan.actual_end_time')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
|
Loading…
Reference in New Issue