fix(测试跟踪): 功能用例交互验收问题
This commit is contained in:
parent
364b6ebc9c
commit
a442f08fb8
|
@ -91,7 +91,7 @@ button.el-button.el-button--default.el-button--mini {
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-icon-close:before) {
|
:deep(.el-icon-close:before) {
|
||||||
font-size: 19px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.el-dropdown-link.el-dropdown-selfdefine {
|
span.el-dropdown-link.el-dropdown-selfdefine {
|
||||||
|
@ -143,11 +143,6 @@ i.delimiter {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-icon-close:before) {
|
|
||||||
position: relative;
|
|
||||||
top: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.close-btn {
|
.close-btn {
|
||||||
background-color: transparent!important;
|
background-color: transparent!important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<el-table v-else
|
<el-table v-else
|
||||||
:data="data.steps" header-cell-class-name="case-desc-table-header-cell"
|
:data="data.steps" header-cell-class-name="case-desc-table-header-cell"
|
||||||
style="width: 100%" class="case-desc-table">
|
style="width: 100%" class="case-desc-table">
|
||||||
<el-table-column type="index" :label="$t('test_track.home.serial_number')" />
|
<el-table-column type="index" width="60px" :label="$t('test_track.home.serial_number')" />
|
||||||
<el-table-column prop="desc" :label="$t('test_track.case.step_desc')"/>
|
<el-table-column prop="desc" :label="$t('test_track.case.step_desc')"/>
|
||||||
<el-table-column prop="result" :label="$t('test_track.case.expected_results')"/>
|
<el-table-column prop="result" :label="$t('test_track.case.expected_results')"/>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
|
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<div style="width: 100%;height: 300px;display: flex;flex-direction: column;justify-content: start;align-items: center">
|
<div style="width: 100%;height: 300px;display: flex;flex-direction: column;justify-content: start;align-items: center">
|
||||||
<img :src="refreshBySearch ? '/assets/module/figma/icon_search_none.svg' : '/assets/module/figma/icon_none.svg'" style="height: 100px;width: 100px;margin-bottom: 8px"/>
|
<img :src="refreshBySearch ? '/assets/module/figma/icon_search_none.svg' : '/assets/module/figma/icon_none.svg'" style="height: 100px;width: 100px;margin-bottom: 0.6rem; margin-top: 3rem"/>
|
||||||
<span class="addition-info-title">{{ refreshBySearch ? $t("home.dashboard.public.no_search_data") : $t("home.dashboard.public.no_data") }}</span>
|
<span class="addition-info-title">{{ refreshBySearch ? $t("home.dashboard.public.no_search_data") : $t("home.dashboard.public.no_data") }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -120,7 +120,6 @@ export default {
|
||||||
|
|
||||||
:deep(.showBtnGroup button.el-button.el-button--default.el-button--small) {
|
:deep(.showBtnGroup button.el-button.el-button--default.el-button--small) {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 80px;
|
|
||||||
height: 32px;
|
height: 32px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
@ -158,7 +157,7 @@ export default {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -6px;
|
top: -5.5px;
|
||||||
left: 11px;
|
left: 11px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
@ -220,10 +219,11 @@ export default {
|
||||||
|
|
||||||
.more-operate-menu {
|
.more-operate-menu {
|
||||||
width: 164px!important;
|
width: 164px!important;
|
||||||
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-operate-menu-children {
|
.more-operate-menu-children {
|
||||||
margin-left: 40px;
|
margin-left: 16px;
|
||||||
margin-bottom: -12px;
|
margin-bottom: -12px;
|
||||||
width: 135px!important;
|
width: 135px!important;
|
||||||
}
|
}
|
||||||
|
@ -278,6 +278,15 @@ export default {
|
||||||
.is-delete:hover {
|
.is-delete:hover {
|
||||||
background: rgba(245, 74, 69, 0.2)!important;
|
background: rgba(245, 74, 69, 0.2)!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.el-icon-arrow-right) {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-icon-arrow-right:before) {
|
||||||
|
font-size: 15px;
|
||||||
|
color: #8F959E;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column v-if="isShow" width="1" :resizable="false" fixed="left" align="center">
|
<el-table-column v-if="isShow" width="1" :resizable="false" fixed="left" align="center">
|
||||||
<el-popover slot="header" placement="bottom" trigger="hover" style="margin-right: 0px;" popper-class="select-popover">
|
<el-popover slot="header" placement="bottom" trigger="hover" style="margin-right: 0px;" popper-class="select-popover" :open-delay="0" :close-delay="0">
|
||||||
<el-button type="text" @click.native.stop="click('selectPageAll')">
|
<el-button type="text" @click.native.stop="click('selectPageAll')">
|
||||||
<span>
|
<span>
|
||||||
{{ $t('api_test.batch_menus.select_current_page') }}
|
{{ $t('api_test.batch_menus.select_current_page') }}
|
||||||
|
|
|
@ -168,8 +168,8 @@ export default {
|
||||||
match_rule: "Test Case Match Rule",
|
match_rule: "Test Case Match Rule",
|
||||||
import: {
|
import: {
|
||||||
import: "Import test case",
|
import: "Import test case",
|
||||||
case_import: "Import test case",
|
case_import: "Import case",
|
||||||
case_export: "Export test case",
|
case_export: "Export case",
|
||||||
download_template: "Download template",
|
download_template: "Download template",
|
||||||
click_upload: "Upload",
|
click_upload: "Upload",
|
||||||
upload_limit: "Only XLS/XLSX/XMIND files can be uploaded, and no more than 100M",
|
upload_limit: "Only XLS/XLSX/XMIND files can be uploaded, and no more than 100M",
|
||||||
|
|
|
@ -192,6 +192,9 @@ button.el-button.el-button--default.el-button--small.el-button--danger {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-message-box__headerbtn .el-message-box__close {
|
||||||
|
font-size: 20px!important;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* el-button
|
* el-button
|
||||||
*/
|
*/
|
||||||
|
@ -249,6 +252,10 @@ button.el-button.el-button--default.el-button--small.el-button--danger {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i.el-dialog__close.el-icon.el-icon-close:before {
|
||||||
|
font-size: 20px!important;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* el-icon
|
* el-icon
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -206,14 +206,14 @@ export default {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-form-item__label {
|
:deep(.el-form-item__label) {
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
font-family: 'PingFang SC';
|
font-family: 'PingFang SC';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
color: #1F2329;
|
color: #1F2329!important;
|
||||||
flex: none;
|
flex: none;
|
||||||
order: 0;
|
order: 0;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<el-drawer
|
<el-drawer
|
||||||
:visible.sync="visible"
|
:visible.sync="visible"
|
||||||
append-to-body
|
append-to-body
|
||||||
size="70%"
|
:size="calcWidth"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
class="case-desc-drawer-layout"
|
class="case-desc-drawer-layout"
|
||||||
>
|
>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<h3>{{$t('test_track.case.prerequisite')}}</h3>
|
<h3>{{$t('test_track.case.prerequisite')}}</h3>
|
||||||
<span>{{data.prerequisite}}</span>
|
<span>{{data.prerequisite}}</span>
|
||||||
</div>
|
</div>
|
||||||
<step-change-item :label-width="formLabelWidth" :form="data"/>
|
<step-change-item :label-width="stepForLabelWidth" :form="data"/>
|
||||||
<ms-case-desc-text-item v-if="data.stepModel === 'TEXT'" :title="$t('test_track.case.step_desc')" :data="data" :content="data.stepDescription"/>
|
<ms-case-desc-text-item v-if="data.stepModel === 'TEXT'" :title="$t('test_track.case.step_desc')" :data="data" :content="data.stepDescription"/>
|
||||||
<ms-case-desc-text-item v-if="data.stepModel === 'TEXT'" :title="$t('test_track.case.expected_results')" :data="data" :content="data.expectedResult"/>
|
<ms-case-desc-text-item v-if="data.stepModel === 'TEXT'" :title="$t('test_track.case.expected_results')" :data="data" :content="data.expectedResult"/>
|
||||||
<ms-case-desc-text-item v-if="data.stepModel === 'STEP' || !data.stepModel" :data="data"/>
|
<ms-case-desc-text-item v-if="data.stepModel === 'STEP' || !data.stepModel" :data="data"/>
|
||||||
|
@ -38,11 +38,28 @@ export default {
|
||||||
StepChangeItem,
|
StepChangeItem,
|
||||||
TestCaseStepItem,
|
TestCaseStepItem,
|
||||||
},
|
},
|
||||||
props: ['loading'],
|
props: {
|
||||||
|
width: {
|
||||||
|
type: Number,
|
||||||
|
default: 1280,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
calcWidth() {
|
||||||
|
if (!isNaN(this.width)) {
|
||||||
|
//计算rem
|
||||||
|
let remW = (this.width / 1440) * 100;
|
||||||
|
let standW = (1280 / 1440) * 100;
|
||||||
|
return remW > standW ? standW : remW + "%";
|
||||||
|
}
|
||||||
|
return this.width;
|
||||||
|
},
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
result: {},
|
result: {},
|
||||||
formLabelWidth: "100px",
|
formLabelWidth: "100px",
|
||||||
|
stepForLabelWidth: "150px",
|
||||||
visible: false,
|
visible: false,
|
||||||
data: {}
|
data: {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,4 +118,8 @@ export default {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.el-icon-close:before) {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -377,6 +377,10 @@ export default {
|
||||||
.case-upload-progress :deep(.el-progress-bar__inner){
|
.case-upload-progress :deep(.el-progress-bar__inner){
|
||||||
background-color: #AA4FBF;;
|
background-color: #AA4FBF;;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.el-icon-close:before) {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -74,7 +74,6 @@ export default {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
color: #1F2329;
|
color: #1F2329;
|
||||||
border: 1px solid #BBBFC4;
|
border: 1px solid #BBBFC4;
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
height: 28px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
Loading…
Reference in New Issue