From 4c0ec35e9823d628d6e29056470090232c407a68 Mon Sep 17 00:00:00 2001 From: yanps Date: Sat, 20 Jan 2024 17:16:12 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E5=88=9B=E5=BB=BA=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=89=A9=E5=B1=95=E5=AD=97=E6=AE=B5=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acs2/nladmin-ui/src/views/acs/task/index.vue | 154 ++++++++++++++----- 1 file changed, 113 insertions(+), 41 deletions(-) diff --git a/acs2/nladmin-ui/src/views/acs/task/index.vue b/acs2/nladmin-ui/src/views/acs/task/index.vue index c66e3ddca..0d9818a21 100644 --- a/acs2/nladmin-ui/src/views/acs/task/index.vue +++ b/acs2/nladmin-ui/src/views/acs/task/index.vue @@ -217,9 +217,6 @@ /> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +
- 请选择 + {{ $t('task.select.Placeholder') }}
@@ -353,7 +418,7 @@ {{ $t('task.select.Confirm') }}
- + 添加新行 @@ -617,7 +682,14 @@ export default { to_x: null, to_y: null, to_z: null, - agv_system_type: '1' + from_x2: null, + from_y2: null, + from_z2: null, + to_x2: null, + to_y2: null, + to_z2: null, + agv_system_type: '1', + interaction_json: {} }, extension: [{ name: '', @@ -679,10 +751,10 @@ export default { saveForm() { // 保存表单数据 // 你可以在这里处理保存逻辑,并发送请求保存表单数据 - this.extension.reduce((form, item) => { - form[item.name] = item.value - return form - }, this.form) + this.form.interaction_json = this.extension.reduce((extension, item) => { + extension[item.name] = item.value + return extension + }, {}) this.dialogVisible = false }, saveBtn() {