From 0aa2f3eb3aa81a0bd055442919b8120d87094003 Mon Sep 17 00:00:00 2001 From: luofann Date: Tue, 7 May 2024 21:43:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0bkui-form?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20#ignore=20#=20Reviewed,=20transaction=20id?= =?UTF-8?q?:=207226?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/desktop/package.json | 2 +- .../ExecuteInfo/JsonschemaForm.vue | 48 +++++++++++-------- .../NodeConfig/JsonschemaInputParams.vue | 10 +++- 3 files changed, 39 insertions(+), 21 deletions(-) diff --git a/frontend/desktop/package.json b/frontend/desktop/package.json index 5b59286759..2da76621e5 100644 --- a/frontend/desktop/package.json +++ b/frontend/desktop/package.json @@ -11,7 +11,7 @@ "license": "ISC", "dependencies": { "@blueking/bkcharts": "^2.0.11-alpha.5", - "@blueking/bkui-form": "0.0.41", + "@blueking/bkui-form": "0.0.41-beta.1", "@blueking/crypto-js-sdk": "0.0.5", "@blueking/notice-component-vue2": "^2.0.1", "@blueking/user-selector": "^1.0.5-beta.2", diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue index b03274472a..c4a028d2e5 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue @@ -5,6 +5,7 @@ :readonly="true" :value="formData" :schema="schema" + :context="context" :layout="{ group: [], container: { gap: '14px' } }"> @@ -33,7 +34,11 @@ }, data () { return { - formData: tools.deepClone(this.value) + formData: tools.deepClone(this.value), + context: { + site_url: $.context.site_url, + project_id: $.context.project?.id + } } }, watch: { @@ -45,28 +50,33 @@