From 59c99660816a0833f74ff1162b47bbf05d6805b5 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期二, 03 三月 2026 15:23:15 +0800
Subject: [PATCH] APP功能修改
---
igdss-app/js/admin/index.js | 37 ++++++++++++++-----------------------
1 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/igdss-app/js/admin/index.js b/igdss-app/js/admin/index.js
index 9b8e9c7..ae9a50c 100644
--- a/igdss-app/js/admin/index.js
+++ b/igdss-app/js/admin/index.js
@@ -1,5 +1,6 @@
var listDept = null;
var url;
+var userType;
var slider = mui(".mui-slider");
var data = {
"interfaceId": "5002",
@@ -33,17 +34,19 @@
mui('.mui-off-canvas-wrap').offCanvas().toggle();
var id = this.getAttribute("id");
var dept = listDept[id];
- $("#deptName").html("鎵�鍦ㄥ簱鍖猴細" + dept.name);
+ $("#deptName").html("鎵�鍦ㄥ簱鍖猴細" + dept.kqmc);
+ console.log(JSON.stringify(dept.id))
localStorage.setItem('selectDeptId', JSON.stringify(dept.id));
});
//娓叉煋鍒嗗簱鍒楄〃
function renderListDept() {
+
if (listDept) {
var html = '';
$.each(listDept, function(index, item) {
html += '<li><a id="' + index + '" href="" class="link">';
- html += '<span class="t">' + item.name + '</span>';
+ html += '<span class="t">' + item.kqmc + '</span>';
html += '<span class="mui-icon mui-icon-arrowright"></span>';
html += '</a></li>';
})
@@ -92,6 +95,15 @@
var id = this.getAttribute("id");
if (id) {
+
+ if(id.includes("work-manager")&userType!="30"){
+ mui.openWindow({
+ url: id + ".html",
+ id: id
+ })
+ return;
+ }
+
var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
if(selectDeptId){
mui.openWindow({
@@ -105,24 +117,3 @@
mui.alert('鏃犳潈鏌ョ湅姝ゅ姛鑳斤紒', '鎻愮ず', ["纭畾"], function() {}, "div");
}
});
-
-// //璺宠浆姘旇薄椤甸潰
-// function getWeatherView() {
-// mui.openWindow({
-// url: "./weather.html?url=" +
-// "https://widget-page.heweather.net/h5/index.html?md=03456&bg=1&lc=accu&key=3cb8c045697b43c2b858751a145464aa&demo=true&v=_1617326246190&demo=true",
-// id: 'weather'
-// })
-// }
-
-// //璺宠浆璁惧鎿嶄綔椤甸潰
-// function getDeviceView(tag, typeName) {
-// mui.openWindow({
-// url: "device-listDepot.html",
-// id: "device-listDepot",
-// extras: {
-// tag: tag,
-// typeName: typeName
-// }
-// })
-// }
--
Gitblit v1.9.3