pt.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528
  1. <template>
  2. <div class="header">
  3. <!-- 大盒子 -->
  4. <div class="box">
  5. <!-- 头部区域 -->
  6. <div class="tou">
  7. <span style="color: #00ccff; font-size: 1.2vw">{{ times }}</span>
  8. <!-- <img class="liuxian" src="../assets/images/流线.gif" alt />
  9. <img class="img-left" src="../assets/images/闪烁GIF-慢.gif" alt /> -->
  10. </div>
  11. <!-- 主体区域 -->
  12. <div class="centen">
  13. <!-- 左面盒子 -->
  14. <div class="boxx">
  15. <ul class="ul">
  16. <li>
  17. <div class="demo-box">
  18. <div class="demo active" v-on:click="doThis">
  19. <img src="../images/dj.png" alt />
  20. </div>
  21. </div>
  22. <div class="demo-a">
  23. <a href="#" class="a">基 层 登 记</a>
  24. </div>
  25. </li>
  26. <li>
  27. <div class="demo-box">
  28. <div
  29. class="demo active"
  30. id="a1"
  31. v-on:click="wenyinfun"
  32. data-url="/diary?ref=addtabs"
  33. >
  34. <img src="../images/dy.png" alt />
  35. </div>
  36. </div>
  37. <div class="demo-a">
  38. <a href="#" class="a">集 中 文 印</a>
  39. </div>
  40. </li>
  41. <li>
  42. <div class="demo-box">
  43. <div
  44. class="demo active"
  45. v-on:click="gongzuofun"
  46. data-url="/diary?ref=addtabs"
  47. >
  48. <img src="../images/gz.png" alt />
  49. </div>
  50. </div>
  51. <div class="demo-a">
  52. <a href="#" class="a">工 作 安 排</a>
  53. </div>
  54. </li>
  55. <li>
  56. <div class="demo-box">
  57. <div
  58. class="demo active"
  59. v-on:click="guizhangfun"
  60. data-url="/diary?ref=addtabs"
  61. >
  62. <img src="../images/zd.png" alt />
  63. </div>
  64. </div>
  65. <div class="demo-a">
  66. <a href="#" class="a">规 章 制 度</a>
  67. </div>
  68. </li>
  69. <li>
  70. <div class="demo-box">
  71. <div
  72. class="demo active"
  73. v-on:click="taishifun"
  74. data-url="/diary?ref=addtabs"
  75. >
  76. <img src="../images/fx.png" alt />
  77. </div>
  78. </div>
  79. <div class="demo-a">
  80. <a href="#" class="a">态 势 分 析</a>
  81. </div>
  82. </li>
  83. <li>
  84. <div class="demo-box">
  85. <div
  86. id="q1"
  87. class="demo active"
  88. v-on:click="tongzhifun"
  89. data-url="/diary?ref=addtabs"
  90. >
  91. <img src="../assets/images/通知公告1.png" alt />
  92. </div>
  93. </div>
  94. <div class="demo-a">
  95. <a href="#" class="a">通 知 公 告</a>
  96. </div>
  97. </li>
  98. <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
  99. </ul>
  100. <hr />
  101. <ul class="ul">
  102. <li>
  103. <div class="demo-box">
  104. <div
  105. class="demo active"
  106. v-on:click="zhanbeifun"
  107. data-url="/diary?ref=addtabs"
  108. >
  109. <img src="../images/zb.png" alt />
  110. </div>
  111. </div>
  112. <div class="demo-a">
  113. <a href="#" class="a">战备值班</a>
  114. </div>
  115. </li>
  116. <li>
  117. <div class="demo-box">
  118. <div
  119. class="demo active"
  120. v-on:click="jianchafun"
  121. data-url="/diary?ref=addtabs"
  122. >
  123. <img src="../images/jc.png" alt />
  124. </div>
  125. </div>
  126. <div class="demo-a">
  127. <a href="#" class="a">检查督导</a>
  128. </div>
  129. </li>
  130. <li>
  131. <div class="demo-box">
  132. <div
  133. class="demo active"
  134. v-on:click="renyuanfun"
  135. data-url="/diary?ref=addtabs"
  136. >
  137. <img src="../images/ry.png" alt />
  138. </div>
  139. </div>
  140. <div class="demo-a">
  141. <a href="#" class="a">人员进出</a>
  142. </div>
  143. </li>
  144. <li>
  145. <div class="demo-box">
  146. <div class="demo active" data-url="/diary?ref=addtabs">
  147. <img src="../images/af.png" alt />
  148. </div>
  149. </div>
  150. <div class="demo-a">
  151. <a href="#" class="a">安防监控</a>
  152. </div>
  153. </li>
  154. <li>
  155. <div class="demo-box">
  156. <div
  157. class="demo active"
  158. v-on:click="mengangfun"
  159. data-url="/diary?ref=addtabs"
  160. >
  161. <img src="../images/ag.png" alt />
  162. </div>
  163. </div>
  164. <div class="demo-a">
  165. <a href="#" class="a">门岗管理</a>
  166. </div>
  167. </li>
  168. <li>
  169. <div class="demo-box">
  170. <div class="demo active" id="a2" data-url="/diary?ref=addtabs">
  171. <img src="../images/mj.png" alt />
  172. </div>
  173. </div>
  174. <div class="demo-a">
  175. <a href="#" class="a">门禁管理</a>
  176. </div>
  177. </li>
  178. <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
  179. </ul>
  180. <hr />
  181. <ul class="ul">
  182. <li>
  183. <div class="demo-box">
  184. <div class="demo active" data-url="/diary?ref=addtabs">
  185. <img src="../images/sx.png" alt />
  186. </div>
  187. </div>
  188. <div class="demo-a">
  189. <a href="#" class="a">思想政治教育</a>
  190. </div>
  191. </li>
  192. <li>
  193. <div class="demo-box">
  194. <div
  195. class="demo active"
  196. v-on:click="renlifun"
  197. data-url="/diary?ref=addtabs"
  198. >
  199. <img src="../images/rl.png" alt />
  200. </div>
  201. </div>
  202. <div class="demo-a">
  203. <a href="#" class="a">人力资源</a>
  204. </div>
  205. </li>
  206. <li>
  207. <div class="demo-box">
  208. <div
  209. class="demo active"
  210. v-on:click="xitongfun"
  211. data-url="/diary?ref=addtabs"
  212. >
  213. <img src="../images/xt.png" alt />
  214. </div>
  215. </div>
  216. <div class="demo-a">
  217. <a href="#" class="a">系统管理</a>
  218. </div>
  219. </li>
  220. <li>
  221. <div class="demo-box">
  222. <div
  223. class="demo active"
  224. v-on:click="gongju"
  225. data-url="/diary?ref=addtabs"
  226. >
  227. <img src="../images/xt.png" alt />
  228. </div>
  229. </div>
  230. <div class="demo-a">
  231. <a href="#" class="a">系统工具</a>
  232. </div>
  233. </li>
  234. <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
  235. </ul>
  236. <hr />
  237. <ul class="ul">
  238. <li>
  239. <div class="demo-box">
  240. <div class="demo active" id="a3" v-on:click="junchefun">
  241. <img src="../images/cart.png" alt />
  242. </div>
  243. </div>
  244. <div class="demo-a">
  245. <a href="#" class="a">车辆管理</a>
  246. </div>
  247. </li>
  248. <li>
  249. <div class="demo-box">
  250. <div
  251. class="demo active"
  252. v-on:click="yingfangfun"
  253. data-url="/diary?ref=addtabs"
  254. >
  255. <img src="../images/git.png" alt />
  256. </div>
  257. </div>
  258. <div class="demo-a">
  259. <a href="#" class="a">营房管理</a>
  260. </div>
  261. </li>
  262. <li>
  263. <div class="demo-box">
  264. <div
  265. class="demo active"
  266. v-on:click="yingjufun"
  267. data-url="/diary?ref=addtabs"
  268. >
  269. <img src="../images/gl.png" alt />
  270. </div>
  271. </div>
  272. <div class="demo-a">
  273. <a href="#" class="a">营具管理</a>
  274. </div>
  275. </li>
  276. <li>
  277. <div class="demo-box">
  278. <div
  279. class="demo active"
  280. v-on:click="yiliaofun"
  281. data-url="/diary?ref=addtabs"
  282. >
  283. <img src="../images/yl.png" alt />
  284. </div>
  285. </div>
  286. <div class="demo-a">
  287. <a href="#" class="a">医疗卫生管理</a>
  288. </div>
  289. </li>
  290. <li>
  291. <div class="demo-box">
  292. <div
  293. class="demo active"
  294. v-on:click="baomifun"
  295. data-url="/diary?ref=addtabs"
  296. >
  297. <img src="../assets/images/保密协议.png" alt />
  298. </div>
  299. </div>
  300. <div class="demo-a">
  301. <a href="#" class="a">涉密载体</a>
  302. </div>
  303. </li>
  304. </ul>
  305. </div>
  306. <!-- 右面盒子 -->
  307. <div class="rigin">
  308. <div class="num1">
  309. <div class="num2">
  310. <img src="../images/db.png" alt />
  311. <span>待办事项</span>
  312. </div>
  313. <ul class="num1-ul">
  314. <div class="num2-ul-title">
  315. <div class="num2-ul-title-l">代办事项</div>
  316. <div class="num2-ul-title-c">分类</div>
  317. <div class="num2-ul-title-r">执行人</div>
  318. </div>
  319. <li
  320. class="num2-ul-li"
  321. v-for="item in worklist"
  322. :key="item.id"
  323. @click="dbsxfun"
  324. >
  325. <div class="num2-ul-li-l">{{ item.taskName }}</div>
  326. <div class="num2-ul-li-c">工作</div>
  327. <div class="num2-ul-li-r">{{ item.peopleName }}</div>
  328. </li>
  329. </ul>
  330. </div>
  331. <div class="num1">
  332. <div class="num2">
  333. <img src="../assets/images/通知公告.png" alt />
  334. <span>通知公告</span>
  335. </div>
  336. <span class="addspan" @click="tiaddfun">更多</span>
  337. <div class="num1-box">
  338. <div
  339. class="num1-box-div"
  340. v-for="item in noticeList"
  341. :key="item.noticeId"
  342. @click="tzggfun(item)"
  343. >
  344. <div class="num1-box-l">{{ item.noticeTitle }}</div>
  345. <div class="num1-box-r">
  346. <img
  347. src="../assets/images/通知.png"
  348. v-if="item.start == 1"
  349. alt
  350. />
  351. <img
  352. src="../assets/images/通知 拷贝 3.png"
  353. v-if="item.start == 0"
  354. alt
  355. />
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. <div class="tkbox2" v-if="open2">
  364. <div class="tkbox-title">
  365. <div class="tkbox-title-left">
  366. <img src="../assets/images/八一.png" alt />
  367. <span>重要消息</span>
  368. </div>
  369. <div class="tkbox-title-right">
  370. <img src="../assets/images/关闭.png" alt @click="showfun2" />
  371. </div>
  372. </div>
  373. <div class="tkbox-main">
  374. <p>
  375. <img src="../assets/images/警示.png" alt />
  376. <span>{{ title2 }}</span>
  377. </p>
  378. </div>
  379. <div class="tkbox-footer">
  380. <button @click="quchulifun2">去处理</button>
  381. </div>
  382. </div>
  383. <div class="tkbox" v-if="open">
  384. <div class="tkbox-title">
  385. <div class="tkbox-title-left">
  386. <img src="../assets/images/八一.png" alt />
  387. <span>重要消息</span>
  388. </div>
  389. <div class="tkbox-title-right">
  390. <img src="../assets/images/关闭.png" alt @click="showfun" />
  391. </div>
  392. </div>
  393. <div class="tkbox-main">
  394. <p>
  395. <img src="../assets/images/警示.png" alt />
  396. <span>{{ title }}</span>
  397. </p>
  398. </div>
  399. <div class="tkbox-footer">
  400. <button @click="quchulifun">去处理</button>
  401. </div>
  402. </div>
  403. <div class="tkbox3" v-if="open3">
  404. <div class="tkbox-title">
  405. <div class="tkbox-title-left">
  406. <img src="../assets/images/八一.png" alt />
  407. <span>重要消息</span>
  408. </div>
  409. <div class="tkbox-title-right">
  410. <img src="../assets/images/关闭.png" alt @click="showfun3" />
  411. </div>
  412. </div>
  413. <div class="tkbox-main">
  414. <p>
  415. <img src="../assets/images/警示.png" alt />
  416. <span>{{ title3 }}</span>
  417. </p>
  418. </div>
  419. <div class="tkbox-footer">
  420. <button @click="quchulifun3">去处理</button>
  421. </div>
  422. </div>
  423. <div class="tkbox4" v-if="open4">
  424. <div class="tkbox-title">
  425. <div class="tkbox-title-left">
  426. <img src="../assets/images/八一.png" alt />
  427. <span>重要消息</span>
  428. </div>
  429. <div class="tkbox-title-right">
  430. <img src="../assets/images/关闭.png" alt @click="showfun4" />
  431. </div>
  432. </div>
  433. <div class="tkbox-main">
  434. <p>
  435. <img src="../assets/images/警示.png" alt />
  436. <span>{{ title4 }}</span>
  437. </p>
  438. </div>
  439. <div class="tkbox-footer">
  440. <button @click="quchulifun4">去处理</button>
  441. </div>
  442. </div>
  443. <!-- 添加或修改集中文印记录对话框 -->
  444. <!-- <el-dialog :title="title" style="margin-top: 200px;" :visible.sync="open5" width="565px" append-to-body>
  445. <el-form ref="form" :model="form" :inline="true" :rules="rules" label-width="120px">
  446. <el-form-item label="通知公告标题" prop>
  447. <el-input value placeholder="请输入通知公告标题" />
  448. </el-form-item>
  449. <el-form-item label="通知公告内容">
  450. <el-input value type="textarea" placeholder="请输入通知公告内容" />
  451. <el-input value type="textarea" placeholder="请输入通知公告内容" />
  452. </el-form-item>
  453. </el-form>
  454. <div slot="footer" class="dialog-footer">
  455. <el-button type="primary" style="width:55px;height:25px;" @click="submitForm">确 定</el-button>
  456. <button @click="cancel" style="width:55px;height:25px;margin-left:10px;" >取 消</button>
  457. </div>
  458. </el-dialog>-->
  459. <el-dialog
  460. title="查看通知公告"
  461. :visible.sync="open5"
  462. width="800px"
  463. append-to-body
  464. >
  465. <div class="jiben">基本信息</div>
  466. <el-form ref="form" :model="form" :rules="rules" :inline="true">
  467. <el-row>
  468. <el-col :span="12">
  469. <p
  470. style="
  471. width: 100%;
  472. height: 30px;
  473. line-height: 30px;
  474. color: #fff;
  475. fontsize: 16px;
  476. "
  477. v-if="!ggflg"
  478. >
  479. 公告标题:<span style="margin-left: 10px; fontsize: 14px">{{
  480. form.noticeTitle
  481. }}</span>
  482. </p>
  483. <el-form-item label="公告标题" v-if="ggflg" prop="noticeTitle">
  484. <el-input
  485. v-model="form.noticeTitle"
  486. placeholder="请输入公告标题"
  487. />
  488. </el-form-item>
  489. <!-- <el-form-item label="公告标题" prop="noticeTitle">
  490. <el-input
  491. v-model="form.noticeTitle"
  492. placeholder="请输入公告标题"
  493. style="width: 300px"
  494. />
  495. </el-form-item> -->
  496. </el-col>
  497. <el-col :span="12" v-if="ggflg">
  498. <el-form-item label="公告类型" prop="noticeType">
  499. <el-select v-model="form.noticeType" placeholder="请选择">
  500. <el-option
  501. v-for="dict in dict.type.sys_notice_type"
  502. :key="dict.value"
  503. :label="dict.label"
  504. :value="dict.value"
  505. ></el-option>
  506. </el-select>
  507. </el-form-item>
  508. </el-col>
  509. <el-col
  510. :span="24"
  511. style="margin-top: 15px; margin-bottom: 10px"
  512. v-if="ggflg"
  513. >
  514. <el-form-item label="状态">
  515. <el-radio-group v-model="form.status">
  516. <el-radio
  517. v-for="dict in dict.type.sys_notice_status"
  518. :key="dict.value"
  519. :label="dict.value"
  520. style="margin-right: 20px"
  521. >{{ dict.label }}</el-radio
  522. >
  523. </el-radio-group>
  524. </el-form-item>
  525. </el-col>
  526. </el-row>
  527. <el-row style="margin-top: 10px">
  528. <el-col :span="12" v-if="!ggflg">
  529. <el-form-item label="发布人" prop="createBy" label-width="0">
  530. <el-input
  531. v-model="form.createBy"
  532. disabled
  533. placeholder="请输入发布人"
  534. />
  535. </el-form-item>
  536. </el-col>
  537. <el-col :span="12" v-if="!ggflg">
  538. <el-form-item label="附件" label-width="0px" prop="filename">
  539. <a :href="'http://192.168.2.250:8089'+form.filename" target="_blank" download style="display:inline-block;width:90px;height:30px;background-color:#409EFF;border:none;border-radus:3px;color:#fff;line-height:30px;text-align: center;">下载附件</a>
  540. <!-- <fileUpload v-model="form.filename" class="m-l-20" /> -->
  541. </el-form-item>
  542. </el-col>
  543. </el-row>
  544. <div class="jiben">内容</div>
  545. <el-col :span="24">
  546. <el-form-item
  547. label
  548. prop="remark"
  549. class="textareas"
  550. style="width: 100%"
  551. >
  552. <el-input
  553. v-model="form.remark"
  554. type="textarea"
  555. placeholder="请输入内容"
  556. />
  557. </el-form-item>
  558. </el-col>
  559. </el-form>
  560. <div slot="footer" class="dialog-footer">
  561. <button class="button1" v-if="ggflg" @click="submitForm">确 定</button>
  562. <button @click="cancel" >取 消</button>
  563. </div>
  564. </el-dialog>
  565. </div>
  566. </template>
  567. <script>
  568. import {
  569. printTrigger,
  570. printTriggerClear,
  571. printPeople,
  572. printEachTrigger,
  573. } from "@/api/PrintsManage/manage";
  574. import {
  575. workEachTrigger,
  576. workTrigger,
  577. addNotice,
  578. listNotice,
  579. updateNotice,
  580. getWorkTask,
  581. } from "@/api/pt";
  582. import Cookies from "js-cookie";
  583. export default {
  584. dicts: ["sys_notice_status", "sys_notice_type"],
  585. data() {
  586. return {
  587. times: null,
  588. timer: null,
  589. open: false,
  590. open2: false,
  591. open3: false,
  592. open4: false,
  593. timer2: null,
  594. open5: false,
  595. ggflg: false,
  596. form: "",
  597. rules: "",
  598. title: "",
  599. title2: "",
  600. title3: "",
  601. title4: "",
  602. rules: {
  603. noticeTitle: [
  604. { required: true, message: "公告标题不能为空", trigger: "blur" },
  605. ],
  606. noticeType: [
  607. { required: true, message: "公告类型不能为空", trigger: "change" },
  608. ],
  609. },
  610. // 表单参数
  611. form: {},
  612. noticeList: [],
  613. worklist: [],
  614. };
  615. },
  616. created() {
  617. this.timer = null;
  618. this.startTime();
  619. this.timer2 = null;
  620. this.startTime2();
  621. },
  622. mounted() {
  623. if (this.$route.params.name) {
  624. this.$modal.msgSuccess(this.$route.params.name);
  625. }
  626. this.getlist();
  627. this.getworklist();
  628. // console.log(this.$route.params.name)
  629. },
  630. methods: {
  631. getlist() {
  632. listNotice().then((res) => {
  633. this.noticeList = res.data;
  634. });
  635. },
  636. getworklist() {
  637. getWorkTask().then((res) => {
  638. console.log(res);
  639. this.worklist = res.data;
  640. });
  641. },
  642. // 表单重置
  643. reset() {
  644. this.form = {
  645. noticeId: undefined,
  646. noticeTitle: undefined,
  647. noticeType: undefined,
  648. noticeContent: undefined,
  649. status: "0",
  650. };
  651. this.resetForm("form");
  652. },
  653. startTime() {
  654. this.timer = setInterval(() => {
  655. var today = new Date();
  656. var y = today.getFullYear();
  657. var M = today.getMonth() + 1;
  658. var d = today.getDate();
  659. var h = today.getHours();
  660. var m = today.getMinutes();
  661. var s = today.getSeconds();
  662. var w = today.getDay();
  663. if (M < 10) {
  664. M = "0" + M;
  665. }
  666. if (d < 10) {
  667. d = "0" + d;
  668. }
  669. if (h < 10) {
  670. h = "0" + h;
  671. }
  672. if (m < 10) {
  673. m = "0" + m;
  674. }
  675. if (s < 10) {
  676. s = "0" + s;
  677. }
  678. this.times = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
  679. }, 500); /* 每500毫秒执行一次,实现动态显示时间效果 */
  680. },
  681. doThis() {
  682. this.$router
  683. .push({ path: "/index", query: { name: "/grassrootsregistration" } })
  684. .catch(() => {});
  685. },
  686. zhanbeifun() {
  687. this.$router
  688. .push({ path: "/index", query: { name: "/combatduty" } })
  689. .catch(() => {});
  690. },
  691. renlifun() {
  692. this.$router
  693. .push({ path: "/index", query: { name: "/peopleManage" } })
  694. .catch(() => {});
  695. },
  696. renyuanfun() {
  697. this.$router
  698. .push({ path: "/index", query: { name: "/peopleChuRu" } })
  699. .catch(() => {});
  700. },
  701. yingfangfun() {
  702. this.$router
  703. .push({ path: "/index", query: { name: "/barracksManagement" } })
  704. .catch(() => {});
  705. },
  706. junchefun() {
  707. this.$router
  708. .push({ path: "/index", query: { name: "/militaryvehicleManagement" } })
  709. .catch(() => {});
  710. },
  711. gongzuofun() {
  712. this.$router
  713. .push({ path: "/index", query: { name: "/workingArrangements" } })
  714. .catch(() => {});
  715. },
  716. guizhangfun() {
  717. this.$router
  718. .push({ path: "/index", query: { name: "/regulations" } })
  719. .catch(() => {});
  720. },
  721. yiliaofun() {
  722. this.$router
  723. .push({ path: "/index", query: { name: "/medicalhealth" } })
  724. .catch(() => {});
  725. },
  726. jianchafun() {
  727. this.$router
  728. .push({ path: "/index", query: { name: "/bdglregular" } })
  729. .catch(() => {});
  730. },
  731. mengangfun() {
  732. this.$router
  733. .push({ path: "/index", query: { name: "/doormanManage" } })
  734. .catch(() => {});
  735. },
  736. yingjufun() {
  737. this.$router
  738. .push({ path: "/index", query: { name: "/materialManagement" } })
  739. .catch(() => {});
  740. },
  741. xitongfun() {
  742. this.$router
  743. .push({ path: "/index", query: { name: "/system" } })
  744. .catch(() => {});
  745. },
  746. gongju() {
  747. this.$router
  748. .push({ path: "/index", query: { name: "/tool" } })
  749. .catch(() => {});
  750. },
  751. wenyinfun() {
  752. this.$router
  753. .push({ path: "/index", query: { name: "/print" } })
  754. .catch(() => {});
  755. },
  756. taishifun() {
  757. this.$router.push({ path: "/taishi" }).catch(() => {});
  758. // window.open(`/taishi`,'_self');
  759. },
  760. baomifun() {
  761. this.$router
  762. .push({ path: "/index", query: { name: "/bdglSecret" } })
  763. .catch(() => {});
  764. },
  765. showfun() {
  766. this.open = false;
  767. printTriggerClear().then((res) => {
  768. // console.log(res)
  769. });
  770. },
  771. showfun2() {
  772. this.open2 = false;
  773. printTriggerClear().then((res) => {
  774. // console.log(res)
  775. });
  776. },
  777. showfun3() {
  778. this.open3 = false;
  779. printTriggerClear().then((res) => {
  780. // console.log(res)
  781. });
  782. },
  783. showfun4() {
  784. this.open4 = false;
  785. printTriggerClear().then((res) => {
  786. // console.log(res)
  787. });
  788. },
  789. quchulifun() {
  790. printTriggerClear().then((res) => {
  791. if (res.code == 200) {
  792. this.open = true;
  793. window.open(`/print/manage`, "_self");
  794. }
  795. });
  796. },
  797. quchulifun2() {
  798. printTriggerClear().then((res) => {
  799. if (res.code == 200) {
  800. this.open = false;
  801. window.open(`/print/manage`, "_self");
  802. }
  803. });
  804. },
  805. quchulifun3() {
  806. printTriggerClear().then((res) => {
  807. if (res.code == 200) {
  808. this.open3 = false;
  809. window.open(`/workingArrangements/workTask`, "_self");
  810. }
  811. });
  812. },
  813. quchulifun4() {
  814. printTriggerClear().then((res) => {
  815. if (res.code == 200) {
  816. this.open4 = false;
  817. window.open(`/workingArrangements/workTask`, "_self");
  818. }
  819. });
  820. },
  821. startTime2() {
  822. this.timer = setInterval(() => {
  823. printTrigger().then((res) => {
  824. if (res.code == 200) {
  825. if (res.print == "print") {
  826. if (res.numb != 0) {
  827. this.title2 = "您有打印文件需要处理,请尽快处理";
  828. this.open2 = true;
  829. }
  830. }
  831. }
  832. });
  833. printEachTrigger().then((res) => {
  834. if (res.code == 200) {
  835. if (res.print == "printUserInfo") {
  836. var sendId = Cookies.get("userId");
  837. if (res.printUserInfo == sendId) {
  838. if (res.numb != 0) {
  839. this.title = res.msg;
  840. this.open = true;
  841. }
  842. }
  843. }
  844. }
  845. });
  846. workEachTrigger().then((res) => {
  847. var sendId = Cookies.get("userId");
  848. if (res.code == 200) {
  849. if (res.workEach != 0) {
  850. if (res.workUserid == sendId) {
  851. this.title3 = res.msg;
  852. this.open3 = true;
  853. }
  854. }
  855. }
  856. });
  857. workTrigger().then((res) => {
  858. // var sendId = Cookies.get("userId");
  859. if (res.code == 200) {
  860. if (res.workRequest != 0) {
  861. this.title4 = res.msg;
  862. this.open4 = true;
  863. }
  864. }
  865. });
  866. }, 10000); /* 每500毫秒执行一次,实现动态显示时间效果 */
  867. },
  868. tongzhifun() {
  869. // this.title = "添加通知通告";
  870. // this.open5 = true;
  871. // this.ggflg = true;
  872. // this.reset();
  873. this.$router.push({ path: "/system/notice" }).catch(() => {});
  874. },
  875. submitForm() {
  876. // addNotice(this.form).then((response) => {
  877. // this.$modal.msgSuccess("新增成功");
  878. // this.open5 = false;
  879. // this.ggflg = false;
  880. // this.getlist();
  881. // });
  882. },
  883. cancel() {
  884. this.open5 = false;
  885. this.ggflg = false;
  886. this.getlist();
  887. },
  888. tiaddfun() {
  889. this.$router.push({ path: "/system/notice" }).catch(() => {});
  890. },
  891. tzggfun(item) {
  892. // console.log(item);
  893. // item.start = 1;
  894. this.reset();
  895. this.form = item;
  896. updateNotice({
  897. noticeId: item.noticeId,
  898. start: 1,
  899. noticeTitle: item.noticeTitle,
  900. }).then((res) => {
  901. if (res.code == 200) {
  902. this.getlist();
  903. }
  904. });
  905. this.open5 = true;
  906. this.ggflg = false;
  907. },
  908. dbsxfun() {
  909. this.$router
  910. .push({ path: "/workingArrangements/workTask" })
  911. .catch(() => {});
  912. },
  913. },
  914. destroyed() {
  915. clearInterval(this.timer); // 清除定时器
  916. this.timer = null;
  917. clearInterval(this.timer2); // 清除定时器
  918. this.timer2 = null;
  919. },
  920. };
  921. </script>
  922. <style scoped>
  923. .el-dialog {
  924. margin-top: 500px;
  925. }
  926. * {
  927. margin: 0;
  928. padding: 0;
  929. }
  930. body,
  931. html {
  932. height: 100%;
  933. width: 100%;
  934. }
  935. li {
  936. list-style: none;
  937. }
  938. .header {
  939. height: 100%;
  940. width: 100%;
  941. overflow: auto;
  942. background: url("../images/背景1.png") no-repeat center;
  943. background-size: 100% 100%;
  944. position: relative;
  945. }
  946. .tou {
  947. color: #fff;
  948. position: relative;
  949. height: 120px;
  950. background: url("../assets/images/首页顶部1.gif") no-repeat center;
  951. background-size: cover;
  952. }
  953. .tou span {
  954. position: absolute;
  955. right: 100px;
  956. top: 33px;
  957. }
  958. .liuxian {
  959. position: absolute;
  960. top: -7px;
  961. }
  962. .in1 {
  963. padding: 0 84px;
  964. }
  965. .demo {
  966. color: #fff;
  967. width: 107px;
  968. height: 90%;
  969. background: url("../images/tx.png") no-repeat;
  970. text-align: center;
  971. margin-top: 10%;
  972. /* margin: 0 80px; */
  973. }
  974. .demo img {
  975. margin-top: 35px;
  976. }
  977. #q1 img {
  978. margin-top: 42px;
  979. }
  980. .demo-box {
  981. width: 100%;
  982. height: 70%;
  983. display: flex;
  984. justify-content: center;
  985. align-items: center;
  986. }
  987. .demo-a {
  988. width: 100%;
  989. height: 30%;
  990. font-size: 1rem;
  991. color: #fff;
  992. display: flex;
  993. justify-content: center;
  994. align-items: center;
  995. }
  996. .ul {
  997. /* margin-bottom: 7vh; */
  998. height: 23%;
  999. display: flex;
  1000. flex-flow: wrap;
  1001. }
  1002. .ul li {
  1003. /* margin: 0 48px; */
  1004. cursor: pointer;
  1005. width: 16.5%;
  1006. height: 100%;
  1007. display: inline-block;
  1008. }
  1009. .li-img {
  1010. width: 100%;
  1011. }
  1012. .boxx {
  1013. padding: 0 0 0 80px;
  1014. flex: 2.2;
  1015. }
  1016. .img-left {
  1017. position: absolute;
  1018. top: -8px;
  1019. }
  1020. hr {
  1021. height: 2px;
  1022. background-color: #06668a;
  1023. border: none;
  1024. margin-bottom: 20px;
  1025. }
  1026. .centen {
  1027. display: flex;
  1028. height: 85vh;
  1029. }
  1030. .num1 {
  1031. color: #fff;
  1032. width: 529px;
  1033. height: 41.5vh;
  1034. background: url("../images/rd.png") no-repeat;
  1035. margin-bottom: 20px;
  1036. padding: 30px 20px 0px 20px;
  1037. background-size: 100% 100%;
  1038. }
  1039. .num1 img {
  1040. /* width: 20px;
  1041. height: 20px; */
  1042. vertical-align: bottom;
  1043. margin-right: 10px;
  1044. }
  1045. .rigin {
  1046. flex: 1;
  1047. margin-left: 52px;
  1048. }
  1049. .table {
  1050. margin-top: 20px;
  1051. width: 492px;
  1052. height: 80%;
  1053. /* height: 182px; */
  1054. /* 去除中间的线 */
  1055. border-collapse: collapse;
  1056. border-spacing: 0;
  1057. }
  1058. .table tr td {
  1059. height: 28px;
  1060. text-align: center;
  1061. }
  1062. .table tr:nth-child(even) {
  1063. background-color: rgba(39, 104, 136, 0.2);
  1064. }
  1065. .table tr:hover {
  1066. background: rgba(0, 246, 255, 0.3);
  1067. }
  1068. #a2 img {
  1069. margin-top: 40px;
  1070. }
  1071. #a1 img {
  1072. margin-top: 40px;
  1073. }
  1074. #a3 img {
  1075. margin-top: 43px;
  1076. }
  1077. .num1-box {
  1078. width: 100%;
  1079. height: 86%;
  1080. margin-top: 10%;
  1081. }
  1082. .num1-box .num1-box-div {
  1083. width: 100%;
  1084. height: 36px;
  1085. display: flex;
  1086. flex-direction: row;
  1087. font-size: 14px;
  1088. color: #fff;
  1089. line-height: 36px;
  1090. }
  1091. .num1-box-div:nth-child(odd) {
  1092. background-color: rgba(39, 104, 136, 0.2);
  1093. }
  1094. .num1-box-div:hover {
  1095. background: rgba(0, 246, 255, 0.3);
  1096. }
  1097. .num1-box-l {
  1098. flex: 7;
  1099. height: 100%;
  1100. text-align: left;
  1101. margin-left: 10px;
  1102. text-overflow: ellipsis;
  1103. }
  1104. .num1-box-r {
  1105. flex: 3;
  1106. height: 100%;
  1107. text-align: right;
  1108. margin-right: 10px;
  1109. line-height: 30px;
  1110. }
  1111. .num1-ul {
  1112. width: 100%;
  1113. height: 86%;
  1114. margin-top: 5%;
  1115. }
  1116. .num1-ul-li {
  1117. width: 100%;
  1118. height: 36px;
  1119. display: flex;
  1120. flex-direction: row;
  1121. font-size: 14px;
  1122. color: #fff;
  1123. line-height: 36px;
  1124. }
  1125. .num1-ul-li:nth-child(even) {
  1126. background-color: rgba(39, 104, 136, 0.2);
  1127. }
  1128. .num1-ul-li:hover {
  1129. background: rgba(0, 246, 255, 0.3);
  1130. }
  1131. .num1-ul-li-l {
  1132. flex: 7;
  1133. height: 100%;
  1134. text-align: center;
  1135. }
  1136. .num1-ul-li-r {
  1137. flex: 3;
  1138. height: 100%;
  1139. text-align: center;
  1140. }
  1141. .num2-ul-li {
  1142. width: 100%;
  1143. height: 36px;
  1144. display: flex;
  1145. flex-direction: row;
  1146. font-size: 14px;
  1147. color: #fff;
  1148. line-height: 36px;
  1149. }
  1150. .num2-ul-li:nth-child(even) {
  1151. background-color: rgba(39, 104, 136, 0.2);
  1152. }
  1153. .num2-ul-li:hover {
  1154. background: rgba(0, 246, 255, 0.3);
  1155. }
  1156. .num2-ul-li-l {
  1157. flex: 6;
  1158. height: 100%;
  1159. text-align: left;
  1160. margin-left: 10px;
  1161. }
  1162. .num2-ul-li-c {
  1163. flex: 3;
  1164. height: 100%;
  1165. text-align: center;
  1166. }
  1167. .num2-ul-li-r {
  1168. flex: 3;
  1169. height: 100%;
  1170. text-align: center;
  1171. }
  1172. .num1-ul-title {
  1173. width: 100%;
  1174. height: 45px;
  1175. display: flex;
  1176. flex-direction: row;
  1177. font-size: 16px;
  1178. color: #fff;
  1179. line-height: 45px;
  1180. }
  1181. .num1-ul-title-l {
  1182. flex: 7;
  1183. height: 100%;
  1184. text-align: center;
  1185. }
  1186. .num1-ul-title-r {
  1187. flex: 3;
  1188. height: 100%;
  1189. text-align: center;
  1190. }
  1191. .num2-ul-title {
  1192. width: 100%;
  1193. height: 45px;
  1194. display: flex;
  1195. flex-direction: row;
  1196. font-size: 16px;
  1197. color: #fff;
  1198. line-height: 45px;
  1199. }
  1200. .num2-ul-title-l {
  1201. flex: 6;
  1202. height: 100%;
  1203. text-align: left;
  1204. margin-left: 10px;
  1205. }
  1206. .num2-ul-title-c {
  1207. flex: 3;
  1208. height: 100%;
  1209. text-align: center;
  1210. }
  1211. .num2-ul-title-r {
  1212. flex: 3;
  1213. height: 100%;
  1214. text-align: center;
  1215. }
  1216. .num1 {
  1217. position: relative;
  1218. }
  1219. .num1 .addspan {
  1220. width: 50px;
  1221. height: 25px;
  1222. display: inline-block;
  1223. background-color: #1c86e1;
  1224. line-height: 25px;
  1225. text-align: center;
  1226. font-size: 16px;
  1227. cursor: pointer;
  1228. /* margin-left: 851px; */
  1229. position: absolute;
  1230. right: 4%;
  1231. top: 9%;
  1232. }
  1233. ::v-deep .el-dialog {
  1234. background-color: #004d86;
  1235. }
  1236. ::v-deep .el-dialog__header {
  1237. border-bottom: 1px solid #718a9d;
  1238. }
  1239. ::v-deep .el-dialog__title {
  1240. color: #fff;
  1241. font: 18px;
  1242. }
  1243. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1244. color: #fff;
  1245. }
  1246. .el-form-item ::v-deep .el-input__inner {
  1247. width: 355px;
  1248. height: 36px;
  1249. background: #004d86;
  1250. color: #fff;
  1251. border: 1px solid #fff !important;
  1252. }
  1253. ::v-deep .el-textarea__inner {
  1254. width: 450px;
  1255. height: 104px;
  1256. margin-left: 25px;
  1257. }
  1258. /* 通知 */
  1259. ::v-deep .el-tag.el-tag--success {
  1260. background-color: #e7faf0;
  1261. border-color: #d0f5e0;
  1262. color: #13ce66;
  1263. }
  1264. /* 公告 */
  1265. ::v-deep .el-tag.el-tag--warning {
  1266. background-color: #fff8e6;
  1267. border-color: #fff1cc;
  1268. color: #ffba00;
  1269. }
  1270. /* 对话框背景颜色 */
  1271. ::v-deep .el-dialog {
  1272. background: #004d86 !important;
  1273. }
  1274. ::v-deep .el-textarea__inner {
  1275. width: 760px;
  1276. height: 104px;
  1277. margin: auto !important;
  1278. }
  1279. ::v-deep .el-dialog__header {
  1280. border-bottom: 1px solid #718a9d;
  1281. }
  1282. ::v-deep .el-dialog__title {
  1283. color: #fff;
  1284. font: 18px;
  1285. }
  1286. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1287. color: #fff;
  1288. }
  1289. ::v-deep .el-form-item__label {
  1290. font: 16px;
  1291. color: #fff;
  1292. width: auto !important;
  1293. }
  1294. ::v-deep .el-input__inner {
  1295. width: 250px !important;
  1296. height: 36px;
  1297. background: transparent;
  1298. color: #fff;
  1299. }
  1300. /* 单位框背景颜色 */
  1301. ::v-deep .vue-treeselect__control {
  1302. background: #004d86 !important;
  1303. }
  1304. /* 基本信息背景 */
  1305. .jiben {
  1306. width: 760px;
  1307. height: 32px;
  1308. background-image: url("../images/小标题底.png");
  1309. margin-bottom: 25px;
  1310. color: #fff;
  1311. padding-left: 16px;
  1312. line-height: 32px;
  1313. margin-top: 10px;
  1314. }
  1315. /*调整表单间距 */
  1316. ::v-deep .el-form-item__content {
  1317. width: 200px;
  1318. }
  1319. .contents {
  1320. padding: 0px 40px !important;
  1321. }
  1322. /* 单位框背景颜色 */
  1323. ::v-deep .vue-treeselect__control {
  1324. background: #004d86 !important;
  1325. color: #fff;
  1326. }
  1327. /* 备注输入框 */
  1328. .textareas ::v-deep .el-form-item__content {
  1329. width: 100%;
  1330. }
  1331. /* 状态 */
  1332. .el-radio {
  1333. color: rgb(204, 198, 198);
  1334. }
  1335. /* 备注输入框 */
  1336. .textareas ::v-deep .el-form-item__content {
  1337. width: 100%;
  1338. }
  1339. /* 富文本 */
  1340. ::v-deep .ql-snow .ql-fill,
  1341. .ql-snow .ql-stroke.ql-fill {
  1342. fill: #fff !important;
  1343. }
  1344. ::v-deep .ql-snow .ql-stroke {
  1345. stroke: #fff !important;
  1346. }
  1347. ::v-deep .ql-snow .ql-picker {
  1348. color: #fff !important;
  1349. }
  1350. ::v-deep .ql-editor ql-blank {
  1351. color: #fff !important;
  1352. }
  1353. /* 分页按钮 */
  1354. ::v-deep .el-pagination.is-background .el-pager li {
  1355. background-color: #004d86;
  1356. color: #fff;
  1357. }
  1358. ::v-deep .el-pagination.is-background .btn-next {
  1359. background-color: #004d86;
  1360. color: #fff;
  1361. }
  1362. ::v-deep .el-pagination.is-background .btn-prev,
  1363. .el-pagination.is-background .btn-next,
  1364. .el-pagination.is-background .el-pager li {
  1365. background: #004d86 !important;
  1366. color: #fff !important;
  1367. }
  1368. .el-select-dropdown__item {
  1369. left: 10px !important;
  1370. }
  1371. ::v-deep .el-upload__tip {
  1372. display: none;
  1373. }
  1374. </style>
  1375. <style lang="scss" scoped>
  1376. .tkbox {
  1377. width: 500px;
  1378. height: 220px;
  1379. background-image: url("../assets/images/框.png");
  1380. background-size: 100% 100%;
  1381. background-repeat: no-repeat;
  1382. position: absolute;
  1383. left: 20%;
  1384. top: 30%;
  1385. }
  1386. .tkbox2 {
  1387. width: 500px;
  1388. height: 220px;
  1389. background-image: url("../assets/images/框.png");
  1390. background-size: 100% 100%;
  1391. background-repeat: no-repeat;
  1392. position: absolute;
  1393. right: 26%;
  1394. top: 30%;
  1395. }
  1396. .tkbox3 {
  1397. width: 500px;
  1398. height: 220px;
  1399. background-image: url("../assets/images/框.png");
  1400. background-size: 100% 100%;
  1401. background-repeat: no-repeat;
  1402. position: absolute;
  1403. left: 20%;
  1404. top: 38%;
  1405. }
  1406. .tkbox4 {
  1407. width: 500px;
  1408. height: 220px;
  1409. background-image: url("../assets/images/框.png");
  1410. background-size: 100% 100%;
  1411. background-repeat: no-repeat;
  1412. position: absolute;
  1413. right: 26%;
  1414. top: 38%;
  1415. }
  1416. .tkbox-title {
  1417. width: 100%;
  1418. height: 90px;
  1419. }
  1420. .tkbox-title-left {
  1421. width: 90%;
  1422. display: inline-block;
  1423. line-height: 90px;
  1424. position: relative;
  1425. }
  1426. .tkbox-title-left img {
  1427. position: absolute;
  1428. left: 35px;
  1429. top: 30px;
  1430. }
  1431. .tkbox-title-left span {
  1432. color: #fff;
  1433. line-height: 95px;
  1434. margin-left: 75px;
  1435. }
  1436. .tkbox-title-right {
  1437. width: 10%;
  1438. text-align: right;
  1439. display: inline-block;
  1440. }
  1441. .tkbox-title-right img {
  1442. text-align: right;
  1443. margin-right: 30px;
  1444. }
  1445. .tkbox-main {
  1446. width: 100%;
  1447. height: 60px;
  1448. }
  1449. .tkbox-main p {
  1450. width: 90%;
  1451. height: auto;
  1452. margin: 0 auto;
  1453. color: #fff;
  1454. font-size: 14px;
  1455. display: flex;
  1456. align-items: center;
  1457. justify-content: center;
  1458. }
  1459. .tkbox-main p span {
  1460. margin-left: 10px;
  1461. }
  1462. .tkbox-footer {
  1463. width: 100%;
  1464. height: 30px;
  1465. margin-bottom: 30px;
  1466. text-align: center;
  1467. }
  1468. .fixed-header + .app-main {
  1469. padding-top: 50px;
  1470. }
  1471. .hasTagsView {
  1472. .app-main {
  1473. /* 84 = navbar + tags-view = 50 + 34 */
  1474. min-height: calc(100vh - 84px);
  1475. }
  1476. .fixed-header + .app-main {
  1477. padding-top: 84px;
  1478. }
  1479. }
  1480. .tkbox-footer button {
  1481. width: 60px;
  1482. height: 25px;
  1483. text-align: center;
  1484. line-height: 21px;
  1485. background-color: #409eff;
  1486. color: #fff;
  1487. border-radius: 6px;
  1488. border: none;
  1489. }
  1490. .dialog-footer button {
  1491. width: 60px;
  1492. height: 30px;
  1493. text-align: center;
  1494. line-height: 21px;
  1495. color: #fff;
  1496. border-radius: 3px;
  1497. border: none;
  1498. background-color: #196299;
  1499. margin-top: 20px;
  1500. }
  1501. .dialog-footer .button1 {
  1502. background-color: #409eff;
  1503. margin-right: 10px;
  1504. }
  1505. </style>