wyq пре 3 година
родитељ
комит
097700c980
4 измењених фајлова са 19 додато и 12 уклоњено
  1. 3 0
      src/css/staticInfo.less
  2. 3 0
      src/css/staticInfoOut.less
  3. 10 1
      src/js/promise.js
  4. 3 11
      src/js/staticInfo.js

+ 3 - 0
src/css/staticInfo.less

@@ -486,6 +486,9 @@
 #inputs{
   position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;
 }
+#Print{
+  overflow-x: hidden;
+}
 .scale{
   .infos-box{
     border: 1px solid #E6E6E6;

+ 3 - 0
src/css/staticInfoOut.less

@@ -527,6 +527,9 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
 #inputs{
   position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;
 }
+#Print{
+  overflow-x: hidden;
+}
 .scale{
   .infos-box{
     border: 1px solid #E6E6E6;

+ 10 - 1
src/js/promise.js

@@ -359,7 +359,16 @@ function toast(mess) {
     $(".mess").fadeOut();
   }, 2000)
 }
+const Toasts = function (mess) {
+  var str = `<div id="mess"><img class="warn" style="margin-right:14px" src=${warn} /><span></span></div>`;
+  $("body").append(str);
+  $("#mess").fadeIn().find("span").html(mess);
+  document.getElementById("mess").style.cssText = "display:flex;align-items:center;max-width:60%;min-width: 150px;padding:0 14px;height: 30px;color: #FFB609;line-height: 30px;text-align: center;border-radius: 4px;position: fixed;top: 75px;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: #FDF6EA;font-size: 16px;";
+  setTimeout(function () {
+    $("#mess").fadeOut();
+  }, 1000)
 
+}
 module.exports = {
   config,
   get,
@@ -371,5 +380,5 @@ module.exports = {
   isIe8,
   titleConfig,
   titleConfigH,
-  Toast
+  Toast, Toasts
 }

+ 3 - 11
src/js/staticInfo.js

@@ -15,7 +15,8 @@ const {
   config,
   getUrlArgObject,
   openNewWin,
-  Toast
+  Toast,
+  Toasts
 } = require('./promise.js');
 const $ = require("jquery");
 require("./jquery-migrate");
@@ -24,7 +25,7 @@ let printing = require('./../images/printing.png');
 let printing2 = require('./../images/printing2.png');
 let recommend = require('./../images/recommend.png');
 let hel = require('./../images/icon-hel.png');
-let warn = require('./../images/icon-warns.png')
+
 let showName, noticeName, clinicalPathwayName, isclick
 function getInfomation() {
   var param = {
@@ -317,16 +318,7 @@ function getchecks() {
     }
   });
 }
-function Toasts(mess) {
-  var str = `<div id="mess"><img class="warn" style="margin-right:14px" src=${warn}/><span></span></div>`;
-  $("body").append(str);
-  $("#mess").fadeIn().find("span").html(mess);
-  document.getElementById("mess").style.cssText = "display:flex;align-items:center;max-width:60%;min-width: 150px;padding:0 14px;height: 30px;color: #FFB609;line-height: 30px;text-align: center;border-radius: 4px;position: fixed;top: 75px;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: #FDF6EA;font-size: 16px;";
-  setTimeout(function () {
-    $("#mess").fadeOut();
-  }, 1000)
 
-}
 function getResult(pushInfo, textType) {
   $(".but").click(function () {
     let arr = [];