From 5b0840b92d053dc7ce116dff600c7736c5c30035 Mon Sep 17 00:00:00 2001 From: QuietlyChan <1013893148@qq.com> Date: Mon, 18 Mar 2024 17:47:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=AE=A1=E7=90=86=E5=BC=B9=E7=AA=97=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE=EF=BC=8C=E5=B9=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0ESC=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ChartDataPondControl/index.vue | 32 +++++++++++++++---- .../components/RequestGlobalConfig/index.vue | 6 +++- .../components/ChartDataRequest/index.vue | 17 ++++++++-- .../components/ChartDataRequest/pondIndex.vue | 24 ++++++++++---- .../ProjectItemsModalCard/index.vue | 2 +- 5 files changed, 65 insertions(+), 16 deletions(-) diff --git a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue index 1e4ac8c7..65041b6e 100644 --- a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue @@ -1,5 +1,11 @@ - 保存 & 发送请求 +
+ 取消 + 保存 & 发送请求 +
@@ -82,9 +91,12 @@ const pondData = computed(() => { return data[0] }) -watch(() => props.modelShow, (newValue) => { - modelShowRef.value = newValue -}) +watch( + () => props.modelShow, + newValue => { + modelShowRef.value = newValue + } +) watch( () => pondData.value, @@ -189,7 +201,7 @@ const deletePond = (targetData: RequestDataPondItemType) => { } // 关闭 -const closeHandle = () => { +const closeAndSendHandle = () => { // 将所选内容赋值给对象 if (pondData.value) { targetData.value.request = { @@ -200,6 +212,14 @@ const closeHandle = () => { emit('update:modelShow', false) emit('sendHandle') } + +const closeHandle = () => { + emit('update:modelShow', false) +} + +const onEsc = () => { + closeHandle() +}