home.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406
  1. <!--
  2. * @Title:
  3. * @Description: 首页
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <view class="container">
  11. <!-- 导航栏 #3F9EFF-->
  12. <uni-nav-bar :fixed="true" backgroundColor="#3F9EFF" statusBar="false" height="75px">
  13. <block slot="left">
  14. <view class="view-flex-block-center">
  15. <image src="/static/images/logo_start.png" class="logo" mode="widthFix"></image>
  16. </view>
  17. </block>
  18. <view class="view-flex-block-center">
  19. <text style="color: #ffffff; font-size: 1rem;font-family: Microsoft YaHei;">{{title}}</text>
  20. </view>
  21. <block slot="right">
  22. <view style="margin-right:20rpx" @click="onNoticeMoreClick">
  23. <uni-badge class="uni-badge-left-margin" absolute="rightTop" :is-dot="noticeDot" :text="noticeValue"
  24. size="small">
  25. <uni-icons class="input-uni-icon" type="notification" size="24" color="#FFFFFF" />
  26. </uni-badge>
  27. </view>
  28. </block>
  29. </uni-nav-bar>
  30. <!-- 菜单切换 -->
  31. <uni-swipe-action v-if="permission.admin || permission.orgAdmin" ref="swipeAction">
  32. <uni-swipe-action-item :right-options="systemOptions" :show="swipeStatus" :auto-close="false"
  33. @change="swipeChange" @click="swipeBindClick">
  34. <view class="view-flex-block-center" style="height: 50px;width: 100%;background-color: aliceblue;"
  35. @click="onSwipeOpened">
  36. <view class="view-flex-inline-center">
  37. <uni-icons class="input-uni-icon" type="tune-filled" size="20" color="darkorange" />
  38. <text v-if="menuModel ==1"
  39. style="color: cadetblue;font-size: 1rem;margin-left: 5px;font-weight: bold;">点击切换应急系统</text>
  40. <text v-else-if="menuModel ==2"
  41. style="color: cadetblue;font-size: 1rem;margin-left: 5px;font-weight: bold;">点击切换运维系统</text>
  42. </view>
  43. </view>
  44. </uni-swipe-action-item>
  45. </uni-swipe-action>
  46. <view v-if="menuModel ==1">
  47. <!-- 头部按钮 -->
  48. <view class="nav">
  49. <u-grid :col="4" :border="false">
  50. <u-grid-item v-if="navButtonIndex[index]" bg-color="transparent" v-for="(item, index) in navButton"
  51. :key="index">
  52. <navigator v-if="item.badge" :url="item.url" hover-class="none" class="nav-item"
  53. open-type="navigate">
  54. <uni-badge class="uni-badge-left-margin" absolute="rightTop" :text="item.value"
  55. size="small">
  56. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  57. </uni-badge>
  58. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  59. </navigator>
  60. <navigator v-else :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
  61. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  62. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  63. </navigator>
  64. </u-grid-item>
  65. </u-grid>
  66. </view>
  67. <!-- 新任务 -->
  68. <uni-section v-if="permission.companyServciePerson" title="新任务" titleColor="#5470c6" titleFontSize="0.8rem"
  69. :subTitle="realData.newCheckOrderCount">
  70. <template v-slot:right>
  71. <view v-if="loadMoreStatus === 'more'" class="line">
  72. <view class="block">
  73. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  74. </view>
  75. <view class="block">
  76. <text style="margin-left: 2px;font-size:0.7rem;color:grey;"
  77. @click="onMoreUncomfireCheckOrderClick()">查看更多</text>
  78. </view>
  79. </view>
  80. <view v-else-if="loadMoreStatus === 'noMore'" class="line">
  81. <view class="block">
  82. <text style="font-size:0.7rem;color:gray;">暂无数据</text>
  83. </view>
  84. </view>
  85. <view v-else class="line">
  86. <view class="block">
  87. <text style="font-size:0.7rem;color:gray;">已全部加载</text>
  88. </view>
  89. </view>
  90. </template>
  91. <template v-slot:decoration>
  92. <view class="decoration"></view>
  93. </template>
  94. <uni-list style="min-height: 40px;">
  95. <uni-list-item v-for="item in unconfirmOrderList" :key="item.id">
  96. <template v-slot:body>
  97. <view class="item-block">
  98. <uni-row>
  99. <uni-col :span="18">
  100. <view class="line">
  101. <view class="block">
  102. <uni-icons class="input-uni-icon" type="home" size="18" color="grey" />
  103. </view>
  104. <view class="block rtu-name">
  105. {{item.rtuName}}
  106. </view>
  107. <view class="block rtu-code">
  108. [{{item.rtuCode}}]
  109. </view>
  110. </view>
  111. </uni-col>
  112. <uni-col :span="6">
  113. <view class="line-end">
  114. <view class="block"
  115. style="width: 140px;height:28px;border-radius:7px;background-color:lightblue"
  116. @click="onOrderItemClick(item.id)">
  117. <view class="line-center">
  118. <view class="block">
  119. <uni-icons class="input-uni-icon" type="auth" size="16"
  120. color="coral" />
  121. </view>
  122. <view class="block">
  123. <text
  124. style="padding-left:2px;color:black;font-size:0.7rem">查看任务</text>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </uni-col>
  130. </uni-row>
  131. <view class="item-text-line">
  132. <uni-icons class="input-uni-icon" type="location" size="18" color="lightblue" />
  133. <text class="item-text">{{item.areaName}}</text>
  134. </view>
  135. <view class="item-text-line">
  136. <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
  137. <text class="item-text" style="width: 60px;">备注:</text>
  138. <text class="item-text-ell">{{item.orderDesc}}</text>
  139. </view>
  140. </view>
  141. </template>
  142. </uni-list-item>
  143. </uni-list>
  144. </uni-section>
  145. <!-- 测站统计信息 -->
  146. <uni-section style="margin-bottom: 0px;" title="测站统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
  147. <template v-slot:decoration>
  148. <view class="decoration"></view>
  149. </template>
  150. <view class="count-info-block">
  151. <uni-row>
  152. <uni-col :span="24">
  153. <view class="rtuCount">
  154. <view>
  155. <text class="name">测站数量:</text>
  156. </view>
  157. <view style="margin-left:10px;text-decoration-line: underline;"
  158. @click="onRtuManageViewClick">
  159. <text class="count">{{realData.rtus}}</text>
  160. </view>
  161. </view>
  162. </uni-col>
  163. </uni-row>
  164. <uni-row style="margin-top: 4px;">
  165. <uni-col :span="24">
  166. <view class="warnRtuCount">
  167. <view>
  168. <text class="name">异常测站数量 :</text>
  169. </view>
  170. <view style="margin-left:10px;text-decoration-line: underline;"
  171. @click="onWarningRtuViewClick">
  172. <text class="count">{{realData.warningRtus}}</text>
  173. </view>
  174. </view>
  175. </uni-col>
  176. </uni-row>
  177. </view>
  178. </uni-section>
  179. <uni-section style="margin-bottom: 0px;" title="维修任务统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
  180. <template v-slot:decoration>
  181. <view class="decoration"></view>
  182. </template>
  183. <view class="count-info-block">
  184. <uni-row>
  185. <uni-col :span="24">
  186. <view class="orderCount">
  187. <view>
  188. <text class="name">维修任务总数量:</text>
  189. </view>
  190. <view v-if="permission.companyServciePerson">
  191. <view v-if="realData.orderCount" style="margin-left:10px;">
  192. <text class="count">{{realData.orderCount}}</text>
  193. </view>
  194. </view>
  195. <view v-else>
  196. <view style="margin-left:10px;text-decoration-line: underline;"
  197. @click="onAllCheckOrderClick">
  198. <text class="count">{{realData.orderCount}}</text>
  199. </view>
  200. </view>
  201. </view>
  202. </uni-col>
  203. </uni-row>
  204. <uni-row style="margin-top: 4px;">
  205. <uni-col :span="24">
  206. <view class="unconfirmOrderCount">
  207. <view>
  208. <text class="name">未确认维修任务数量:</text>
  209. </view>
  210. <view v-if="realData.unconfirmOrderCount"
  211. style="margin-left:10px;text-decoration-line: underline;"
  212. @click="onUncomfirecheckorderViewClick">
  213. <text class="count">{{realData.unconfirmOrderCount}}</text>
  214. </view>
  215. <view v-else style="margin-left:10px;text-decoration-line: underline;"
  216. @click="onUncomfirecheckorderViewClick">
  217. <text class="count">0</text>
  218. </view>
  219. </view>
  220. </uni-col>
  221. </uni-row>
  222. <uni-row style="margin-top: 4px;">
  223. <uni-col :span="24">
  224. <view class="delayComfireOrders">
  225. <view>
  226. <text class="name">超时未确认维修任务数量:</text>
  227. </view>
  228. <view v-if="realData.delayComfireOrders"
  229. style="margin-left:10px;text-decoration-line: underline;"
  230. @click="onComfiredelaycheckorderClick">
  231. <text class="count">{{realData.delayComfireOrders}}</text>
  232. </view>
  233. <view v-else style="margin-left:10px;text-decoration-line: underline;"
  234. @click="onComfiredelaycheckorderClick">
  235. <text class="count">0</text>
  236. </view>
  237. </view>
  238. </uni-col>
  239. </uni-row>
  240. <uni-row style="margin-top: 4px;">
  241. <uni-col :span="24">
  242. <view class="processOrderCount">
  243. <view>
  244. <text class="name">维修处理中任务数量:</text>
  245. </view>
  246. <view v-if="realData.processOrderCount"
  247. style="margin-left:10px;text-decoration-line: underline;"
  248. @click="onProcessCheckorderViewClick">
  249. <text class="count">{{realData.processOrderCount}}</text>
  250. </view>
  251. <view v-else style="margin-left:10px;text-decoration-line: underline;"
  252. @click="onProcessCheckorderViewClick">
  253. <text class="count">0</text>
  254. </view>
  255. </view>
  256. </uni-col>
  257. </uni-row>
  258. <uni-row style="margin-top: 4px;">
  259. <uni-col :span="24">
  260. <view class="processOrderCount">
  261. <view>
  262. <text class="name">已处理任务数量:</text>
  263. </view>
  264. <view v-if="realData.reportOrder"
  265. style="margin-left:10px;text-decoration-line: underline;"
  266. @click="onReportCheckorderViewClick">
  267. <text class="count">{{realData.reportOrder}}</text>
  268. </view>
  269. <view v-else style="margin-left:10px;text-decoration-line: underline;"
  270. @click="onReportCheckorderViewClick">
  271. <text class="count">0</text>
  272. </view>
  273. </view>
  274. </uni-col>
  275. </uni-row>
  276. </view>
  277. </uni-section>
  278. <uni-section title="本年度设备巡检统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
  279. <template v-slot:decoration>
  280. <view class="decoration"></view>
  281. </template>
  282. <view class="count-info-block">
  283. <uni-row>
  284. <uni-col :span="24">
  285. <view class="equipmentInspectionCount">
  286. <view>
  287. <text class="name">需巡检站点数量:</text>
  288. </view>
  289. <view style="margin-left: 10px;text-decoration-line: underline;"
  290. @click="onInspectionManageClick">
  291. <text class="count">{{realData.equipmentInspectionCount}}</text>
  292. </view>
  293. </view>
  294. </uni-col>
  295. </uni-row>
  296. <uni-row style="margin-top: 4px;">
  297. <uni-col :span="24">
  298. <view class="equipmentInspectionBeforeRainCount">
  299. <view>
  300. <text class="name">汛前已巡检设备数量:</text>
  301. </view>
  302. <view style="margin-left: 10px;text-decoration-line: underline;"
  303. @click="onFinishedBeforeRainInspectionClick">
  304. <text class="count">{{realData.equipmentInspectionBeforeRainReports}}</text>
  305. </view>
  306. </view>
  307. </uni-col>
  308. </uni-row>
  309. <uni-row style="margin-top: 4px;">
  310. <uni-col :span="24">
  311. <view class="equipmentInspectionRainFirstCount">
  312. <view>
  313. <text class="name">汛中(一)已巡检设备数量:</text>
  314. </view>
  315. <view style="margin-left: 10px;text-decoration-line: underline;"
  316. @click="onFinishedRainFirstInspectionClick">
  317. <text class="count">{{realData.equipmentInspectionRainFirstReports}}</text>
  318. </view>
  319. </view>
  320. </uni-col>
  321. </uni-row>
  322. <uni-row style="margin-top: 4px;">
  323. <uni-col :span="24">
  324. <view class="equipmentInspectionRainSecondCount">
  325. <view>
  326. <text class="name">汛中(二)已巡检设备数量:</text>
  327. </view>
  328. <view style="margin-left: 10px;text-decoration-line: underline;"
  329. @click="onFinishedRainSecondInspectionClick">
  330. <text class="count">{{realData.equipmentInspectionRainSecondReports}}</text>
  331. </view>
  332. </view>
  333. </uni-col>
  334. </uni-row>
  335. </view>
  336. </uni-section>
  337. <!-- 任务动态 -->
  338. <uni-section v-if="permission.admin || permission.orgAdmin || permission.companyAdmin"
  339. style="margin-bottom: 0px;" title="今日维修任务信息" titleColor="#5470c6" titleFontSize="0.8rem"
  340. :subTitle="realData.todayOrderProcessCount">
  341. <template v-slot:right>
  342. <view class="line-end">
  343. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  344. <text style="margin-left: 4px;;font-size:0.7rem;color:grey;"
  345. @click="onMoreTodayCheckOrderReportClick()">查看更多</text>
  346. </view>
  347. </template>
  348. <template v-slot:decoration>
  349. <view class="decoration"></view>
  350. </template>
  351. <uni-list style="min-height: 40px;">
  352. <uni-list-item v-for="item in todayOrderProcessList" :key="item.id" showArrow clickable
  353. @click="onOrderReportItemClick(item.orderId)">
  354. <template v-slot:body>
  355. <view class="item-block">
  356. <view class="item-text-line">
  357. <view class="block">
  358. <image class="item-title-image" style="box-shadow:0 0 2px 2px lightblue"
  359. src="/static/images/list/order_item.png" mode="widthFix">
  360. </image>
  361. </view>
  362. <view class="block">
  363. <text class="rtu-name">{{item.rtuName}}</text>
  364. </view>
  365. <view class="block">
  366. <text class="rtu-code">[{{item.rtuCode}}]</text>
  367. </view>
  368. </view>
  369. <view class="item-text-line" style="margin-top: 2px;">
  370. <view class="block">
  371. <uni-icons class="input-uni-icon" type="loop" size="18" color="lightblue" />
  372. </view>
  373. <view class="block">
  374. <text class="item-text">状态:</text>
  375. </view>
  376. <view class="block">
  377. <text class="item-text">
  378. {{item.orderStatusName}}
  379. </text>
  380. </view>
  381. </view>
  382. <view class="item-text-line" style="margin-top: 2px;">
  383. <view class="block">
  384. <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
  385. </view>
  386. <view class="block">
  387. <text class="item-title">填报人:</text>
  388. </view>
  389. <view class="block">
  390. <text class="item-text">
  391. {{item.orderProcessUserName}}
  392. </text>
  393. </view>
  394. </view>
  395. <view class="item-text-line" style="margin-top: 2px;">
  396. <view class="block">
  397. <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
  398. </view>
  399. <view class="block">
  400. <text class="item-title">填报时间:</text>
  401. </view>
  402. <view class="block">
  403. <text class="item-text">
  404. {{item.updateTime}}
  405. </text>
  406. </view>
  407. </view>
  408. <view class="item-text-line" style="margin-top: 2px;">
  409. <view class="block">
  410. <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
  411. </view>
  412. <view class="block">
  413. <text class="item-title" style="width: 50px;">说明:</text>
  414. </view>
  415. <text v-if="item.processDesc" class="item-text-ell">
  416. {{item.processDesc}}
  417. </text>
  418. </view>
  419. <!-- <view class="item-text-line" style="margin-top: 2px;">
  420. <text v-if="item.processDesc" class="item-text-ell">
  421. {{item.processDesc}}
  422. </text>
  423. </view> -->
  424. </view>
  425. </template>
  426. </uni-list-item>
  427. </uni-list>
  428. </uni-section>
  429. <!-- 巡检动态 -->
  430. <uni-section v-if="permission.admin || permission.orgAdmin || permission.companyAdmin" title="今日设备巡检信息"
  431. titleColor="#5470c6" titleFontSize="0.8rem" :subTitle="realData.todayIinspectionReportCount">
  432. <template v-slot:right>
  433. <view class="line-end">
  434. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  435. <text style="font-size:0.7rem;color:grey;"
  436. @click="onMoreTodayInspectionReportInfoClick">查看更多</text>
  437. </view>
  438. </template>
  439. <template v-slot:decoration>
  440. <view class="decoration"></view>
  441. </template>
  442. <uni-list style="min-height: 40px;">
  443. <uni-list-item v-for="item in todayEquipmentInspectionList" :key="item.id" showArrow clickable
  444. @click="onInspectionItemClick(item.id,item.rainSeasonKind)">
  445. <template v-slot:body>
  446. <view class="list-item-block">
  447. <view class="line" style="margin-top: 2px;">
  448. <view class="block">
  449. <image class="item-title-image" style="box-shadow:0 0 2px 2px lightblue"
  450. src="/static/images/list/inspection_item.png" mode="widthFix">
  451. </image>
  452. </view>
  453. <view class="block">
  454. <text class="rtu-name">{{item.rtuName}}</text>
  455. </view>
  456. <view class="block">
  457. <text class="rtu-code">[{{item.rtuCode}}]</text>
  458. </view>
  459. </view>
  460. <view class="line" style="margin-top: 2px;">
  461. <view class="block">
  462. <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
  463. </view>
  464. <view class="block">
  465. <text class="item-title">填报人:</text>
  466. </view>
  467. <view class="block">
  468. <text class="item-text">
  469. {{item.servicePersonName}}
  470. </text>
  471. </view>
  472. </view>
  473. <view class="line" style="margin-top: 2px;">
  474. <view class="block">
  475. <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
  476. </view>
  477. <view class="block">
  478. <text class="item-title">填报时间:</text>
  479. </view>
  480. <view class="block">
  481. <text class="item-text">
  482. {{item.createTime}}
  483. </text>
  484. </view>
  485. </view>
  486. <view class="line" style="margin-top: 2px;">
  487. <view class="block">
  488. <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
  489. </view>
  490. <view class="block">
  491. <text class="item-title" style="width: 50px;">说明:</text>
  492. </view>
  493. <text v-if="item.reportDesc" class="item-text-ell">
  494. {{item.reportDesc}}
  495. </text>
  496. </view>
  497. </view>
  498. </template>
  499. </uni-list-item>
  500. </uni-list>
  501. </uni-section>
  502. </view>
  503. <view v-else-if="menuModel ==2">
  504. <view class="nav">
  505. <u-grid :col="4" :border="false">
  506. <u-grid-item v-if="yjNavButtonIndex[index]" bg-color="transparent"
  507. v-for="(item, index) in yjNavButton" :key="index">
  508. <navigator v-if="item.badge" :url="item.url" hover-class="none" class="nav-item"
  509. open-type="navigate">
  510. <uni-badge class="uni-badge-left-margin" absolute="rightTop" :text="item.value"
  511. size="small">
  512. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  513. </uni-badge>
  514. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  515. </navigator>
  516. <navigator v-else :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
  517. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  518. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  519. </navigator>
  520. </u-grid-item>
  521. </u-grid>
  522. </view>
  523. <uni-card title="快捷操作">
  524. <uni-row>
  525. <uni-col :span="12">
  526. <view class="view-flex-inline">
  527. <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
  528. <text class="text-under-line" style="font-size: 1rem;color: coral;"
  529. @click="toDangerAreaResidentRecord()">群众登记填报</text>
  530. </view>
  531. </uni-col>
  532. <uni-col :span="12">
  533. <view class="view-flex-inline">
  534. <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
  535. <text class="text-under-line" style="font-size: 1rem;color: coral;"
  536. @click="toDangerAreaCheck()">发起现场巡查</text>
  537. </view>
  538. </uni-col>
  539. </uni-row>
  540. </uni-card>
  541. <!-- 预警信息 -->
  542. <uni-section title="预警响应信息" titleColor="#5470c6" titleFontSize="0.8rem">
  543. <template v-slot:right>
  544. <view v-if="loadMoreStatus === 'more'" class="view-flex-inline">
  545. <view class="view-flex-block-center">
  546. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  547. </view>
  548. <view class="view-flex-block-center">
  549. <text style="margin-left: 2px;font-size:0.7rem;color:gray;"
  550. @click="onMoreYjWarnClick()">查看更多(<span
  551. style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
  552. </view>
  553. </view>
  554. <view v-else-if="loadMoreStatus === 'noMore'" class="view-flex-inline">
  555. <view class="view-flex-block-center">
  556. <text style="font-size:0.7rem;color:gray;">暂无数据</text>
  557. </view>
  558. </view>
  559. <view v-else class="view-flex-inline">
  560. <view class="view-flex-block-center">
  561. <text style="font-size:0.7rem;color:gray;">已全部加载(<span
  562. style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
  563. </view>
  564. </view>
  565. </template>
  566. <template v-slot:decoration>
  567. <view class="decoration"></view>
  568. </template>
  569. <uni-list style="min-height: 40px;">
  570. <uni-list-item v-for="item in yjWarnList" :key="item.id">
  571. <template v-slot:body>
  572. <view class="list-item-block">
  573. <view class="line" @click="toWarnDetailView(item)">
  574. <view class="block">
  575. <uni-icons class="input-uni-icon" type="notification" size="18" color="red" />
  576. </view>
  577. <view class="title text-ellipsis text-underline" style="color: blue;">
  578. {{item.warnName}}
  579. </view>
  580. </view>
  581. <view class="line">
  582. <text class="text text-ellipsis" style="color: gray;">预警信息:{{item.warnInfo}}</text>
  583. </view>
  584. <view class="line">
  585. <text class="text" style="color: gray;">预警时间:{{item.warnTime}}</text>
  586. </view>
  587. <view class="line">
  588. <text class="text" style="color: gray;">应转移人员:{{item.totalTransferPerson}}</text>
  589. </view>
  590. <view class="line">
  591. <text class="text" style="color: gray;">已转移:{{item.safetyTransferPerson}}</text>
  592. </view>
  593. <uni-row>
  594. <uni-col :span="8">
  595. <image style="height: 80px;" :src="toOss(item.warnQrUrl)" mode="heightFix"
  596. @click="toFullQrImage(item)"></image>
  597. </uni-col>
  598. <uni-col :span="16">
  599. <view class="item-button-group">
  600. <view class="item-button" @click="onDangerAreaCheckClick(item)">
  601. <view class="view-flex-inline-center">
  602. <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
  603. color="coral" />
  604. <text class="button-text">发起巡查</text>
  605. </view>
  606. </view>
  607. <view class="item-button" @click="toWarnDangerAreaCheckList(item)">
  608. <view class="view-flex-inline-center">
  609. <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
  610. color="coral" />
  611. <text class="button-text">巡查信息</text>
  612. </view>
  613. </view>
  614. <view class="item-button" @click="onTransferRecordClick(item)">
  615. <view class="view-flex-inline-center">
  616. <uni-icons class="input-uni-icon" type="auth" size="18"
  617. color="coral" />
  618. <text class="button-text">转移登记</text>
  619. </view>
  620. </view>
  621. <view class="item-button" @click="onTransferResidentListClick(item)">
  622. <view class="view-flex-inline-center">
  623. <uni-icons class="input-uni-icon" type="staff" size="18"
  624. color="coral" />
  625. <text class="button-text">转移清单</text>
  626. </view>
  627. </view>
  628. </view>
  629. </uni-col>
  630. </uni-row>
  631. </view>
  632. </template>
  633. </uni-list-item>
  634. </uni-list>
  635. </uni-section>
  636. </view>
  637. </view>
  638. </template>
  639. <script>
  640. import
  641. navBtns
  642. from "@/api/home.js";
  643. import {
  644. role
  645. } from "@/api/role.js";
  646. import {
  647. oss
  648. } from '@/common/setting';
  649. import http from '@/http/api.js';
  650. export default {
  651. components: {
  652. },
  653. data() {
  654. return {
  655. title: '山洪灾害监测预警防御平台运维系统',
  656. permission: {
  657. 'admin': false,
  658. 'orgAdmin': false,
  659. 'companyAdmin': false,
  660. 'companyServciePerson': false,
  661. 'yjServicePerson': false,
  662. },
  663. //1 运维系统 2 应急系统
  664. subSystem: 0,
  665. //功能模块: 1运维 2 应急
  666. menuModel: 0,
  667. currentRole: '',
  668. current: 0,
  669. navButton: [],
  670. navButtonIndex: [],
  671. yjNavButton: [],
  672. yjNavButtonIndex: [],
  673. //more/loading/noMore
  674. loadMoreStatus: "noMore",
  675. timer: false,
  676. pageSize: 10,
  677. pageCurrent: 1,
  678. total: 0,
  679. noticeDot: false,
  680. noticeValue: 0,
  681. //以下为运维系统参数
  682. unconfirmOrderList: [],
  683. todayEquipmentInspectionList: [],
  684. todayOrderProcessList: [],
  685. realData: {
  686. todayOrderProcessCount: '维修任务数量:0',
  687. todayIinspectionReportCount: '设备巡检数量:0',
  688. newCheckOrderCount: '新任务数量:0'
  689. },
  690. //以下为应急系统参数
  691. yjRealData: {
  692. warnCountSubTitle: '0',
  693. },
  694. yjWarnList: [],
  695. show: false,
  696. swipeStatus: 'none',
  697. systemOptions: [{
  698. text: '运维',
  699. style: {
  700. fontSize: '1rem',
  701. backgroundColor: '#007aff'
  702. }
  703. },
  704. {
  705. text: '应急',
  706. style: {
  707. fontSize: '1rem',
  708. backgroundColor: '#F56C6C'
  709. }
  710. },
  711. {
  712. text: '取消',
  713. style: {
  714. fontSize: '1rem',
  715. backgroundColor: '#223641'
  716. }
  717. }
  718. ],
  719. };
  720. },
  721. computed: {
  722. getProcessOrder() {
  723. if (this.realData.rtuCount && this.realData.unconfirmOrderCount) {
  724. return this.realData.rtuCount - this.realData.unconfirmOrderCount;
  725. }
  726. return 0;
  727. }
  728. },
  729. onLoad() {
  730. this.permission.admin = false;
  731. this.permission.orgAdmin = false;
  732. this.permission.companyAdmin = false;
  733. this.permission.companyServciePerson = false;
  734. this.permission.yjServicePerson = false;
  735. this.navButton = navBtns.navButtons;
  736. this.yjNavButton = navBtns.yjNavButtons;
  737. if (this.userInfo.role_name === role.admin) {
  738. this.permission.admin = true;
  739. this.navButtonIndex = navBtns.sysAdminNavButton;
  740. this.currentRole = role.admin;
  741. // if (this.subSystem == 1) {
  742. // this.navButtonIndex = navBtns.sysAdminNavButton;
  743. // } else if (this.subSystem == 2) {
  744. // this.navButtonIndex = navBtns.yjServicePersonNavButton;
  745. // }
  746. this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  747. } else if (this.userInfo.role_name === role.orgAdmin) {
  748. this.permission.orgAdmin = true;
  749. this.currentRole = role.orgAdmin;
  750. //if (this.subSystem == 1) {
  751. this.navButtonIndex = navBtns.orgAdminNavButton;
  752. // } else if (this.subSystem == 2) {
  753. // this.navButtonIndex = navBtns.yjServicePersonNavButton;
  754. // }
  755. this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  756. } else if (this.userInfo.role_name === role.companyAdmin) {
  757. this.permission.companyAdmin = true;
  758. this.currentRole = role.companyAdmin;
  759. this.navButtonIndex = navBtns.companyAdminNavButton;
  760. } else if (this.userInfo.role_name === role.companyServciePerson) {
  761. this.permission.companyServciePerson = true;
  762. this.currentRole = role.companyServciePerson;
  763. this.navButtonIndex = navBtns.companyServicePersonNavButton;
  764. } else if (this.userInfo.role_name === role.yjServicePerson) {
  765. this.permission.yjServicePerson = true;
  766. this.currentRole = role.yjServicePerson;
  767. //this.navButtonIndex = navBtns.yjServicePersonNavButton;
  768. this.yjNavButtonIndex = navBtns.yjServicePersonNavButton;
  769. }
  770. let subSystemSelectInfo = uni.getStorageSync("SubSystemSelectInfo");
  771. this.subSystem = subSystemSelectInfo.subSystem;
  772. if (this.subSystem == 1) {
  773. //this.title = '山洪灾害监测预警防御平台运维系统';
  774. this.menuModel = 1;
  775. uni.setTabBarItem({
  776. "index": 1,
  777. "iconPath": "static/images/tabbar/workbench.png",
  778. "selectedIconPath": "static/images/tabbar/workbench_selected.png",
  779. "text": "管理工作台",
  780. })
  781. } else if (this.subSystem == 2) {
  782. //this.title = '山洪灾害监测预警防御平台应急系统';
  783. this.menuModel = 2;
  784. uni.setTabBarItem({
  785. "index": 1,
  786. "iconPath": "static/images/tabbar/warn.png",
  787. "selectedIconPath": "static/images/tabbar/warn_selected.png",
  788. "text": "监测预警",
  789. })
  790. }
  791. if (this.$u.func.checkLogin()) {
  792. //console.log("timer start +++++++ ")
  793. this.timer = true;
  794. setTimeout(this.timeCall, 10000);
  795. this.$nextTick(() => {
  796. if (this.subSystem == 1) {
  797. this.getHomeInfo();
  798. if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
  799. this.getYjInfo();
  800. }
  801. } else if (this.subSystem == 2) {
  802. this.getYjInfo();
  803. }
  804. })
  805. }
  806. },
  807. onUnload() {
  808. this.timer = false;
  809. },
  810. onReady() {
  811. if (this.$u.func.checkLogin()) {} else {
  812. this.$u.func.logout();
  813. }
  814. },
  815. onShow() {
  816. //console.log("show+++++++++")
  817. // let subSystemSelectInfo = uni.getStorageSync("SubSystemSelectInfo");
  818. // this.subSystem = subSystemSelectInfo.subSystem;
  819. // if (this.subSystem == 1) {
  820. // this.title = '山洪灾害监测预警防御平台运维系统';
  821. // this.menuModel = 1;
  822. // uni.setTabBarItem({
  823. // "index": 1,
  824. // "iconPath": "static/images/tabbar/workbench.png",
  825. // "selectedIconPath": "static/images/tabbar/workbench_selected.png",
  826. // "text": "管理工作台",
  827. // })
  828. // } else if (this.subSystem == 2) {
  829. // this.title = '山洪灾害监测预警防御平台应急系统';
  830. // this.menuModel = 2;
  831. // uni.setTabBarItem({
  832. // "index": 1,
  833. // "iconPath": "static/images/tabbar/warn.png",
  834. // "selectedIconPath": "static/images/tabbar/warn_selected.png",
  835. // "text": "监测预警",
  836. // })
  837. // }
  838. // this.permission.admin = false;
  839. // this.permission.orgAdmin = false;
  840. // this.permission.companyAdmin = false;
  841. // this.permission.companyServciePerson = false;
  842. // this.permission.yjServicePerson = false;
  843. // this.navButton = navBtns.navButtons;
  844. // this.yjNavButton = navBtns.yjNavButtons;
  845. // if (this.userInfo.role_name === role.admin) {
  846. // this.permission.admin = true;
  847. // this.navButtonIndex = navBtns.sysAdminNavButton;
  848. // this.currentRole = role.admin;
  849. // this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  850. // } else if (this.userInfo.role_name === role.orgAdmin) {
  851. // this.permission.orgAdmin = true;
  852. // this.currentRole = role.orgAdmin;
  853. // this.navButtonIndex = navBtns.orgAdminNavButton;
  854. // this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  855. // } else if (this.userInfo.role_name === role.companyAdmin) {
  856. // this.permission.companyAdmin = true;
  857. // this.currentRole = role.companyAdmin;
  858. // this.navButtonIndex = navBtns.companyAdminNavButton;
  859. // } else if (this.userInfo.role_name === role.companyServciePerson) {
  860. // this.permission.companyServciePerson = true;
  861. // this.currentRole = role.companyServciePerson;
  862. // this.navButtonIndex = navBtns.companyServicePersonNavButton;
  863. // } else if (this.userInfo.role_name === role.yjServicePerson) {
  864. // this.permission.yjServicePerson = true;
  865. // this.currentRole = role.yjServicePerson;
  866. // this.yjNavButtonIndex = navBtns.yjServicePersonNavButton;
  867. // }
  868. if (this.timer == false) {
  869. //console.log("set timer")
  870. this.timer = true;
  871. setTimeout(this.timeCall, 10000);
  872. this.$nextTick(() => {
  873. if (this.subSystem == 1) {
  874. this.getHomeInfo();
  875. if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
  876. this.getYjInfo();
  877. }
  878. } else if (this.subSystem == 2) {
  879. this.getYjInfo();
  880. }
  881. })
  882. }
  883. },
  884. onHide() {
  885. this.timer = false;
  886. },
  887. methods: {
  888. toOss(path) {
  889. return oss + path;
  890. },
  891. swipeBindClick(e) {
  892. let that = this;
  893. if (e.index == 0) {
  894. //运维
  895. if (this.menuModel != 1) {
  896. this.$nextTick(() => {
  897. that.menuModel = 1;
  898. })
  899. }
  900. } else if (e.index == 1) {
  901. //应急
  902. if (this.menuModel != 2) {
  903. this.$nextTick(() => {
  904. that.menuModel = 2;
  905. })
  906. }
  907. } else if (e.index == 2) {
  908. }
  909. this.$refs.swipeAction.closeAll();
  910. },
  911. onSwipeOpened() {
  912. if (this.swipeStatus === 'none') {
  913. this.swipeStatus = 'right';
  914. return;
  915. }
  916. if (this.swipeStatus === 'right') {
  917. this.swipeStatus = 'none';
  918. return;
  919. }
  920. },
  921. swipeChange(e) {
  922. this.swipeStatus = e;
  923. },
  924. timeCall() {
  925. if (this.timer == true) {
  926. if (this.subSystem == 1) {
  927. if (this.menuModel == 1) {
  928. this.getHomeInfo();
  929. } else if (this.menuModel == 2) {
  930. this.getYjInfo();
  931. }
  932. } else if (this.subSystem == 2) {
  933. this.getYjInfo();
  934. }
  935. setTimeout(this.timeCall, 10000);
  936. }
  937. },
  938. //跳转到工作台
  939. onRtuManageViewClick() {
  940. var url = '/pages/rtu-manage/rtumanage';
  941. uni.switchTab({
  942. url: url
  943. })
  944. },
  945. //查看设备异常信息
  946. onWarningRtuViewClick() {
  947. var url = '/pages/warning/warninglist';
  948. uni.navigateTo({
  949. url: url
  950. })
  951. },
  952. //跳转到维修任务
  953. onAllCheckOrderClick() {
  954. var url = '/pages/check-order/checkorderlist';
  955. uni.navigateTo({
  956. url: url
  957. })
  958. },
  959. //查看未确认维修任务
  960. onUncomfirecheckorderViewClick() {
  961. var url = '/pages/check-order/uncomfirecheckorderlistview';
  962. uni.navigateTo({
  963. url: url
  964. })
  965. },
  966. onProcessCheckorderViewClick() {
  967. var url = '/pages/check-order/processcheckorderlistview';
  968. uni.navigateTo({
  969. url: url
  970. })
  971. },
  972. onReportCheckorderViewClick() {
  973. if (this.permission.admin || this.permission.orgAdmin) {
  974. let url = '/pages/check-order/companycheckorderlist?type=4';
  975. uni.navigateTo({
  976. url: url
  977. })
  978. } else {
  979. let url = '/pages/check-order/servicepersoncheckorderlist?type=3';
  980. uni.navigateTo({
  981. url: url
  982. })
  983. }
  984. },
  985. //查看超时未确认维修任务
  986. onComfiredelaycheckorderClick() {
  987. var url = '/pages/check-order/comfiredelaycheckorderlist';
  988. uni.navigateTo({
  989. url: url
  990. })
  991. },
  992. onOrderReportItemClick(id) {
  993. //console.log("opne record ", id)
  994. var url = '/pages/check-order/orderprocessreportdetail?orderId=' + id;
  995. uni.navigateTo({
  996. url: url
  997. })
  998. },
  999. onNoticeMoreClick() {
  1000. uni.navigateTo({
  1001. url: '/pages/news/noticelist'
  1002. })
  1003. },
  1004. onMoreTodayCheckOrderReportClick() {
  1005. uni.navigateTo({
  1006. url: '/pages/check-order/todaycheckorderrprocesseportlist'
  1007. })
  1008. },
  1009. onOrderItemClick(id) {
  1010. let url =
  1011. '/pages/check-order/orderconfirm?id=' + id;
  1012. uni.navigateTo({
  1013. url: url
  1014. })
  1015. },
  1016. //跳转到待巡检页面
  1017. onInspectionManageClick() {
  1018. var url = '/pages/equipment-inspection/inspectionlist';
  1019. uni.navigateTo({
  1020. url: url
  1021. })
  1022. },
  1023. onFinishedBeforeRainInspectionClick() {
  1024. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=1';
  1025. uni.navigateTo({
  1026. url: url
  1027. })
  1028. },
  1029. onFinishedRainFirstInspectionClick() {
  1030. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=2';
  1031. uni.navigateTo({
  1032. url: url
  1033. })
  1034. },
  1035. onFinishedRainSecondInspectionClick() {
  1036. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=3';
  1037. uni.navigateTo({
  1038. url: url
  1039. })
  1040. },
  1041. onMoreTodayInspectionReportInfoClick() {
  1042. uni.navigateTo({
  1043. url: '/pages/equipment-inspection/todayinspectionreportlist'
  1044. })
  1045. },
  1046. onInspectionItemClick(id, rainSeasonKind) {
  1047. //console.log("onInspectionItemClick " + id)
  1048. var url = '/pages/equipment-inspection/inspectionreportview?id=' + id + "&type=" + rainSeasonKind;
  1049. uni.navigateTo({
  1050. url: url
  1051. })
  1052. },
  1053. onMoreUncomfireCheckOrderClick() {
  1054. uni.navigateTo({
  1055. url: '/pages/check-order/uncomfirecheckorderlist'
  1056. })
  1057. },
  1058. getHomeInfo() {
  1059. let that = this;
  1060. http.request({
  1061. url: '/galaxy-business/home/real/info',
  1062. method: 'GET'
  1063. }).then(res => {
  1064. if (res && res.success) {
  1065. that.realData = res.data;
  1066. that.realData['processOrderCount'] = that.realData.processCheckOrderCount;
  1067. that.realData['todayOrderProcessCount'] = '今日已处理任务数量:' + that.realData
  1068. .todayOrderProcessCount;
  1069. that.realData['todayIinspectionReportCount'] = '今日已巡检数量:' + that.realData
  1070. .todayIinspectionReportCount;
  1071. that.realData['newCheckOrderCount'] = '新任务数量:' + that.realData
  1072. .unconfirmOrderCount;
  1073. if (that.realData.hasNewNotice) {
  1074. that.noticeDot = true;
  1075. that.noticeValue = that.realData.newNoticeCount;
  1076. } else {
  1077. that.noticeDot = false;
  1078. that.noticeValue = 0;
  1079. }
  1080. that.getTodayOrderProcessList();
  1081. that.getTodayInspectionReport();
  1082. if (that.permission.companyServciePerson) {
  1083. //console.log("companyServciePerson")
  1084. that.getUnconfirmOrderList();
  1085. }
  1086. }
  1087. }).catch(err => {
  1088. console.log(JOSN.stringify(err))
  1089. })
  1090. },
  1091. getUnconfirmOrderList() {
  1092. let that = this;
  1093. let postData = {};
  1094. http.request({
  1095. url: '/galaxy-business/rtu/check/order/unconfirm/last/list',
  1096. method: 'GET',
  1097. data: postData,
  1098. }).then(res => {
  1099. if (res.data != null) {
  1100. that.unconfirmOrderList = res.data;
  1101. if (that.realData.unconfirmOrderCount > 0) {
  1102. if (that.realData.unconfirmOrderCount > that.unconfirmOrderList.length) {
  1103. that.loadMoreStatus = "more";
  1104. } else {
  1105. that.loadMoreStatus = "load";
  1106. }
  1107. } else {
  1108. that.loadMoreStatus = "noMore";
  1109. }
  1110. }
  1111. }).catch(err => {
  1112. console.log(JOSN.stringify(err))
  1113. })
  1114. },
  1115. getTodayOrderProcessList() {
  1116. const that = this;
  1117. http.request({
  1118. url: '/galaxy-business/rtu/check/order/process/today/list',
  1119. method: 'GET'
  1120. }).then(res => {
  1121. that.todayOrderProcessList = [];
  1122. if (res.data != null && res.data.length > 0) {
  1123. that.todayOrderProcessList.push(res.data[0]);
  1124. }
  1125. }).catch(err => {
  1126. console.log(JOSN.stringify(err))
  1127. })
  1128. },
  1129. getTodayInspectionReport() {
  1130. const that = this;
  1131. http.request({
  1132. url: '/galaxy-business/equipment/inspection/report/today/list',
  1133. method: 'GET'
  1134. }).then(res => {
  1135. that.todayEquipmentInspectionList = [];
  1136. if (res.data != null && res.data.length > 0) {
  1137. that.todayEquipmentInspectionList.push(res.data[0]);
  1138. }
  1139. }).catch(err => {
  1140. console.log(JOSN.stringify(err))
  1141. })
  1142. },
  1143. //以下为应急系统代码
  1144. toDangerAreaResidentRecord() {
  1145. uni.navigateTo({
  1146. url: '/pages/yjxt/resident/dangerarearesidentrecord',
  1147. })
  1148. },
  1149. toDangerAreaCheck() {
  1150. uni.navigateTo({
  1151. url: '/pages/yjxt/check/dangerareacheck?type=1&id='
  1152. })
  1153. },
  1154. toDangerAreaCheckList() {
  1155. uni.navigateTo({
  1156. url: '/pages/yjxt/check/dangerareachecklist?type=1&warnId='
  1157. })
  1158. },
  1159. toWarnDangerAreaCheckList(item) {
  1160. let url = '/pages/yjxt/check/dangerareachecklist?type=2&warnId=' + item.warnId;;
  1161. uni.navigateTo({
  1162. url: url
  1163. })
  1164. },
  1165. onMoreYjWarnClick() {
  1166. uni.navigateTo({
  1167. url: '/pages/yjxt/warn/yjwarnlist'
  1168. })
  1169. },
  1170. onDangerAreaCheckClick(item) {
  1171. let url =
  1172. '/pages/yjxt/check/dangerareacheck?type=2&warnId=' + item.warnId + '&warnAdcd=' + item.warnAdcd;
  1173. uni.navigateTo({
  1174. url: url
  1175. })
  1176. },
  1177. onTransferRecordClick(item) {
  1178. let url = '/pages/yjxt/transfer/residenttransferrecord?id=' + item.warnId;
  1179. uni.navigateTo({
  1180. url: url
  1181. })
  1182. },
  1183. onTransferResidentListClick(item) {
  1184. let url = '/pages/yjxt/transfer/transferresidentlist?id=' + item.warnId;
  1185. uni.navigateTo({
  1186. url: url
  1187. })
  1188. },
  1189. getYjInfo() {
  1190. let that = this;
  1191. let params = {};
  1192. params['warnStatus'] = 5;
  1193. const current = this.pageCurrent;
  1194. const size = this.pageSize;
  1195. http.request({
  1196. url: '/galaxy-business/yj/warn/page',
  1197. method: 'GET',
  1198. params: {
  1199. current,
  1200. size,
  1201. },
  1202. data: params,
  1203. }).then(res => {
  1204. if (res.data.records != null) {
  1205. that.yjWarnList = res.data.records;
  1206. }
  1207. let total = res.data.total;
  1208. if (total > 0) {
  1209. if (total > that.pageSize) {
  1210. that.loadMoreStatus = "more";
  1211. } else {
  1212. that.loadMoreStatus = "load";
  1213. }
  1214. that.yjRealData.warnCountSubTitle = total;
  1215. } else {
  1216. that.loadMoreStatus = "noMore";
  1217. that.yjRealData.warnCountSubTitle = "0";
  1218. }
  1219. }).catch(err => {
  1220. console.log(err)
  1221. })
  1222. },
  1223. toWarnDetailView(item) {
  1224. uni.navigateTo({
  1225. url: '/pages/yjxt/warn/yjwarndetail?id=' + item.id
  1226. })
  1227. },
  1228. toFullQrImage(item) {
  1229. uni.navigateTo({
  1230. url: '/pages/yjxt/warn/yjwarnqr?id=' + item.id
  1231. })
  1232. },
  1233. }
  1234. };
  1235. </script>
  1236. <style lang="scss" scoped>
  1237. $nav-height: 75px;
  1238. .decoration {
  1239. width: 6px;
  1240. height: 6px;
  1241. margin-right: 4px;
  1242. border-radius: 50%;
  1243. background-color: cadetblue;
  1244. }
  1245. .item-block {
  1246. display: flex;
  1247. flex-direction: column;
  1248. justify-content: flex-start;
  1249. width: 100%;
  1250. }
  1251. .line {
  1252. display: flex;
  1253. flex-direction: row;
  1254. justify-content: flex-start;
  1255. width: 100%;
  1256. }
  1257. .line .block {
  1258. display: flex;
  1259. flex-direction: column;
  1260. justify-content: center;
  1261. }
  1262. .line-end {
  1263. display: flex;
  1264. flex-direction: row;
  1265. justify-content: flex-end;
  1266. width: 100%;
  1267. }
  1268. .line-end .block {
  1269. display: flex;
  1270. flex-direction: column;
  1271. justify-content: center;
  1272. }
  1273. .line-center {
  1274. display: flex;
  1275. flex-direction: row;
  1276. justify-content: center;
  1277. width: 100%;
  1278. height: 100%;
  1279. }
  1280. .line-center .block {
  1281. display: flex;
  1282. flex-direction: column;
  1283. justify-content: center;
  1284. }
  1285. .rtu-name {
  1286. margin-left: 5rpx;
  1287. font-size: 0.7rem;
  1288. font-weight: bold;
  1289. }
  1290. .rtu-code {
  1291. margin-left: 5rpx;
  1292. font-size: 0.6rem;
  1293. color: gray;
  1294. }
  1295. .item-text-line {
  1296. width: 100%;
  1297. display: flex;
  1298. flex-direction: row;
  1299. align-items: flex-start;
  1300. padding-left: 0px;
  1301. padding-right: 0px;
  1302. .block {
  1303. height: 100%;
  1304. display: flex;
  1305. flex-direction: column;
  1306. justify-content: center;
  1307. align-items: center;
  1308. }
  1309. .item-title {
  1310. font-size: 0.7rem;
  1311. }
  1312. .item-text {
  1313. padding-left: 2px;
  1314. padding-right: 5px;
  1315. font-size: 0.7rem;
  1316. }
  1317. .item-text-ell {
  1318. width: 100%;
  1319. overflow: hidden;
  1320. font-size: 0.7rem;
  1321. white-space: nowrap;
  1322. text-overflow: ellipsis;
  1323. }
  1324. .item-number {
  1325. font-size: 0.7rem;
  1326. margin-left: 2px;
  1327. margin-right: 5px;
  1328. }
  1329. }
  1330. .item-title-image {
  1331. /* #ifndef APP-NVUE */
  1332. display: block;
  1333. /* #endif */
  1334. margin-right: 5px;
  1335. width: 20px;
  1336. height: 20px;
  1337. border-radius: 50%;
  1338. }
  1339. .uni-badge-left-margin {
  1340. margin-left: 0px;
  1341. }
  1342. .logo {
  1343. flex-shrink: 0;
  1344. width: 100rpx;
  1345. height: auto;
  1346. }
  1347. .container {
  1348. background-color: #f7f7f7;
  1349. min-height: 100vh;
  1350. overflow: hidden;
  1351. }
  1352. .nav {
  1353. margin: 0rpx 0;
  1354. box-sizing: border-box;
  1355. padding: 0 10rpx;
  1356. background-color: white;
  1357. &-item {
  1358. width: 100%;
  1359. box-sizing: border-box;
  1360. display: flex;
  1361. flex-direction: column;
  1362. align-items: center;
  1363. justify-content: space-between;
  1364. height: 130rpx;
  1365. &-img {
  1366. width: 80rpx;
  1367. height: 80rpx;
  1368. }
  1369. &-name {
  1370. font-size: 0.7rem;
  1371. font-family: PingFang SC;
  1372. font-weight: 500;
  1373. color: #585b61;
  1374. }
  1375. }
  1376. }
  1377. </style>