Parcourir la source

经典模式下,过滤掉大屏应用菜单

klzhangweiya il y a 2 ans
Parent
commit
08e648942d

+ 13 - 0
VbdsmUI_V2.1.1/src/pc/manage/js/classic.util.js

@@ -104,6 +104,18 @@ function getWinXin() {
 	})
 }
 
+function filterTreeData(data) {
+	if (data && data.length > 0) {
+		data.forEach((e) => {
+			if (e.nodes && e.nodes.length > 0) {
+				e.nodes = e.nodes.filter((n) => {
+					return n.id !== 99
+				})
+			}
+		})
+	}
+}
+
 loadData = function () {
 	ajax({
 		url: 'web/explorer/my/app/getList.json',
@@ -111,6 +123,7 @@ loadData = function () {
 		dataType: 'json',
 		success: function (data) {
 			var treedata = data.data.list
+			filterTreeData(treedata)
 			var $tree = $('#menu').treeview({
 				levels: 1,
 				expandIcon: 'glyphicon menu-right pull-right',

+ 1 - 1
VbdsmUI_V2.1.1/src/pc/manage/js/desktop.util.js

@@ -443,7 +443,7 @@ define(
 						if (AUTH.roles[0].is_root) {
 							return
 						}
-						core.openApp({ icon: 'electricity_situation.png', fullable: 0, width: 1200, categoryId: 0, state: 1, type: 3, resize: 1, id: 42, content: '[8]', free: 1, title: '电能服务', height: 600, border: 0, reopen: 1 })
+						core.openApp({ icon: 'ttdcfb.png', fullable: 0, width: 1200, categoryId: 0, state: 1, type: 3, resize: 1, id: 98, content: '[8]', free: 1, title: '电能服务', height: 600, border: 0, reopen: 1 })
 					} else {
 						core.openApp({ icon: 'electricity_situation.png', fullable: 0, width: 1200, categoryId: 0, state: 1, type: 3, resize: 1, id: 73, content: '[100]', free: 1, title: '用电概况', height: 600, border: 0, reopen: 1 })
 					}