40558b8a0db27f044f89c7657f530df4.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. <?php /*a:2:{s:61:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\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. <style>
  17. .footer{
  18. width: 100%;
  19. height: 25px;
  20. text-align: center;
  21. margin-bottom: 0 !important;
  22. }
  23. /* .left-box {
  24. height: 99vh !important;
  25. } */
  26. .left-box-font {
  27. color: #666666;
  28. font-size: 0.75vw;
  29. }
  30. .button-search {
  31. /* margin: 2.8vh 0 0 2vh; */
  32. margin-top: 2vw;
  33. background-color: rgb(23, 145, 233);
  34. }
  35. .layui-card-header {
  36. border-bottom: 1px solid #eee;
  37. line-height: 0;
  38. }
  39. .choose {
  40. margin-left: 1.4vw;
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. line-height: 0;
  45. }
  46. .record {
  47. float: right;
  48. margin-right: 1.8vw;
  49. text-align: right;
  50. width: 45%;
  51. font-size: 0.75vw !important;
  52. }
  53. .box-right-top {
  54. height: 8vh;
  55. font-size: 0.75VW;
  56. }
  57. .box-right-top-1 {
  58. color: rgb(23, 145, 233);
  59. font-size: 1.5vw;
  60. height: 60%;
  61. }
  62. .countdown {
  63. height: 7vh;
  64. font-size: 1vw;
  65. text-align: center;
  66. border: 1px solid #eee;
  67. }
  68. .countdown-top {
  69. height: 3vh;
  70. line-height: 3vh;
  71. border-bottom: 1px solid #eee;
  72. color: #fff;
  73. background-color: rgb(23, 145, 233);
  74. border-bottom: 1px solid rgb(23, 145, 233);
  75. font-size: 0.8vw;
  76. padding: 0;
  77. margin: 0;
  78. }
  79. .countdown-bottom {
  80. height: 4vh;
  81. line-height: 4vh;
  82. padding: 0;
  83. margin: 0;
  84. background-color: #fff;
  85. }
  86. .fund {
  87. border: 1px solid rgba(209, 209, 204, 0.719);
  88. margin-top: 1.5vh;
  89. border-radius: 0.2vw;
  90. background-color: rgb(250, 250, 250);
  91. }
  92. .fund-top {
  93. font-size: 0.8vw;
  94. font-weight: 550;
  95. }
  96. .list {
  97. font-size: 0.75vw;
  98. }
  99. .layui-form-checked[lay-skin=primary]>i {
  100. border-color: rgb(23, 145, 233) !important;
  101. background-color: rgb(23, 145, 233);
  102. }
  103. .layui-form-checkbox[lay-skin=primary]:hover>i {
  104. border-color: rgb(23, 145, 233);
  105. }
  106. .bar {
  107. position: relative;
  108. }
  109. /* .progress-box {
  110. margin-left: 4vw;
  111. } */
  112. .line {
  113. width: 50%;
  114. height: 1px;
  115. background-color: black;
  116. float: left;
  117. top: 1vh;
  118. position: relative;
  119. margin: auto;
  120. position: absolute;
  121. left: 42%;
  122. top: 50%;
  123. margin-left: 1.25vw;
  124. }
  125. /* .text-line {
  126. float: left;
  127. } */
  128. .schedule {
  129. font-size: 2vw;
  130. vertical-align: middle;
  131. }
  132. .dynamic-top {
  133. width: 6.5vw;
  134. height: 3.5vh;
  135. border: 1px solid;
  136. /* color: rgb(23, 145, 233); */
  137. line-height: 3.5vh;
  138. text-align: center;
  139. margin: 0 auto;
  140. border-radius: 0.2vw;
  141. font-weight: 600;
  142. font-size: 0.8vw;
  143. margin-top: 3vh;
  144. }
  145. .dynamic-bottom {
  146. width: 6.5vw;
  147. height: 3.5vh;
  148. border: 1px solid;
  149. /* color: rgb(23, 145, 233); */
  150. line-height: 3.5vh;
  151. text-align: center;
  152. margin: 0 auto;
  153. border-radius: 0.2vw;
  154. font-weight: 600;
  155. font-size: 0.8vw;
  156. margin-top: 1.5vh;
  157. }
  158. .dynamic span {
  159. float: right;
  160. }
  161. .dynamic-top~p {
  162. color: grey;
  163. text-align: center;
  164. }
  165. .dynamic-bottom~p {
  166. color: grey;
  167. text-align: center;
  168. margin-bottom: 3vh;
  169. }
  170. .dynamic-top1 {
  171. width: 6.5vw;
  172. height: 3.5vh;
  173. border: 1px solid;
  174. /* color: rgb(23, 145, 233); */
  175. line-height: 3.5vh;
  176. text-align: center;
  177. margin: 0 auto;
  178. border-radius: 0.2vw;
  179. font-weight: 600;
  180. font-size: 0.8vw;
  181. margin-top: 3vh;
  182. }
  183. .dynamic-top1~p {
  184. color: grey;
  185. text-align: center;
  186. }
  187. .dynamic div {
  188. float: left;
  189. }
  190. .detail {
  191. color: rgb(23, 145, 233);
  192. }
  193. .project-list {
  194. border-bottom: 1px solid #eee;
  195. }
  196. .information {
  197. width: 6vw;
  198. height: 3.5vh;
  199. line-height: 3.5vh;
  200. border-radius: 0.25vw;
  201. }
  202. .table-header {
  203. height: 4.5vh;
  204. line-height: 4.5vh;
  205. }
  206. .basic-information {
  207. /* width: 7vw; */
  208. /* height: 3.5vh; */
  209. border: 1px solid rgb(23, 145, 233);
  210. color: rgb(23, 145, 233);
  211. line-height: 3.5vh;
  212. text-align: center;
  213. border-radius: 0.2vw;
  214. font-weight: 600;
  215. font-size: 0.8vw;
  216. float: left;
  217. padding: 0 2%;
  218. }
  219. .layui-tab .layui-tab-title .layui-this {
  220. background-color: rgb(247, 251, 255);
  221. color: rgb(23, 145, 233);
  222. border-color: rgb(236, 246, 255);
  223. font-size: 0.8vw;
  224. height: 4vh;
  225. line-height: 4vh;
  226. font-weight: 600;
  227. }
  228. .layui-tab .layui-tab-title li {
  229. width: 4.5vw;
  230. font-size: 0.8vw;
  231. height: 4vh;
  232. line-height: 4vh;
  233. }
  234. .layui-tab .layui-tab-title {
  235. /* height: 4vh; */
  236. height: unset;
  237. }
  238. .layui-tab-title .layui-this:after {
  239. border-style: none;
  240. }
  241. .per {
  242. height: 4vh;
  243. width: 4vw;
  244. text-align: center;
  245. line-height: 4vh;
  246. margin-top: 65%;
  247. border-radius: 5px;
  248. border: 1.5px solid rgb(25, 144, 255);
  249. }
  250. /* .percentage-box {
  251. width: 4vw;
  252. } */
  253. .project-list-name {
  254. font-size: 0.75vw;
  255. }
  256. .h3 {
  257. font-size: 1vw;
  258. }
  259. .layui-form-checkbox>div {
  260. font-size: 0.75vw !important;
  261. }
  262. .layui-form-label {
  263. width: 110px;
  264. }
  265. .line-style {
  266. width: 100%;
  267. overflow: hidden;
  268. }
  269. .line-style-right {
  270. width: 45%;
  271. overflow: hidden;
  272. }
  273. .dynamic-line {
  274. padding: 8px 0;
  275. }
  276. /* 日志 */
  277. .log_top {
  278. padding-left: 1vw;
  279. }
  280. .log_top span {
  281. margin: 0 0.5vw;
  282. }
  283. /* 1,1,1 */
  284. .log_commentary {
  285. color: rgb(0, 176, 80);
  286. }
  287. .log_company {
  288. color: rgb(255, 33, 0);
  289. }
  290. .log_content {
  291. margin: 1vw 1.5vw 0 1.5vw;
  292. padding: 0.5vw 1vw;
  293. text-indent: 1.2em;
  294. line-height: 2.1vh;
  295. background-color: rgb(255, 255, 255);
  296. /* background-color: aqua; */
  297. border-radius: 0.5vw;
  298. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  299. }
  300. /* .log_content_color {
  301. background-color: rgb(250,250,250);
  302. } */
  303. .log_content_img img {
  304. /* height: 6vw;
  305. width: 9vw; */
  306. border-radius: 0.5vw;
  307. margin: 0.3vw 0;
  308. }
  309. .log_item_top {
  310. height: 70%;
  311. overflow: scroll;
  312. }
  313. .log_item_top {
  314. height: 60vh;
  315. }
  316. .log_item_bottom {
  317. display: flex;
  318. /* height: 17vh; */
  319. /* border-top: 1px solid #eee; */
  320. margin: 0 1.5vw;
  321. /* background-color: rgb(250,250,250); */
  322. }
  323. .log_input input {
  324. width: 55vw;
  325. height: 10vh;
  326. border: #eee 1px solid;
  327. }
  328. .log_bottom_img {
  329. /* height: 5vh; */
  330. }
  331. .log_bottom_img img {
  332. height: 4vw;
  333. width: 6vw;
  334. border-radius: 0.5vw;
  335. margin: 0.5vw 0vw 0.5vw 0.3vw;
  336. }
  337. .log_bottom_left {
  338. width: 95%;
  339. margin-top: 1.5vh;
  340. }
  341. .log_bottom_right {
  342. width: 5%;
  343. }
  344. /* 上传图片 */
  345. /* .layui-upload-drag-self {
  346. background-color: #fbfdff;
  347. border: 1px dashed #c0ccda;
  348. border-radius: 6px;
  349. box-sizing: border-box;
  350. width: 6vw;
  351. height: 4vw;
  352. line-height: 4vw;
  353. vertical-align: top;
  354. display: inline-block;
  355. text-align: center;
  356. cursor: pointer;
  357. outline: 0;
  358. margin-right: 13px;
  359. float: left;
  360. } */
  361. /* .layui-input-inlines-self {
  362. position: relative;
  363. margin-left: 90px;
  364. min-height: 36px;
  365. text-align: left;
  366. }
  367. .layui-upload-drag-self .layui-icon {
  368. font-size: 28px;
  369. color: #8c939d
  370. }
  371. .layui-upload-drag-self .img {
  372. position: relative;
  373. height: 148px;
  374. width: 148px;
  375. }
  376. .layui-upload-img {
  377. width: 148px;
  378. height: 148px;
  379. border-radius: 6px;
  380. margin-top: -3px;
  381. margin-left: -2px;
  382. } */
  383. .handle {
  384. position: absolute;
  385. width: 148px;
  386. height: 100%;
  387. z-index: 100;
  388. border-radius: 6px;
  389. top: 0;
  390. background: rgba(59, 60, 61, 0.6);
  391. text-align: center;
  392. }
  393. .handle .icon-myself {
  394. z-index: 999;
  395. transition: all .3s;
  396. cursor: pointer;
  397. font-size: 25px;
  398. width: 25px;
  399. color: rgba(255, 255, 255, 0.91);
  400. margin: 0 4px;
  401. }
  402. .log_textarea {
  403. width: 60vw;
  404. height: 8vh;
  405. padding: 0.5vw;
  406. /* margin-right: 2vw; */
  407. }
  408. .log_button_img {
  409. width: 2vw;
  410. }
  411. .log_card {
  412. border: none !important;
  413. }
  414. /* 点击图片放大 */
  415. /* .content_img img {
  416. max-width: 100%;
  417. cursor: pointer;
  418. }
  419. .overlay {
  420. display: none;
  421. position: fixed;
  422. top: 0;
  423. left: 0;
  424. width: 100%;
  425. height: 100%;
  426. background-color: rgba(0, 0, 0, 0.7);
  427. justify-content: center;
  428. align-items: center;
  429. z-index: 1;
  430. }
  431. .overlay img {
  432. max-width: 90%;
  433. max-height: 90%;
  434. object-fit: contain;
  435. }
  436. .layui-card:last-child {
  437. margin-bottom: 46px;
  438. }
  439. .layui-input,.layui-form-select {
  440. display: block;
  441. width: auto;
  442. padding-right: auto;
  443. } */
  444. /* .layui-form-select{
  445. padding-right:0;
  446. } */
  447. .project-select {
  448. width: auto !important;
  449. }
  450. .layui-form-select .layui-input {
  451. padding-right: 0;
  452. text-align: left;
  453. font-size: 0.75vw;
  454. }
  455. .filelist {
  456. width: 100%;
  457. overflow: scroll;
  458. height: 8vw;
  459. justify-content: flex-start;
  460. align-content: space-between;
  461. /* flex-direction: column-reverse; */
  462. flex-wrap: wrap;
  463. display: flex;
  464. }
  465. .filelist li {
  466. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  467. white-space: nowrap;
  468. overflow: hidden;
  469. text-overflow: ellipsis;
  470. display: inline-block;
  471. border-right: 1px solid #e2e2e2;
  472. }
  473. .filelist p {
  474. margin: 3px 0 5px 0;
  475. width: 5vw;
  476. text-align: center;
  477. }
  478. .filelist:hover li {
  479. /* display: initial; */
  480. }
  481. .layui-col-md4{
  482. padding: 6px 0 !important;
  483. }
  484. .layui-col-md12{
  485. padding-left: 0 !important;
  486. }
  487. .navleft-body{
  488. height: 85vh;
  489. overflow: auto;
  490. }
  491. .video{
  492. height: 100vh;
  493. overflow: auto;
  494. }
  495. </style>
  496. </head>
  497. <body class="main-body">
  498. <!-- 主体 -->
  499. <div class="p-3">
  500. <div class="layui-row layui-col-space12">
  501. <div class="layui-col-md4 left-box layui-card">
  502. <form class="layui-form" action="" lay-filter="component-form-element">
  503. <div class="layui-card-body layui-row layui-col-space12">
  504. <div class="layui-col-md10 layui-form" style="width: 82%;">
  505. <div class="layui-card-body layui-row layui-col-space12" style="padding: 10px 0;">
  506. <div class="layui-col-md6 " style="display: flex;">
  507. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  508. 项目名称:
  509. </label>
  510. <div class="layui-input-block left-box-font">
  511. <input type="text" name="project_name" placeholder="请输入" autocomplete="off"
  512. class="layui-input " style="font-size: 0.75vw;">
  513. </div>
  514. </div>
  515. <div class="layui-col-md6" style="display: flex;">
  516. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  517. 项目状态:
  518. </label>
  519. <div class="layui-input-block project-select">
  520. <select name="project_status" id="">
  521. <option value=""></option>
  522. <option value="2">审批中</option>
  523. <option value="3">待接收</option>
  524. <option value="4">分配中</option>
  525. <option value="5">作业中</option>
  526. <option value="6">归档中</option>
  527. <option value="8">已归档</option>
  528. <option value="7">退审中</option>
  529. <option value="9">已退审</option>
  530. </select>
  531. </div>
  532. </div>
  533. <div class="layui-col-md6" style="display: flex;">
  534. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  535. 送审部门:
  536. </label>
  537. <div class="layui-input-block">
  538. <input type="text" name="sent_review_unit_name" placeholder="请输入" autocomplete="off"
  539. class="layui-input" style="font-size: 0.75vw;">
  540. </div>
  541. </div>
  542. <div class="layui-col-md6" style="display: flex;">
  543. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  544. 负责人:
  545. </label>
  546. <div class="layui-input-block">
  547. <input type="text" name="entrust_unit_name" placeholder="请输入" autocomplete="off"
  548. class="layui-input" style="font-size: 0.75vw;">
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. <div style="display: flex;justify-content: center;">
  554. <button class="layui-btn layui-btn-warm button-search" lay-submit="" lay-filter="webform"><i
  555. class="layui-icon">&#xe615;</i></button>
  556. </div>
  557. </div>
  558. </form>
  559. <!--<div class="layui-form">
  560. <div class="layui-card-header">
  561. <div class="choose">
  562. <input type="checkbox" name="interest[write]" title="与我有关" lay-skin="primary">
  563. <input type="checkbox" name="interest[read]" title="与我部门有关" lay-skin="primary">
  564. <input type="checkbox" name="interest[code]" title="未完成" checked lay-skin="primary">
  565. <p class="record">共3条记录</p>
  566. </div>
  567. </div>
  568. </div>-->
  569. <div id="project_list" class="navleft-body">
  570. <?php if(is_array($detail) || $detail instanceof \think\Collection || $detail instanceof \think\Paginator): $i = 0; $__LIST__ = $detail;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  571. <div class="layui-form navleft" style="cursor: pointer;" data-id="<?php echo htmlentities($vo['id']); ?>">
  572. <div class="layui-card-body">
  573. <div class="layui-card-body layui-row layui-col-space12 project-list">
  574. <div class="layui-col-md2" style="padding: 0;">
  575. <div class="layui-card-body" style="padding: 0;">
  576. <?php if($field['project_status'] == 1): ?>
  577. <div id="main222" class="per">
  578. <?php switch($vo['project_status']): case "1": ?>立项中<?php break; case "2": ?>审批中<?php break; case "3": ?>待接收<?php break; case "4": ?>待分配<?php break; case "5": ?>作业中<?php break; case "6": ?>归档中<?php break; case "7": ?>退审中<?php break; case "8": ?>已归档<?php break; case "9": ?>已退审<?php break; default: ?>未知
  579. <?php endswitch; ?>
  580. </div>
  581. <?php endif; ?>
  582. </div>
  583. </div>
  584. <div class="layui-col-md10 list">
  585. <a href="JavaScript:void(0)">
  586. <div class="layui-card-body layui-row layui-col-space12" style="padding-right: 0;">
  587. <?php if($field['project_name'] == 1): ?>
  588. <div class="layui-col-md12 h3">
  589. <?php echo htmlentities($vo['project_name']); ?>
  590. </div>
  591. <?php endif; if($field['review_unit']): ?>
  592. <div class="layui-col-md12">
  593. 服务单位:<?php echo htmlentities($vo['review_unit_name']); ?>
  594. </div>
  595. <?php endif; ?>
  596. <!-- <div class="layui-col-md4">
  597. 项目状态:
  598. <?php switch($vo['project_status']): case "1": ?>立项中<?php break; case "2": ?>审批中<?php break; case "3": ?>待接收<?php break; case "4": ?>待分配<?php break; case "5": ?>作业中<?php break; case "6": ?>归档中<?php break; case "7": ?>退审中<?php break; case "8": ?>已归档<?php break; case "9": ?>已退审<?php break; default: ?>未知
  599. <?php endswitch; ?>
  600. </div> -->
  601. <?php if($field['operate_name'] == 1): ?>
  602. <div class="layui-col-md4">
  603. 作业人:<?php echo htmlentities($vo['operate_head_name']); ?>
  604. </div>
  605. <?php endif; if($field['review_head'] == 1): ?>
  606. <div class="layui-col-md4">
  607. 负责人:<?php echo htmlentities($vo['review_head_name']); ?>
  608. </div>
  609. <?php endif; if($field['engineering_type'] == 1): ?>
  610. <div class="layui-col-md4">
  611. 工程类别:<?php echo htmlentities($vo['engineering_type']); ?>
  612. </div>
  613. <?php endif; if($field['preparation_amount'] == 1): ?>
  614. <div class="layui-col-md8" style="padding-left: 0;">
  615. 编制金额:<?php if(!empty($vo['preparation_amount'])): ?><?php echo htmlentities($vo['preparation_amount']); ?>万<?php endif; ?>
  616. </div>
  617. <?php endif; if($field['create_time'] == 1): ?>
  618. <div class="layui-col-md4">
  619. <?php echo htmlentities(date("Y-m-d",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?> 创建
  620. </div>
  621. <?php endif; ?>
  622. </div>
  623. </a>
  624. </div>
  625. </div>
  626. </div>
  627. </div>
  628. <?php endforeach; endif; else: echo "" ;endif; ?>
  629. </div>
  630. </div>
  631. <div class="layui-col-md8 video" id="projectkanban">
  632. </div>
  633. </div>
  634. </div>
  635. <!-- /主体 -->
  636. <!-- 底部 -->
  637. <div class="footer">
  638. 逸管工程项目管理系统 © www.yiguanfep.com
  639. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  640. <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>
  641. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  642. </div>
  643. <!-- /底部 -->
  644. <!-- 脚本 -->
  645. <script>
  646. const moduleInit = ['tool'];
  647. function gouguInit() {
  648. var form = layui.form,tool=layui.tool,upload = layui.upload;
  649. var $ = layui.jquery,
  650. layer = layui.layer;
  651. $('.navleft').click((e) => {
  652. let projectId = $(e)[0].currentTarget.dataset.id;
  653. var cindex = layer.load(3,{shade: 0.1});
  654. $("#projectkanban").load("/admin/project/kan?id="+ projectId,'',function(){
  655. layer.close(cindex);
  656. })
  657. })
  658. $(".navleft")[0].click();
  659. var element = layui.element;
  660. element.on('tab(test-hash)', function (data) {
  661. let index = $(this).attr('data-id');
  662. console.log(index)
  663. if (index == 1) {
  664. comment()
  665. } else if (index == 2) {
  666. record(index);
  667. } else if (index == 3) {
  668. report(index);
  669. } else if (index == 4) {
  670. project_user(index)
  671. } else if (index == 5) {
  672. } else if (index == 6) {
  673. contact(index)
  674. } else if (index == 7) {
  675. }
  676. });
  677. form.on('submit(webform)', function (data) {
  678. console.log(data.field)
  679. let host=window.location.host
  680. console.log(data.field.toString())
  681. window.location.href = 'https://'+host+'/admin/project/index?project_name=' + data.field['project_name'] + '&sent_review_unit_name=' + data.field['sent_review_unit_name'] + '&entrust_unit_name=' + data.field['entrust_unit_name']+ '&project_status=' + data.field['project_status'];
  682. // tool.post("/admin/project/index", data.field, callback);
  683. return false;
  684. });
  685. //看报告
  686. $('[lay-data="readreport"]').click(function (){
  687. var id = $(this).attr('data-id');
  688. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  689. })
  690. }
  691. </script>
  692. <!-- /脚本 -->
  693. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  694. <script src="/static/assets/layui/layui.js"></script>
  695. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  696. <script src="/static/assets/gougu/gouguInit.js"></script>
  697. <script src="https://unpkg.com/pinyin-pro"></script>
  698. <script>
  699. var { pinyin } = pinyinPro;
  700. </script>
  701. <!-- 统计代码 -->
  702. <!-- /统计代码 -->
  703. </body>
  704. </html>