From b46e6d2306515f94bf77c06e8d80ac76267e3ddb Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 02 六月 2024 21:44:23 +0800
Subject: [PATCH] 搜索

---
 src/views/configuration/custom/planSettings.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/configuration/custom/planSettings.vue b/src/views/configuration/custom/planSettings.vue
index 50bcca1..a82571e 100644
--- a/src/views/configuration/custom/planSettings.vue
+++ b/src/views/configuration/custom/planSettings.vue
@@ -2,7 +2,7 @@
  * @Author: lzhe lzhe@example.com
  * @Date: 2024-03-26 10:28:33
  * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-05-30 18:04:52
+ * @LastEditTime: 2024-05-30 18:17:23
  * @FilePath: /smart-web/src/views/master/person/main/index.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -18,7 +18,7 @@
 						<template #reference>...</template>
 						<template #default>
 							<span class="popvoer-title" @click="table_edit(item,index)">缂栬緫</span>
-							<span  class="popvoer-title" style="margin-left: 12px" v-if="index != 0">鍒犻櫎</span>
+							<span  class="popvoer-title" style="margin-left: 12px" v-if="index != 0" @click="del_tab(item)">鍒犻櫎</span>
 						</template>
 					</el-popover>
 				</div>
@@ -138,6 +138,14 @@
 					this.$refs.saveDialog.open(this.productList,this.planData,'edit').setData(row);
 				})
 			},
+			del_tab(row) {
+				this.$HTTP.delete(`/api/blade-system/custom-template/remove`,[row.id]).then(res=> {
+					if(res.code == 200) {
+						this.$message.success("鎿嶄綔鎴愬姛");
+						this.getBaseData();
+					}
+				})
+			},
 			openPlan() {
 				this.dialog.save = true
 				this.$nextTick(() => {

--
Gitblit v1.9.3