refactor(测试跟踪): 关联缺陷界面增加搜索功能

This commit is contained in:
luoliaoyuan 2022-04-15 22:30:12 +08:00 committed by 刘瑞斌
parent fc9b7ddabe
commit 3d085794fe
1 changed files with 10 additions and 2 deletions

View File

@ -5,6 +5,8 @@
:title="$t('test_track.case.relate_issue')" :title="$t('test_track.case.relate_issue')"
@confirm="save" @confirm="save"
ref="relevanceDialog"> ref="relevanceDialog">
<el-input :placeholder="$t('commons.search_by_name_or_id')" @change="getIssues" class="search-input" size="small"
v-model="page.condition.name"/>
<ms-table <ms-table
v-loading="page.result.loading" v-loading="page.result.loading"
:data="page.data" :data="page.data"
@ -27,7 +29,8 @@
<ms-table-column <ms-table-column
:label="$t('test_track.issue.title')" :label="$t('test_track.issue.title')"
prop="title"> prop="title"
min-width="200px">
</ms-table-column> </ms-table-column>
<ms-table-column <ms-table-column
@ -61,7 +64,12 @@
</ms-edit-dialog> </ms-edit-dialog>
</template> </template>
<style scoped>
.search-input {
float: right;
width: 300px;
}
</style>
<script> <script>
import MsEditDialog from "@/business/components/common/components/MsEditDialog"; import MsEditDialog from "@/business/components/common/components/MsEditDialog";
import MsTable from "@/business/components/common/components/table/MsTable"; import MsTable from "@/business/components/common/components/table/MsTable";