Commit 6ec9411d authored by mengzixuan's avatar mengzixuan

feat(查看测试用例库): 筛选条件修改

parent bc4a829f
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> >
<el-form-item prop="status"> <el-form-item prop="status">
<el-select <el-select
v-model="queryParams.testScenarioId" v-model="queryParams.scenario"
placeholder="请选择测试场景" placeholder="请选择测试场景"
clearable clearable
> >
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-form-item> </el-form-item>
<el-form-item prop="status"> <el-form-item prop="status">
<el-select <el-select
v-model="queryParams.testTypeId" v-model="queryParams.method"
placeholder="请选择测试方法" placeholder="请选择测试方法"
clearable clearable
> >
...@@ -141,6 +141,8 @@ export default { ...@@ -141,6 +141,8 @@ export default {
queryParams: { queryParams: {
offset: 0, offset: 0,
limit: 10, limit: 10,
scenario: '',
method: '',
searchKeywords: '' searchKeywords: ''
}, },
total: 0, total: 0,
...@@ -200,6 +202,8 @@ export default { ...@@ -200,6 +202,8 @@ export default {
this.queryParams = { this.queryParams = {
offset: 1, offset: 1,
limit: 10, limit: 10,
scenario: '',
method: '',
searchKeywords: '' searchKeywords: ''
} }
this.handleQuery() this.handleQuery()
...@@ -228,7 +232,11 @@ export default { ...@@ -228,7 +232,11 @@ export default {
field: this.orderBy.field, field: this.orderBy.field,
order: this.orderBy.order order: this.orderBy.order
}, },
search: this.queryParams.searchKeywords searchFields: {
name: this.queryParams.searchKeywords,
scenario: this.queryParams.scenario,
method: this.queryParams.method
}
} }
listTestCase(data).then(res => { listTestCase(data).then(res => {
this.tableData = res.data.useCases this.tableData = res.data.useCases
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment