Authored by wangtao

Merge branch 'master-mj' of http://113.200.75.45:82/monitor_v3/hg-monitor-web into master-mj

Showing 19 changed files with 159 additions and 87 deletions
@@ -7,11 +7,13 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -7,11 +7,13 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
7 exports('backupDingjia', function () { 7 exports('backupDingjia', function () {
8 var sessions = layui.sessions; 8 var sessions = layui.sessions;
9 var accessToken = localStorage.getItem("accessToken"); 9 var accessToken = localStorage.getItem("accessToken");
  10 + //加载业务
10 loadConditionSelect(); 11 loadConditionSelect();
11 - reloadAllChange(); 12 + //加载表格数据
  13 + renderBackupDingjiaListTable();
12 //发送状态 14 //发送状态
13 // 下拉框改变搜索 15 // 下拉框改变搜索
14 - form.on('select(slt-dingjia-biz)', reloadAllChange); 16 + form.on('select(slt-dingjia-biz)', renderBackupDingjiaListTable);
15 17
16 // 加载查询条件下拉框 18 // 加载查询条件下拉框
17 function loadConditionSelect() { 19 function loadConditionSelect() {
@@ -117,12 +119,6 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -117,12 +119,6 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
117 } 119 }
118 }) 120 })
119 } 121 }
120 -  
121 - // 图表,表格重新加载  
122 - function reloadAllChange() {  
123 - renderBackupDingjiaListTable();  
124 - loadConditionSelect();  
125 - }  
126 }); 122 });
127 123
128 }); 124 });
@@ -386,7 +386,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -386,7 +386,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
386 show: true, 386 show: true,
387 position: 'top', 387 position: 'top',
388 textStyle: { 388 textStyle: {
389 - color: '#555' 389 + color: '#a3a3a4'
390 }, 390 },
391 formatter: function (data) { 391 formatter: function (data) {
392 return totalList[data.dataIndex] 392 return totalList[data.dataIndex]
@@ -402,8 +402,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -402,8 +402,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
402 title: { 402 title: {
403 text: '系统升级和补丁升级图示', 403 text: '系统升级和补丁升级图示',
404 textStyle: { 404 textStyle: {
405 - color: '#00D81E06',  
406 - fontSize: 5 405 + color: '#a3a3a4',
  406 + fontSize: 12
407 } 407 }
408 }, 408 },
409 tooltip: { 409 tooltip: {
@@ -421,6 +421,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -421,6 +421,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
421 }, 421 },
422 legend: { 422 legend: {
423 data: ['系统升级', '补丁升级'], 423 data: ['系统升级', '补丁升级'],
  424 + textStyle: {
  425 + color: '#a3a3a4'
  426 +
  427 + },
424 selectedMode: false 428 selectedMode: false
425 }, 429 },
426 grid: [{ 430 grid: [{
@@ -433,7 +437,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -433,7 +437,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
433 type: 'category', 437 type: 'category',
434 data: xData, 438 data: xData,
435 axisLabel: { 439 axisLabel: {
436 - color: '#333', 440 + color: '#a3a3a4',
437 show: true, 441 show: true,
438 interval:0, 442 interval:0,
439 rotate:15 443 rotate:15
@@ -454,7 +458,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -454,7 +458,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
454 type: 'value', 458 type: 'value',
455 gridIndex: 0, 459 gridIndex: 0,
456 axisLabel: { 460 axisLabel: {
457 - color: '#333' 461 + color: '#a3a3a4'
458 }, 462 },
459 splitLine: { 463 splitLine: {
460 lineStyle: { 464 lineStyle: {
@@ -1760,6 +1760,29 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -1760,6 +1760,29 @@ layui.define(['xmSelect', 'md5'], function (exports) {
1760 }); 1760 });
1761 return value; 1761 return value;
1762 }, 1762 },
  1763 + /**
  1764 + * 获取机房的cmdb配置项类
  1765 + */
  1766 + getCmdbMachineObjectId:function () {
  1767 + var accessToken = '';
  1768 + var cmdbMachineRoomObjId = '';
  1769 + layui.use(['sessions', 'common'], function () {
  1770 + accessToken = layui.common.getMjToken();
  1771 + });
  1772 + let url = `${obj.domainName}/mj/sys/conf/getSelect/objectId?accessToken=${accessToken}`
  1773 + $.ajax({
  1774 + url: url,
  1775 + async: false,
  1776 + success: function (res) {
  1777 + var selects = res.data.options;
  1778 + if(selects && selects.length>0){
  1779 + cmdbMachineRoomObjId = selects[0].value;
  1780 + }
  1781 +
  1782 + }
  1783 + })
  1784 + return cmdbMachineRoomObjId;
  1785 + }
1763 1786
1764 }; 1787 };
1765 1788
@@ -14,7 +14,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate' @@ -14,7 +14,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
14 exports('deviceAdd', function (data) { 14 exports('deviceAdd', function (data) {
15 var accessToken = common.getMjToken(); 15 var accessToken = common.getMjToken();
16 //机房cmdb配置项类id 16 //机房cmdb配置项类id
17 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 17 + var objectId = common.getCmdbMachineObjectId();
18 var enterTime = {}; 18 var enterTime = {};
19 var outTime = {}; 19 var outTime = {};
20 var devicesBak = []; 20 var devicesBak = [];
@@ -11,7 +11,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -11,7 +11,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
11 exports('devicehitch', function () { 11 exports('devicehitch', function () {
12 var accessToken = common.getMjToken(); 12 var accessToken = common.getMjToken();
13 //机房cmdb配置项类id 13 //机房cmdb配置项类id
14 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 14 + var objectId = common.getCmdbMachineObjectId();
15 var domainName = common.domainName; 15 var domainName = common.domainName;
16 var orgChart = echarts.init(document.getElementById('chart-devicehitch-report')); 16 var orgChart = echarts.init(document.getElementById('chart-devicehitch-report'));
17 var dateLimit = ""; 17 var dateLimit = "";
@@ -293,7 +293,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -293,7 +293,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
293 show: true, 293 show: true,
294 position: 'top', 294 position: 'top',
295 textStyle: { 295 textStyle: {
296 - color: '#555' 296 + color: '#a3a3a4'
297 }, 297 },
298 formatter: function (data) { 298 formatter: function (data) {
299 return totalList[data.dataIndex] 299 return totalList[data.dataIndex]
@@ -309,8 +309,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -309,8 +309,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
309 title: { 309 title: {
310 text: '设备维修统计图示', 310 text: '设备维修统计图示',
311 textStyle: { 311 textStyle: {
312 - color: '#00D81E06',  
313 - fontSize: 5 312 + color: '#a3a3a4',
  313 + fontSize: 12
314 } 314 }
315 }, 315 },
316 tooltip: { 316 tooltip: {
@@ -328,6 +328,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -328,6 +328,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
328 }, 328 },
329 legend: { 329 legend: {
330 data: ['未维修', '已维修'], 330 data: ['未维修', '已维修'],
  331 + textStyle: {
  332 + color: '#a3a3a4'
  333 +
  334 + },
331 selectedMode: false 335 selectedMode: false
332 }, 336 },
333 grid: [{ 337 grid: [{
@@ -340,7 +344,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -340,7 +344,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
340 type: 'category', 344 type: 'category',
341 data: xData, 345 data: xData,
342 axisLabel: { 346 axisLabel: {
343 - color: '#333', 347 + color: '#a3a3a4',
344 show: true, 348 show: true,
345 interval:0, 349 interval:0,
346 rotate:15 350 rotate:15
@@ -361,7 +365,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -361,7 +365,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
361 type: 'value', 365 type: 'value',
362 gridIndex: 0, 366 gridIndex: 0,
363 axisLabel: { 367 axisLabel: {
364 - color: '#333' 368 + color: '#a3a3a4'
365 }, 369 },
366 splitLine: { 370 splitLine: {
367 lineStyle: { 371 lineStyle: {
@@ -16,7 +16,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect @@ -16,7 +16,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
16 exports('devicehitchAdd', function (data) { 16 exports('devicehitchAdd', function (data) {
17 var accessToken = common.getMjToken(); 17 var accessToken = common.getMjToken();
18 //机房cmdb配置项类id 18 //机房cmdb配置项类id
19 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 19 + var objectId = common.getCmdbMachineObjectId();
20 var userSelect = ""; 20 var userSelect = "";
21 var currentDate = {} 21 var currentDate = {}
22 var applyDate = {} 22 var applyDate = {}
@@ -437,7 +437,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -437,7 +437,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
437 show: true, 437 show: true,
438 position: 'top', 438 position: 'top',
439 textStyle: { 439 textStyle: {
440 - color: '#555' 440 + color: '#a3a3a4'
441 }, 441 },
442 formatter: function (data) { 442 formatter: function (data) {
443 return totalList[data.dataIndex] 443 return totalList[data.dataIndex]
@@ -453,8 +453,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -453,8 +453,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
453 title: { 453 title: {
454 text: '应急预案和演练报告图示', 454 text: '应急预案和演练报告图示',
455 textStyle: { 455 textStyle: {
456 - color: '#00D81E06',  
457 - fontSize: 5 456 + color: '#a3a3a4',
  457 + fontSize: 12
458 } 458 }
459 }, 459 },
460 tooltip: { 460 tooltip: {
@@ -472,6 +472,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -472,6 +472,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
472 }, 472 },
473 legend: { 473 legend: {
474 data: ['应急预案', '演练报告'], 474 data: ['应急预案', '演练报告'],
  475 + textStyle: {
  476 + color: '#a3a3a4'
  477 +
  478 + },
475 selectedMode: false 479 selectedMode: false
476 }, 480 },
477 grid: [{ 481 grid: [{
@@ -484,7 +488,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -484,7 +488,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
484 type: 'category', 488 type: 'category',
485 data: xData, 489 data: xData,
486 axisLabel: { 490 axisLabel: {
487 - color: '#333', 491 + color: '#a3a3a4',
488 show: true, 492 show: true,
489 interval: 0, 493 interval: 0,
490 rotate: 15 494 rotate: 15
@@ -505,7 +509,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -505,7 +509,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
505 type: 'value', 509 type: 'value',
506 gridIndex: 0, 510 gridIndex: 0,
507 axisLabel: { 511 axisLabel: {
508 - color: '#333' 512 + color: '#a3a3a4'
509 }, 513 },
510 splitLine: { 514 splitLine: {
511 lineStyle: { 515 lineStyle: {
@@ -20,7 +20,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -20,7 +20,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
20 var manufactureArr = []; 20 var manufactureArr = [];
21 var machineArr = []; 21 var machineArr = [];
22 //机房cmdb配置项类id 22 //机房cmdb配置项类id
23 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 23 + var objectId = common.getCmdbMachineObjectId();
24 //日期范围选择 24 //日期范围选择
25 laydate.render({ 25 laydate.render({
26 elem: '#devicedateLimit' 26 elem: '#devicedateLimit'
@@ -514,7 +514,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -514,7 +514,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
514 show: true, 514 show: true,
515 position: 'top', 515 position: 'top',
516 textStyle: { 516 textStyle: {
517 - color: '#555' 517 + color: '#a3a3a4'
518 }, 518 },
519 formatter: function (data) { 519 formatter: function (data) {
520 return totalList[data.dataIndex] 520 return totalList[data.dataIndex]
@@ -530,8 +530,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -530,8 +530,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
530 title: { 530 title: {
531 text: '设备出入和配件更换图示', 531 text: '设备出入和配件更换图示',
532 textStyle: { 532 textStyle: {
533 - color: '#00D81E06',  
534 - fontSize: 5 533 + color: '#a3a3a4',
  534 + fontSize: 12
535 } 535 }
536 }, 536 },
537 tooltip: { 537 tooltip: {
@@ -549,6 +549,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -549,6 +549,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
549 }, 549 },
550 legend: { 550 legend: {
551 data: ['设备进出', '配件更换'], 551 data: ['设备进出', '配件更换'],
  552 + textStyle: {
  553 + color: '#a3a3a4'
  554 +
  555 + },
552 selectedMode: false 556 selectedMode: false
553 }, 557 },
554 grid: [{ 558 grid: [{
@@ -561,7 +565,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -561,7 +565,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
561 type: 'category', 565 type: 'category',
562 data: xData, 566 data: xData,
563 axisLabel: { 567 axisLabel: {
564 - color: '#333', 568 + color: '#a3a3a4',
565 show: true, 569 show: true,
566 interval: 0, 570 interval: 0,
567 rotate: 15 571 rotate: 15
@@ -582,7 +586,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -582,7 +586,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
582 type: 'value', 586 type: 'value',
583 gridIndex: 0, 587 gridIndex: 0,
584 axisLabel: { 588 axisLabel: {
585 - color: '#333' 589 + color: '#a3a3a4'
586 }, 590 },
587 splitLine: { 591 splitLine: {
588 lineStyle: { 592 lineStyle: {
@@ -17,7 +17,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -17,7 +17,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
17 var dateLimit = "" 17 var dateLimit = ""
18 var createTime = "month" 18 var createTime = "month"
19 //机房cmdb配置项类id 19 //机房cmdb配置项类id
20 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 20 + var objectId = common.getCmdbMachineObjectId();
21 21
22 //日期范围选择 22 //日期范围选择
23 laydate.render({ 23 laydate.render({
@@ -299,7 +299,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -299,7 +299,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
299 show: true, 299 show: true,
300 position: 'top', 300 position: 'top',
301 textStyle: { 301 textStyle: {
302 - color: '#555' 302 + color: '#a3a3a4'
303 }, 303 },
304 formatter: function (data) { 304 formatter: function (data) {
305 return countList[data.dataIndex] 305 return countList[data.dataIndex]
@@ -323,8 +323,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -323,8 +323,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
323 title: { 323 title: {
324 text: '设备出入和配件更换图示', 324 text: '设备出入和配件更换图示',
325 textStyle: { 325 textStyle: {
326 - color: '#00D81E06',  
327 - fontSize: 5 326 + color: '#a3a3a4',
  327 + fontSize: 12
328 } 328 }
329 }, 329 },
330 tooltip: { 330 tooltip: {
@@ -342,6 +342,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -342,6 +342,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
342 }, 342 },
343 legend: { 343 legend: {
344 data: ['人员进出'], 344 data: ['人员进出'],
  345 + textStyle: {
  346 + color: '#a3a3a4'
  347 +
  348 + },
345 selectedMode: false 349 selectedMode: false
346 }, 350 },
347 grid: [{ 351 grid: [{
@@ -354,7 +358,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -354,7 +358,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
354 type: 'category', 358 type: 'category',
355 data: xData, 359 data: xData,
356 axisLabel: { 360 axisLabel: {
357 - color: '#333', 361 + color: '#a3a3a4',
358 show: true, 362 show: true,
359 interval:0, 363 interval:0,
360 rotate:15 364 rotate:15
@@ -375,7 +379,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -375,7 +379,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
375 type: 'value', 379 type: 'value',
376 gridIndex: 0, 380 gridIndex: 0,
377 axisLabel: { 381 axisLabel: {
378 - color: '#333' 382 + color: '#a3a3a4'
379 }, 383 },
380 splitLine: { 384 splitLine: {
381 lineStyle: { 385 lineStyle: {
@@ -395,13 +399,6 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -395,13 +399,6 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
395 }], 399 }],
396 series: series 400 series: series
397 }; 401 };
398 - option.xAxis.axisLabel.color = function (value, index) {  
399 - if (value === 'Thu' || value === 'Fri') {  
400 - return 'blue';  
401 - } else {  
402 - return '#333'; // 普通颜色  
403 - }  
404 - };  
405 timeChart.setOption(option) 402 timeChart.setOption(option)
406 }); 403 });
407 } 404 }
@@ -252,7 +252,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -252,7 +252,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
252 show: true, 252 show: true,
253 position: 'top', 253 position: 'top',
254 textStyle: { 254 textStyle: {
255 - color: '#555' 255 + color: '#a3a3a4'
256 }, 256 },
257 formatter: function (data) { 257 formatter: function (data) {
258 return countList[data.dataIndex] 258 return countList[data.dataIndex]
@@ -276,8 +276,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -276,8 +276,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
276 title: { 276 title: {
277 text: '厂商加班申请图示', 277 text: '厂商加班申请图示',
278 textStyle: { 278 textStyle: {
279 - color: '#00D81E06',  
280 - fontSize: 5 279 + color: '#a3a3a4',
  280 + fontSize: 12
281 } 281 }
282 }, 282 },
283 tooltip: { 283 tooltip: {
@@ -295,6 +295,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -295,6 +295,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
295 }, 295 },
296 legend: { 296 legend: {
297 data: ['厂商加班申请'], 297 data: ['厂商加班申请'],
  298 + textStyle: {
  299 + color: '#a3a3a4'
  300 +
  301 + },
298 selectedMode: false 302 selectedMode: false
299 }, 303 },
300 grid: [{ 304 grid: [{
@@ -307,7 +311,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -307,7 +311,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
307 type: 'category', 311 type: 'category',
308 data: xData, 312 data: xData,
309 axisLabel: { 313 axisLabel: {
310 - color: '#333', 314 + color: '#a3a3a4',
311 show: true, 315 show: true,
312 interval:0, 316 interval:0,
313 rotate:15 317 rotate:15
@@ -328,7 +332,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -328,7 +332,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
328 type: 'value', 332 type: 'value',
329 gridIndex: 0, 333 gridIndex: 0,
330 axisLabel: { 334 axisLabel: {
331 - color: '#333' 335 + color: '#a3a3a4'
332 }, 336 },
333 splitLine: { 337 splitLine: {
334 lineStyle: { 338 lineStyle: {
@@ -215,7 +215,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -215,7 +215,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
215 show: true, 215 show: true,
216 position: 'top', 216 position: 'top',
217 textStyle: { 217 textStyle: {
218 - color: '#555' 218 + color: '#a3a3a4'
219 }, 219 },
220 formatter: function (data) { 220 formatter: function (data) {
221 return countList[data.dataIndex] 221 return countList[data.dataIndex]
@@ -239,8 +239,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -239,8 +239,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
239 title: { 239 title: {
240 text: '视频会议申请图示', 240 text: '视频会议申请图示',
241 textStyle: { 241 textStyle: {
242 - color: '#00D81E06',  
243 - fontSize: 5 242 + color: '#a3a3a4',
  243 + fontSize: 12
244 } 244 }
245 }, 245 },
246 tooltip: { 246 tooltip: {
@@ -258,6 +258,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -258,6 +258,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
258 }, 258 },
259 legend: { 259 legend: {
260 data: ['视频会议申请'], 260 data: ['视频会议申请'],
  261 + textStyle: {
  262 + color: '#a3a3a4'
  263 +
  264 + },
261 selectedMode: false 265 selectedMode: false
262 }, 266 },
263 grid: [{ 267 grid: [{
@@ -270,7 +274,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -270,7 +274,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
270 type: 'category', 274 type: 'category',
271 data: xData, 275 data: xData,
272 axisLabel: { 276 axisLabel: {
273 - color: '#333', 277 + color: '#a3a3a4',
274 show: true, 278 show: true,
275 interval:0, 279 interval:0,
276 rotate:15 280 rotate:15
@@ -291,7 +295,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -291,7 +295,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
291 type: 'value', 295 type: 'value',
292 gridIndex: 0, 296 gridIndex: 0,
293 axisLabel: { 297 axisLabel: {
294 - color: '#333' 298 + color: '#a3a3a4'
295 }, 299 },
296 splitLine: { 300 splitLine: {
297 lineStyle: { 301 lineStyle: {
@@ -170,7 +170,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -170,7 +170,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
170 show: true, 170 show: true,
171 position: 'top', 171 position: 'top',
172 textStyle: { 172 textStyle: {
173 - color: '#555' 173 + color: '#a3a3a4'
174 }, 174 },
175 formatter: function (data) { 175 formatter: function (data) {
176 return countList[data.dataIndex] 176 return countList[data.dataIndex]
@@ -194,8 +194,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -194,8 +194,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
194 title: { 194 title: {
195 text: '会议纪要图示', 195 text: '会议纪要图示',
196 textStyle: { 196 textStyle: {
197 - color: '#00D81E06',  
198 - fontSize: 5 197 + color: '#a3a3a4',
  198 + fontSize: 12
199 } 199 }
200 }, 200 },
201 tooltip: { 201 tooltip: {
@@ -213,6 +213,9 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -213,6 +213,9 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
213 }, 213 },
214 legend: { 214 legend: {
215 data: ['会议纪要'], 215 data: ['会议纪要'],
  216 + textStyle: {
  217 + color: '#a3a3a4'
  218 + },
216 selectedMode: false 219 selectedMode: false
217 }, 220 },
218 grid: [{ 221 grid: [{
@@ -225,7 +228,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -225,7 +228,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
225 type: 'category', 228 type: 'category',
226 data: xData, 229 data: xData,
227 axisLabel: { 230 axisLabel: {
228 - color: '#333', 231 + color: '#a3a3a4',
229 show: true, 232 show: true,
230 interval:0, 233 interval:0,
231 rotate:15 234 rotate:15
@@ -246,7 +249,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -246,7 +249,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
246 type: 'value', 249 type: 'value',
247 gridIndex: 0, 250 gridIndex: 0,
248 axisLabel: { 251 axisLabel: {
249 - color: '#333' 252 + color: '#a3a3a4'
250 }, 253 },
251 splitLine: { 254 splitLine: {
252 lineStyle: { 255 lineStyle: {
@@ -126,7 +126,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -126,7 +126,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
126 }, { 126 }, {
127 field: 'omanufacturerName', title: '工作单位', align: 'center',templet: function (d) { 127 field: 'omanufacturerName', title: '工作单位', align: 'center',templet: function (d) {
128 var manufacturerName = ''; 128 var manufacturerName = '';
129 - if(d.manufacturerId == '0'){ 129 + if(d.omanufacturerId == '0'){
130 manufacturerName = d.manufacturerOther; 130 manufacturerName = d.manufacturerOther;
131 }else { 131 }else {
132 if(manufactureArr && manufactureArr.length>0){ 132 if(manufactureArr && manufactureArr.length>0){
@@ -292,7 +292,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -292,7 +292,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
292 show: true, 292 show: true,
293 position: 'top', 293 position: 'top',
294 textStyle: { 294 textStyle: {
295 - color: '#555' 295 + color: '#a3a3a4'
296 }, 296 },
297 formatter: function (data) { 297 formatter: function (data) {
298 return totalList[data.dataIndex] 298 return totalList[data.dataIndex]
@@ -316,8 +316,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -316,8 +316,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
316 title: { 316 title: {
317 text: '数据库恢复验证统计图示', 317 text: '数据库恢复验证统计图示',
318 textStyle: { 318 textStyle: {
319 - color: '#00D81E06',  
320 - fontSize: 5 319 + color: '#a3a3a4',
  320 + fontSize: 12
321 } 321 }
322 }, 322 },
323 tooltip: { 323 tooltip: {
@@ -335,6 +335,9 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -335,6 +335,9 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
335 }, 335 },
336 legend: { 336 legend: {
337 data: ['数据库恢复验证'], 337 data: ['数据库恢复验证'],
  338 + textStyle: {
  339 + color: '#a3a3a4'
  340 + },
338 selectedMode: false 341 selectedMode: false
339 }, 342 },
340 grid: [{ 343 grid: [{
@@ -347,7 +350,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -347,7 +350,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
347 type: 'category', 350 type: 'category',
348 data: xData, 351 data: xData,
349 axisLabel: { 352 axisLabel: {
350 - color: '#333', 353 + color: '#a3a3a4',
351 show: true, 354 show: true,
352 interval:0, 355 interval:0,
353 rotate:15 356 rotate:15
@@ -368,7 +371,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -368,7 +371,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
368 type: 'value', 371 type: 'value',
369 gridIndex: 0, 372 gridIndex: 0,
370 axisLabel: { 373 axisLabel: {
371 - color: '#333' 374 + color: '#a3a3a4'
372 }, 375 },
373 splitLine: { 376 splitLine: {
374 lineStyle: { 377 lineStyle: {
@@ -240,13 +240,13 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -240,13 +240,13 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
240 name: { 240 name: {
241 fontSize: 14, 241 fontSize: 14,
242 fontWeight: 'normal', 242 fontWeight: 'normal',
243 - color: '#666666', 243 + color: '#a3a3a4',
244 padding: [10, 0] 244 padding: [10, 0]
245 }, 245 },
246 val: { 246 val: {
247 fontSize: 32, 247 fontSize: 32,
248 fontWeight: 'bold', 248 fontWeight: 'bold',
249 - color: '#333333', 249 + color: '#a3a3a4',
250 } 250 }
251 } 251 }
252 } 252 }
@@ -287,12 +287,12 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -287,12 +287,12 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
287 name: { 287 name: {
288 fontSize: 14, 288 fontSize: 14,
289 padding: [0, 10, 0, 4], 289 padding: [0, 10, 0, 4],
290 - color: '#666666' 290 + color: '#a3a3a4'
291 }, 291 },
292 value: { 292 value: {
293 fontSize: 18, 293 fontSize: 18,
294 fontWeight: 'bold', 294 fontWeight: 'bold',
295 - color: '#333333' 295 + color: '#a3a3a4'
296 } 296 }
297 } 297 }
298 } 298 }
@@ -332,7 +332,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -332,7 +332,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
332 show: true, 332 show: true,
333 position: 'top', 333 position: 'top',
334 textStyle: { 334 textStyle: {
335 - color: '#555' 335 + color: '#a3a3a4'
336 }, 336 },
337 formatter: function (data) { 337 formatter: function (data) {
338 return countList[data.dataIndex] 338 return countList[data.dataIndex]
@@ -356,8 +356,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -356,8 +356,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
356 title: { 356 title: {
357 text: '线路调整图示', 357 text: '线路调整图示',
358 textStyle: { 358 textStyle: {
359 - color: '#00D81E06',  
360 - fontSize: 5 359 + color: '#a3a3a4',
  360 + fontSize: 12
361 } 361 }
362 }, 362 },
363 tooltip: { 363 tooltip: {
@@ -375,6 +375,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -375,6 +375,10 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
375 }, 375 },
376 legend: { 376 legend: {
377 data: ['线路调整'], 377 data: ['线路调整'],
  378 + textStyle: {
  379 + color: '#a3a3a4'
  380 +
  381 + },
378 selectedMode: false 382 selectedMode: false
379 }, 383 },
380 grid: [{ 384 grid: [{
@@ -387,7 +391,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -387,7 +391,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
387 type: 'category', 391 type: 'category',
388 data: xData, 392 data: xData,
389 axisLabel: { 393 axisLabel: {
390 - color: '#333', 394 + color: '#a3a3a4',
391 show: true, 395 show: true,
392 interval:0, 396 interval:0,
393 rotate:15 397 rotate:15
@@ -408,7 +412,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -408,7 +412,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
408 type: 'value', 412 type: 'value',
409 gridIndex: 0, 413 gridIndex: 0,
410 axisLabel: { 414 axisLabel: {
411 - color: '#333' 415 + color: '#a3a3a4'
412 }, 416 },
413 splitLine: { 417 splitLine: {
414 lineStyle: { 418 lineStyle: {
@@ -60,7 +60,7 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'xmSelect', 'vie @@ -60,7 +60,7 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'xmSelect', 'vie
60 el: '#shutdown_plan_add_res', 60 el: '#shutdown_plan_add_res',
61 name: 'resIds', 61 name: 'resIds',
62 layVerify: 'required', 62 layVerify: 'required',
63 - autoRow: true, 63 + // autoRow: true,
64 filterable: true, 64 filterable: true,
65 toolbar: { 65 toolbar: {
66 show: true, 66 show: true,
@@ -86,7 +86,7 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'xmSelect', 'vie @@ -86,7 +86,7 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'xmSelect', 'vie
86 el: '#shutdown_plan_add_biz', 86 el: '#shutdown_plan_add_biz',
87 name: 'busIds', 87 name: 'busIds',
88 layVerify: 'required', 88 layVerify: 'required',
89 - autoRow: true, 89 + // autoRow: true,
90 filterable: true, 90 filterable: true,
91 toolbar: { 91 toolbar: {
92 show: true, 92 show: true,
@@ -16,7 +16,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'commonDetail','sessi @@ -16,7 +16,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'commonDetail','sessi
16 var enterTime = {} 16 var enterTime = {}
17 var outTime = {} 17 var outTime = {}
18 var staffsBak = [] 18 var staffsBak = []
19 - var objectId = '5A130B5304C348BA98E7E3BDE765611'; 19 + var objectId = common.getCmdbMachineObjectId();
20 // var tableBak = table.cache.identifying-table; 20 // var tableBak = table.cache.identifying-table;
21 //渲染表单 21 //渲染表单
22 form.render(null, 'add-staff-form') 22 form.render(null, 'add-staff-form')
@@ -598,7 +598,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -598,7 +598,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
598 show: true, 598 show: true,
599 position: 'top', 599 position: 'top',
600 textStyle: { 600 textStyle: {
601 - color: '#555' 601 + color: '#a3a3a4'
602 }, 602 },
603 formatter: function (data) { 603 formatter: function (data) {
604 return reportedList[data.dataIndex] + '/' + data.value 604 return reportedList[data.dataIndex] + '/' + data.value
@@ -699,7 +699,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -699,7 +699,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
699 data: xData, 699 data: xData,
700 gridIndex: 0, 700 gridIndex: 0,
701 axisLabel: { 701 axisLabel: {
702 - color: '#333', 702 + color: '#a3a3a4',
703 show: true, 703 show: true,
704 interval: 0, 704 interval: 0,
705 rotate: 25 705 rotate: 25
@@ -809,7 +809,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -809,7 +809,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
809 show: true, 809 show: true,
810 position: 'top', 810 position: 'top',
811 textStyle: { 811 textStyle: {
812 - color: '#555' 812 + color: '#a3a3a4'
813 }, 813 },
814 }, 814 },
815 itemStyle: { 815 itemStyle: {
@@ -839,7 +839,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -839,7 +839,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
839 type: 'category', 839 type: 'category',
840 data: xData, 840 data: xData,
841 axisLabel: { 841 axisLabel: {
842 - color: '#333', 842 + color: '#a3a3a4',
843 show: true, 843 show: true,
844 interval: 0, 844 interval: 0,
845 rotate: 19, 845 rotate: 19,
@@ -861,7 +861,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -861,7 +861,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
861 type: 'value', 861 type: 'value',
862 gridIndex: 0, 862 gridIndex: 0,
863 axisLabel: { 863 axisLabel: {
864 - color: '#333' 864 + color: '#a3a3a4'
865 }, 865 },
866 splitLine: { 866 splitLine: {
867 lineStyle: { 867 lineStyle: {
@@ -1007,7 +1007,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -1007,7 +1007,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
1007 val: { 1007 val: {
1008 fontSize: 32, 1008 fontSize: 32,
1009 fontWeight: 'bold', 1009 fontWeight: 'bold',
1010 - color: '#333333', 1010 + color: '#a3a3a4',
1011 } 1011 }
1012 } 1012 }
1013 } 1013 }
@@ -1048,12 +1048,12 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat @@ -1048,12 +1048,12 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat
1048 name: { 1048 name: {
1049 fontSize: 14, 1049 fontSize: 14,
1050 padding: [0, 10, 0, 4], 1050 padding: [0, 10, 0, 4],
1051 - color: '#666666' 1051 + color: '#a3a3a4'
1052 }, 1052 },
1053 value: { 1053 value: {
1054 fontSize: 18, 1054 fontSize: 18,
1055 fontWeight: 'bold', 1055 fontWeight: 'bold',
1056 - color: '#333333' 1056 + color: '#a3a3a4'
1057 } 1057 }
1058 } 1058 }
1059 } 1059 }
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 </div> 17 </div>
18 <!--lsq 通知压缩查询增加搜索按钮 2022-06-21--> 18 <!--lsq 通知压缩查询增加搜索按钮 2022-06-21-->
19 <div class="layui-inline"> 19 <div class="layui-inline">
20 - <div class="layui-input-inline layui-input-inline-sm"> 20 + <div class=""><!-- layui-input-inline layui-input-inline-sm -->
21 <button class="layui-btn layui-btn-normal layui-btn-normal" id="seachNoticemerge" 21 <button class="layui-btn layui-btn-normal layui-btn-normal" id="seachNoticemerge"
22 type="button"> 22 type="button">
23 <!-- lsq 搜索更改为查询 2022-06-27--> 23 <!-- lsq 搜索更改为查询 2022-06-27-->
@@ -1829,6 +1829,28 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -1829,6 +1829,28 @@ layui.define(['xmSelect', 'md5'], function (exports) {
1829 // return false; 1829 // return false;
1830 // } 1830 // }
1831 return true; 1831 return true;
  1832 + },
  1833 + /**
  1834 + * 获取机房的cmdb配置项类
  1835 + */
  1836 + getCmdbMachineObjectId:function () {
  1837 + var accessToken = '';
  1838 + var cmdbMachineRoomObjId = '';
  1839 + layui.use(['sessions', 'common'], function () {
  1840 + accessToken = layui.common.getMjToken();
  1841 + });
  1842 + let url = `${obj.domainName}/mj/sys/conf/getSelect/objectId?accessToken=${accessToken}`
  1843 + $.ajax({
  1844 + url: url,
  1845 + async: false,
  1846 + success: function (res) {
  1847 + var selects = res.data.options;
  1848 + if(selects && selects.length>0){
  1849 + cmdbMachineRoomObjId = selects[0].value;
  1850 + }
  1851 + }
  1852 + })
  1853 + return cmdbMachineRoomObjId;
1832 } 1854 }
1833 1855
1834 }; 1856 };