refactor(性能测试): 修改日志详情查询

This commit is contained in:
CaptainB 2022-06-20 17:31:12 +08:00 committed by 刘瑞斌
parent 03a5068250
commit 328f6961da
1 changed files with 6 additions and 3 deletions

View File

@ -2,8 +2,7 @@
<div>
<el-row :gutter="10">
<el-col :span="4">
<el-select v-model="currentInstance" placeholder="" size="small" style="width: 100%"
@change="changeInstance(currentInstance)">
<el-select v-model="currentInstance" placeholder="" size="small" style="width: 100%">
<el-option
v-for="item in resource"
:key="item.resourceId"
@ -73,7 +72,6 @@ export default {
this.resource = data;
if (!this.currentInstance) {
this.currentInstance = this.resource[0]?.resourceId;
this.changeInstance(this.currentInstance);
}
this.page = data.map(item => item.resourceId).reduce((result, curr) => {
result[curr] = 1;
@ -186,6 +184,11 @@ export default {
}
},
deep: true
},
currentInstance() {
if (this.currentInstance) {
this.changeInstance(this.currentInstance);
}
}
},
};