Browse Source

add topFMenu

wu 1 month ago
parent
commit
26717220e7
1 changed files with 15 additions and 0 deletions
  1. 15 0
      assets/lib/manage/main.js

+ 15 - 0
assets/lib/manage/main.js

@@ -741,6 +741,21 @@ function topCMenu(e)
 	})
 }
 
+function topFMenu(e)
+{
+	var p = e.parent().parent().parent().find('span');
+	p.html(e.html());
+
+	//更新当前的精细权限
+	var url = config.host + 'company.setFactory?json=1';
+	var id = e.attr('data-id');
+
+	$.post(url, {company_id:id}, function(t)
+	{
+		location.reload();
+	})
+}
+
 //链接跳转
 function go(key, value)
 {