优化测试用例编辑

This commit is contained in:
chenjianxing 2020-04-08 18:57:39 +08:00
parent 86c21cfbc2
commit 35eac9e66f
1 changed files with 10 additions and 5 deletions

View File

@ -103,13 +103,16 @@
:data="form.steps" :data="form.steps"
class="tb-edit" class="tb-edit"
border border
size="mini"
:default-sort = "{prop: 'num', order: 'ascending'}" :default-sort = "{prop: 'num', order: 'ascending'}"
highlight-current-row> highlight-current-row>
<el-table-column :label="$t('test_track.number')" prop="num" min-width="15%"></el-table-column> <el-table-column :label="$t('test_track.number')" prop="num" min-width="15%"></el-table-column>
<el-table-column :label="$t('test_track.step_desc')" prop="desc" min-width="35%"> <el-table-column :label="$t('test_track.step_desc')" prop="desc" min-width="35%">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-input <el-input
size="small" size="mini"
type="textarea"
:rows="2"
v-model="scope.row.desc" v-model="scope.row.desc"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
clearable></el-input> clearable></el-input>
@ -119,7 +122,9 @@
<el-table-column :label="$t('test_track.expected_results')" prop="result" min-width="35%"> <el-table-column :label="$t('test_track.expected_results')" prop="result" min-width="35%">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-input <el-input
size="small" size="mini"
type="textarea"
:rows="2"
v-model="scope.row.result" v-model="scope.row.result"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
clearable></el-input> clearable></el-input>
@ -304,13 +309,13 @@
<style scoped> <style scoped>
.tb-edit .el-input { .tb-edit .el-textarea {
display: none; display: none;
} }
.tb-edit .current-row .el-input { .tb-edit .current-row .el-textarea {
display: block; display: block;
} }
.tb-edit .current-row .el-input+span { .tb-edit .current-row .el-textarea+span {
display: none; display: none;
} }