This commit is contained in:
fit2-zhao 2021-03-30 18:32:39 +08:00
commit c23a31400e
3 changed files with 16 additions and 14 deletions

View File

@ -454,18 +454,18 @@
item.tags = JSON.parse(item.tags);
}
})
// if (this.$refs.apiDefinitionTable) {
// setTimeout(() => {
// this.$refs.apiDefinitionTable.doLayout();
// this.result.loading = false;
// }, 500)
// }
// nexttick:
this.$nextTick(function(){
if (this.$refs.apiDefinitionTable) {
setTimeout(() => {
this.$refs.apiDefinitionTable.doLayout();
this.result.loading = false;
}, 500)
}
// nexttick:
this.$nextTick(function(){
// if (this.$refs.apiDefinitionTable) {
// this.$refs.apiDefinitionTable.doLayout();
// this.result.loading = false;
// }
this.checkTableRowIsSelect();
})
});

View File

@ -102,9 +102,9 @@ export default {
<style scoped>
.active {
border: solid 1px #6d317c;
background-color: var(--primary_color);
color: #FFFFFF;
border: solid 1px #6d317c!important;
background-color: var(--primary_color)!important;
color: #FFFFFF!important;
}
.case-button {

View File

@ -263,6 +263,8 @@ export default {
if (response.data.filter(p => p.id === this.resourcePool).length === 0) {
this.resourcePool = null;
}
this.resourcePoolChange();
})
},
getLoadConfig() {
@ -354,7 +356,7 @@ export default {
result[0].resources.forEach(resource => {
threadNumber += JSON.parse(resource.configuration).maxConcurrency;
})
this.maxThreadNumbers = threadNumber;
this.$set(this, 'maxThreadNumbers', threadNumber);
this.threadGroups.forEach(tg => {
if (tg.threadNumber > threadNumber) {
this.$set(tg, "threadNumber", threadNumber);