2b7ee2fd9b4ee8de10b5380d17ac28c9.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?php /*a:2:{s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\index\index.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <link rel="stylesheet" href="/static/assets/gougu/css/layout.css" media="all">
  17. <style>
  18. .total {
  19. margin-right: 80px;
  20. color: #999;
  21. margin-top: 5px;
  22. opacity: 0;
  23. transition: all 0.5s;
  24. }
  25. .box {
  26. text-align: center;
  27. position: absolute;
  28. top: 215%;
  29. left: 34%;
  30. transform: translate(-50%, -50%);
  31. background: #fff;
  32. padding: 20px;
  33. border: 1px solid #ccc;
  34. border-radius: 5px;
  35. padding: 0;
  36. }
  37. .top-text {
  38. width: 100%;
  39. height: 80%;
  40. }
  41. .bottom-button {
  42. width: 100%;
  43. height: 20%;
  44. }
  45. #read_num{
  46. color: white;
  47. position: absolute;
  48. top: 22px;
  49. left: 25px;
  50. background-color: #ff2f00bf;
  51. border-radius: 50%;
  52. width: 20px;
  53. height: 20px;
  54. text-align: center;
  55. line-height: 20px;
  56. font-size: 12px;
  57. }
  58. .layui-nav-itemed a{
  59. color: #162a48 !important;
  60. }
  61. </style>
  62. </head>
  63. <body class="main-body">
  64. <!-- 主体 -->
  65. <div class="layui-layout-body">
  66. <div id="GouguApp">
  67. <div class="layui-layout gg-layout">
  68. <div class="layui-header">
  69. <!-- 头部区域 -->
  70. <div class="layui-layout-left">
  71. <span class="gg-head-item">
  72. <a href="javascript:;" gg-event="shrink" title="侧边伸缩"><i
  73. class="layui-icon layui-icon-shrink-right"></i></a>
  74. </span>
  75. <span class="gg-head-item gg-head-cache">
  76. <a href="javascript:;" gg-event="cache" data-href="/admin/api/cache_clear" title="清空缓存"><i
  77. class="layui-icon layui-icon-fonts-clear"></i></a>
  78. </span>
  79. <span class="gg-head-item gg-head-home">
  80. <a href="/" target="_blank" title="前台首页"><i class="layui-icon layui-icon-website"></i></a>
  81. </span>
  82. </div>
  83. <div class="layui-layout-right">
  84. <span class="gg-head-item gg-head-refresh">
  85. <a href="javascript:;" class="refreshThis" gg-event="refresh" title="刷新">
  86. <i class="layui-icon layui-icon-refresh"></i>
  87. </a>
  88. </span>
  89. <span class="gg-head-item gg-head-screen">
  90. <a href="javascript:;" gg-event="screen" data-screen="full">
  91. <i class="fullScreen layui-icon layui-icon-screen-full"></i>
  92. </a>
  93. </span>
  94. <span class="gg-head-item gg-head-set">
  95. <a href="javascript:;" id="theme">
  96. <i class="layui-icon layui-icon-set"></i>
  97. </a>
  98. </span>
  99. <span class="gg-head-item gg-head-message">
  100. <a data-href="/admin/message/index" href="javascript:;" data-id="1000" id="clean_unread" data-title="消息中心"
  101. class="side-menu-item" title="消息中心">
  102. <i class="layui-icon layui-icon-notice">
  103. </i><?php if($count>0): ?><span id="read_num"><?php echo htmlentities($count); ?></span><?php endif; ?>
  104. </a>
  105. </span>
  106. <!-- <div class="box layui-card" style="opacity: 0;" id="message">
  107. <div class="layui-card-header" style="border-bottom: 1px solid #e2e2e2;">
  108. 您有一条新的消息
  109. </div>
  110. <div class="layui-card-body">
  111. <div class="top-text">
  112. <span>张三</span><span>&nbsp;<b>审批通过</b>&nbsp;</span> <span style="color: #187FDD;">测试项目1</span>
  113. </div>
  114. <div class="bottom-button">
  115. <a type="button" class="layui-btn layui-btn-xs side-menu-item"
  116. data-href="/admin/message/index" data-title="消息中心"
  117. href="javascript:;" data-id="1000"
  118. id = 'lock' style="color: white;"
  119. >查看</a>
  120. <button type="button" class="layui-btn layui-btn-xs layui-bg-orange" value="关闭"
  121. id="refreshParent">关闭</button>
  122. </div>
  123. </div>
  124. </div> -->
  125. <span class="gg-head-item gg-head-avatar">
  126. <ul class="layui-nav">
  127. <li class="layui-nav-item">
  128. <a href="javascript:;">
  129. <img src="<?php echo get_login_admin('thumb'); ?>"
  130. onerror="javascript:this.src='{__ADMIN_IMG__}/nonepic360x360.jpg';this.onerror=null;">
  131. <cite><?php echo get_login_admin('nickname'); ?></cite>
  132. </a>
  133. <dl class="layui-nav-child" style="text-align: center; cursor: pointer;">
  134. <dd><a data-href="/admin/api/edit_personal" data-id="0101" data-title="基本资料"
  135. class="side-menu-item">基本资料</a></dd>
  136. <dd><a data-href="/admin/api/edit_password" data-id="0102" data-title="修改密码"
  137. class="side-menu-item">修改密码</a></dd>
  138. <dd><a data-href="/acctconnect/connect/index" data-id="0103" data-title="关联账号"
  139. class="side-menu-item">关联账号</a></dd>
  140. <hr>
  141. <dd gg-event="logout"><a>退出</a></dd>
  142. </dl>
  143. </li>
  144. </ul>
  145. </span>
  146. </div>
  147. </div>
  148. <!-- 侧边菜单 -->
  149. <div class="layui-side layui-side-menu layui-side-<?php echo htmlentities($theme); ?>">
  150. <div class="layui-side-scroll">
  151. <div class="layui-logo" gg-event="closeAllTabs" style="color: black;font-size: 0.95vw;">
  152. <?php echo htmlentities($unit_name); ?>
  153. <!-- <img src="/static/admin/images/syslogo.png" style="height: 40px;" class="syslogo">-->
  154. <!-- <img src="/static/admin/images/logo.png" style="height: 40px;" class="logo">-->
  155. </div>
  156. <ul id="menuList" class="layui-nav layui-nav-tree layui-inline" lay-shrink="all">
  157. <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$a): ?>
  158. <li class="layui-nav-item menu-li">
  159. <a class="side-menu-item" href="javascript:;" class="side-menu-item" lay-tips="<?php echo htmlentities($a['title']); ?>"
  160. lay-direction="2" <?php if(!(empty($a['isred']) || (($a['isred'] instanceof \think\Collection || $a['isred'] instanceof \think\Paginator ) && $a['isred']->isEmpty()))): ?> data-red="<?php echo htmlentities($a['isred']); ?>" <?php endif; ?>
  161. data-id="<?php echo htmlentities($a['id']); ?>" data-title="<?php echo htmlentities($a['title']); ?>" data-href="/<?php echo htmlentities($a['src']); ?>"><i
  162. class="icon <?php echo htmlentities($a['icon']); ?>"></i> <?php echo htmlentities($a['title']); ?></a>
  163. <?php if(!(empty($a['list']) || (($a['list'] instanceof \think\Collection || $a['list'] instanceof \think\Paginator ) && $a['list']->isEmpty()))): ?>
  164. <dl class="layui-nav-child">
  165. <?php if(is_array($a['list']) || $a['list'] instanceof \think\Collection || $a['list'] instanceof \think\Paginator): if( count($a['list'])==0 ) : echo "" ;else: foreach($a['list'] as $key=>$b): ?>
  166. <dd>
  167. <a href="javascript:;" class="side-menu-item" <?php if(!(empty($b['isred']) || (($b['isred'] instanceof \think\Collection || $b['isred'] instanceof \think\Paginator ) && $b['isred']->isEmpty()))): ?>
  168. data-red="<?php echo htmlentities($b['isred']); ?>" <?php endif; ?> data-id="<?php echo htmlentities($b['id']); ?>" data-title="<?php echo htmlentities($b['title']); ?>"
  169. data-href="/<?php echo htmlentities($b['src']); ?>"><?php echo htmlentities($b['title']); ?></a>
  170. <?php if(!(empty($b['list']) || (($b['list'] instanceof \think\Collection || $b['list'] instanceof \think\Paginator ) && $b['list']->isEmpty()))): ?>
  171. <dl class="layui-nav-child">
  172. <?php if(is_array($b['list']) || $b['list'] instanceof \think\Collection || $b['list'] instanceof \think\Paginator): if( count($b['list'])==0 ) : echo "" ;else: foreach($b['list'] as $key=>$c): ?>
  173. <dd>
  174. <a href="javascript:;" class="side-menu-item" data-id="<?php echo htmlentities($c['id']); ?>"
  175. data-title="<?php echo htmlentities($c['title']); ?>" data-href="/<?php echo htmlentities($c['src']); ?>"><?php echo htmlentities($c['title']); ?></a>
  176. <?php if(!(empty($c['list']) || (($c['list'] instanceof \think\Collection || $c['list'] instanceof \think\Paginator ) && $c['list']->isEmpty()))): ?>
  177. <dl class="layui-nav-child">
  178. <?php if(is_array($c['list']) || $c['list'] instanceof \think\Collection || $c['list'] instanceof \think\Paginator): if( count($c['list'])==0 ) : echo "" ;else: foreach($c['list'] as $key=>$d): ?>
  179. <dd><a href="javascript:;" class="side-menu-item" data-id="<?php echo htmlentities($d['id']); ?>"
  180. data-title="<?php echo htmlentities($d['title']); ?>" data-href="/<?php echo htmlentities($d['src']); ?>"><?php echo htmlentities($d['title']); ?></a>
  181. </dd>
  182. <?php endforeach; endif; else: echo "" ;endif; ?>
  183. </dl>
  184. <?php endif; ?>
  185. </dd>
  186. <?php endforeach; endif; else: echo "" ;endif; ?>
  187. </dl>
  188. <?php endif; ?>
  189. </dd>
  190. <?php endforeach; endif; else: echo "" ;endif; ?>
  191. </dl>
  192. <?php endif; ?>
  193. </li>
  194. <?php endforeach; endif; else: echo "" ;endif; ?>
  195. </ul>
  196. </div>
  197. </div>
  198. <!-- 页面标签 -->
  199. <div id="pageTabs" class="page-tabs">
  200. <div class="layui-icon gg-tabs-control layui-icon-prev" gg-event="tabRollLeft"></div>
  201. <div class="layui-icon gg-tabs-control layui-icon-next" gg-event="tabRollRight"></div>
  202. <div class="layui-icon gg-tabs-control layui-icon-down">
  203. <ul class="layui-nav gg-tabs-select">
  204. <li class="layui-nav-item">
  205. <a href="javascript:;"></a>
  206. <dl class="layui-nav-child layui-anim-fadein">
  207. <dd gg-event="closeThisTabs"><a href="javascript:;">关闭当前</a></dd>
  208. <dd gg-event="closeOtherTabs"><a href="javascript:;">关闭其它</a></dd>
  209. <dd gg-event="closeAllTabs"><a href="javascript:;">关闭全部</a></dd>
  210. </dl>
  211. </li>
  212. </ul>
  213. </div>
  214. <div class="layui-tab gg-admin-tab" lay-unauto lay-allowClose="true" lay-filter="gg-admin-tab">
  215. <ul class="layui-tab-title" id="pageTabUl">
  216. <li lay-id="0" lay-attr="view/home/index.html" class="layui-this"><i
  217. class="layui-icon ri-home-smile-line"></i></li>
  218. </ul>
  219. </div>
  220. </div>
  221. <!-- 主体内容 -->
  222. <div class="layui-body" id="GouguAppBody">
  223. <div class="gg-tab-page layui-show" id="tabItem0">
  224. <iframe id="0" data-frameid="0" name="myiframe"
  225. src="<?php if($type==0): ?><?php echo url('/admin/index/main'); elseif($type==2): ?><?php echo url('/admin/index/main_company'); ?><?php endif; ?>"
  226. frameborder="0" align="left" width="100%" height="100%" scrolling="yes"></iframe>
  227. </div>
  228. </div>
  229. <!-- 辅助元素,用于移动设备下遮罩 -->
  230. <div class="gg-body-shade" gg-event="shade"></div>
  231. </div>
  232. </div>
  233. </div>
  234. <!-- /主体 -->
  235. <!-- /主体 -->
  236. <!-- 底部 -->
  237. <div class="footer">
  238. 逸管工程项目管理系统 © www.yiguanfep.com
  239. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  240. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  241. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  242. </div>
  243. <!-- /底部 -->
  244. <!-- 脚本 -->
  245. <script>
  246. const moduleInit = ['tool', 'admin'];
  247. function gouguInit() {
  248. layui.dropdown.render({
  249. elem: '#theme',
  250. trigger: 'mousedown',
  251. align: 'center',
  252. data: [{
  253. title: '经典黑',
  254. theme: 'black'
  255. }, {
  256. title: '简约白',
  257. theme: 'white'
  258. }, {
  259. title: '海军蓝',
  260. theme: 'blue'
  261. }],
  262. click: function (data, othis) {
  263. console.log(othis)
  264. $.ajax({
  265. url: "/admin/index/set_theme",
  266. data: {
  267. 'theme': data.theme
  268. },
  269. success: function (e) {
  270. layer.msg(e.msg);
  271. if (e.code == 0) {
  272. setTimeout(function () {
  273. parent.location.reload();
  274. }, 1000)
  275. }
  276. }
  277. })
  278. }
  279. });
  280. window.showhongdian = function () {
  281. if($("a.layui-this").parent().parent().children().find('.hongdian').length == 1){
  282. // console.log($("a.layui-this").parent().parent().parent());
  283. $("a.layui-this").parent().parent().parent().find(".hongdian").css('display','none')
  284. }
  285. $('.layui-this').find('.hongdian').css('display','none')
  286. }
  287. var a = $('#menuList').find('a');
  288. for (let i = 0; i < a.length; i++) {
  289. if (a[i].dataset.red == 1) {
  290. a[i].innerHTML += ' <span class="layui-badge-dot hongdian"></span>'
  291. }
  292. }
  293. $('#GouguApp').on("click", '[gg-event="logout"]', function () {
  294. layer.confirm('确认注销登录吗?', {
  295. icon: 7,
  296. title: '警告'
  297. }, function (index) {
  298. //注销
  299. $.ajax({
  300. url: "/admin/login/login_out",
  301. success: function (e) {
  302. layer.msg(e.msg);
  303. if (e.code == 0) {
  304. setTimeout(function () {
  305. location.href = "<?php echo url('admin/login/index'); ?>"
  306. }, 1000)
  307. }
  308. }
  309. })
  310. layer.close(index);
  311. });
  312. });
  313. const box = document.querySelector('.box');
  314. function myfun1() {
  315. var opacity = 0;
  316. var fadeInterval = setInterval(function () {
  317. if (opacity < 1) {
  318. opacity += 0.1;
  319. box.style.opacity = opacity;
  320. } else {
  321. clearInterval(fadeInterval);
  322. }
  323. }, 100);
  324. }
  325. //不要括号    
  326. // window.onload = myfun1;
  327. // let i = 15
  328. // // 2.1 开启定时器
  329. // let n = setInterval(function myfun2() {
  330. // i--
  331. // if (i === 0) {
  332. // clearInterval(n) // 关闭定时器
  333. // var opacity = 1;
  334. // var fadeInterval = setInterval(function () {
  335. // if (opacity > 0) {
  336. // opacity -= 0.1;
  337. // box.style.opacity = opacity;
  338. // } else {
  339. // clearInterval(fadeInterval);
  340. // box.style.display = "none";
  341. // }
  342. // }, 100);
  343. // }
  344. // }, 1000)
  345. $("#clean_unread").click(function (){
  346. $("#read_num").css('display','none');
  347. })
  348. //关闭弹窗
  349. $('#refreshParent').click(()=>{
  350. let tanchuang = document.getElementById('message');
  351. tanchuang.style.display = 'none';
  352. })
  353. $('#lock').click(()=>{
  354. let tanchuang = document.getElementById('message');
  355. tanchuang.style.display = 'none';
  356. })
  357. function eliminate(type,lidom){
  358. let call=function (e){
  359. //写清除红点的js
  360. $(lidom[0]).find('.hongdian').css('display','none')
  361. let diannum = $('.hongdian').length
  362. let forcount = 0;
  363. if(diannum !== 0){
  364. for (let i = 0; i < diannum ; i++){
  365. let display = $('.hongdian')[i];
  366. console.log($(display).css('display'))
  367. if($(display).css('display') !== 'none'){
  368. forcount++
  369. }
  370. }
  371. }
  372. if(diannum == 0 || forcount == 0){
  373. parent.layui.pageTable.reloadData({
  374. done: function () {
  375. parent.hongdianselect()
  376. }
  377. })
  378. }
  379. }
  380. tool.post("/admin/project.api/eliminate", {type: type},call)
  381. }
  382. }
  383. </script>
  384. <!-- /脚本 -->
  385. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  386. <script src="/static/assets/layui/layui.js"></script>
  387. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  388. <script src="/static/assets/gougu/gouguInit.js"></script>
  389. <script src="https://unpkg.com/pinyin-pro"></script>
  390. <script>
  391. var { pinyin } = pinyinPro;
  392. </script>
  393. <!-- 统计代码 -->
  394. <!-- /统计代码 -->
  395. </body>
  396. </html>