chenc 4 years ago
parent
commit
9f32c64ed4
1 changed files with 17 additions and 7 deletions
  1. 17 7
      pages/dashboard/esop.html

+ 17 - 7
pages/dashboard/esop.html

@@ -2,6 +2,9 @@
 <html lang="zh">
 
 <head>
+    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
+<meta http-equiv="Pragma" content="no-cache" />
+<meta http-equiv="Expires" content="0" />
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=0.5">
     <title>E-SOP</title>
@@ -16,7 +19,7 @@
     <script type="text/javascript" src="/js/service/method-get-service.js"></script>
     <script type="text/javascript" src="/lib/jquery-3.4.1.js"></script>
     <script type="text/javascript" src="/lib/jquery-3.4.1.min.js"></script>
-
+        
 </head>
 
 <body id="container" class="container-fluid">
@@ -59,11 +62,11 @@
                         <div class="col-lg-1 col-md-2 center no-padding" style="width: 10%;">操作</div>
                     </div>
                     <div class="row" v-for="task in taskList2" style="margin-bottom: 2px;">
-                        <div class="col-lg-2 col-md-2 center no-padding" style="width: 19%;">{{task.orderSheetCode}}</div>
+                        <div class="col-lg-2 col-md-2 center no-padding"  style="width: 19%;">{{task.orderSheetCode}}</div>
                         <div class="col-lg-2 col-md-2 center no-padding" style="width: 19%;">{{task.materialCode}}</div>
                         <div style="width: 35%;overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 left no-padding" >{{task.materialName}}</div>
                         <!-- <div class="col-lg-2 col-md-2 center no-padding" style="width: 20%;">{{task.specs}}</div> -->
-                        <div class="col-lg-2 col-md-2 center no-padding" style="width: 12%;">{{task.qty}}</div>
+                        <div class="col-lg-2 col-md-2 center no-padding"  style="width: 12%;">{{task.qty}}</div>
                         <div class="col-lg-1 col-md-2 center no-padding" style="width: 10%;">
                             <button type="button" class="btn btn-xs " :style="{background:task.color}" @click="selectFile(task.materialCode)">文件</button>
                     </div>
@@ -71,11 +74,11 @@
                     <div class="row" >
                         <div class="col-lg-2 col-md-2 center no-padding" style="width: 19%;"></div>
                         <div class="col-lg-2 col-md-2 center no-padding" style="width: 19%;"></div>
-                        <div style="width: 35%;overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 left no-padding" ></div>
+                        <div style="width: 33%;overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 left no-padding" ></div>
                         <!-- <div class="col-lg-2 col-md-2 center no-padding" style="width: 20%;">{{task.specs}}</div> -->
-                        <div class="col-lg-2 col-md-2 center no-padding" style="width: 12%;"></div>
-                        <div class="col-lg-1 col-md-2 center no-padding" style="width: 10%;">
-                            <h4>第{{(pIndex+10)/10}}页</h4>
+                        <div class="col-lg-2 col-md-2 center no-padding" style="width: 12%;"><h5>第{{(pIndex+10)/10}}页</h5></div>
+                        <div class="col-lg-1 col-md-2 center no-padding" style="width: 12%;">
+                            <h5>共{{total}}页</h5>
                     </div>
                     </div>
                 </div>
@@ -115,6 +118,7 @@
         $(function () {
             hideAll();
             $("#imgInfo").show();
+
         })
         function hideAll(){
             $("#frameMain").hide();
@@ -132,6 +136,12 @@
         $("#videoType").height($(window).height()-110);
 
         const taskList2 = ServiceProduceTask.getEsopTaskList();
+        
+        //获取总页数
+        var total=(taskList2.length/10).toFixed(0);
+        if(taskList2.length%10<5){
+            total=Number(total)+1
+        }
 
         var vm = new Vue({
             el: '#div-main',