From 7b3148e4e5f5db5c989330d78453f4aaca3fc280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fannluo=28=E7=BD=97=E5=87=A1=29?= Date: Thu, 17 Aug 2023 20:12:51 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/utils/use-modal-close-confirmation.js | 11 +++++ .../apiConfigure/addApiInfo.vue | 19 ++++++--- .../apiConfigure/apiTable.vue | 17 +++++++- .../nodeConfigue/addField/index.vue | 41 +++++++++++++------ .../nodeConfigue/components/fieldConfig.vue | 15 ++++++- .../publicTrigger/addTrigger.vue | 17 +++++--- .../components/commonTriggerList.vue | 19 +++++++-- frontend/pc/src/views/service/serviceList.vue | 1 + .../pc/src/views/ticket/allTicket/index.vue | 5 ++- .../ticket/details/taskInfo/dealTask.vue | 6 +-- 10 files changed, 116 insertions(+), 35 deletions(-) create mode 100644 frontend/pc/src/utils/use-modal-close-confirmation.js diff --git a/frontend/pc/src/utils/use-modal-close-confirmation.js b/frontend/pc/src/utils/use-modal-close-confirmation.js new file mode 100644 index 000000000..19a550429 --- /dev/null +++ b/frontend/pc/src/utils/use-modal-close-confirmation.js @@ -0,0 +1,11 @@ +export default function useModalCloseConfirmation(title, subTitle) { + return new Promise(resolve => { + window.app.$bkInfo({ + title: title || '确认离开当前页?', + subTitle: subTitle || '离开会导致未保存信息丢失', + okText: '离开', + confirmFn: () => resolve(true), + cancelFn: () => resolve(false), + }); + }); +} diff --git a/frontend/pc/src/views/processManagement/apiConfigure/addApiInfo.vue b/frontend/pc/src/views/processManagement/apiConfigure/addApiInfo.vue index 6f3fc00d0..dc33a3f10 100644 --- a/frontend/pc/src/views/processManagement/apiConfigure/addApiInfo.vue +++ b/frontend/pc/src/views/processManagement/apiConfigure/addApiInfo.vue @@ -69,25 +69,28 @@ :property="'name'"> + v-model="directory.formInfo.name" + @change="$emit('change')"> - + + v-model="directory.formInfo.func_name" + @change="$emit('change')"> + :disabled="(directory.formInfo.category === 'component' || directory.formInfo.category === 'buffet_component') && typeInfo !== 'ADD'" + @change="$emit('change')"> @@ -276,7 +281,7 @@ - +