From 89e17a219d8a6d208e4cb32a43e90abb89b3c93b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 25 Jan 2021 16:17:26 +0800
Subject: [PATCH] modify

---
 zq-erp/src/main/resources/templates/views/admin/hive/operate/label-list.html |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/operate/label-list.html b/zq-erp/src/main/resources/templates/views/admin/hive/operate/label-list.html
index 3973f5c..9d6bce4 100644
--- a/zq-erp/src/main/resources/templates/views/admin/hive/operate/label-list.html
+++ b/zq-erp/src/main/resources/templates/views/admin/hive/operate/label-list.html
@@ -110,9 +110,14 @@
 					+ '<ul class="dropdown-menu" role="menu">'
 					+ '<li><a href="javascript:void(0)" style="display:'
 					+ value
-					+ '"  onClick="lookInfo(\''
+					+ '"  onClick="openEdit(\''
 					+ value
-					+ '\')" title="编辑">查看</a></li>'
+					+ '\')" title="编辑">编辑</a></li>'
+					+ '<li><a href="javascript:void(0)" style="display:'
+					+ value
+					+ '" onClick="myGrid.delItem(\''
+					+ value
+					+ '\')" title="删除">删除</a></li>' + '</ul>' + '</div>';
 			html += '';
 			return html; 
 		} 
@@ -126,6 +131,16 @@
 				content : [ basePath+'/admin/label/edit']
 			}); 
 		}
+
+		 function openEdit(id) {
+			 layer.open({
+				 type : 2,
+				 title : "添加标签",
+				 area : [ MUI.SIZE_L, '400px' ],
+				 maxmin : true,
+				 content : [ basePath+'/admin/label/edit?id=' + id]
+			 });
+		 }
 	</script>
 </body>
 </html>

--
Gitblit v1.9.1