Authored by 王涛

Merge branch 'master-V32-LH' into 'master'

杭州-故障诊断-消息推送,以及诊断过程和完成的消息弹框



See merge request !254
@@ -450,13 +450,24 @@ layui.extend({ @@ -450,13 +450,24 @@ layui.extend({
450 if (queryResult) { 450 if (queryResult) {
451 content = laytpl(content).render(queryResult); 451 content = laytpl(content).render(queryResult);
452 } 452 }
  453 +
453 //判断是否为故障诊断的三种类型 454 //判断是否为故障诊断的三种类型
454 - if(toastType=='faultinfo'||toastType=='FAULTPROGRESS'||toastType=='FAULTOVER'){ 455 + if(toastType=='faultinfo'||toastType=='faultprogress'||toastType=='faultover'){
  456 + var imgUrl="";
  457 + if(toastType=='faultinfo'){
  458 + imgUrl="/src/style/img/fault.png";
  459 + }
  460 + if(toastType=='faultprogress'){
  461 + imgUrl="/src/style/img/faultprogress.png";
  462 + }
  463 + if(toastType=='faultover'){
  464 + imgUrl="/src/style/img/faultover.png";
  465 + }
455 setTimeout(function () { 466 setTimeout(function () {
456 new msgTips({ 467 new msgTips({
457 dom: ".right-bottom-tips", 468 dom: ".right-bottom-tips",
458 title: title, 469 title: title,
459 - message: `<p style="line-height: 30px;background: url(/src/style/img/fault.png) no-repeat;background-size: 70%;height: 178px;padding: 10px;background-position-x: right;padding-left: 106px;padding-top: 96px;">${content}</p>`, 470 + message: `<p style="line-height: 30px;background: url(${imgUrl}) no-repeat;background-size: 70%;height: 178px;padding: 10px;background-position-x: right;padding-left: 106px;padding-top: 96px;">${content}</p>`,
460 duration: 10000, 471 duration: 10000,
461 space: 10, 472 space: 10,
462 firstSpace: 8, 473 firstSpace: 8,
@@ -468,9 +479,10 @@ layui.extend({ @@ -468,9 +479,10 @@ layui.extend({
468 toastType: toastType, 479 toastType: toastType,
469 type: 'click', 480 type: 'click',
470 action: function () { 481 action: function () {
471 - if (hash) {  
472 - location.hash = hash;  
473 - } 482 + //if (hash) {
  483 + // location.hash = hash;
  484 + location.hash = "/faultDiagnosis/list/faultNo="+content.split(",")[0].split(":")[1];
  485 + //}
474 } 486 }
475 }) 487 })
476 }, delay); 488 }, delay);