File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 10
10
>
11
11
{{ $t("browser.add") }}
12
12
</el-button >
13
+ <el-button
14
+ class =" filter-item"
15
+ type =" primary"
16
+ @click =" handleBatchStart" >
17
+ {{ $t("browser.batchStart") }}
18
+ </el-button >
13
19
</div >
14
20
<div style =" display : flex " >
15
21
<!-- <el-input
@@ -1104,6 +1110,17 @@ export default {
1104
1110
handleSelectionChange (selection ) {
1105
1111
this .selectedRows = selection;
1106
1112
},
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
+ },
1107
1124
resetForm () {
1108
1125
const ipGeoTimeZone = IPGeo .time_zone ? .name
1109
1126
You can’t perform that action at this time.
0 commit comments