workflow level task dry run UI (#6173)

* workflow level task dry run UI

* Update start.vue

* Update start.vue

* Create start.vue

* Update start.vue

* Update list.vue

* Update en_US.js

* Update zh_CN.js

* Update start.vue

* Update en_US.js

* Update zh_CN.js

* Update start.vue

* Update list.vue

* Update list.vue

Co-authored-by: yao-chen-ecnu <51205902080@stu.ecnu.edu.cn>
This commit is contained in:
Yao-chen-ecnu 2021-09-26 11:56:10 +08:00 committed by GitHub
parent 20a3741b24
commit 2d02f78ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 4 deletions

View File

@ -183,6 +183,12 @@
</div>
</div>
</div>
<div class="clearfix list">
<span class="text">{{$t('Whether dry-run')}}</span>
<span class="cont" style="padding-top: 5px;">
<el-switch v-model="dryRun" size="small" active-value="1" inactive-value="0"></el-switch>
</span>
</div>
<div class="submit">
<el-button type="text" size="small" @click="close()"> {{$t('Cancel')}} </el-button>
<el-button type="primary" size="small" round :loading="spinnerLoading" @click="ok()">{{spinnerLoading ? $t('Loading...') : $t('Start')}} </el-button>
@ -226,7 +232,8 @@
environmentCode: '',
// Global custom parameters
definitionGlobalParams: [],
udpList: []
udpList: [],
dryRun: 0
}
},
mixins: [disabledState],
@ -291,7 +298,8 @@
workerGroup: this.workerGroup,
environmentCode: this.environmentCode,
startParams: !_.isEmpty(startParams) ? JSON.stringify(startParams) : '',
expectedParallelismNumber: this.parallismNumber
expectedParallelismNumber: this.parallismNumber,
dryRun: this.dryRun
}
// Executed from the specified node
if (this.sourceType === 'contextmenu') {
@ -395,14 +403,12 @@
display: block;
}
}
.ans {
color: #0097e0;
font-size: 14px;
vertical-align: middle;
cursor: pointer;
}
.list {
margin-bottom: 14px;
.text {

View File

@ -63,6 +63,12 @@
</el-table-column>
<el-table-column prop="runTimes" :label="$t('Run Times')"></el-table-column>
<el-table-column prop="recovery" :label="$t('fault-tolerant sign')"></el-table-column>
<el-table-column :label="$t('Dry-run flag')" width="100">
<template slot-scope="scope">
<span v-if="scope.row.dryRun == 1">YES</span>
<span v-else>NO</span>
</template>
</el-table-column>
<el-table-column prop="executorName" :label="$t('Executor')"></el-table-column>
<el-table-column prop="host" :label="$t('host')" min-width="210"></el-table-column>
<el-table-column :label="$t('Operation')" width="240" fixed="right">

View File

@ -59,6 +59,12 @@
</template>
</el-table-column>
<el-table-column prop="retryTimes" :label="$t('Retry Count')"></el-table-column>
<el-table-column :label="$t('Dry-run flag')" width="100">
<template slot-scope="scope">
<span v-if="scope.row.dryRun == 1">YES</span>
<span v-else>NO</span>
</template>
</el-table-column>
<el-table-column :label="$t('host')" min-width="210">
<template slot-scope="scope">
<span>{{scope.row.host | filterNull}}</span>

View File

@ -187,6 +187,7 @@ export default {
'Task status statistics': 'Task Status Statistics',
Number: 'Number',
State: 'State',
'Dry-run flag': 'Dry-run flag',
'Process Status Statistics': 'Process Status Statistics',
'Process Definition Statistics': 'Process Definition Statistics',
'Project Name': 'Project Name',
@ -464,6 +465,7 @@ export default {
'Timeout strategy must be selected': 'Timeout strategy must be selected',
'Timeout must be a positive integer': 'Timeout must be a positive integer',
'Add dependency': 'Add dependency',
'Whether dry-run': 'Whether dry-run',
and: 'and',
or: 'or',
month: 'month',

View File

@ -186,6 +186,7 @@ export default {
'Task status statistics': '任务状态统计',
Number: '数量',
State: '状态',
'Dry-run flag': '空跑标识',
'Process Status Statistics': '流程状态统计',
'Process Definition Statistics': '流程定义统计',
'Project Name': '项目名称',
@ -463,6 +464,7 @@ export default {
'Timeout strategy must be selected': '超时策略必须选一个',
'Timeout must be a positive integer': '超时时长必须为正整数',
'Add dependency': '添加依赖',
'Whether dry-run': '是否空跑',
and: '且',
or: '或',
month: '月',