Authored by wangtao

Merge branch 'master-500-dev' of http://113.200.75.45:82/monitor_v3/hg-monitor-w…

…eb into master-500-dev
@@ -124,7 +124,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm @@ -124,7 +124,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
124 var cols = commonCols.resTypeCls[colResType]; 124 var cols = commonCols.resTypeCls[colResType];
125 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 125 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
126 admin.req({ 126 admin.req({
127 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 127 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" + parentId
128 , done: function (res) { 128 , done: function (res) {
129 if (res && res.data ) { 129 if (res && res.data ) {
130 let arr=res.data; 130 let arr=res.data;
@@ -271,7 +271,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm @@ -271,7 +271,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
271 var cols = commonCols.resTypeCls[resType]; 271 var cols = commonCols.resTypeCls[resType];
272 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 272 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
273 admin.req({ 273 admin.req({
274 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 274 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" + $("#biz_virtual_platForm_select").val()
275 , done: function (res) { 275 , done: function (res) {
276 if (res && res.data ) { 276 if (res && res.data ) {
277 let arr=res.data; 277 let arr=res.data;
@@ -118,6 +118,8 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions @@ -118,6 +118,8 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
118 } 118 }
119 //加载右下角弹窗 119 //加载右下角弹窗
120 loadRightBottomTips(); 120 loadRightBottomTips();
  121 + //长期登录账户自动刷新
  122 + getForeverUser();
121 123
122 //加载业务信息 124 //加载业务信息
123 function loadBizInfo() { 125 function loadBizInfo() {
@@ -2025,6 +2027,26 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions @@ -2025,6 +2027,26 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
2025 } 2027 }
2026 }); 2028 });
2027 } 2029 }
  2030 + function getForeverUser(){
  2031 + admin.req({
  2032 + url: common.domainName + "/api-user/users/getForeverUser",
  2033 + type: "get",
  2034 + success: function (res) {
  2035 + if (res.success) {
  2036 + var lgn = localStorage.getItem("lgn");
  2037 + if (res.str.indexOf(lgn) != -1) {
  2038 + refresh();
  2039 + }
  2040 + }
  2041 + }
  2042 + });
  2043 + }
  2044 + function refresh(){
  2045 + setInterval(function (){
  2046 + loadBizInfo();
  2047 + loadResTypeInfo();
  2048 + },60000);
  2049 + }
2028 2050
2029 2051
2030 }); 2052 });
@@ -838,7 +838,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', @@ -838,7 +838,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
838 }); 838 });
839 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 839 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
840 admin.req({ 840 admin.req({
841 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 841 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" +$("#resManageIndexForm").find("select[name='parentId']").val()
842 , done: function (res) { 842 , done: function (res) {
843 if (res && res.data ) { 843 if (res && res.data ) {
844 let arr=res.data; 844 let arr=res.data;
@@ -443,7 +443,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols @@ -443,7 +443,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols
443 }); 443 });
444 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 444 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
445 admin.req({ 445 admin.req({
446 - url: common.domainName + "/api-web/resource/expand/list?resType=" + "OperatingSystem" 446 + url: common.domainName + "/api-web/resource/expand/list?resType=" + "OperatingSystem" + "&parentId=" + $("#biz_res_cluster").val()
447 , done: function (res) { 447 , done: function (res) {
448 if (res && res.data ) { 448 if (res && res.data ) {
449 let arr=res.data; 449 let arr=res.data;
@@ -595,7 +595,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols @@ -595,7 +595,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols
595 var cols = commonCols.resTypeCls[resType]; 595 var cols = commonCols.resTypeCls[resType];
596 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 596 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
597 admin.req({ 597 admin.req({
598 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 598 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" + $("#biz_res_cluster").val()
599 , done: function (res) { 599 , done: function (res) {
600 if (res && res.data ) { 600 if (res && res.data ) {
601 let arr=res.data; 601 let arr=res.data;
@@ -722,7 +722,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols @@ -722,7 +722,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols
722 var cols = commonCols.resTypeCls[resType]; 722 var cols = commonCols.resTypeCls[resType];
723 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 723 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
724 admin.req({ 724 admin.req({
725 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 725 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" + $("#biz_res_cluster").val()
726 , done: function (res) { 726 , done: function (res) {
727 if (res && res.data ) { 727 if (res && res.data ) {
728 let arr=res.data; 728 let arr=res.data;
@@ -862,7 +862,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols @@ -862,7 +862,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols
862 var cols = commonCols.resTypeCls[resType]; 862 var cols = commonCols.resTypeCls[resType];
863 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 863 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
864 admin.req({ 864 admin.req({
865 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 865 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId=" + $("#biz_virtual_platForm_select").val()
866 , done: function (res) { 866 , done: function (res) {
867 if (res && res.data ) { 867 if (res && res.data ) {
868 let arr=res.data; 868 let arr=res.data;
@@ -207,7 +207,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -207,7 +207,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
207 } 207 }
208 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 208 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
209 admin.req({ 209 admin.req({
210 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 210 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId="+$("#res_cluster").val()
211 , done: function (res) { 211 , done: function (res) {
212 if (res && res.data ) { 212 if (res && res.data ) {
213 let arr=res.data; 213 let arr=res.data;
@@ -842,7 +842,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -842,7 +842,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
842 var cols = commonCols.resTypeCls[resType]; 842 var cols = commonCols.resTypeCls[resType];
843 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 843 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
844 admin.req({ 844 admin.req({
845 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 845 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId="+$("#res_cluster").val()
846 , done: function (res) { 846 , done: function (res) {
847 if (res && res.data ) { 847 if (res && res.data ) {
848 let arr=res.data; 848 let arr=res.data;
@@ -1086,7 +1086,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -1086,7 +1086,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
1086 var cols = commonCols.resTypeCls[resType]; 1086 var cols = commonCols.resTypeCls[resType];
1087 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 1087 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
1088 admin.req({ 1088 admin.req({
1089 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 1089 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId="+$("#res_cluster").val()
1090 , done: function (res) { 1090 , done: function (res) {
1091 if (res && res.data ) { 1091 if (res && res.data ) {
1092 let arr=res.data; 1092 let arr=res.data;
@@ -1257,7 +1257,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -1257,7 +1257,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
1257 var cols = commonCols.resTypeCls[resType]; 1257 var cols = commonCols.resTypeCls[resType];
1258 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05 1258 //start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
1259 admin.req({ 1259 admin.req({
1260 - url: common.domainName + "/api-web/resource/expand/list?resType=" + resType 1260 + url: common.domainName + "/api-web/resource/expand/list?resType=" + resType + "&parentId="+$("#res_cluster").val()
1261 , done: function (res) { 1261 , done: function (res) {
1262 if (res && res.data ) { 1262 if (res && res.data ) {
1263 let arr=res.data; 1263 let arr=res.data;