fix(测试跟踪): 测试步骤列表高度问题

This commit is contained in:
chenjianxing 2020-08-27 17:50:13 +08:00
parent 788e020168
commit e07f24b817
1 changed files with 10 additions and 3 deletions

View File

@ -131,6 +131,7 @@
<el-row v-if="form.method && form.method != 'auto'" type="flex" justify="center"> <el-row v-if="form.method && form.method != 'auto'" type="flex" justify="center">
<el-col :span="20"> <el-col :span="20">
<el-table <el-table
v-if="isStepTableAlive"
:data="form.steps" :data="form.steps"
class="tb-edit" class="tb-edit"
border border
@ -145,7 +146,7 @@
size="mini" size="mini"
:disabled="readOnly" :disabled="readOnly"
type="textarea" type="textarea"
:autosize="{ minRows: 2, maxRows: 4}" :autosize="{ minRows: 1, maxRows: 6}"
:rows="2" :rows="2"
v-model="scope.row.desc" v-model="scope.row.desc"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
@ -159,7 +160,7 @@
size="mini" size="mini"
:disabled="readOnly" :disabled="readOnly"
type="textarea" type="textarea"
:autosize="{ minRows: 2, maxRows: 4}" :autosize="{ minRows: 1, maxRows: 6}"
:rows="2" :rows="2"
v-model="scope.row.result" v-model="scope.row.result"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
@ -272,7 +273,8 @@ export default {
}, },
formLabelWidth: "120px", formLabelWidth: "120px",
operationType: '', operationType: '',
isCreateContinue: false isCreateContinue: false,
isStepTableAlive: true
}; };
}, },
props: { props: {
@ -302,6 +304,10 @@ export default {
} }
}, },
methods: { methods: {
reload() {
this.isStepTableAlive = false;
this.$nextTick(() => (this.isStepTableAlive = true));
},
open(testCase) { open(testCase) {
this.resetForm(); this.resetForm();
@ -339,6 +345,7 @@ export default {
} }
this.getSelectOptions(); this.getSelectOptions();
this.reload();
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
handleAddStep(index, data) { handleAddStep(index, data) {