zgg há 3 meses atrás
pai
commit
a6289d31b7

+ 1 - 1
application/h5/controller/Repair.php

@@ -171,7 +171,7 @@ class Repair extends Controller
         }elseif ($mode == 3){
             $title = '运送';
         }elseif ($mode == 4){
-            $title = '应急';
+            $title = '安全、应急';
         }elseif($mode == 0){
             $title = '投诉';
         }

+ 33 - 0
application/h5/controller/Statistics.php

@@ -1276,6 +1276,39 @@ class Statistics extends Controller
 
         return $this->fetch();
     }
+
+    public function standby()
+    {
+        $lists = model('WorkTypeMode')->getRolesUserApp(3,$this->orgId,1);
+        $userIds = Db::name('todo')
+            ->alias('t')
+            ->field('t.to_user_id')
+            ->join('user u','u.id=t.to_user_id')
+            ->where('t.org_id',$this->orgId)
+            ->whereIn('t.todo_mode',[1,2])
+            ->where('t.del',0)
+            ->where('t.work_type_mode',3)
+            ->where('u.work',1)
+            ->where('u.enable',1)
+            ->where('u.del',0)
+            ->group('t.to_user_id')
+            ->column('t.to_user_id');
+        $nlists  = [];
+        foreach ($lists as $k=>$v){
+            if(!in_array($v['id'],$userIds)){
+                $nlists[] = $v;
+            }
+        }
+        $slist  = [];
+        foreach ($nlists as $k=>$v){
+            $slist[$k]['name'] = $v['real_name'];
+        }
+        $count = count($slist);
+        $this->assign('list',$slist);
+        $this->assign('count',$count);
+
+        return $this->fetch();
+    }
 }
 
 

+ 1 - 1
application/h5/view/repair/index.html

@@ -54,7 +54,7 @@
                 <div class="col-xs-4">
                     <div class="module-info" onclick="goAdd(4)">
                         <img src="/repair/img/yingji2.png" alt="">
-                        <div class="name">应急</div>
+                        <div class="name">安全、应急</div>
                     </div>
                 </div>
                 <div class="col-xs-4">

+ 74 - 0
application/h5/view/statistics/standby.html

@@ -0,0 +1,74 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>待命运送员</title>
+    <link rel="stylesheet" href="/static/antv/f2.style.css" />
+    <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
+    <script src="/static/antv/f2.min.js"></script>
+    <link rel="stylesheet" href="/static/h5/css/common.css">
+    <style>
+        html,body {
+            margin: 0;
+            padding: 0;
+            overflow-y: scroll;
+            -webkit-overflow-scrolling: touch;
+            background: #f1f1f1;
+        }
+        .daily-record {
+            margin: 0 10px;
+            background-color: #fff;
+            border-radius: 10px;
+        }
+        .record-data {
+            display: flex;
+            display: -webkit-flex;
+            justify-content: space-between;
+            align-items: center;
+            height: 7vh;
+        }
+        .line {
+            margin: 0 15px;
+            height: 1px;
+            background-color: #CCCCCC;
+        }
+        .daily-title, .daily-nums {
+            display: inline;
+            font-size: 17px;
+            font-weight: 500;
+        }
+        .daily-title {
+            margin-left: 25px;
+            display: flex;
+            display: -webkit-flex;
+            align-items: center;
+        }
+        .daily-nums {
+            margin-right: 25px;
+            color:rgba(153,153,153,1);
+        }
+    </style>
+</head>
+<body>
+<div class="daily-record">
+    <div class="record-data first" >
+        <span class="daily-title" style="color: #148d8f;font-weight: 700;">待命运送员总数</span>
+        <span class="daily-nums" style="color: #148d8f;font-weight: 700;">{$count}</span>
+    </div>
+    {foreach $list as $k=>$v}
+    <div class="line"></div>
+    <div class="record-data"  >
+        <span class="daily-title">
+            <span style="display: inline-block;margin-right:10px;width: 6px;height: 6px;border-radius:5px;"></span>
+            {$v['name']}
+        </span>
+    </div>
+    {/foreach}
+</div>
+
+
+</body>
+</html>
+