fix(用例评审): 修复打开评审对话框闪屏问题

This commit is contained in:
shiziyuan9527 2021-06-01 11:28:00 +08:00 committed by 刘瑞斌
parent 814c479d7c
commit 2c95a05646
1 changed files with 10 additions and 10 deletions

View File

@ -7,13 +7,12 @@
:visible.sync="dialogFormVisible"
@close="close"
v-loading="result.loading"
width="65%"
v-if="isStepTableAlive">
width="60%">
<el-form :model="form" :rules="rules" ref="reviewForm">
<el-row>
<el-col :span="8" :offset="1">
<el-col :span="10">
<el-form-item
:placeholder="$t('test_track.review.input_review_name')"
:label="$t('test_track.review.review_name')"
@ -22,20 +21,21 @@
<el-input v-model="form.name"/>
</el-form-item>
</el-col>
<el-col :span="10" :offset="1">
<el-col :span="12" :offset="1">
<el-form-item :label="$t('commons.tag')" :label-width="formLabelWidth" prop="tag">
<ms-input-tag :currentScenario="form" ref="tag"/>
<ms-input-tag :currentScenario="form" ref="tag" size="-" v-if="isStepTableAlive"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="10" :offset="1">
<el-col :span="10">
<el-form-item :label="$t('test_track.review.reviewer')" :label-width="formLabelWidth" prop="userIds">
<el-select
v-model="form.userIds"
:placeholder="$t('test_track.review.input_reviewer')"
filterable multiple
style="width: 100%"
>
<el-option
v-for="item in reviewerOptions"
@ -47,17 +47,17 @@
</el-form-item>
</el-col>
<el-col :span="10">
<el-col :span="12" :offset="1">
<el-form-item :label="$t('test_track.review.end_time')" :label-width="formLabelWidth" prop="endTime">
<el-date-picker @change="endTimeChange" type="datetime" :placeholder="$t('commons.select_date')"
v-model="form.endTime"/>
v-model="form.endTime" style="width: 100%"/>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" justify="left" style="margin-top: 10px;">
<el-col :span="23" :offset="1">
<el-col :span="23">
<el-form-item :label="$t('commons.description')" :label-width="formLabelWidth" prop="description">
<el-input v-model="form.description"
type="textarea"
@ -69,7 +69,7 @@
</el-row>
<el-row v-if="operationType === 'edit'" type="flex" justify="left" style="margin-top: 10px;">
<el-col :span="19" :offset="1">
<el-col :span="19">
<el-form-item :label="$t('test_track.review.review_status')" :label-width="formLabelWidth" prop="status">
<test-plan-status-button :status="form.status" @statusChange="statusChange"/>
</el-form-item>