From b4d7f73f8cfda6e0d7d30ddcebfc0d3280d6d816 Mon Sep 17 00:00:00 2001 From: lvzk <897706680@qq.com> Date: Thu, 26 Jun 2025 10:13:20 +0800 Subject: [PATCH 1/5] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=94=AF=E6=8C=81=E9=80=89=E6=8B=A9=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E6=95=B0=20#[1447956513783808]=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=80=89=E6=8B=A9=E5=B9=B6=E5=8F=91=E6=95=B0?= =?UTF-8?q?=20http://192.168.0.96:8090/demo/rdm.html#/story-detail/9390509?= =?UTF-8?q?47543040/939050947543042/1447956513783808?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/assets/languages/page/en.json | 6 +- src/resources/assets/languages/page/zh.json | 6 +- src/resources/assets/languages/term/en.json | 4 +- src/resources/assets/languages/term/zh.json | 4 +- .../detail/actionDetail/execute-setting.vue | 67 +++++++++++++++++-- .../pages/autoexec/detail/runner-detail.vue | 66 +++++++++++++++--- 6 files changed, 132 insertions(+), 21 deletions(-) diff --git a/src/resources/assets/languages/page/en.json b/src/resources/assets/languages/page/en.json index cea9303f..0d7ba1e1 100644 --- a/src/resources/assets/languages/page/en.json +++ b/src/resources/assets/languages/page/en.json @@ -1071,5 +1071,9 @@ "ignored": "Neglected", "loaded": "Loaded", "dictionary": "dictionary", - "healthcheckresult": "Inspection results" + "healthcheckresult": "Inspection results", + "autoexecparallpolicy": "Concurrency Strategy", + "autoexecbatchround": "in batches", + "autoexecparall": "Concurrency", + "autoexecparallel": "Concurrent settings" } \ No newline at end of file diff --git a/src/resources/assets/languages/page/zh.json b/src/resources/assets/languages/page/zh.json index 6af57dc8..a16f6539 100644 --- a/src/resources/assets/languages/page/zh.json +++ b/src/resources/assets/languages/page/zh.json @@ -1073,5 +1073,9 @@ "ignored": "已忽略", "loaded": "已加载", "dictionary": "字典", - "healthcheckresult": "检查结果" + "healthcheckresult": "检查结果", + "autoexecparallpolicy": "并发策略", + "autoexecbatchround": "分批", + "autoexecparall": "并发", + "autoexecparallel": "并发设置" } \ No newline at end of file diff --git a/src/resources/assets/languages/term/en.json b/src/resources/assets/languages/term/en.json index b0e027ca..cb1cf860 100644 --- a/src/resources/assets/languages/term/en.json +++ b/src/resources/assets/languages/term/en.json @@ -908,7 +908,9 @@ "resetrunnerphase": "Reset phase or not", "runnerGroupTooltip": "If the actuator group is not filled in here, the current stage will inherit the combination tool actuator group by default. If the actuator group is filled in here, the current stage will use the one filled in here; During execution, the executor group of the stage cannot be modified", "isfirenext": "Do you want to activate the next group", - "inputnodelimit": "The quantity cannot exceed 1000" + "inputnodelimit": "The quantity cannot exceed 1000", + "parall": "Concurrent quantity", + "paralldesc": "Execute the execution targets in order of concurrency." }, "framework": { "roleauth": "Authorize immediately after creating the role", diff --git a/src/resources/assets/languages/term/zh.json b/src/resources/assets/languages/term/zh.json index 6e04d480..63b7cdb8 100644 --- a/src/resources/assets/languages/term/zh.json +++ b/src/resources/assets/languages/term/zh.json @@ -908,7 +908,9 @@ "resetrunnerphase": "是否重置阶段", "runnerGroupTooltip": "若此处不填写执行器组,当前阶段默认继承组合工具执行器组,若此处填写执行器组,当前阶段将采用此处填写的;执行时,不可修改阶段的执行器组", "isfirenext": "是否激活下一个组", - "inputnodelimit": "数量不能大于1000" + "inputnodelimit": "数量不能大于1000", + "parall": "并发数量", + "paralldesc": "将执行目标按并发数量先后执行。" }, "framework": { "roleauth": "创建完角色立即授权", diff --git a/src/views/pages/autoexec/detail/actionDetail/execute-setting.vue b/src/views/pages/autoexec/detail/actionDetail/execute-setting.vue index ca840516..066e167d 100644 --- a/src/views/pages/autoexec/detail/actionDetail/execute-setting.vue +++ b/src/views/pages/autoexec/detail/actionDetail/execute-setting.vue @@ -165,9 +165,43 @@ export default { label: this.$t('page.autoexeccomboprunnergrouplabel'), labelWidth: '113' }, + parallelPolicy: { + type: 'radio', + labelWidth: '113', + disabled: !_this.isEditSetting, + label: this.$t('page.autoexecparallpolicy'), + dataList: [ + { + text: this.$t('page.autoexecparall'), + value: 'parallel' + }, + { + text: this.$t('page.autoexecbatchround'), + value: 'roundCount' + } + ], + validateList: ['required'], + transfer: true, + onChange: (val) => { + if (val && val == 'roundCount') { + this.$set(this.form.roundCount, 'isHidden', false); + this.$set(this.form.parallelCount, 'isHidden', true); + this.$set(this.settingConfig, 'parallelCount', null); + this.$set(this.settingConfig, 'roundCount', 32); + } else { + this.$set(this.form.roundCount, 'isHidden', true); + this.$set(this.form.parallelCount, 'isHidden', false); + this.$set(this.settingConfig, 'parallelCount', 64); + this.$set(this.settingConfig, 'roundCount', null); + } + console.log(val); + console.log(this.executeConfig.parallelPolicy); + } + }, roundCount: { type: 'select', value: null, + isHidden: true, transfer: true, disabled: !_this.isEditSetting, label: this.$t('term.autoexec.batchquantity'), @@ -175,6 +209,16 @@ export default { dataList: this.$utils.getRoundCountList(), labelWidth: '113' }, + parallelCount: { + type: 'select', + value: null, + transfer: true, + disabled: !_this.isEditSetting, + label: this.$t('term.autoexec.parall'), + desc: this.$t('term.autoexec.paralldesc'), + dataList: this.$utils.getRoundCountList(), + labelWidth: '113' + }, whenToSpecify: { type: 'radio', label: this.$t('term.autoexec.choosethetime'), @@ -193,7 +237,9 @@ export default { executeUser: null, runnerGroup: null, runnerGroupTag: null, + parallelPolicy: 'parall', roundCount: null, + parallelCount: null, whenToSpecify: 'runtime', executeNodeConfig: {} }, @@ -219,14 +265,22 @@ export default { destroyed() {}, methods: { getExecuteConfig() { - let _this = this; - if (_this.executeConfig) { - Object.keys(_this.executeConfig).forEach(key => { - if (_this.settingConfig.hasOwnProperty(key)) { - _this.settingConfig[key] = _this.executeConfig[key]; + if (this.executeConfig) { + Object.keys(this.executeConfig).forEach(key => { + if (this.settingConfig.hasOwnProperty(key)) { + this.settingConfig[key] = this.executeConfig[key]; + } + if (this.executeConfig.parallelPolicy && this.executeConfig.parallelPolicy === 'roundCount') { + this.$set(this.form.roundCount, 'isHidden', false); + this.$set(this.form.parallelCount, 'isHidden', true); + this.$set(this.settingConfig, 'parallelCount', null); + } else { + this.$set(this.form.roundCount, 'isHidden', true); + this.$set(this.form.parallelCount, 'isHidden', false); + this.$set(this.settingConfig, 'roundCount', null); } }); - if (_this.settingConfig.whenToSpecify == 'runtime') { + if (this.settingConfig.whenToSpecify == 'runtime') { this.runtimeFilter = this.settingConfig.executeNodeConfig.filter || {}; } } @@ -251,6 +305,7 @@ export default { this.$set(this.settingConfig, 'executeUser', this.$refs.executeUser.save()); this.$set(this.settingConfig, 'runnerGroup', this.$refs.runnerGroup.save()); this.$set(this.settingConfig, 'runnerGroupTag', this.$refs.runnerGroupTag.save()); + console.log(this.settingConfig); this.settingConfig.executeNodeConfig = {}; if (this.settingConfig.whenToSpecify == 'now') { this.validSetting(true); diff --git a/src/views/pages/autoexec/detail/runner-detail.vue b/src/views/pages/autoexec/detail/runner-detail.vue index d98ded58..4df70425 100644 --- a/src/views/pages/autoexec/detail/runner-detail.vue +++ b/src/views/pages/autoexec/detail/runner-detail.vue @@ -56,22 +56,37 @@