From 4a6de4b0cfe91b2baca607f0223f26f2f177ffa6 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 22 四月 2025 11:22:55 +0800
Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb

---
 src/components/monifangzhen/schemeCard.vue |  614 ++++++++++++++++++++++++++++---------------------------
 1 files changed, 316 insertions(+), 298 deletions(-)

diff --git a/src/components/monifangzhen/schemeCard.vue b/src/components/monifangzhen/schemeCard.vue
index ea25099..b3499b8 100644
--- a/src/components/monifangzhen/schemeCard.vue
+++ b/src/components/monifangzhen/schemeCard.vue
@@ -2,8 +2,15 @@
   <div class="listCard">
     <!-- <div>鏂规鏁伴噺: {{ simStore.schemCard.length }}</div> -->
     <!-- 鎺ュ彛鐗堟湰鍒犻櫎璇ヤ唬鐮佸潡 -->
-    <el-card v-if="!schemeInfoShow" v-for="(item, key) in simStore.schemCard" :key="key"
-      :class="{ selected: selectedId === item.id }" @click="selectScheme(item.id)">
+    <!-- <el-card v-if="!schemeInfoShow" v-for="(item, key) in simStore.schemCard" :key="key"
+      :class="{ selected: selectedId === item.id }" @click="selectScheme(item.id)"> -->
+    <el-card
+      v-if="!schemeInfoShow"
+      v-for="(item, key) in schemeList"
+      :key="key"
+      :class="{ selected: selectedId === item.id }"
+      @click="selectScheme(item.id)"
+    >
       <div>
         <p>鏂规鍚嶇О : {{ item.name }}</p>
         <p>鍒涘缓鏃堕棿 : {{ formatTime(item.createTime) }}</p>
@@ -16,16 +23,27 @@
       </div>
       <div class="cardMenu">
         <div style="float: right; margin-top: 3px">
-          <el-button size="small" @click="setSchemClick(item)">鏂规璇︽儏</el-button>
+          <el-button size="small" @click="setSchemClick(item)"
+            >鏂规璇︽儏</el-button
+          >
           <el-button size="small" @click="startPlay(item)">杩涘叆妯℃嫙</el-button>
           <!--  :disabled="item.taskStatus !== 2" -->
         </div>
       </div>
     </el-card>
-    <schemeInfo v-if="schemeInfoShow" :selectedScheme="currentScheme" @back="handleBack" />
+    <schemeInfo
+      v-if="schemeInfoShow"
+      :selectedScheme="currentScheme"
+      @back="handleBack"
+    />
   </div>
 
-  <Message @close="close" class="mess" v-show="messageShow" :mesData="mesData" />
+  <Message
+    @close="close"
+    class="mess"
+    v-show="messageShow"
+    :mesData="mesData"
+  />
 </template>
 
 <script setup>
@@ -48,248 +66,248 @@
 function selectScheme(id) {
   selectedId.value = id;
 }
-simStore.setSchemCard([
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2025-01-13 19:33:04",
-    datPath: "e:/data/hydro/11011611021801/1878767214615695362",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-08-01 01:59:59",
-    fileCount: 299,
-    fileName: "涓滄睙娌熼洦閲忚0110.xls",
-    hotStart: false,
-    id: "1878767214431145986",
-    name: "闄嶉洦鏁版嵁锛氭埧灞卞尯涓滄睙娌熸暟鎹�",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-30 00:00:00",
-    taskId: "1878767214615695362",
-    taskStatus: 2,
-    updateTime: "2025-01-13 19:33:04",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2025-01-10 14:33:49",
-    datPath: "e:/data/hydro/11011611021801/1877604741980196866",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-08-02 01:00:00",
-    fileCount: 450,
-    fileName: "涓滄睙娌熼洦閲忚0110.xls",
-    hotStart: false,
-    id: "1877604741590126594",
-    name: "涓滄睙娌�0729-0801",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-29 22:00:00",
-    taskId: "1877604741980196866",
-    taskStatus: 2,
-    updateTime: "2025-01-10 14:33:49",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-12-27 12:28:45",
-    datPath: "e:/data/hydro/11011611021801/1872499838538584065",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-08-02 09:00:00",
-    fileCount: 654,
-    fileName: "涓滄睙娌熼洦閲忚0110.xls",
-    hotStart: false,
-    id: "1872499838278537217",
-    name: "鍖椾含甯�731鏆撮洦",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-28 20:00:00",
-    taskId: "1872499838538584065",
-    taskStatus: 2,
-    updateTime: "2024-12-27 12:28:45",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-12-20 15:00:11",
-    datPath: "e:/data/hydro/11011611021801/1870001233680502786",
-    dataType: 0,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2024-12-20 06:00:00",
-    fileCount: 86,
-    fileName: "",
-    hotStart: false,
-    id: "1870001233646948354",
-    name: "闆ㄥ己30mm",
-    noRainTime: 0,
-    outputPeriod: 300,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2024-12-20 00:00:00",
-    taskId: "1870001233680502786",
-    taskStatus: 2,
-    updateTime: "2024-12-20 15:00:11",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-12-19 17:34:34",
-    datPath: "e:/data/hydro/11011611021801/1869677696923045889",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-08-01 03:00:44",
-    fileCount: 388,
-    fileName: "鎴祦鍧濋洦閲忚0068.xls",
-    hotStart: false,
-    id: "1869677696608473090",
-    name: "鎴祦鍧濇暟鎹ā鎷�0729-0731",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-29 21:00:13",
-    taskId: "1869677696923045889",
-    taskStatus: 2,
-    updateTime: "2024-12-19 17:34:34",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-12-13 15:03:24",
-    datPath: "e:/data/hydro/11011611021801/1867465327392165890",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-07-31 12:00:00",
-    fileCount: 288,
-    fileName: "涓滄睙娌熼洦閲忚0110.xls",
-    hotStart: false,
-    id: "1867465327106953218",
-    name: "涓滄睙娌熸暟鎹ā鎷�0729-0731",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-29 12:00:00",
-    taskId: "1867465327392165890",
-    taskStatus: 2,
-    updateTime: "2024-12-13 15:03:24",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-11-28 19:01:16",
-    datPath: "e:/data/hydro/11011611021801/1862089369491931138",
-    dataType: 2,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2023-07-31 00:00:00",
-    fileCount: 145,
-    fileName: "涓滄睙娌熼洦閲忚0110.xls",
-    hotStart: false,
-    id: "1862089369462571010",
-    name: "涓滄睙娌熼洦閲�0731",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2023-07-30 00:00:00",
-    taskId: "1862089369491931138",
-    taskStatus: 2,
-    updateTime: "2024-11-28 19:01:16",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-11-28 18:47:45",
-    datPath: "e:/data/hydro/11011611021801/1862085967261270017",
-    dataType: 0,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2024-08-31 00:00:00",
-    fileCount: 145,
-    fileName: "",
-    hotStart: false,
-    id: "1862085967252881410",
-    name: "闆ㄥ己妯℃嫙鏂规0830",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2024-08-30 00:00:00",
-    taskId: "1862085967261270017",
-    taskStatus: 2,
-    updateTime: "2024-11-28 18:47:45",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-11-28 18:39:49",
-    datPath: "e:/data/hydro/11011611021801/1862083971414294529",
-    dataType: 1,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2024-07-31 00:00:00",
-    fileCount: 145,
-    fileName: "",
-    hotStart: false,
-    id: "1862083971003252737",
-    name: "闆ㄩ噺妯℃嫙鏂规0730",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2024-07-30 00:00:00",
-    taskId: "1862083971414294529",
-    taskStatus: 2,
-    updateTime: "2024-11-28 18:39:49",
-    userId: "0",
-  },
-  {
-    area: "瀛欒儭娌�",
-    areaId: "0",
-    createTime: "2024-11-28 17:26:45",
-    datPath: "e:/data/hydro/11011611021801/1862065584806100994",
-    dataType: 0,
-    dataValue: "",
-    depthThreshold: 0,
-    endTime: "2024-11-28 09:26:17",
-    fileCount: 57,
-    fileName: "",
-    hotStart: false,
-    id: "1862065584743186434",
-    name: "闆ㄥ己妯℃嫙鏂规1128",
-    noRainTime: 0,
-    outputPeriod: 600,
-    shpPath: "e:/data/hydro/11011611021801/shp",
-    simulateType: 1,
-    startTime: "2024-11-28 00:00:00",
-    taskId: "1862065584806100994",
-    taskStatus: 2,
-    updateTime: "2024-11-28 17:26:45",
-    userId: "0",
-  },
-]);
+// simStore.setSchemCard([
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2025-01-13 19:33:04",
+//     datPath: "e:/data/hydro/11011611021801/1878767214615695362",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-08-01 01:59:59",
+//     fileCount: 299,
+//     fileName: "涓滄睙娌熼洦閲忚0110.xls",
+//     hotStart: false,
+//     id: "1878767214431145986",
+//     name: "闄嶉洦鏁版嵁锛氭埧灞卞尯涓滄睙娌熸暟鎹�",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-30 00:00:00",
+//     taskId: "1878767214615695362",
+//     taskStatus: 2,
+//     updateTime: "2025-01-13 19:33:04",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2025-01-10 14:33:49",
+//     datPath: "e:/data/hydro/11011611021801/1877604741980196866",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-08-02 01:00:00",
+//     fileCount: 450,
+//     fileName: "涓滄睙娌熼洦閲忚0110.xls",
+//     hotStart: false,
+//     id: "1877604741590126594",
+//     name: "涓滄睙娌�0729-0801",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-29 22:00:00",
+//     taskId: "1877604741980196866",
+//     taskStatus: 2,
+//     updateTime: "2025-01-10 14:33:49",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-12-27 12:28:45",
+//     datPath: "e:/data/hydro/11011611021801/1872499838538584065",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-08-02 09:00:00",
+//     fileCount: 654,
+//     fileName: "涓滄睙娌熼洦閲忚0110.xls",
+//     hotStart: false,
+//     id: "1872499838278537217",
+//     name: "鍖椾含甯�731鏆撮洦",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-28 20:00:00",
+//     taskId: "1872499838538584065",
+//     taskStatus: 2,
+//     updateTime: "2024-12-27 12:28:45",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-12-20 15:00:11",
+//     datPath: "e:/data/hydro/11011611021801/1870001233680502786",
+//     dataType: 0,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2024-12-20 06:00:00",
+//     fileCount: 86,
+//     fileName: "",
+//     hotStart: false,
+//     id: "1870001233646948354",
+//     name: "闆ㄥ己30mm",
+//     noRainTime: 0,
+//     outputPeriod: 300,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2024-12-20 00:00:00",
+//     taskId: "1870001233680502786",
+//     taskStatus: 2,
+//     updateTime: "2024-12-20 15:00:11",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-12-19 17:34:34",
+//     datPath: "e:/data/hydro/11011611021801/1869677696923045889",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-08-01 03:00:44",
+//     fileCount: 388,
+//     fileName: "鎴祦鍧濋洦閲忚0068.xls",
+//     hotStart: false,
+//     id: "1869677696608473090",
+//     name: "鎴祦鍧濇暟鎹ā鎷�0729-0731",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-29 21:00:13",
+//     taskId: "1869677696923045889",
+//     taskStatus: 2,
+//     updateTime: "2024-12-19 17:34:34",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-12-13 15:03:24",
+//     datPath: "e:/data/hydro/11011611021801/1867465327392165890",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-07-31 12:00:00",
+//     fileCount: 288,
+//     fileName: "涓滄睙娌熼洦閲忚0110.xls",
+//     hotStart: false,
+//     id: "1867465327106953218",
+//     name: "涓滄睙娌熸暟鎹ā鎷�0729-0731",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-29 12:00:00",
+//     taskId: "1867465327392165890",
+//     taskStatus: 2,
+//     updateTime: "2024-12-13 15:03:24",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-11-28 19:01:16",
+//     datPath: "e:/data/hydro/11011611021801/1862089369491931138",
+//     dataType: 2,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2023-07-31 00:00:00",
+//     fileCount: 145,
+//     fileName: "涓滄睙娌熼洦閲忚0110.xls",
+//     hotStart: false,
+//     id: "1862089369462571010",
+//     name: "涓滄睙娌熼洦閲�0731",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2023-07-30 00:00:00",
+//     taskId: "1862089369491931138",
+//     taskStatus: 2,
+//     updateTime: "2024-11-28 19:01:16",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-11-28 18:47:45",
+//     datPath: "e:/data/hydro/11011611021801/1862085967261270017",
+//     dataType: 0,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2024-08-31 00:00:00",
+//     fileCount: 145,
+//     fileName: "",
+//     hotStart: false,
+//     id: "1862085967252881410",
+//     name: "闆ㄥ己妯℃嫙鏂规0830",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2024-08-30 00:00:00",
+//     taskId: "1862085967261270017",
+//     taskStatus: 2,
+//     updateTime: "2024-11-28 18:47:45",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-11-28 18:39:49",
+//     datPath: "e:/data/hydro/11011611021801/1862083971414294529",
+//     dataType: 1,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2024-07-31 00:00:00",
+//     fileCount: 145,
+//     fileName: "",
+//     hotStart: false,
+//     id: "1862083971003252737",
+//     name: "闆ㄩ噺妯℃嫙鏂规0730",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2024-07-30 00:00:00",
+//     taskId: "1862083971414294529",
+//     taskStatus: 2,
+//     updateTime: "2024-11-28 18:39:49",
+//     userId: "0",
+//   },
+//   {
+//     area: "瀛欒儭娌�",
+//     areaId: "0",
+//     createTime: "2024-11-28 17:26:45",
+//     datPath: "e:/data/hydro/11011611021801/1862065584806100994",
+//     dataType: 0,
+//     dataValue: "",
+//     depthThreshold: 0,
+//     endTime: "2024-11-28 09:26:17",
+//     fileCount: 57,
+//     fileName: "",
+//     hotStart: false,
+//     id: "1862065584743186434",
+//     name: "闆ㄥ己妯℃嫙鏂规1128",
+//     noRainTime: 0,
+//     outputPeriod: 600,
+//     shpPath: "e:/data/hydro/11011611021801/shp",
+//     simulateType: 1,
+//     startTime: "2024-11-28 00:00:00",
+//     taskId: "1862065584806100994",
+//     taskStatus: 2,
+//     updateTime: "2024-11-28 17:26:45",
+//     userId: "0",
+//   },
+// ]);
 const statusText = {
   0: "鏈紑濮�",
   1: "杩涜涓�",
@@ -315,7 +333,7 @@
   //   return;
   // }
   currentScheme.value = item;
-  schemeInfoShow.value = true
+  schemeInfoShow.value = true;
   emit("closeBtn", false);
   initeWaterPrimitiveView();
   emit("start");
@@ -337,63 +355,63 @@
 EventBus.on("hide-schemeInfo", handleHideSchemeInfo);
 
 //////////////////////////////////// 鏆撮湶閫変腑鐨� ID 缁欑埗缁勪欢锛堟帴鍙g増鏈垹闄わ級////////////////////////////////////
-defineExpose({
-  getSelectedId: () => selectedId.value,
-});
+// defineExpose({
+//   getSelectedId: () => selectedId.value,
+// });
 
 /////////////////////// 璋冪敤鎺ュ彛锛堜娇鐢ㄦ椂鎵撳紑锛� ///////////////////////
-// import { getData, getSimData, deleteSimData } from "@/api/trApi.js";
-// onMounted(() => {
-//   getScheme();
-// });
+import { getData, getSimData, deleteSimData } from "@/api/trApi.js";
+onMounted(() => {
+  getScheme();
+});
 
-// const props = defineProps({
-//   deleteSim: Boolean, // 鎺ユ敹鐖剁粍浠朵紶閫掔殑鍑芥暟
-// });
+const props = defineProps({
+  deleteSim: Boolean, // 鎺ユ敹鐖剁粍浠朵紶閫掔殑鍑芥暟
+});
 
-// watch(
-//   () => props.deleteSim,
-//   (newVal) => {
-//     if (newVal) {
-//       console.log(newVal);
-//       deleteSim();
-//       emit("reset");
-//     }
-//   }
-// );
+watch(
+  () => props.deleteSim,
+  (newVal) => {
+    if (newVal) {
+      console.log(newVal);
+      deleteSim();
+      emit("reset");
+    }
+  }
+);
 
-// const schemeList = ref([]);
+const schemeList = ref([]);
 
-// async function getScheme() {
-//   try {
-//     const res = await getSimData();
-//     schemeList.value = res.data;
-//   } catch (error) {
-//     console.error("Error fetching data:", error);
-//   }
-// }
+async function getScheme() {
+  try {
+    const res = await getSimData();
+    schemeList.value = res.data;
+  } catch (error) {
+    console.error("Error fetching data:", error);
+  }
+}
 
-// const deleteSim = () => {
-//   ElMessageBox.confirm("纭畾瑕佸垹闄よ鏂规鍚�?", "鍒犻櫎鏂规", {
-//     confirmButtonText: "OK",
-//     cancelButtonText: "Cancel",
-//   })
-//     .then(() => {
-//       deleteSimData(selectedId.value).then((res) => {
-//         getScheme();
-//       });
-//       ElMessage({
-//         type: "success",
-//         message: "鍒犻櫎鎴愬姛",
-//       });
-//     })
-//     .catch(() => {
-//       ElMessage({
-//         type: "info",
-//         message: "宸插彇娑堝垹闄�",
-//       });
-//     });
-// };
+const deleteSim = () => {
+  ElMessageBox.confirm("纭畾瑕佸垹闄よ鏂规鍚�?", "鍒犻櫎鏂规", {
+    confirmButtonText: "纭畾",
+    cancelButtonText: "鍙栨秷",
+  })
+    .then(() => {
+      deleteSimData(selectedId.value).then((res) => {
+        getScheme();
+      });
+      ElMessage({
+        type: "success",
+        message: "鍒犻櫎鎴愬姛",
+      });
+    })
+    .catch(() => {
+      ElMessage({
+        type: "info",
+        message: "宸插彇娑堝垹闄�",
+      });
+    });
+};
 /////////////////////// 璋冪敤鎺ュ彛缁撴潫 ///////////////////////
 onUnmounted(() => {
   EventBus.off("hide-schemeInfo", handleHideSchemeInfo);

--
Gitblit v1.9.3