home.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340
  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 || permission.qiAdmin" 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>
  420. </template>
  421. </uni-list-item>
  422. </uni-list>
  423. </uni-section>
  424. <!-- 巡检动态 -->
  425. <uni-section v-if="permission.admin || permission.orgAdmin || permission.companyAdmin" title="今日设备巡检信息"
  426. titleColor="#5470c6" titleFontSize="0.8rem" :subTitle="realData.todayIinspectionReportCount">
  427. <template v-slot:right>
  428. <view class="line-end">
  429. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  430. <text style="font-size:0.7rem;color:grey;"
  431. @click="onMoreTodayInspectionReportInfoClick">查看更多</text>
  432. </view>
  433. </template>
  434. <template v-slot:decoration>
  435. <view class="decoration"></view>
  436. </template>
  437. <uni-list style="min-height: 40px;">
  438. <uni-list-item v-for="item in todayEquipmentInspectionList" :key="item.id" showArrow clickable
  439. @click="onInspectionItemClick(item.id,item.rainSeasonKind)">
  440. <template v-slot:body>
  441. <view class="list-item-block">
  442. <view class="line" style="margin-top: 2px;">
  443. <view class="block">
  444. <image class="item-title-image" style="box-shadow:0 0 2px 2px lightblue"
  445. src="/static/images/list/inspection_item.png" mode="widthFix">
  446. </image>
  447. </view>
  448. <view class="block">
  449. <text class="rtu-name">{{item.rtuName}}</text>
  450. </view>
  451. <view class="block">
  452. <text class="rtu-code">[{{item.rtuCode}}]</text>
  453. </view>
  454. </view>
  455. <view class="line" style="margin-top: 2px;">
  456. <view class="block">
  457. <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
  458. </view>
  459. <view class="block">
  460. <text class="item-title">填报人:</text>
  461. </view>
  462. <view class="block">
  463. <text class="item-text">
  464. {{item.servicePersonName}}
  465. </text>
  466. </view>
  467. </view>
  468. <view class="line" style="margin-top: 2px;">
  469. <view class="block">
  470. <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
  471. </view>
  472. <view class="block">
  473. <text class="item-title">填报时间:</text>
  474. </view>
  475. <view class="block">
  476. <text class="item-text">
  477. {{item.createTime}}
  478. </text>
  479. </view>
  480. </view>
  481. <view class="line" style="margin-top: 2px;">
  482. <view class="block">
  483. <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
  484. </view>
  485. <view class="block">
  486. <text class="item-title" style="width: 50px;">说明:</text>
  487. </view>
  488. <text v-if="item.reportDesc" class="item-text-ell">
  489. {{item.reportDesc}}
  490. </text>
  491. </view>
  492. </view>
  493. </template>
  494. </uni-list-item>
  495. </uni-list>
  496. </uni-section>
  497. </view>
  498. <view v-else-if="menuModel ==2">
  499. <view class="nav">
  500. <u-grid :col="4" :border="false">
  501. <u-grid-item v-if="yjNavButtonIndex[index]" bg-color="transparent"
  502. v-for="(item, index) in yjNavButton" :key="index">
  503. <navigator v-if="item.badge" :url="item.url" hover-class="none" class="nav-item"
  504. open-type="navigate">
  505. <uni-badge class="uni-badge-left-margin" absolute="rightTop" :text="item.value"
  506. size="small">
  507. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  508. </uni-badge>
  509. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  510. </navigator>
  511. <navigator v-else :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
  512. <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
  513. <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
  514. </navigator>
  515. </u-grid-item>
  516. </u-grid>
  517. </view>
  518. <uni-card title="快捷操作">
  519. <uni-row>
  520. <uni-col :span="12">
  521. <view class="view-flex-inline">
  522. <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
  523. <text class="text-under-line" style="font-size: 1rem;color: coral;"
  524. @click="toDangerAreaResidentRecord()">群众登记填报</text>
  525. </view>
  526. </uni-col>
  527. <uni-col :span="12">
  528. <view class="view-flex-inline">
  529. <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
  530. <text class="text-under-line" style="font-size: 1rem;color: coral;"
  531. @click="toDangerAreaCheck()">发起现场巡查</text>
  532. </view>
  533. </uni-col>
  534. </uni-row>
  535. </uni-card>
  536. <!-- 预警信息 -->
  537. <uni-section title="预警响应信息" titleColor="#5470c6" titleFontSize="0.8rem">
  538. <template v-slot:right>
  539. <view v-if="loadMoreStatus === 'more'" class="view-flex-inline">
  540. <view class="view-flex-block-center">
  541. <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
  542. </view>
  543. <view class="view-flex-block-center">
  544. <text style="margin-left: 2px;font-size:0.7rem;color:gray;"
  545. @click="onMoreYjWarnClick()">查看更多(<span
  546. style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
  547. </view>
  548. </view>
  549. <view v-else-if="loadMoreStatus === 'noMore'" class="view-flex-inline">
  550. <view class="view-flex-block-center">
  551. <text style="font-size:0.7rem;color:gray;">暂无数据</text>
  552. </view>
  553. </view>
  554. <view v-else class="view-flex-inline">
  555. <view class="view-flex-block-center">
  556. <text style="font-size:0.7rem;color:gray;">已全部加载(<span
  557. style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
  558. </view>
  559. </view>
  560. </template>
  561. <template v-slot:decoration>
  562. <view class="decoration"></view>
  563. </template>
  564. <uni-list style="min-height: 40px;">
  565. <uni-list-item v-for="item in yjWarnList" :key="item.id">
  566. <template v-slot:body>
  567. <view class="list-item-block">
  568. <view class="line" @click="toWarnDetailView(item)">
  569. <view class="block">
  570. <uni-icons class="input-uni-icon" type="notification" size="18" color="red" />
  571. </view>
  572. <view class="title text-ellipsis text-underline" style="color: blue;">
  573. {{item.warnName}}
  574. </view>
  575. </view>
  576. <view class="line">
  577. <text class="text text-ellipsis" style="color: gray;">预警信息:{{item.warnInfo}}</text>
  578. </view>
  579. <view class="line">
  580. <text class="text" style="color: gray;">预警时间:{{item.warnTime}}</text>
  581. </view>
  582. <view class="line">
  583. <text class="text" style="color: gray;">应转移人员:{{item.totalTransferPerson}}</text>
  584. </view>
  585. <view class="line">
  586. <text class="text" style="color: gray;">已转移:{{item.safetyTransferPerson}}</text>
  587. </view>
  588. <uni-row>
  589. <uni-col :span="8">
  590. <image style="height: 80px;" :src="toOss(item.warnQrUrl)" mode="heightFix"
  591. @click="toFullQrImage(item)"></image>
  592. </uni-col>
  593. <uni-col :span="16">
  594. <view class="item-button-group">
  595. <view class="item-button" @click="onDangerAreaCheckClick(item)">
  596. <view class="view-flex-inline-center">
  597. <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
  598. color="coral" />
  599. <text class="button-text">发起巡查</text>
  600. </view>
  601. </view>
  602. <view class="item-button" @click="toWarnDangerAreaCheckList(item)">
  603. <view class="view-flex-inline-center">
  604. <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
  605. color="coral" />
  606. <text class="button-text">巡查信息</text>
  607. </view>
  608. </view>
  609. <view class="item-button" @click="onTransferRecordClick(item)">
  610. <view class="view-flex-inline-center">
  611. <uni-icons class="input-uni-icon" type="auth" size="18"
  612. color="coral" />
  613. <text class="button-text">转移登记</text>
  614. </view>
  615. </view>
  616. <view class="item-button" @click="onTransferResidentListClick(item)">
  617. <view class="view-flex-inline-center">
  618. <uni-icons class="input-uni-icon" type="staff" size="18"
  619. color="coral" />
  620. <text class="button-text">转移清单</text>
  621. </view>
  622. </view>
  623. </view>
  624. </uni-col>
  625. </uni-row>
  626. </view>
  627. </template>
  628. </uni-list-item>
  629. </uni-list>
  630. </uni-section>
  631. </view>
  632. </view>
  633. </template>
  634. <script>
  635. import
  636. navBtns
  637. from "@/api/home.js";
  638. import {
  639. role
  640. } from "@/api/role.js";
  641. import {
  642. oss
  643. } from '@/common/setting';
  644. import http from '@/http/api.js';
  645. export default {
  646. components: {
  647. },
  648. data() {
  649. return {
  650. title: '山洪灾害监测预警防御平台运维系统',
  651. permission: {
  652. 'admin': false,
  653. 'orgAdmin': false,
  654. 'qiAdmin': false,
  655. 'companyAdmin': false,
  656. 'companyServciePerson': false,
  657. 'yjServicePerson': false,
  658. },
  659. //1 运维系统 2 应急系统
  660. subSystem: 0,
  661. //功能模块: 1运维 2 应急
  662. menuModel: 0,
  663. currentRole: '',
  664. current: 0,
  665. navButton: [],
  666. navButtonIndex: [],
  667. yjNavButton: [],
  668. yjNavButtonIndex: [],
  669. //more/loading/noMore
  670. loadMoreStatus: "noMore",
  671. timer: false,
  672. pageSize: 10,
  673. pageCurrent: 1,
  674. total: 0,
  675. noticeDot: false,
  676. noticeValue: 0,
  677. //以下为运维系统参数
  678. unconfirmOrderList: [],
  679. todayEquipmentInspectionList: [],
  680. todayOrderProcessList: [],
  681. realData: {
  682. todayOrderProcessCount: '维修任务数量:0',
  683. todayIinspectionReportCount: '设备巡检数量:0',
  684. newCheckOrderCount: '新任务数量:0'
  685. },
  686. //以下为应急系统参数
  687. yjRealData: {
  688. warnCountSubTitle: '0',
  689. },
  690. yjWarnList: [],
  691. show: false,
  692. swipeStatus: 'none',
  693. systemOptions: [{
  694. text: '运维',
  695. style: {
  696. fontSize: '1rem',
  697. backgroundColor: '#007aff'
  698. }
  699. },
  700. {
  701. text: '应急',
  702. style: {
  703. fontSize: '1rem',
  704. backgroundColor: '#F56C6C'
  705. }
  706. },
  707. {
  708. text: '取消',
  709. style: {
  710. fontSize: '1rem',
  711. backgroundColor: '#223641'
  712. }
  713. }
  714. ],
  715. };
  716. },
  717. computed: {
  718. getProcessOrder() {
  719. if (this.realData.rtuCount && this.realData.unconfirmOrderCount) {
  720. return this.realData.rtuCount - this.realData.unconfirmOrderCount;
  721. }
  722. return 0;
  723. }
  724. },
  725. onLoad() {
  726. this.permission.admin = false;
  727. this.permission.orgAdmin = false;
  728. this.permission.qiAdmin = false;
  729. this.permission.companyAdmin = false;
  730. this.permission.companyServciePerson = false;
  731. this.permission.yjServicePerson = false;
  732. this.navButton = navBtns.navButtons;
  733. this.yjNavButton = navBtns.yjNavButtons;
  734. if (this.userInfo.role_name === role.admin) {
  735. this.permission.admin = true;
  736. this.navButtonIndex = navBtns.sysAdminNavButton;
  737. this.currentRole = role.admin;
  738. this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  739. } else if (this.userInfo.role_name === role.orgAdmin) {
  740. this.permission.orgAdmin = true;
  741. this.currentRole = role.orgAdmin;
  742. this.navButtonIndex = navBtns.orgAdminNavButton;
  743. this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  744. } else if (this.userInfo.role_name === role.qiAdmin) {
  745. this.permission.qiAdmin = true;
  746. this.currentRole = role.qiAdmin;
  747. this.navButtonIndex = navBtns.qiAdminNavButton;
  748. this.yjNavButtonIndex = navBtns.yjAdminNavButton;
  749. } else if (this.userInfo.role_name === role.companyAdmin) {
  750. this.permission.companyAdmin = true;
  751. this.currentRole = role.companyAdmin;
  752. this.navButtonIndex = navBtns.companyAdminNavButton;
  753. } else if (this.userInfo.role_name === role.companyServciePerson) {
  754. this.permission.companyServciePerson = true;
  755. this.currentRole = role.companyServciePerson;
  756. this.navButtonIndex = navBtns.companyServicePersonNavButton;
  757. } else if (this.userInfo.role_name === role.yjServicePerson) {
  758. this.permission.yjServicePerson = true;
  759. this.currentRole = role.yjServicePerson;
  760. this.yjNavButtonIndex = navBtns.yjServicePersonNavButton;
  761. }
  762. let subSystemSelectInfo = uni.getStorageSync("SubSystemSelectInfo");
  763. this.subSystem = subSystemSelectInfo.subSystem;
  764. if (this.subSystem == 1) {
  765. this.menuModel = 1;
  766. uni.setTabBarItem({
  767. "index": 1,
  768. "iconPath": "static/images/tabbar/workbench.png",
  769. "selectedIconPath": "static/images/tabbar/workbench_selected.png",
  770. "text": "管理工作台",
  771. })
  772. } else if (this.subSystem == 2) {
  773. this.menuModel = 2;
  774. uni.setTabBarItem({
  775. "index": 1,
  776. "iconPath": "static/images/tabbar/warn.png",
  777. "selectedIconPath": "static/images/tabbar/warn_selected.png",
  778. "text": "监测预警",
  779. })
  780. }
  781. if (this.$u.func.checkLogin()) {
  782. this.timer = true;
  783. setTimeout(this.timeCall, 10000);
  784. this.$nextTick(() => {
  785. if (this.subSystem == 1) {
  786. this.getHomeInfo();
  787. if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
  788. this.getYjInfo();
  789. }
  790. } else if (this.subSystem == 2) {
  791. this.getYjInfo();
  792. }
  793. })
  794. }
  795. },
  796. onUnload() {
  797. this.timer = false;
  798. },
  799. onReady() {
  800. if (this.$u.func.checkLogin()) {} else {
  801. this.$u.func.logout();
  802. }
  803. },
  804. onShow() {
  805. if (this.timer == false) {
  806. this.timer = true;
  807. setTimeout(this.timeCall, 10000);
  808. this.$nextTick(() => {
  809. if (this.subSystem == 1) {
  810. this.getHomeInfo();
  811. if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
  812. this.getYjInfo();
  813. }
  814. } else if (this.subSystem == 2) {
  815. this.getYjInfo();
  816. }
  817. })
  818. }
  819. },
  820. onHide() {
  821. this.timer = false;
  822. },
  823. methods: {
  824. toOss(path) {
  825. return oss + path;
  826. },
  827. swipeBindClick(e) {
  828. let that = this;
  829. if (e.index == 0) {
  830. //运维
  831. if (this.menuModel != 1) {
  832. this.$nextTick(() => {
  833. that.menuModel = 1;
  834. })
  835. }
  836. } else if (e.index == 1) {
  837. //应急
  838. if (this.menuModel != 2) {
  839. this.$nextTick(() => {
  840. that.menuModel = 2;
  841. })
  842. }
  843. } else if (e.index == 2) {
  844. }
  845. this.$refs.swipeAction.closeAll();
  846. },
  847. onSwipeOpened() {
  848. if (this.swipeStatus === 'none') {
  849. this.swipeStatus = 'right';
  850. return;
  851. }
  852. if (this.swipeStatus === 'right') {
  853. this.swipeStatus = 'none';
  854. return;
  855. }
  856. },
  857. swipeChange(e) {
  858. this.swipeStatus = e;
  859. },
  860. timeCall() {
  861. if (this.timer == true) {
  862. if (this.subSystem == 1) {
  863. if (this.menuModel == 1) {
  864. this.getHomeInfo();
  865. } else if (this.menuModel == 2) {
  866. this.getYjInfo();
  867. }
  868. } else if (this.subSystem == 2) {
  869. this.getYjInfo();
  870. }
  871. setTimeout(this.timeCall, 10000);
  872. }
  873. },
  874. //跳转到工作台
  875. onRtuManageViewClick() {
  876. var url = '/pages/rtu-manage/rtumanage';
  877. uni.switchTab({
  878. url: url
  879. })
  880. },
  881. //查看设备异常信息
  882. onWarningRtuViewClick() {
  883. var url = '/pages/warning/warninglist';
  884. uni.navigateTo({
  885. url: url
  886. })
  887. },
  888. //跳转到维修任务
  889. onAllCheckOrderClick() {
  890. var url = '/pages/check-order/checkorderlist';
  891. uni.navigateTo({
  892. url: url
  893. })
  894. },
  895. //查看未确认维修任务
  896. onUncomfirecheckorderViewClick() {
  897. var url = '/pages/check-order/uncomfirecheckorderlistview';
  898. uni.navigateTo({
  899. url: url
  900. })
  901. },
  902. onProcessCheckorderViewClick() {
  903. var url = '/pages/check-order/processcheckorderlistview';
  904. uni.navigateTo({
  905. url: url
  906. })
  907. },
  908. onReportCheckorderViewClick() {
  909. if (this.permission.admin || this.permission.orgAdmin) {
  910. let url = '/pages/check-order/companycheckorderlist?type=4';
  911. uni.navigateTo({
  912. url: url
  913. })
  914. } else {
  915. let url = '/pages/check-order/servicepersoncheckorderlist?type=3';
  916. uni.navigateTo({
  917. url: url
  918. })
  919. }
  920. },
  921. //查看超时未确认维修任务
  922. onComfiredelaycheckorderClick() {
  923. var url = '/pages/check-order/comfiredelaycheckorderlist';
  924. uni.navigateTo({
  925. url: url
  926. })
  927. },
  928. onOrderReportItemClick(id) {
  929. var url = '/pages/check-order/orderprocessreportdetail?orderId=' + id;
  930. uni.navigateTo({
  931. url: url
  932. })
  933. },
  934. onNoticeMoreClick() {
  935. uni.navigateTo({
  936. url: '/pages/news/noticelist'
  937. })
  938. },
  939. onMoreTodayCheckOrderReportClick() {
  940. uni.navigateTo({
  941. url: '/pages/check-order/todaycheckorderrprocesseportlist'
  942. })
  943. },
  944. onOrderItemClick(id) {
  945. let url =
  946. '/pages/check-order/orderconfirm?id=' + id;
  947. uni.navigateTo({
  948. url: url
  949. })
  950. },
  951. onInspectionManageClick() {
  952. var url = '/pages/equipment-inspection/inspectionlist';
  953. uni.navigateTo({
  954. url: url
  955. })
  956. },
  957. onFinishedBeforeRainInspectionClick() {
  958. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=1';
  959. uni.navigateTo({
  960. url: url
  961. })
  962. },
  963. onFinishedRainFirstInspectionClick() {
  964. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=2';
  965. uni.navigateTo({
  966. url: url
  967. })
  968. },
  969. onFinishedRainSecondInspectionClick() {
  970. var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=3';
  971. uni.navigateTo({
  972. url: url
  973. })
  974. },
  975. onMoreTodayInspectionReportInfoClick() {
  976. uni.navigateTo({
  977. url: '/pages/equipment-inspection/todayinspectionreportlist'
  978. })
  979. },
  980. onInspectionItemClick(id, rainSeasonKind) {
  981. //console.log("onInspectionItemClick " + id)
  982. var url = '/pages/equipment-inspection/inspectionreportview?id=' + id + "&type=" + rainSeasonKind;
  983. uni.navigateTo({
  984. url: url
  985. })
  986. },
  987. onMoreUncomfireCheckOrderClick() {
  988. uni.navigateTo({
  989. url: '/pages/check-order/uncomfirecheckorderlist'
  990. })
  991. },
  992. getHomeInfo() {
  993. let that = this;
  994. http.request({
  995. url: '/galaxy-business/home/real/info',
  996. method: 'GET'
  997. }).then(res => {
  998. if (res && res.success) {
  999. that.realData = res.data;
  1000. that.realData['processOrderCount'] = that.realData.processCheckOrderCount;
  1001. that.realData['todayOrderProcessCount'] = '今日已处理任务数量:' + that.realData
  1002. .todayOrderProcessCount;
  1003. that.realData['todayIinspectionReportCount'] = '今日已巡检数量:' + that.realData
  1004. .todayIinspectionReportCount;
  1005. that.realData['newCheckOrderCount'] = '新任务数量:' + that.realData
  1006. .unconfirmOrderCount;
  1007. if (that.realData.hasNewNotice) {
  1008. that.noticeDot = true;
  1009. that.noticeValue = that.realData.newNoticeCount;
  1010. } else {
  1011. that.noticeDot = false;
  1012. that.noticeValue = 0;
  1013. }
  1014. that.getTodayOrderProcessList();
  1015. that.getTodayInspectionReport();
  1016. if (that.permission.companyServciePerson) {
  1017. that.getUnconfirmOrderList();
  1018. }
  1019. }
  1020. }).catch(err => {
  1021. console.log(JOSN.stringify(err))
  1022. })
  1023. },
  1024. getUnconfirmOrderList() {
  1025. let that = this;
  1026. let postData = {};
  1027. http.request({
  1028. url: '/galaxy-business/rtu/check/order/unconfirm/last/list',
  1029. method: 'GET',
  1030. data: postData,
  1031. }).then(res => {
  1032. if (res.data != null) {
  1033. that.unconfirmOrderList = res.data;
  1034. if (that.realData.unconfirmOrderCount > 0) {
  1035. if (that.realData.unconfirmOrderCount > that.unconfirmOrderList.length) {
  1036. that.loadMoreStatus = "more";
  1037. } else {
  1038. that.loadMoreStatus = "load";
  1039. }
  1040. } else {
  1041. that.loadMoreStatus = "noMore";
  1042. }
  1043. }
  1044. }).catch(err => {
  1045. console.log(JOSN.stringify(err))
  1046. })
  1047. },
  1048. getTodayOrderProcessList() {
  1049. const that = this;
  1050. http.request({
  1051. url: '/galaxy-business/rtu/check/order/process/today/list',
  1052. method: 'GET'
  1053. }).then(res => {
  1054. that.todayOrderProcessList = [];
  1055. if (res.data != null && res.data.length > 0) {
  1056. that.todayOrderProcessList.push(res.data[0]);
  1057. }
  1058. }).catch(err => {
  1059. console.log(JOSN.stringify(err))
  1060. })
  1061. },
  1062. getTodayInspectionReport() {
  1063. const that = this;
  1064. http.request({
  1065. url: '/galaxy-business/equipment/inspection/report/today/list',
  1066. method: 'GET'
  1067. }).then(res => {
  1068. that.todayEquipmentInspectionList = [];
  1069. if (res.data != null && res.data.length > 0) {
  1070. that.todayEquipmentInspectionList.push(res.data[0]);
  1071. }
  1072. }).catch(err => {
  1073. console.log(JOSN.stringify(err))
  1074. })
  1075. },
  1076. //以下为应急系统代码
  1077. toDangerAreaResidentRecord() {
  1078. uni.navigateTo({
  1079. url: '/pages-yj/yjxt/resident/dangerarearesidentrecord',
  1080. })
  1081. },
  1082. toDangerAreaCheck() {
  1083. uni.navigateTo({
  1084. url: '/pages-yj/yjxt/check/dangerareacheck?type=1&id='
  1085. })
  1086. },
  1087. toDangerAreaCheckList() {
  1088. uni.navigateTo({
  1089. url: '/pages-yj/yjxt/check/dangerareachecklist?type=1&warnId='
  1090. })
  1091. },
  1092. toWarnDangerAreaCheckList(item) {
  1093. let url = '/pages-yj/yjxt/check/dangerareachecklist?type=2&warnId=' + item.warnId;;
  1094. uni.navigateTo({
  1095. url: url
  1096. })
  1097. },
  1098. onMoreYjWarnClick() {
  1099. uni.navigateTo({
  1100. url: '/pages-yj/yjxt/warn/yjwarnlist'
  1101. })
  1102. },
  1103. onDangerAreaCheckClick(item) {
  1104. let url =
  1105. '/pages-yj/yjxt/check/dangerareacheck?type=2&id=' + item.id + '&warnId=' + item.warnId + '&warnAdcd=' +
  1106. item.warnAdcd;
  1107. uni.navigateTo({
  1108. url: url
  1109. })
  1110. },
  1111. onTransferRecordClick(item) {
  1112. let url = '/pages-yj/yjxt/transfer/residenttransferrecord?id=' + item.warnId;
  1113. uni.navigateTo({
  1114. url: url
  1115. })
  1116. },
  1117. onTransferResidentListClick(item) {
  1118. let url = '/pages-yj/yjxt/transfer/transferresidentlist?id=' + item.warnId;
  1119. uni.navigateTo({
  1120. url: url
  1121. })
  1122. },
  1123. getYjInfo() {
  1124. let that = this;
  1125. let params = {};
  1126. params['warnStatus'] = 5;
  1127. const current = this.pageCurrent;
  1128. const size = this.pageSize;
  1129. http.request({
  1130. url: '/galaxy-business/yj/warn/page',
  1131. method: 'GET',
  1132. params: {
  1133. current,
  1134. size,
  1135. },
  1136. data: params,
  1137. }).then(res => {
  1138. if (res.data.records != null) {
  1139. that.yjWarnList = res.data.records;
  1140. }
  1141. let total = res.data.total;
  1142. if (total > 0) {
  1143. if (total > that.pageSize) {
  1144. that.loadMoreStatus = "more";
  1145. } else {
  1146. that.loadMoreStatus = "load";
  1147. }
  1148. that.yjRealData.warnCountSubTitle = total;
  1149. } else {
  1150. that.loadMoreStatus = "noMore";
  1151. that.yjRealData.warnCountSubTitle = "0";
  1152. }
  1153. }).catch(err => {
  1154. console.log(err)
  1155. })
  1156. },
  1157. toWarnDetailView(item) {
  1158. uni.navigateTo({
  1159. url: '/pages-yj/yjxt/warn/yjwarndetail?id=' + item.id
  1160. })
  1161. },
  1162. toFullQrImage(item) {
  1163. uni.navigateTo({
  1164. url: '/pages-yj/yjxt/warn/yjwarnqr?id=' + item.id
  1165. })
  1166. },
  1167. }
  1168. };
  1169. </script>
  1170. <style lang="scss" scoped>
  1171. $nav-height: 75px;
  1172. .decoration {
  1173. width: 6px;
  1174. height: 6px;
  1175. margin-right: 4px;
  1176. border-radius: 50%;
  1177. background-color: cadetblue;
  1178. }
  1179. .item-block {
  1180. display: flex;
  1181. flex-direction: column;
  1182. justify-content: flex-start;
  1183. width: 100%;
  1184. }
  1185. .line {
  1186. display: flex;
  1187. flex-direction: row;
  1188. justify-content: flex-start;
  1189. width: 100%;
  1190. }
  1191. .line .block {
  1192. display: flex;
  1193. flex-direction: column;
  1194. justify-content: center;
  1195. }
  1196. .line-end {
  1197. display: flex;
  1198. flex-direction: row;
  1199. justify-content: flex-end;
  1200. width: 100%;
  1201. }
  1202. .line-end .block {
  1203. display: flex;
  1204. flex-direction: column;
  1205. justify-content: center;
  1206. }
  1207. .line-center {
  1208. display: flex;
  1209. flex-direction: row;
  1210. justify-content: center;
  1211. width: 100%;
  1212. height: 100%;
  1213. }
  1214. .line-center .block {
  1215. display: flex;
  1216. flex-direction: column;
  1217. justify-content: center;
  1218. }
  1219. .rtu-name {
  1220. margin-left: 5rpx;
  1221. font-size: 0.7rem;
  1222. font-weight: bold;
  1223. }
  1224. .rtu-code {
  1225. margin-left: 5rpx;
  1226. font-size: 0.6rem;
  1227. color: gray;
  1228. }
  1229. .item-text-line {
  1230. width: 100%;
  1231. display: flex;
  1232. flex-direction: row;
  1233. align-items: flex-start;
  1234. padding-left: 0px;
  1235. padding-right: 0px;
  1236. .block {
  1237. height: 100%;
  1238. display: flex;
  1239. flex-direction: column;
  1240. justify-content: center;
  1241. align-items: center;
  1242. }
  1243. .item-title {
  1244. font-size: 0.7rem;
  1245. }
  1246. .item-text {
  1247. padding-left: 2px;
  1248. padding-right: 5px;
  1249. font-size: 0.7rem;
  1250. }
  1251. .item-text-ell {
  1252. width: 100%;
  1253. overflow: hidden;
  1254. font-size: 0.7rem;
  1255. white-space: nowrap;
  1256. text-overflow: ellipsis;
  1257. }
  1258. .item-number {
  1259. font-size: 0.7rem;
  1260. margin-left: 2px;
  1261. margin-right: 5px;
  1262. }
  1263. }
  1264. .item-title-image {
  1265. /* #ifndef APP-NVUE */
  1266. display: block;
  1267. /* #endif */
  1268. margin-right: 5px;
  1269. width: 20px;
  1270. height: 20px;
  1271. border-radius: 50%;
  1272. }
  1273. .uni-badge-left-margin {
  1274. margin-left: 0px;
  1275. }
  1276. .logo {
  1277. flex-shrink: 0;
  1278. width: 100rpx;
  1279. height: auto;
  1280. }
  1281. .container {
  1282. background-color: #f7f7f7;
  1283. min-height: 100vh;
  1284. overflow: hidden;
  1285. }
  1286. .nav {
  1287. margin: 0rpx 0;
  1288. box-sizing: border-box;
  1289. padding: 0 10rpx;
  1290. background-color: white;
  1291. &-item {
  1292. width: 100%;
  1293. box-sizing: border-box;
  1294. display: flex;
  1295. flex-direction: column;
  1296. align-items: center;
  1297. justify-content: space-between;
  1298. height: 130rpx;
  1299. &-img {
  1300. width: 80rpx;
  1301. height: 80rpx;
  1302. }
  1303. &-name {
  1304. font-size: 0.7rem;
  1305. font-family: PingFang SC;
  1306. font-weight: 500;
  1307. color: #585b61;
  1308. }
  1309. }
  1310. }
  1311. </style>