From 2af5f043b60c1f7ac38ecccc8f5bf44743134325 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:08:00 +0800
Subject: [PATCH] test

---
 pages/task/map-task.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/pages/task/map-task.vue b/pages/task/map-task.vue
index 58776c7..df448cd 100644
--- a/pages/task/map-task.vue
+++ b/pages/task/map-task.vue
@@ -238,7 +238,12 @@
 				})
 			},
 			clickDelSetTask(item) {
-				showModal("纭鍒犻櫎浠诲姟璁剧疆", "璀﹀憡",true,"纭畾","鍙栨秷").then((res) => {
+				showModal({
+					title: this.translate('ask_confirm_delete'),
+					content: `${this.translate('history_task_will_be_retained')}`,
+					confirmText: this.translate('delete'),
+					cancelText: this.translate('cancel'),
+				}).then((res) => {
 					if (res) {
 						const list = this.setList
 						const index = list.findIndex((a) => {
@@ -269,23 +274,21 @@
 						[]
 					]
 					this.deleteX[root][index] = old; // 閲嶇疆鍋忕Щ閲�-				} else
-				{
+				} else {
 					this.deleteX = [
 						[],
 						[]
 					]
 					this.deleteX[root][index] = 0; // 閲嶇疆鍋忕Щ閲� 				}
-				
+
 			},
 			touchMove(event, root, index) {
 				const moveX = event.touches[0].pageX - this.startX;
 				if (moveX < 0) {
 					this.deleteX[root][index] = moveX; // 宸︽粦鏃舵洿鏂板亸绉婚噺
-				}
-				else if (moveX > 0) {
-					this.deleteX[root][index] =0
+				} else if (moveX > 0) {
+					this.deleteX[root][index] = 0
 				}
 			},
 			touchEnd(event, root, index) {
@@ -295,7 +298,10 @@
 					this.deleteX[root][index] = 0; // 鍚﹀垯鎭㈠鍘熶綅
 				}
 			},
-
+			translate(t) {
+				if (typeof this.$t == "function") return this.$t(`page.${t}`)
+				else return t;
+			},
 
 		}
 	}

--
Gitblit v1.9.1