From e5a8c6dbe76443df35958c3a8b1fc3fc6ac0fb93 Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期五, 26 十二月 2025 08:50:27 +0800
Subject: [PATCH] 月结管理-按钮权限修复
---
src/main/webapp/static/js/monthlySettle/monthlySettle.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/monthlySettle/monthlySettle.js b/src/main/webapp/static/js/monthlySettle/monthlySettle.js
index f8600d9..87b7958 100644
--- a/src/main/webapp/static/js/monthlySettle/monthlySettle.js
+++ b/src/main/webapp/static/js/monthlySettle/monthlySettle.js
@@ -51,6 +51,32 @@
top.location.href = baseUrl + "/";
}
pageCurr = curr;
+ // 寤惰繜璋冪敤鏉冮檺鎺у埗锛岀‘淇濊〃鏍兼搷浣滃垪鐨勬寜閽凡缁忔覆鏌撳畬鎴�
+ setTimeout(function() {
+ var param = window.location.href.split("?")[1];
+ if (null != param) {
+ var resourceId = param.split("=")[1];
+ $.ajax({
+ url: baseUrl+"/power/menu/"+resourceId+"/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'GET',
+ async: false,
+ success: function (res) {
+ if (res.code === 200){
+ for(var i = 0, len = res.data.length; i < len; i++) {
+ var code = res.data[i].code;
+ $('#'+code).css("display", "inline-block");
+ $('.'+code).css("display", "inline-block");
+ }
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg)
+ }
+ }
+ });
+ }
+ }, 200);
}
});
@@ -636,6 +662,32 @@
top.location.href = baseUrl+"/";
}
pageCurr=curr;
+ // 寤惰繜璋冪敤鏉冮檺鎺у埗锛岀‘淇濊〃鏍兼搷浣滃垪鐨勬寜閽凡缁忔覆鏌撳畬鎴�
+ setTimeout(function() {
+ var param = window.location.href.split("?")[1];
+ if (null != param) {
+ var resourceId = param.split("=")[1];
+ $.ajax({
+ url: baseUrl+"/power/menu/"+resourceId+"/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'GET',
+ async: false,
+ success: function (res) {
+ if (res.code === 200){
+ for(var i = 0, len = res.data.length; i < len; i++) {
+ var code = res.data[i].code;
+ $('#'+code).css("display", "inline-block");
+ $('.'+code).css("display", "inline-block");
+ }
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg)
+ }
+ }
+ });
+ }
+ }, 200);
if (res.data.length === 0 && count !== 0) {
var reloadTableInstance = child ? parent.tableIns : tableIns;
// 濡傛灉 searchData 涓虹┖锛屼篃瀹屽叏鏇挎崲 where 瀵硅薄
--
Gitblit v1.9.1