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 @@
-
+
@@ -29,7 +35,10 @@
- 保存 & 发送请求
+
+ 取消
+ 保存 & 发送请求
+
@@ -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()
+}