Skip to content

Commit e86d02d

Browse files
authored
Update Add batch start
1 parent 85e9b97 commit e86d02d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

server/src/views/browser/index.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
>
1111
{{ $t("browser.add") }}
1212
</el-button>
13+
<el-button
14+
class="filter-item"
15+
type="primary"
16+
@click="handleBatchStart">
17+
{{ $t("browser.batchStart") }}
18+
</el-button>
1319
</div>
1420
<div style="display: flex">
1521
<!-- <el-input
@@ -1104,6 +1110,17 @@ export default {
11041110
handleSelectionChange(selection) {
11051111
this.selectedRows = selection;
11061112
},
1113+
handleBatchStart() {
1114+
for (let i = 0; i < this.selectedRows.length; i++) {
1115+
const row = this.selectedRows[i];
1116+
this.launchEnvironment(row, i * 2000);
1117+
}
1118+
},
1119+
launchEnvironment(row, delay) {
1120+
setTimeout(() => {
1121+
this.handleLaunch(row);
1122+
}, delay);
1123+
},
11071124
resetForm() {
11081125
const ipGeoTimeZone = IPGeo.time_zone?.name
11091126

0 commit comments

Comments
 (0)