From 5e43281d1d7a103c8f211ae5c86df7c89466e13b Mon Sep 17 00:00:00 2001
From: jyy <935090232@qq.com>
Date: Tue, 26 Jan 2021 14:16:59 +0800
Subject: [PATCH] Merge branch 'api' into hive2.0

---
 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