1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=0, maximum-scale=0, user-scalable=yes,shrink-to-fit=no">
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>{:get_config('web_site_title')}</title>
- <link rel="icon" href="./favicon.png">
- <meta name="keywords" content="" />
- <meta name="description" content="" />
- <link rel="shortcut icon" href="/favicon.ico">
- <link rel="stylesheet" href="/static/hplus/css/bootstrap.min.css">
- <link rel="stylesheet" href="/static/hplus/css/font-awesome.min.css?v=4.4.0" />
- <link rel="stylesheet" href="/static/hplus/css/animate.css"/>
- <link rel="stylesheet" href="/static/hplus/css/style.css?v=4.1.0">
- <link rel="stylesheet" href="/static/hplus/css/jquery.contextMenu.min.css"/>
- <link rel="stylesheet" href="/static/elementui2.15.5/index.css"/>
- <link rel="stylesheet" href="/admin/css/common.css">
- <link rel="stylesheet" href="/admin/css/index.css">
- <link rel="stylesheet" href="/static/swiper4.5/css/swiper.min.css">
- <script src="/static/hplus/js/jquery.min.js?v=2.1.4"></script>
- <style>
- .nav.navbar-right > li > a {
- display: inline-block;
- }
- #orderNums{
- /*vertical-align: middle;*/
- color: red;
- position: relative;
- top: -3px;
- }
- .nn:focus, .nn:hover{
- background-color:#fff !important;
- }
- .navbar-title{
- display: inline-block;
- font-size: 20px;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #284A94;
- padding-left: 20px;
- line-height: 60px;
- float: left;
- }
- .navbar-header{
- width: 550px!important;
- height: 70px;
- line-height: 70px;
- font-size: 20px;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #284A94;
- }
- .sidebox{
- width: 100%;
- height: 100%;
- position: relative;
- }
- .side-box-switch{
- width: 28px;
- height: 168px;
- position: absolute;
- z-index: 10;
- top: 50%;
- right: -28px;
- /*background-color: red !important;*/
- margin-top: -84px;
- cursor: pointer;
- }
- .side-box-switch .switch-img{
- width: 100%;
- height: 100%;
- }
- .main-box-padding-left{
- padding-left: 120px !important;
- }
- .main-box-padding-left1{
- padding-left: 280px !important;
- }
- .main-box-padding-left3{
- padding-left: 0px !important;
- }
- .menusub-box{
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- html{
- height: auto !important;
- }
- body{
- background-image: url("/admin/img/index-bg.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- /*background-size: cover;*/
- }
- .navbar{
- width: 100%;
- height: 70px !important;
- background-image: url("/admin/img/index-header-bg.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- margin-bottom: 0 !important;
- border-bottom: none !important;
- }
- .navbar-logo{
- width: 157px;
- height: 40px;
- display: inline-block;
- float: left;
- margin-left: 50px;
- margin-top: 15px;
- }
- .navbar-logo img{
- width: 100%;
- height: 100%;
- }
- </style>
- </head>
- <!--<body class="fixed-sidebar full-height-layout gray-bg fixed-nav pace-done">-->
- <body>
- <nav class="navbar navbar-fixed-top" role="navigation">
- <!-- <div class="navbar-title">{:get_config('web_site_title')}</div>-->
- <div class="navbar-logo">
- <img src="/admin/img/index-logo.png" alt="">
- </div>
- <div class="navbar-header">
- {if $userInfo.type==1}
- <!--{:get_config('web_site_title')} | -->
- <div data-width="60%" data-title="切换组织" url="{:url('Index/changeOrg')}" onclick="layer_open(this,2)" style="cursor: pointer;display: inline-block;height: 70px;line-height: 70px">
- {:session('orgName')} <span class="glyphicon glyphicon-menu-down" style="font-size: 16px;" aria-hidden="true"></span>
- </div>
- {else}
- <!--{:get_config('web_site_title')} | -->
- <div data-width="60%" style="display: inline-block;">
- {:session('orgName')}
- </div>
- {/if}
- </div>
- <!-- <ul class="nav navbar-top-links navbar-right">-->
- <!--<li class="dropdown">
- <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#"> <i class="fa fa-bell"></i> <span class="label label-primary">8</span> </a>
- <ul class="dropdown-menu dropdown-alerts">
- <li>
- <a href="mailbox.html">
- <div>
- <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
- <span class="pull-right text-muted small">4分钟前</span>
- </div>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="profile.html">
- <div>
- <i class="fa fa-qq fa-fw"></i> 3条新回复
- <span class="pull-right text-muted small">12分钟前</span>
- </div>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <div class="text-center link-block">
- <a class="J_menuItem" href="notifications.html" data-index="89">
- <strong>查看所有 </strong>
- <i class="fa fa-angle-right"></i>
- </a>
- </div>
- </li>
- </ul>
- </li>-->
- <!-- <li class="dropdown">
- {if ($isDispatch == 1)}
- <a href="javascript:;" id="goOrder" url="{:url('Index/ordersList')}?mode=0&order_mode=1" onclick="layer_open_dispatch(this,2)" class="glyphicon glyphicon-bell">
- <text id="orderNums">{if condition="$orderNums > 0"}({$orderNums}){/if}</text>
- </a>
- <a href="javascript:;" class="nn" onclick="offNotice()" id="offNotice" >
- <text id="offNoticeBtn">关闭通知</text>
- </a>
- <input type="hidden" id="offNoticeVal" value="0">
- {/if}
- <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;">欢迎,{:session('user_auth.real_name')} </a>
- <ul class="dropdown-menu animated fadeInRight m-t-xs">
- <li><a class="JmenuItem" href="{:url('User/modifyPass')}">修改密码</a></li>
- <li><a href="{:url('Common/logout')}">安全退出</a></li>
- </ul>
- </li>-->
- <!-- </ul>-->
- </nav>
- <div id="vueapphhq">
- <div class="container gymain-box">
- <div class="row">
- <div class="col-xs-2">
- <div class="gymain1">
- <div class="menu-search-box">
- <div class="menu-search-input">
- <input type="text" name="menu_name" id="menu_name" placeholder="您想去的菜单页">
- </div>
- <div class="menu-search-img-btn">
- <img src="/admin/img/search.png" alt=""onclick="searchMenu()">
- </div>
- </div>
- <div class="menu-list-box" id="menu-list-box">
- {foreach $userEndMenu as $k=>$v}
- <a href="{:url('indexsub1',['curmenu'=>500,'menuId'=>$v['id'],'ct'=>1])}">
- <div class="zi">{$v['title']}</div>
- </a>
- {/foreach}
- </div>
- <div class="ggw-box">
- <img src="/admin/img/guanggaowei.png" alt="">
- </div>
- <div class="download-info-box">
- <div class="download-info-title">资料下载</div>
- <div class="download-info-content-box">
- <a href="/doc/国药医嘉安-PC端操作说明书.pdf" target="_blank">
- <div><span>PC端操作说明书</span><img src="/admin/img/download.png" alt=""></div>
- </a>
- <a href="/doc/国药医嘉安-APP操作说明书.pdf" target="_blank">
- <div><span>移动端操作说明书</span><img src="/admin/img/download.png" alt=""></div>
- </a>
- </div>
- </div>
- <div class="qrcode-box">
- <div class="swiper-qrcode" id="swiper-qrcode">
- <div class="swiper-wrapper">
- {if $download}
- <div class="swiper-slide">
- <div class="qrcode-title">APP下载二维码</div>
- <img src="{:url('Qrcode/qrcode',['code'=>$download,'type'=>1])}" alt="APP下载二维码">
- </div>
- {/if}
- {if $wxcode}
- <div class="swiper-slide">
- <div class="qrcode-title">小程序二维码</div>
- <img src="{$wxcode}" alt="小程序二维码">
- </div>
- {/if}
- {if $phcode}
- <div class="swiper-slide">
- <div class="qrcode-title">陪护二维码</div>
- <img src="{:url('Qrcode/qrcode',['code'=>$phcode,'type'=>1])}" alt="陪护客户端二维码">
- </div>
- {/if}
- </div>
- <div class="box-swiper-pagination" id="box-swiper-pagination1"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-7">
- <div class="gymain2">
- <div class="gymian2-one-box">
- <div class="row">
- <div class="col-xs-5" style="padding: 0 5px!important;">
- <div class="loginuserbox">
- {empty name="userInfo['head_image']"}
- <img src="/img/defaulthead.png" style="" alt="">
- {else /}
- <img src="{$userInfo['head_image']}" alt="">
- {/empty}
- <div class="loginusername">
- <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;">欢迎,{:session('user_auth.real_name')} </a>
- <ul class="dropdown-menu animated fadeInRight m-t-xs">
- <li><a class="JmenuItem" href="javascript:;" onclick="savePassWord()">修改密码</a></li>
- <li><a href="{:url('Common/logout')}">安全退出</a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-xs-7" style="padding: 0 5px!important;">
- <div class="onemenu">
- <div class="col-xs-6">
- <a href="{if $fixedModuleAuth ==1} {:url('index/indexsub',['curmenu'=>$fixedModule['id']])} {else /}javascript:void(0){/if}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$fixedModule.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$fixedModule.title}</div>
- <div class="des">{$fixedModule.des}</div>
- </div>
- {if $fixedModuleAuth ==1} <img src="/admin/img/xiangyou1.png" alt="" class="jiantou">{/if}
- </div>
- </a>
- </div>
- <div class="col-xs-6">
- <a href="{if $fixedModuleAuth1 ==1} {:url('index/indexsub',['curmenu'=>$fixedModule1['id']])} {else /}javascript:void(0){/if}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$fixedModule1.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$fixedModule1.title}</div>
- <div class="des">{$fixedModule1.des}</div>
- </div>
- {if $fixedModuleAuth ==1}
- <img src="/admin/img/xiangyou1.png" alt="" class="jiantou">
- {/if}
- </div>
- </a>
- </div>
- <div class="col-xs-4">
- <a href="{if $fixedModuleAuth2 ==1} {:url('index/indexsub',['curmenu'=>$fixedModule2['id']])} {else /}javascript:void(0){/if}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$fixedModule2.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$fixedModule2.title}</div>
- <div class="des">{$fixedModule2.des}</div>
- </div>
- </div>
- </a>
- </div>
- <div class="col-xs-4">
- <a href="{if $fixedModuleAuth3 ==1} {:url('index/indexsub',['curmenu'=>$fixedModule3['id']])} {else /}javascript:void(0){/if}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$fixedModule3.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$fixedModule3.title}</div>
- <div class="des">{$fixedModule3.des}</div>
- </div>
- </div>
- </a>
- </div>
- <div class="col-xs-4">
- <a href="{if $fixedModuleAuth4 ==1} {:url('index/indexsub',['curmenu'=>$fixedModule4['id']])} {else /}javascript:void(0){/if}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$fixedModule4.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$fixedModule4.title}</div>
- <div class="des">{$fixedModule4.des}</div>
- </div>
- </div>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="gymian2-two-box" >
- <div class="gymian2-two-header">常用模块
- <!-- <img src="/admin/img/xiangyou1.png" alt="">-->
- </div>
- <div class="row">
- {foreach $module as $k=>$v}
- <div class="col-xs-4">
- <a href="{:url('indexsub1',['curmenu'=>500,'menuId'=>$v['menu_id'],'ct'=>1])}">
- <div class="menu-info-box">
- <div class="menu-icon">
- <img src="{$v.img}" alt="">
- </div>
- <div class="menu-name">
- <div class="title">{$v['title']}</div>
- <div class="des">{$v['des']}</div>
- </div>
- </div>
- </a>
- </div>
- {/foreach}
- </div>
- </div>
- <div class="gymian2-three-box">
- <div class="gymian2-three-header">今日看板</div>
- <div class="orders-box">
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg">
- <div class="title">待处理</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count1}</div>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg1">
- <div class="title">已派发</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count2}</div>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg2">
- <div class="title">已完成</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count3}</div>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg3">
- <div class="title">已评价</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count4}</div>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg4">
- <div class="title">用户撤销</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count5}</div>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="orders-status-box orders-status-bg5">
- <div class="title">调度取消</div>
- <div class="line"></div>
- <div class="nums">{$dayOrderCount.count6}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-3" style="padding: 0 5px">
- <div class="gymain3">
- <div class="notice-box">
- <div class="notice-header-box">
- 通知公告
- <a href="{:url('index/indexsub1',['curmenu'=>500,'menuId'=>14,'ct'=>1])}">
- <img src="/admin/img/xiangyou1.png" alt="" class="pull-right" style="cursor: pointer">
- </a>
- </div>
- {notempty name="notice"}
- {volist name="notice" id="v"}
- <div class="notice-info-box">
- <div class="notice-info-header-box">
- <div class="yuandian"></div>
- <div class="name">{$v.title}</div>
- <text class="pull-right">{$v.create_time}</text>
- </div>
- <div class="notice-content">
- {$v.content}
- </div>
- <div class="go-notice-detail" style="cursor: pointer;" url="{:url('NoticeCommon/noticeDetail',['id'=>$v['id']])}" data-title="通知详情" data-width="800px" onclick="layer_open(this,1)">详情</div>
- </div>
- {/volist}
- {else /}
- <div style="width: 100%;text-align: center;margin-top: 50px;font-size: 16px">暂无通知</div>
- {/notempty}
- </div>
- <div class="tj-box">
- <div class="tj-header-box">
- 统计报表
- {if $fixedModuleAuth3 ==1}
- <a href="{:url('index/indexsub',['curmenu'=>$fixedModule3['id']])}">
- <img src="/admin/img/xiangyou1.png" alt="" class="pull-right">
- </a>
- {/if}
- </div>
- <div class="tj-body-box">
- <div class="col-xs-6">
- <a href="{:url('index/indexsub',['curmenu'=>163,'menuId'=>240,'ct'=>1])}">
- <div class="tj-info">
- 报修报表
- </div>
- </a>
- </div>
- <div class="col-xs-6">
- <a href="{:url('index/indexsub',['curmenu'=>163,'menuId'=>242,'ct'=>1])}">
- <div class="tj-info1">
- 运送报表
- </div>
- </a>
- </div>
- <div class="col-xs-6">
- <a href="{:url('index/indexsub',['curmenu'=>163,'menuId'=>244,'ct'=>1])}">
- <div class="tj-info1">
- 巡更报表
- </div>
- </a>
- </div>
- <div class="col-xs-12" style="padding: 0 5px!important;">
- <a href="{:url('index/indexsub',['curmenu'=>1,'menuId'=>41,'curmenuId'=>503,'ct'=>1])}">
- <div class="tj-info2">
- 视频监控
- </div>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--<div class="main-box main-box-h2" id="main-iframe">-->
- <div>
- <!-- <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('Index/def')}" frameborder="0" data-id="index_v1.html" seamless></iframe>-->
- <!--</div>-->
- <script src="/static/hplus/js/bootstrap.min.js?v=3.3.7"></script>
- <script src="/static/layer3.2.0/layer.js"></script>
- <script src="/static/hplus/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
- <script src="/static/hplus/js/plugins/metisMenu/jquery.metisMenu.js"></script>
- <script src="/static/hplus/js/plugins/contextMenu/jquery.contextMenu.min.js"></script>
- <script src="/static/hplus/js/hplus.js?v=4.1.0"></script>
- <script type="text/javascript" src="/static/hplus/js/contabs.js"></script>
- <!-- 第三方插件 -->
- <script src="/static/hplus/js/plugins/pace/pace.min.js"></script>
- <script src="/static/elementui2.15.5/vue-2.6.14.js"></script>
- <script src="/static/elementui2.15.5/index.js"></script>
- <script src="/admin/js/common.js"></script>
- <script src="/static/swiper4.5/js/swiper.min.js"></script>
- {if condition="is_login() and !is_admin(is_login()) and btnAuth(is_login(),'PhoneMonitor/show')"}
- <textarea style="display: none;" id="StatusArea" rows="13" name="S1" class="form-control" readonly></textarea>
- <script language="javascript" type="text/javascript" src="/static/phonejs/qnviccub.js"></script>
- <script language="javascript" type="text/javascript" src="/static/phonejs/qnvfunc.js"></script>
- <script language="javascript" type="text/javascript" src="/static/phonejs/json2.js"></script>
- <script language="javascript" type="text/javascript" src="/static/phonejs/deviceapi.js"></script>
- <script>
- var fp;
- $(document).ready(function(){
- TV_Initialize();
- getEvent(T_GetEvent);
- });
- $(window).unload(function(){
- TV_Disable();
- });
- setInterval(function () {
- OpenDevice(ODT_LBRIDGE,function(nResult){AppendStatus('打开设备.');});
- },30000);
- //离开页面
- $(window).bind('beforeunload',function(){
- TV_Disable();
- });
- function openPhone() {
- // let gphone = "13838379499";
- // let fp = "d:\\wyluyin\\" + getCurrentDate(3) + "_" + gphone + ".wav";
- // check_phone(gphone,fp);
- }
- function playBtn() {
- // let path = "d:\\wyluyin\\20220608191204_13027625915.wav";
- // console.log('path:',path);
- PlayFile(1,QNV_PLAY_FILE_START,0,PLAYFILE_MASK_REPEAT,path,function(id){
- console.log('play:',id);
- });
- }
- function check_phone(gphone,fp) {
- fp = base64encode(fp);
- var url = '{:url("orders/phone")}?phone=' + gphone + '&fp='+fp;
- var title = '添加订单';
- layer.open({
- type: 2,
- shade: 0.8,
- title: title,
- area: ['800px', '400px'],
- fix: false, //不固定
- maxmin: true,
- content: url,
- skin: 'layer-ext-moon',
- success: function(layero, index) {
- layer.iframeAuto(index);
- },
- // btn: ['取消']
- });
- return false;
- }
- function AppendStatus(szStatus)
- {
- // console.log(szStatus);
- // $("#StatusArea").append(szStatus+"\r\n" );
- // var scrollTop = $("#StatusArea")[0].scrollHeight;
- // $("#StatusArea").scrollTop(scrollTop);
- }
- function AppendStatusEx(uID,szStatus)
- {
- uID=uID+1;
- AppendStatus("通道"+uID+":"+szStatus);
- }
- function T_GetEvent(uID,uEventType,uHandle,uResult,szdata)
- {
- // console.log(uID,uEventType,uHandle,uResult,szdata);
- //var vValueArray=qnviccub.QNV_Event(0,2,0,"","",1024);
- if(uEventType == -1)
- return;
- var vValue=" type="+uEventType+" Handle="+uHandle+" Result="+uResult+" szdata="+szdata;
- switch(uEventType)
- {
- case BriEvent_PhoneHook:// 本地电话机摘机事件
- AppendStatusEx(uID,"本地电话机摘机"+vValue);
- TV_StartRecordFile(uID,fp);
- break;
- case BriEvent_PhoneDial:// 只有在本地话机摘机,没有调用软摘机时,检测到DTMF拨号
- AppendStatusEx(uID,"本地话机拨号"+vValue);
- break;
- case BriEvent_PhoneHang:// 本地电话机挂机事件
- TV_HangUpCtrl(uID);
- AppendStatusEx(uID,"本地电话机挂机"+vValue);
- TV_StopRecordFile(uID);
- break;
- case BriEvent_CallIn:// 外线通道来电响铃事件
- AppendStatusEx(uID,"外线通道来电响铃事件"+vValue);
- break;
- case BriEvent_GetCallID://得到来电号码
- AppendStatusEx(uID,"得到来电号码"+vValue);
- fp = "d:\\wyluyin\\" + getCurrentDate(3) + "_" + szdata + ".wav";
- check_phone(szdata,fp);
- break;
- case BriEvent_StopCallIn:// 对方停止呼叫(产生一个未接电话)
- AppendStatusEx(uID,"对方停止呼叫(产生一个未接电话)"+vValue);
- break;
- case BriEvent_DialEnd:// 调用开始拨号后,全部号码拨号结束
- AppendStatusEx(uID,"调用开始拨号后,全部号码拨号结束"+vValue);
- break;
- case BriEvent_PlayFileEnd:// 播放文件结束事件
- AppendStatusEx(uID,"播放文件结束事件"+vValue);
- break;
- case BriEvent_PlayMultiFileEnd:// 多文件连播结束事件
- AppendStatusEx(uID,"多文件连播结束事件"+vValue);
- break;
- case BriEvent_PlayStringEnd://播放字符结束
- AppendStatusEx(uID,"播放字符结束"+vValue);
- break;
- case BriEvent_RepeatPlayFile:// 播放文件结束准备重复播放
- AppendStatusEx(uID,"播放文件结束准备重复播放"+vValue);
- break;
- case BriEvent_SendCallIDEnd:// 给本地设备发送震铃信号时发送号码结束
- AppendStatusEx(uID,"给本地设备发送震铃信号时发送号码结束"+vValue);
- break;
- case BriEvent_RingTimeOut://给本地设备发送震铃信号时超时
- AppendStatusEx(uID,"给本地设备发送震铃信号时超时"+vValue);
- break;
- case BriEvent_Ringing://正在内线震铃
- AppendStatusEx(uID,"正在内线震铃"+vValue);
- break;
- case BriEvent_Silence:// 通话时检测到一定时间的静音.默认为5秒
- AppendStatusEx(uID,"通话时检测到一定时间的静音"+vValue);
- break;
- case BriEvent_GetDTMFChar:// 线路接通时收到DTMF码事件
- AppendStatusEx(uID,"线路接通时收到DTMF码事件"+vValue);
- break;
- case BriEvent_RemoteHook:// 拨号后,被叫方摘机事件
- AppendStatusEx(uID,"拨号后,被叫方摘机事件"+vValue);
- break;
- case BriEvent_RemoteHang://对方挂机事件
- TV_HangUpCtrl(uID);
- AppendStatusEx(uID,"对方挂机事件"+vValue);
- TV_StopRecordFile(uID);
- break;
- case BriEvent_Busy:// 检测到忙音事件,表示PSTN线路已经被断开
- AppendStatusEx(uID,"检测到忙音事件,表示PSTN线路已经被断开"+vValue);
- break;
- case BriEvent_DialTone:// 本地摘机后检测到拨号音
- AppendStatusEx(uID,"本地摘机后检测到拨号音"+vValue);
- break;
- case BriEvent_RingBack:// 电话机拨号结束呼出事件。
- AppendStatusEx(uID,"电话机拨号结束呼出事件"+vValue);
- break;
- case BriEvent_MicIn:// MIC插入状态
- AppendStatusEx(uID,"MIC插入状态"+vValue);
- break;
- case BriEvent_MicOut:// MIC拔出状态
- AppendStatusEx(uID,"MIC拔出状态"+vValue);
- break;
- case BriEvent_FlashEnd:// 拍插簧(Flash)完成事件,拍插簧完成后可以检测拨号音后进行二次拨号
- AppendStatusEx(uID,"拍插簧(Flash)完成事件,拍插簧完成后可以检测拨号音后进行二次拨号"+vValue);
- break;
- case BriEvent_RefuseEnd:// 拒接完成
- AppendStatusEx(uID,"拒接完成"+vValue);
- break;
- case BriEvent_SpeechResult:// 语音识别完成
- AppendStatusEx(uID,"语音识别完成"+vValue);
- break;
- case BriEvent_FaxRecvFinished:// 接收传真完成
- AppendStatusEx(uID,"接收传真完成"+vValue);
- break;
- case BriEvent_FaxRecvFailed:// 接收传真失败
- AppendStatusEx(uID,"接收传真失败"+vValue);
- break;
- case BriEvent_FaxSendFinished:// 发送传真完成
- AppendStatusEx(uID,"发送传真完成"+vValue);
- break;
- case BriEvent_FaxSendFailed:// 发送传真失败
- AppendStatusEx(uID,"发送传真失败"+vValue);
- break;
- case BriEvent_OpenSoundFailed:// 启动声卡失败
- AppendStatusEx(uID,"启动声卡失败"+vValue);
- break;
- case BriEvent_UploadSuccess://远程上传成功
- AppendStatusEx(uID,"远程上传成功"+vValue);
- break;
- case BriEvent_UploadFailed://远程上传失败
- AppendStatusEx(uID,"远程上传失败"+vValue);
- break;
- case BriEvent_EnableHook:// 应用层调用软摘机/软挂机成功事件
- AppendStatusEx(uID,"应用层调用软摘机/软挂机成功事件"+vValue);
- break;
- case BriEvent_EnablePlay:// 喇叭被打开或者/关闭
- AppendStatusEx(uID,"喇叭被打开或者/关闭"+vValue);
- break;
- case BriEvent_EnableMic:// MIC被打开或者关闭
- AppendStatusEx(uID,"MIC被打开或者关闭"+vValue);
- break;
- case BriEvent_EnableSpk:// 耳机被打开或者关闭
- AppendStatusEx(uID,"耳机被打开或者关闭"+vValue);
- break;
- case BriEvent_EnableRing:// 电话机跟电话线(PSTN)断开/接通
- AppendStatusEx(uID,"电话机跟电话线(PSTN)断开/接通"+vValue);
- break;
- case BriEvent_DoRecSource:// 修改录音源
- AppendStatusEx(uID,"修改录音源"+vValue);
- break;
- case BriEvent_DoStartDial:// 开始软件拨号
- AppendStatusEx(uID,"开始软件拨号"+vValue);
- break;
- case BriEvent_RecvedFSK:// 接收到FSK信号,包括通话中FSK/来电号码的FSK
- AppendStatusEx(uID,"接收到FSK信号,包括通话中FSK/来电号码的FSK"+vValue);
- break;
- case BriEvent_PlugOut:
- AppendStatusEx(uID,"设备移除");
- // alert('设备移除');
- break;
- case BriEvent_DevErr://设备错误
- AppendStatusEx(uID,"设备错误"+ decodeURIComponent(vValue) );
- // alert('设备错误');
- break;
- default:
- if(uEventType < BriEvent_EndID)
- AppendStatusEx(uID,"忽略其它事件发生:ID=" + uEventType+ vValue);
- break;
- }
- }
- </script>
- {/if}
- {if condition="$isDispatch eq 1"}
- <audio id="dingdantixing" src="/static/tixing.mp3" controls="controls" style="display: none;"></audio>
- <script>
- var time1;
- var audio = document.getElementById('dingdantixing');
- $(function () {
- var interval = function () {
- var url = "{:url('Index/order')}";
- $.get(url,function (data) {
- if(data.code == 1){
- var audio = document.getElementById('dingdantixing');
- audio.play();
- if(data.data > 0){
- document.getElementById('orderNums').innerHTML ='('+data.data +')';
- }
- // layer.msg('您有新的订单请及时处理',{time:3000});
- }
- });
- }
- time1 = setInterval(interval,30000);
- $("#offNoticeBtn").click(function () {
- var off = parseInt($("#offNoticeVal").val());
- if(off==0){
- clearInterval(time1);
- $("#offNoticeVal").val(1)
- $("#offNoticeBtn").html('开启通知');
- audio.pause();
- }else {
- $("#offNoticeVal").val(0)
- time1 = setInterval(interval,30000);
- $("#offNoticeBtn").html('关闭通知');
- }
- })
- })
- </script>
- {/if}
- <script>
- var menus = {:json_encode($menus)};
- $(function () {
- // $('#side-menu').slimScroll({
- // height: ($('.sidebar-box').height() + 40) + 'px'
- // });
- // $('#side-menu2').slimScroll({
- // height: $('.sidebar-box').height() + 'px'
- // });
- $('#sidebar-box-h2').removeClass('sidebar-box-h2');
- $('#main-iframe').addClass('main-box-h2');
- $('#menu-1').addClass('active');
- // $('.sidenav .side-list a').hover(
- // function () {
- // $(this).addClass("hover");
- // let id = $(this).attr('data-id');
- // initSubMenu(id);
- // },
- // function () {
- // $(this).removeClass("hover");
- // }
- // );
- $(document).on('click','#side-menu .Jiframe',function () {
- let id = $(this).attr('data-id');
- let url = $(this).attr('data-url');
- $('#main-iframe').removeClass('main-box-padding-left');
- $('#main-iframe').removeClass('main-box-padding-left1');
- $('#main-iframe').removeClass('main-box-padding-left3');
- // var width2 = localStorage.getItem("width1");
- // console.log(width2,'xxxxxxxxxxxxxxxx')
- // if(width2 == 120){
- // $('#main-iframe').css('padding-left','120px');
- // }
- // if(width2 == 280){
- // $('#main-iframe').css('padding-left','280px');
- // }
- if(url){
- if(id==485 || id==467 || id==488 || id==489){
- $('#sidebar-box-h2').removeClass('sidebar-box-h2');
- $('#main-iframe').addClass('main-box-h2');
- window.open(url);
- }else {
- $('#sidebar-box-h2').removeClass('sidebar-box-h2');
- $('#main-iframe').addClass('main-box-h2');
- let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+url+'" frameborder="0" data-id="'+url+'" seamless></iframe>';
- $('#main-iframe').html(str);
- }
- }else{
- $('#sidebar-box-h2').addClass('sidebar-box-h2');
- $('#main-iframe').removeClass('main-box-h2');
- }
- $(this).addClass("hover");
- initSubMenu(id);
- $('#side-menu .Jiframe').removeClass('active');
- $(this).addClass('active');
- });
- $(document).on('click','#side-menu2 .Jiframe',function () {
- $('#main-iframe').removeClass('main-box-padding-left');
- $('#main-iframe').removeClass('main-box-padding-left1');
- $('#main-iframe').removeClass('main-box-padding-left3');
- let pid = $(this).attr('data-pid');
- let url = $(this).attr('data-url');
- let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+url+'" frameborder="0" data-id="'+url+'" seamless></iframe>';
- $('#main-iframe').html(str);
- $('#side-menu2 .Jiframe').removeClass('active');
- $(this).addClass('active');
- // 寻找父级元素
- $('#side-menu .Jiframe').removeClass('active');
- $('#menu'+pid).addClass('active');
- });
- $(document).on('click','.JmenuItem',function () {
- $('#main-iframe').removeClass('main-box-padding-left');
- $('#main-iframe').removeClass('main-box-padding-left1');
- $('#main-iframe').removeClass('main-box-padding-left3');
- let url = $(this).attr('href');
- let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+url+'" frameborder="0" data-id="'+url+'" seamless></iframe>';
- $('#main-iframe').html(str);
- return false;
- });
- });
- function initSubMenu(id) {
- $('#main-iframe').removeClass('main-box-padding-left');
- $('#main-iframe').removeClass('main-box-padding-left1');
- $('#main-iframe').removeClass('main-box-padding-left3');
- let submenus = [];
- for (let o in menus){
- if(id == menus[o].id){
- submenus = menus[o].child;
- break;
- }
- }
- if(submenus.length > 0){
- $('#sidebar-box-h2').addClass('sidebar-box-h2');
- $('#main-iframe').removeClass('main-box-h2');
- }else{
- $('#sidebar-box-h2').removeClass('sidebar-box-h2');
- $('#main-iframe').addClass('main-box-h2');
- }
- let str = '';
- for (let o in submenus){
- if(submenus[o].child.length > 0){
- // <div class="side-group">
- // <div class="side-group-label">系统设置</div>
- // <div class="side-list">
- // <a class="J_iframe" href="layouts.html"><span>项目管理</span></a>
- // </div>
- // </div>
- str += '<div class="side-group">';
- str += '<div class="side-group-label">'+submenus[o].title+'</div>';
- let children = submenus[o].child;
- for(let n in children){
- str += '<div class="side-list">';
- str += '<a class="Jiframe" id="menu'+children[n].id+'" data-id="'+children[n].id+'" data-pid="'+submenus[o].pid+'" data-url="'+children[n].url+'" href="javascript:;"><span>'+children[n].title+'</span></a>';
- str += '</div>';
- }
- str += '</div>';
- }else{
- // <div class="side-list">
- // <a class="J_iframe active" href="layouts.html"><span>权限管理</span></a>
- // </div>
- str += '<div class="side-list">';
- str += '<a class="Jiframe" id="menu'+submenus[o].id+'" data-id="'+submenus[o].id+'" data-pid="'+submenus[o].pid+'" data-url="'+submenus[o].url+'" href="javascript:;"><span>'+submenus[o].title+'</span></a>';
- str += '</div>';
- }
- }
- $('#side-menu2').html(str);
- }
- function add_highlight(url){
- console.log('url',url);
- $('.side-list a').removeClass('active');
- for (let o in menus){
- if(menus[o].url && menus[o].url == url){
- $('#menu'+menus[o].id).addClass('active');
- break;
- }
- let child1 = menus[o].child;
- let flag = false;
- let id = 0;
- if(child1.length > 0){
- for (let m in child1){
- if(child1[m].url && child1[m].url == url){
- flag = true;
- id = child1[m].id;
- break;
- }
- let child2 = child1[m].child;
- for (let n in child2){
- if(child2[n].url && child2[n].url == url){
- flag = true;
- id = child2[n].id;
- break;
- }
- }
- if(flag){
- break;
- }
- }
- }
- console.log('flag11',flag,id);
- if(flag){
- initSubMenu(menus[o].id);
- $('#menu'+menus[o].id).addClass('active');
- $('#menu'+id).addClass('active');
- break;
- }
- }
- }
- // $(document).on('click','#goOrder',function () {
- // let url = $(this).attr('href');
- // let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+url+'" frameborder="0" data-id="'+url+'" seamless></iframe>';
- // $('#main-iframe').html(str);
- // return false;
- // });
- function layer_open_dispatch(_self,flag){
- var url = $(_self).attr('url');
- var title = $(_self).attr('data-title');
- var width = $(_self).attr('data-width')?$(_self).attr('data-width'):'90%';
- var height = $(_self).attr('data-height')?$(_self).attr('data-height'):'90%';
- layer.open({
- type: 2,
- title: title,
- shadeClose: true,
- shade: 0.3,
- maxmin: true,
- area: [width, height],
- content: url,
- end: function () {
- update_order_count();
- }
- });
- }
- function update_order_count() {
- let url = "{:url('Index/ocount')}";
- $.post(url,function (res) {
- if(res.code == 1){
- let count = res.data.count;
- if(count > 0){
- $('#orderNums').html('('+count+')');
- }else{
- $('#orderNums').html('');
- }
- }
- });
- }
- function toggleSide(_self) {
- var width = $('.menuall').width();
- if(Number(width) > 1){
- var width1 = Number(width);
- localStorage.setItem("width1",width1);
- }
- if ( $(_self).hasClass('switch-open') ) {
- $(_self).removeClass('switch-open');
- $(_self).find('.switch-img-open').show();
- $(_self).find('.switch-img-close').hide();
- $('.menuall').css('width','0');
- $('.menusub-box').css('display','none');
- $('#main-iframe').addClass('main-box-padding-left3');
- }else{
- $(_self).addClass('switch-open');
- $(_self).find('.switch-img-open').hide();
- $(_self).find('.switch-img-close').show();
- $('.menuall').css('width','');
- $('.menusub-box').css('display','block');
- $('#main-iframe').removeClass('main-box-padding-left3');
- var width2 = localStorage.getItem("width1");
- if(width2 == 120){
- // $('#main-iframe').css('padding-left','120px');
- $('#main-iframe').addClass('main-box-padding-left');
- }
- if(width2 == 280){
- // $('#main-iframe').css('padding-left','280px');
- $('#main-iframe').addClass('main-box-padding-left1');
- }
- localStorage.removeItem("width1");
- }
- }
- new Swiper ('#swiper-qrcode', {
- loop: false, // 循环模式选项
- observer:true,//修改swiper自己或子元素时,自动初始化swiper
- observeParents:true,//修改swiper的父元素时,自动初始化swiper
- autoplay: {
- delay: 6000,
- stopOnLastSlide: false,
- disableOnInteraction: false,
- },
- // 如果需要分页器
- pagination: {
- el: '#box-swiper-pagination1',
- clickable: true,
- },
- });
- function searchMenu(){
- var menu_name = $('#menu_name').val();
- var url = '{:url("index/searchMenu")}';
- $.post(url,{menu_name:menu_name},function (e){
- if(e.code == 1){
- var str = '';
- $('#menu-list-box').html();
- var list = e.data;
- if(list.length > 0){
- for (var i in list){
- str +='<a href="'+list[i].url+'">';
- str +='<div class="zi">'+list[i].title+'</div>';
- str += '</a>';
- }
- }
- $('#menu-list-box').html(str);
- }
- })
- }
- function savePassWord(){
- console.log('xxxxxxxxxxxxxx');
- window.location.href = "{:url('User/modifyPass')}";
- }
- </script>
- </body>
- </html>
|