feat(测试跟踪): 测试计划表格筛选加默认值

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-04-15 18:17:36 +08:00 committed by 刘瑞斌
parent fe79f36f31
commit b1a4003570
2 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,9 @@
:label="label" :label="label"
:sortable="sortable" :sortable="sortable"
:filter-method="filterMethod" :filter-method="filterMethod"
:show-overflow-tooltip="showOverflowTooltip"> :filtered-value = "filteredValue "
:show-overflow-tooltip="showOverflowTooltip"
>
<template v-slot:default="scope"> <template v-slot:default="scope">
<slot :row="scope.row" :$index="scope.$index" v-if="!editable"> <slot :row="scope.row" :$index="scope.$index" v-if="!editable">
<span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span> <span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
@ -42,6 +44,7 @@ export default {
width: [String, Number], width: [String, Number],
minWidth: [String, Number], minWidth: [String, Number],
filterMethod: Function, filterMethod: Function,
filteredValue:Array,
fixed: String, fixed: String,
// mapperfilters // mapperfilters
filters: Array, filters: Array,

View File

@ -53,6 +53,7 @@
<ms-table-column <ms-table-column
prop="status" prop="status"
:filters="statusFilters" :filters="statusFilters"
:filtered-value="['Prepare', 'Underway', 'Finished', 'Completed']"
column-key="status" column-key="status"
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"