性能测试-全部测试-点击名称跳转
This commit is contained in:
parent
8abae1024d
commit
42db0a44d3
|
@ -30,7 +30,7 @@
|
||||||
<if test="request.orders != null and request.orders.size() > 0">
|
<if test="request.orders != null and request.orders.size() > 0">
|
||||||
order by
|
order by
|
||||||
<foreach collection="request.orders" separator="," item="order">
|
<foreach collection="request.orders" separator="," item="order">
|
||||||
test_plan_test_case.${order.name} ${order.type}
|
load_test.${order.name} ${order.type}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -10,13 +10,14 @@
|
||||||
<el-input type="text" size="small" :placeholder="$t('load_test.search_by_name')"
|
<el-input type="text" size="small" :placeholder="$t('load_test.search_by_name')"
|
||||||
prefix-icon="el-icon-search"
|
prefix-icon="el-icon-search"
|
||||||
maxlength="60"
|
maxlength="60"
|
||||||
v-model="condition" @change="search" clearable/>
|
v-model="condition.name" @change="search" clearable/>
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<!-- @sort-change="sort"-->
|
||||||
<el-table :data="tableData" class="test-content"
|
<el-table :data="tableData" class="test-content"
|
||||||
@sort-change="sort"
|
|
||||||
:default-sort="{prop: 'createTime', order: 'descending'}"
|
:default-sort="{prop: 'createTime', order: 'descending'}"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -24,6 +25,9 @@
|
||||||
:label="$t('commons.name')"
|
:label="$t('commons.name')"
|
||||||
width="150"
|
width="150"
|
||||||
show-overflow-tooltip>
|
show-overflow-tooltip>
|
||||||
|
<template v-slot:default="scope">
|
||||||
|
<el-link type="info" @click="link(scope.row)">{{ scope.row.name }}</el-link>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="projectName"
|
prop="projectName"
|
||||||
|
@ -100,7 +104,7 @@
|
||||||
result: {},
|
result: {},
|
||||||
queryPath: "/performance/list",
|
queryPath: "/performance/list",
|
||||||
deletePath: "/performance/delete",
|
deletePath: "/performance/delete",
|
||||||
condition: "",
|
condition: {},
|
||||||
projectId: null,
|
projectId: null,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
|
@ -135,15 +139,12 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initTableData() {
|
initTableData() {
|
||||||
let param = {
|
|
||||||
name: this.condition,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (this.projectId !== 'all') {
|
if (this.projectId !== 'all') {
|
||||||
param.projectId = this.projectId;
|
this.condition.projectId = this.projectId;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
|
this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
this.total = data.itemCount;
|
this.total = data.itemCount;
|
||||||
this.tableData = data.listObject;
|
this.tableData = data.listObject;
|
||||||
|
@ -189,9 +190,14 @@
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
sort(column) {
|
// sort(column) {
|
||||||
_sort(column, this.condition);
|
// _sort(column, this.condition);
|
||||||
this.initTableData();
|
// this.initTableData();
|
||||||
|
// },
|
||||||
|
link(row) {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/performance/test/edit/' + row.id,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue