From 5dacdee9b54c78372b68140e2b068d03a620eab9 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 02 七月 2025 19:00:52 +0800
Subject: [PATCH] 修改bug

---
 ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/tCompany_info.js |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/tCompany_info.js b/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/tCompany_info.js
index 18cfc0d..6d1b18e 100644
--- a/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/tCompany_info.js
+++ b/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/tCompany_info.js
@@ -804,16 +804,24 @@
 };
 
 function deleteSub(e) {
-
-    var ajax = new $ax(Feng.ctxPath + '/tCompany/searchArea', function (data) {
-        if (data === "该区域正被打车卡使用,不允许移除"){
-            Feng.error(data);
-            return false;
-        }else {
-            $(e).parent().parent().remove();
-        }
+    swal({
+        title: "您是否确认删除该区域?",
+        type: "warning",
+        showCancelButton: true,
+        confirmButtonColor: "#DD6B55",
+        confirmButtonText: "删除",
+        closeOnConfirm: false
+    }, function () {
+        var ajax = new $ax(Feng.ctxPath + '/tCompany/searchArea', function (data) {
+            if (data === "该区域正被打车卡使用,不允许移除") {
+                Feng.error(data);
+                return false;
+            } else {
+                $(e).parent().parent().remove();
+            }
+        });
+        ajax.set("companyId", $("#id").val());   ///   适用地区id
+        ajax.set("id", $($(e).parent('td').prev('td').find('input')[0]).val());   ///   适用地区id
+        ajax.start();
     });
-    ajax.set("companyId",$("#id").val());   ///   适用地区id
-    ajax.set("id",$($(e).parent('td').prev('td').find('input')[0]).val());   ///   适用地区id
-    ajax.start();
 }
\ No newline at end of file

--
Gitblit v1.7.1