Authored by ‘superliu’

杭州-通知查询-故障弹框 样式优化

@@ -452,14 +452,12 @@ layui.extend({ @@ -452,14 +452,12 @@ layui.extend({
452 } 452 }
453 453
454 //判断是否为故障诊断的三种类型 454 //判断是否为故障诊断的三种类型
455 - if(toastType=='faultinfo'||toastType=='faultprogress'||toastType=='faultover'){ 455 + if(toastType=='faultinfo'||toastType=='faultover'){
456 var imgUrl=""; 456 var imgUrl="";
457 if(toastType=='faultinfo'){ 457 if(toastType=='faultinfo'){
458 imgUrl="/src/style/img/fault.png"; 458 imgUrl="/src/style/img/fault.png";
459 } 459 }
460 - if(toastType=='faultprogress'){  
461 - imgUrl="/src/style/img/faultover.png";  
462 - } 460 +
463 if(toastType=='faultover'){ 461 if(toastType=='faultover'){
464 imgUrl="/src/style/img/faultprogress.png"; 462 imgUrl="/src/style/img/faultprogress.png";
465 } 463 }
@@ -486,6 +484,36 @@ layui.extend({ @@ -486,6 +484,36 @@ layui.extend({
486 } 484 }
487 }) 485 })
488 }, delay); 486 }, delay);
  487 + }else if(toastType=='faultprogress'){
  488 + var imgUrl="";
  489 + if(toastType=='faultprogress'){
  490 + imgUrl="/src/style/img/faultover.png";
  491 + }
  492 + debugger
  493 + setTimeout(function () {
  494 + new msgTips({
  495 + dom: ".right-bottom-tips",
  496 + title: title,
  497 + message: `<p style="line-height: 24px;background: url(${imgUrl}) no-repeat;background-size: 100%;height: 160px;background-position-x: right;padding-left: 25px;padding-top: 145px;"><span >${content}</span><span class="title closeFault" style="position: relative;top: -175px;left: 153px;">X</span><span style="position: relative;left: -90px;top: -117px; font-weight: bold;float: right;">${title}</span></p>`,
  498 + duration: 10000,
  499 + space: 10,
  500 + firstSpace: 8,
  501 + limit: 8,
  502 + margin: 15,
  503 + direction: 'right bottom',
  504 + timingFun: 'ease',
  505 + width: '300px',
  506 + toastType: toastType,
  507 + type: 'click',
  508 + action: function () {
  509 + //if (hash) {
  510 + // location.hash = hash;
  511 + location.hash = "/faultDiagnosis/list/faultNo="+content.split(",")[0].split(":")[1];
  512 + //}
  513 + }
  514 + })
  515 + }, delay);
  516 + debugger
489 }else{ 517 }else{
490 setTimeout(function () { 518 setTimeout(function () {
491 new msgTips({ 519 new msgTips({