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