| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340 |
- <!--
- * @Title:
- * @Description: 首页
- * @Author: swp
- * @Date: 2022-08-24 10:49:21
- * @LastEditors:
- * @LastEditTime: 2022-08-24 10:49:21
- -->
- <template>
- <view class="container">
- <!-- 导航栏 #3F9EFF-->
- <uni-nav-bar :fixed="true" backgroundColor="#3F9EFF" statusBar="false" height="75px">
- <block slot="left">
- <view class="view-flex-block-center">
- <image src="/static/images/logo_start.png" class="logo" mode="widthFix"></image>
- </view>
- </block>
- <view class="view-flex-block-center">
- <text style="color: #ffffff; font-size: 1rem;font-family: Microsoft YaHei;">{{title}}</text>
- </view>
- <block slot="right">
- <view style="margin-right:20rpx" @click="onNoticeMoreClick">
- <uni-badge class="uni-badge-left-margin" absolute="rightTop" :is-dot="noticeDot" :text="noticeValue"
- size="small">
- <uni-icons class="input-uni-icon" type="notification" size="24" color="#FFFFFF" />
- </uni-badge>
- </view>
- </block>
- </uni-nav-bar>
- <!-- 菜单切换 -->
- <uni-swipe-action v-if="permission.admin || permission.orgAdmin || permission.qiAdmin" ref="swipeAction">
- <uni-swipe-action-item :right-options="systemOptions" :show="swipeStatus" :auto-close="false"
- @change="swipeChange" @click="swipeBindClick">
- <view class="view-flex-block-center" style="height: 50px;width: 100%;background-color: aliceblue;"
- @click="onSwipeOpened">
- <view class="view-flex-inline-center">
- <uni-icons class="input-uni-icon" type="tune-filled" size="20" color="darkorange" />
- <text v-if="menuModel ==1"
- style="color: cadetblue;font-size: 1rem;margin-left: 5px;font-weight: bold;">点击切换应急系统</text>
- <text v-else-if="menuModel ==2"
- style="color: cadetblue;font-size: 1rem;margin-left: 5px;font-weight: bold;">点击切换运维系统</text>
- </view>
- </view>
- </uni-swipe-action-item>
- </uni-swipe-action>
- <view v-if="menuModel ==1">
- <!-- 头部按钮 -->
- <view class="nav">
- <u-grid :col="4" :border="false">
- <u-grid-item v-if="navButtonIndex[index]" bg-color="transparent" v-for="(item, index) in navButton"
- :key="index">
- <navigator v-if="item.badge" :url="item.url" hover-class="none" class="nav-item"
- open-type="navigate">
- <uni-badge class="uni-badge-left-margin" absolute="rightTop" :text="item.value"
- size="small">
- <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
- </uni-badge>
- <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
- </navigator>
- <navigator v-else :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
- <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
- <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
- </navigator>
- </u-grid-item>
- </u-grid>
- </view>
- <!-- 新任务 -->
- <uni-section v-if="permission.companyServciePerson" title="新任务" titleColor="#5470c6" titleFontSize="0.8rem"
- :subTitle="realData.newCheckOrderCount">
- <template v-slot:right>
- <view v-if="loadMoreStatus === 'more'" class="line">
- <view class="block">
- <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
- </view>
- <view class="block">
- <text style="margin-left: 2px;font-size:0.7rem;color:grey;"
- @click="onMoreUncomfireCheckOrderClick()">查看更多</text>
- </view>
- </view>
- <view v-else-if="loadMoreStatus === 'noMore'" class="line">
- <view class="block">
- <text style="font-size:0.7rem;color:gray;">暂无数据</text>
- </view>
- </view>
- <view v-else class="line">
- <view class="block">
- <text style="font-size:0.7rem;color:gray;">已全部加载</text>
- </view>
- </view>
- </template>
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <uni-list style="min-height: 40px;">
- <uni-list-item v-for="item in unconfirmOrderList" :key="item.id">
- <template v-slot:body>
- <view class="item-block">
- <uni-row>
- <uni-col :span="18">
- <view class="line">
- <view class="block">
- <uni-icons class="input-uni-icon" type="home" size="18" color="grey" />
- </view>
- <view class="block rtu-name">
- {{item.rtuName}}
- </view>
- <view class="block rtu-code">
- [{{item.rtuCode}}]
- </view>
- </view>
- </uni-col>
- <uni-col :span="6">
- <view class="line-end">
- <view class="block"
- style="width: 140px;height:28px;border-radius:7px;background-color:lightblue"
- @click="onOrderItemClick(item.id)">
- <view class="line-center">
- <view class="block">
- <uni-icons class="input-uni-icon" type="auth" size="16"
- color="coral" />
- </view>
- <view class="block">
- <text
- style="padding-left:2px;color:black;font-size:0.7rem">查看任务</text>
- </view>
- </view>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <view class="item-text-line">
- <uni-icons class="input-uni-icon" type="location" size="18" color="lightblue" />
- <text class="item-text">{{item.areaName}}</text>
- </view>
- <view class="item-text-line">
- <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
- <text class="item-text" style="width: 60px;">备注:</text>
- <text class="item-text-ell">{{item.orderDesc}}</text>
- </view>
- </view>
- </template>
- </uni-list-item>
- </uni-list>
- </uni-section>
- <!-- 测站统计信息 -->
- <uni-section style="margin-bottom: 0px;" title="测站统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <view class="count-info-block">
- <uni-row>
- <uni-col :span="24">
- <view class="rtuCount">
- <view>
- <text class="name">测站数量:</text>
- </view>
- <view style="margin-left:10px;text-decoration-line: underline;"
- @click="onRtuManageViewClick">
- <text class="count">{{realData.rtus}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="warnRtuCount">
- <view>
- <text class="name">异常测站数量 :</text>
- </view>
- <view style="margin-left:10px;text-decoration-line: underline;"
- @click="onWarningRtuViewClick">
- <text class="count">{{realData.warningRtus}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- </view>
- </uni-section>
- <uni-section style="margin-bottom: 0px;" title="维修任务统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <view class="count-info-block">
- <uni-row>
- <uni-col :span="24">
- <view class="orderCount">
- <view>
- <text class="name">维修任务总数量:</text>
- </view>
- <view v-if="permission.companyServciePerson">
- <view v-if="realData.orderCount" style="margin-left:10px;">
- <text class="count">{{realData.orderCount}}</text>
- </view>
- </view>
- <view v-else>
- <view style="margin-left:10px;text-decoration-line: underline;"
- @click="onAllCheckOrderClick">
- <text class="count">{{realData.orderCount}}</text>
- </view>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="unconfirmOrderCount">
- <view>
- <text class="name">未确认维修任务数量:</text>
- </view>
- <view v-if="realData.unconfirmOrderCount"
- style="margin-left:10px;text-decoration-line: underline;"
- @click="onUncomfirecheckorderViewClick">
- <text class="count">{{realData.unconfirmOrderCount}}</text>
- </view>
- <view v-else style="margin-left:10px;text-decoration-line: underline;"
- @click="onUncomfirecheckorderViewClick">
- <text class="count">0</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="delayComfireOrders">
- <view>
- <text class="name">超时未确认维修任务数量:</text>
- </view>
- <view v-if="realData.delayComfireOrders"
- style="margin-left:10px;text-decoration-line: underline;"
- @click="onComfiredelaycheckorderClick">
- <text class="count">{{realData.delayComfireOrders}}</text>
- </view>
- <view v-else style="margin-left:10px;text-decoration-line: underline;"
- @click="onComfiredelaycheckorderClick">
- <text class="count">0</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="processOrderCount">
- <view>
- <text class="name">维修处理中任务数量:</text>
- </view>
- <view v-if="realData.processOrderCount"
- style="margin-left:10px;text-decoration-line: underline;"
- @click="onProcessCheckorderViewClick">
- <text class="count">{{realData.processOrderCount}}</text>
- </view>
- <view v-else style="margin-left:10px;text-decoration-line: underline;"
- @click="onProcessCheckorderViewClick">
- <text class="count">0</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="processOrderCount">
- <view>
- <text class="name">已处理任务数量:</text>
- </view>
- <view v-if="realData.reportOrder"
- style="margin-left:10px;text-decoration-line: underline;"
- @click="onReportCheckorderViewClick">
- <text class="count">{{realData.reportOrder}}</text>
- </view>
- <view v-else style="margin-left:10px;text-decoration-line: underline;"
- @click="onReportCheckorderViewClick">
- <text class="count">0</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- </view>
- </uni-section>
- <uni-section title="本年度设备巡检统计信息" titleColor="#5470c6" titleFontSize="0.8rem">
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <view class="count-info-block">
- <uni-row>
- <uni-col :span="24">
- <view class="equipmentInspectionCount">
- <view>
- <text class="name">需巡检站点数量:</text>
- </view>
- <view style="margin-left: 10px;text-decoration-line: underline;"
- @click="onInspectionManageClick">
- <text class="count">{{realData.equipmentInspectionCount}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="equipmentInspectionBeforeRainCount">
- <view>
- <text class="name">汛前已巡检设备数量:</text>
- </view>
- <view style="margin-left: 10px;text-decoration-line: underline;"
- @click="onFinishedBeforeRainInspectionClick">
- <text class="count">{{realData.equipmentInspectionBeforeRainReports}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="equipmentInspectionRainFirstCount">
- <view>
- <text class="name">汛中(一)已巡检设备数量:</text>
- </view>
- <view style="margin-left: 10px;text-decoration-line: underline;"
- @click="onFinishedRainFirstInspectionClick">
- <text class="count">{{realData.equipmentInspectionRainFirstReports}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <uni-row style="margin-top: 4px;">
- <uni-col :span="24">
- <view class="equipmentInspectionRainSecondCount">
- <view>
- <text class="name">汛中(二)已巡检设备数量:</text>
- </view>
- <view style="margin-left: 10px;text-decoration-line: underline;"
- @click="onFinishedRainSecondInspectionClick">
- <text class="count">{{realData.equipmentInspectionRainSecondReports}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- </view>
- </uni-section>
- <!-- 任务动态 -->
- <uni-section v-if="permission.admin || permission.orgAdmin || permission.companyAdmin"
- style="margin-bottom: 0px;" title="今日维修任务信息" titleColor="#5470c6" titleFontSize="0.8rem"
- :subTitle="realData.todayOrderProcessCount">
- <template v-slot:right>
- <view class="line-end">
- <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
- <text style="margin-left: 4px;;font-size:0.7rem;color:grey;"
- @click="onMoreTodayCheckOrderReportClick()">查看更多</text>
- </view>
- </template>
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <uni-list style="min-height: 40px;">
- <uni-list-item v-for="item in todayOrderProcessList" :key="item.id" showArrow clickable
- @click="onOrderReportItemClick(item.orderId)">
- <template v-slot:body>
- <view class="item-block">
- <view class="item-text-line">
- <view class="block">
- <image class="item-title-image" style="box-shadow:0 0 2px 2px lightblue"
- src="/static/images/list/order_item.png" mode="widthFix">
- </image>
- </view>
- <view class="block">
- <text class="rtu-name">{{item.rtuName}}</text>
- </view>
- <view class="block">
- <text class="rtu-code">[{{item.rtuCode}}]</text>
- </view>
- </view>
- <view class="item-text-line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="loop" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-text">状态:</text>
- </view>
- <view class="block">
- <text class="item-text">
- {{item.orderStatusName}}
- </text>
- </view>
- </view>
- <view class="item-text-line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title">填报人:</text>
- </view>
- <view class="block">
- <text class="item-text">
- {{item.orderProcessUserName}}
- </text>
- </view>
- </view>
- <view class="item-text-line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title">填报时间:</text>
- </view>
- <view class="block">
- <text class="item-text">
- {{item.updateTime}}
- </text>
- </view>
- </view>
- <view class="item-text-line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title" style="width: 50px;">说明:</text>
- </view>
- <text v-if="item.processDesc" class="item-text-ell">
- {{item.processDesc}}
- </text>
- </view>
- </view>
- </template>
- </uni-list-item>
- </uni-list>
- </uni-section>
- <!-- 巡检动态 -->
- <uni-section v-if="permission.admin || permission.orgAdmin || permission.companyAdmin" title="今日设备巡检信息"
- titleColor="#5470c6" titleFontSize="0.8rem" :subTitle="realData.todayIinspectionReportCount">
- <template v-slot:right>
- <view class="line-end">
- <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
- <text style="font-size:0.7rem;color:grey;"
- @click="onMoreTodayInspectionReportInfoClick">查看更多</text>
- </view>
- </template>
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <uni-list style="min-height: 40px;">
- <uni-list-item v-for="item in todayEquipmentInspectionList" :key="item.id" showArrow clickable
- @click="onInspectionItemClick(item.id,item.rainSeasonKind)">
- <template v-slot:body>
- <view class="list-item-block">
- <view class="line" style="margin-top: 2px;">
- <view class="block">
- <image class="item-title-image" style="box-shadow:0 0 2px 2px lightblue"
- src="/static/images/list/inspection_item.png" mode="widthFix">
- </image>
- </view>
- <view class="block">
- <text class="rtu-name">{{item.rtuName}}</text>
- </view>
- <view class="block">
- <text class="rtu-code">[{{item.rtuCode}}]</text>
- </view>
- </view>
- <view class="line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title">填报人:</text>
- </view>
- <view class="block">
- <text class="item-text">
- {{item.servicePersonName}}
- </text>
- </view>
- </view>
- <view class="line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title">填报时间:</text>
- </view>
- <view class="block">
- <text class="item-text">
- {{item.createTime}}
- </text>
- </view>
- </view>
- <view class="line" style="margin-top: 2px;">
- <view class="block">
- <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
- </view>
- <view class="block">
- <text class="item-title" style="width: 50px;">说明:</text>
- </view>
- <text v-if="item.reportDesc" class="item-text-ell">
- {{item.reportDesc}}
- </text>
- </view>
- </view>
- </template>
- </uni-list-item>
- </uni-list>
- </uni-section>
- </view>
- <view v-else-if="menuModel ==2">
- <view class="nav">
- <u-grid :col="4" :border="false">
- <u-grid-item v-if="yjNavButtonIndex[index]" bg-color="transparent"
- v-for="(item, index) in yjNavButton" :key="index">
- <navigator v-if="item.badge" :url="item.url" hover-class="none" class="nav-item"
- open-type="navigate">
- <uni-badge class="uni-badge-left-margin" absolute="rightTop" :text="item.value"
- size="small">
- <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
- </uni-badge>
- <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
- </navigator>
- <navigator v-else :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
- <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
- <view style="font-size: 0.8rem;font-weight: bold;">{{ item.name }}</view>
- </navigator>
- </u-grid-item>
- </u-grid>
- </view>
- <uni-card title="快捷操作">
- <uni-row>
- <uni-col :span="12">
- <view class="view-flex-inline">
- <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
- <text class="text-under-line" style="font-size: 1rem;color: coral;"
- @click="toDangerAreaResidentRecord()">群众登记填报</text>
- </view>
- </uni-col>
- <uni-col :span="12">
- <view class="view-flex-inline">
- <uni-icons class="input-uni-icon" type="arrow-right" size="20" color="coral" />
- <text class="text-under-line" style="font-size: 1rem;color: coral;"
- @click="toDangerAreaCheck()">发起现场巡查</text>
- </view>
- </uni-col>
- </uni-row>
- </uni-card>
- <!-- 预警信息 -->
- <uni-section title="预警响应信息" titleColor="#5470c6" titleFontSize="0.8rem">
- <template v-slot:right>
- <view v-if="loadMoreStatus === 'more'" class="view-flex-inline">
- <view class="view-flex-block-center">
- <uni-icons class="input-uni-icon" type="more-filled" size="18" color="skyblue" />
- </view>
- <view class="view-flex-block-center">
- <text style="margin-left: 2px;font-size:0.7rem;color:gray;"
- @click="onMoreYjWarnClick()">查看更多(<span
- style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
- </view>
- </view>
- <view v-else-if="loadMoreStatus === 'noMore'" class="view-flex-inline">
- <view class="view-flex-block-center">
- <text style="font-size:0.7rem;color:gray;">暂无数据</text>
- </view>
- </view>
- <view v-else class="view-flex-inline">
- <view class="view-flex-block-center">
- <text style="font-size:0.7rem;color:gray;">已全部加载(<span
- style="color: red;">{{yjRealData.warnCountSubTitle}}</span>)</text>
- </view>
- </view>
- </template>
- <template v-slot:decoration>
- <view class="decoration"></view>
- </template>
- <uni-list style="min-height: 40px;">
- <uni-list-item v-for="item in yjWarnList" :key="item.id">
- <template v-slot:body>
- <view class="list-item-block">
- <view class="line" @click="toWarnDetailView(item)">
- <view class="block">
- <uni-icons class="input-uni-icon" type="notification" size="18" color="red" />
- </view>
- <view class="title text-ellipsis text-underline" style="color: blue;">
- {{item.warnName}}
- </view>
- </view>
- <view class="line">
- <text class="text text-ellipsis" style="color: gray;">预警信息:{{item.warnInfo}}</text>
- </view>
- <view class="line">
- <text class="text" style="color: gray;">预警时间:{{item.warnTime}}</text>
- </view>
- <view class="line">
- <text class="text" style="color: gray;">应转移人员:{{item.totalTransferPerson}}</text>
- </view>
- <view class="line">
- <text class="text" style="color: gray;">已转移:{{item.safetyTransferPerson}}</text>
- </view>
- <uni-row>
- <uni-col :span="8">
- <image style="height: 80px;" :src="toOss(item.warnQrUrl)" mode="heightFix"
- @click="toFullQrImage(item)"></image>
- </uni-col>
- <uni-col :span="16">
- <view class="item-button-group">
- <view class="item-button" @click="onDangerAreaCheckClick(item)">
- <view class="view-flex-inline-center">
- <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
- color="coral" />
- <text class="button-text">发起巡查</text>
- </view>
- </view>
- <view class="item-button" @click="toWarnDangerAreaCheckList(item)">
- <view class="view-flex-inline-center">
- <uni-icons class="input-uni-icon" type="map-pin-ellipse" size="18"
- color="coral" />
- <text class="button-text">巡查信息</text>
- </view>
- </view>
- <view class="item-button" @click="onTransferRecordClick(item)">
- <view class="view-flex-inline-center">
- <uni-icons class="input-uni-icon" type="auth" size="18"
- color="coral" />
- <text class="button-text">转移登记</text>
- </view>
- </view>
- <view class="item-button" @click="onTransferResidentListClick(item)">
- <view class="view-flex-inline-center">
- <uni-icons class="input-uni-icon" type="staff" size="18"
- color="coral" />
- <text class="button-text">转移清单</text>
- </view>
- </view>
- </view>
- </uni-col>
- </uni-row>
- </view>
- </template>
- </uni-list-item>
- </uni-list>
- </uni-section>
- </view>
- </view>
- </template>
- <script>
- import
- navBtns
- from "@/api/home.js";
- import {
- role
- } from "@/api/role.js";
- import {
- oss
- } from '@/common/setting';
- import http from '@/http/api.js';
- export default {
- components: {
- },
- data() {
- return {
- title: '山洪灾害监测预警防御平台运维系统',
- permission: {
- 'admin': false,
- 'orgAdmin': false,
- 'qiAdmin': false,
- 'companyAdmin': false,
- 'companyServciePerson': false,
- 'yjServicePerson': false,
- },
- //1 运维系统 2 应急系统
- subSystem: 0,
- //功能模块: 1运维 2 应急
- menuModel: 0,
- currentRole: '',
- current: 0,
- navButton: [],
- navButtonIndex: [],
- yjNavButton: [],
- yjNavButtonIndex: [],
- //more/loading/noMore
- loadMoreStatus: "noMore",
- timer: false,
- pageSize: 10,
- pageCurrent: 1,
- total: 0,
- noticeDot: false,
- noticeValue: 0,
- //以下为运维系统参数
- unconfirmOrderList: [],
- todayEquipmentInspectionList: [],
- todayOrderProcessList: [],
- realData: {
- todayOrderProcessCount: '维修任务数量:0',
- todayIinspectionReportCount: '设备巡检数量:0',
- newCheckOrderCount: '新任务数量:0'
- },
- //以下为应急系统参数
- yjRealData: {
- warnCountSubTitle: '0',
- },
- yjWarnList: [],
- show: false,
- swipeStatus: 'none',
- systemOptions: [{
- text: '运维',
- style: {
- fontSize: '1rem',
- backgroundColor: '#007aff'
- }
- },
- {
- text: '应急',
- style: {
- fontSize: '1rem',
- backgroundColor: '#F56C6C'
- }
- },
- {
- text: '取消',
- style: {
- fontSize: '1rem',
- backgroundColor: '#223641'
- }
- }
- ],
- };
- },
- computed: {
- getProcessOrder() {
- if (this.realData.rtuCount && this.realData.unconfirmOrderCount) {
- return this.realData.rtuCount - this.realData.unconfirmOrderCount;
- }
- return 0;
- }
- },
- onLoad() {
- this.permission.admin = false;
- this.permission.orgAdmin = false;
- this.permission.qiAdmin = false;
- this.permission.companyAdmin = false;
- this.permission.companyServciePerson = false;
- this.permission.yjServicePerson = false;
- this.navButton = navBtns.navButtons;
- this.yjNavButton = navBtns.yjNavButtons;
- if (this.userInfo.role_name === role.admin) {
- this.permission.admin = true;
- this.navButtonIndex = navBtns.sysAdminNavButton;
- this.currentRole = role.admin;
- this.yjNavButtonIndex = navBtns.yjAdminNavButton;
- } else if (this.userInfo.role_name === role.orgAdmin) {
- this.permission.orgAdmin = true;
- this.currentRole = role.orgAdmin;
- this.navButtonIndex = navBtns.orgAdminNavButton;
- this.yjNavButtonIndex = navBtns.yjAdminNavButton;
- } else if (this.userInfo.role_name === role.qiAdmin) {
- this.permission.qiAdmin = true;
- this.currentRole = role.qiAdmin;
- this.navButtonIndex = navBtns.qiAdminNavButton;
- this.yjNavButtonIndex = navBtns.yjAdminNavButton;
- } else if (this.userInfo.role_name === role.companyAdmin) {
- this.permission.companyAdmin = true;
- this.currentRole = role.companyAdmin;
- this.navButtonIndex = navBtns.companyAdminNavButton;
- } else if (this.userInfo.role_name === role.companyServciePerson) {
- this.permission.companyServciePerson = true;
- this.currentRole = role.companyServciePerson;
- this.navButtonIndex = navBtns.companyServicePersonNavButton;
- } else if (this.userInfo.role_name === role.yjServicePerson) {
- this.permission.yjServicePerson = true;
- this.currentRole = role.yjServicePerson;
- this.yjNavButtonIndex = navBtns.yjServicePersonNavButton;
- }
- let subSystemSelectInfo = uni.getStorageSync("SubSystemSelectInfo");
- this.subSystem = subSystemSelectInfo.subSystem;
- if (this.subSystem == 1) {
- this.menuModel = 1;
- uni.setTabBarItem({
- "index": 1,
- "iconPath": "static/images/tabbar/workbench.png",
- "selectedIconPath": "static/images/tabbar/workbench_selected.png",
- "text": "管理工作台",
- })
- } else if (this.subSystem == 2) {
- this.menuModel = 2;
- uni.setTabBarItem({
- "index": 1,
- "iconPath": "static/images/tabbar/warn.png",
- "selectedIconPath": "static/images/tabbar/warn_selected.png",
- "text": "监测预警",
- })
- }
- if (this.$u.func.checkLogin()) {
- this.timer = true;
- setTimeout(this.timeCall, 10000);
- this.$nextTick(() => {
- if (this.subSystem == 1) {
- this.getHomeInfo();
- if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
- this.getYjInfo();
- }
- } else if (this.subSystem == 2) {
- this.getYjInfo();
- }
- })
- }
- },
- onUnload() {
- this.timer = false;
- },
- onReady() {
- if (this.$u.func.checkLogin()) {} else {
- this.$u.func.logout();
- }
- },
- onShow() {
- if (this.timer == false) {
- this.timer = true;
- setTimeout(this.timeCall, 10000);
- this.$nextTick(() => {
- if (this.subSystem == 1) {
- this.getHomeInfo();
- if (this.currentRole == role.admin || this.currentRole == role.orgAdmin) {
- this.getYjInfo();
- }
- } else if (this.subSystem == 2) {
- this.getYjInfo();
- }
- })
- }
- },
- onHide() {
- this.timer = false;
- },
- methods: {
- toOss(path) {
- return oss + path;
- },
- swipeBindClick(e) {
- let that = this;
- if (e.index == 0) {
- //运维
- if (this.menuModel != 1) {
- this.$nextTick(() => {
- that.menuModel = 1;
- })
- }
- } else if (e.index == 1) {
- //应急
- if (this.menuModel != 2) {
- this.$nextTick(() => {
- that.menuModel = 2;
- })
- }
- } else if (e.index == 2) {
- }
- this.$refs.swipeAction.closeAll();
- },
- onSwipeOpened() {
- if (this.swipeStatus === 'none') {
- this.swipeStatus = 'right';
- return;
- }
- if (this.swipeStatus === 'right') {
- this.swipeStatus = 'none';
- return;
- }
- },
- swipeChange(e) {
- this.swipeStatus = e;
- },
- timeCall() {
- if (this.timer == true) {
- if (this.subSystem == 1) {
- if (this.menuModel == 1) {
- this.getHomeInfo();
- } else if (this.menuModel == 2) {
- this.getYjInfo();
- }
- } else if (this.subSystem == 2) {
- this.getYjInfo();
- }
- setTimeout(this.timeCall, 10000);
- }
- },
- //跳转到工作台
- onRtuManageViewClick() {
- var url = '/pages/rtu-manage/rtumanage';
- uni.switchTab({
- url: url
- })
- },
- //查看设备异常信息
- onWarningRtuViewClick() {
- var url = '/pages/warning/warninglist';
- uni.navigateTo({
- url: url
- })
- },
- //跳转到维修任务
- onAllCheckOrderClick() {
- var url = '/pages/check-order/checkorderlist';
- uni.navigateTo({
- url: url
- })
- },
- //查看未确认维修任务
- onUncomfirecheckorderViewClick() {
- var url = '/pages/check-order/uncomfirecheckorderlistview';
- uni.navigateTo({
- url: url
- })
- },
- onProcessCheckorderViewClick() {
- var url = '/pages/check-order/processcheckorderlistview';
- uni.navigateTo({
- url: url
- })
- },
- onReportCheckorderViewClick() {
- if (this.permission.admin || this.permission.orgAdmin) {
- let url = '/pages/check-order/companycheckorderlist?type=4';
- uni.navigateTo({
- url: url
- })
- } else {
- let url = '/pages/check-order/servicepersoncheckorderlist?type=3';
- uni.navigateTo({
- url: url
- })
- }
- },
- //查看超时未确认维修任务
- onComfiredelaycheckorderClick() {
- var url = '/pages/check-order/comfiredelaycheckorderlist';
- uni.navigateTo({
- url: url
- })
- },
- onOrderReportItemClick(id) {
- var url = '/pages/check-order/orderprocessreportdetail?orderId=' + id;
- uni.navigateTo({
- url: url
- })
- },
- onNoticeMoreClick() {
- uni.navigateTo({
- url: '/pages/news/noticelist'
- })
- },
- onMoreTodayCheckOrderReportClick() {
- uni.navigateTo({
- url: '/pages/check-order/todaycheckorderrprocesseportlist'
- })
- },
- onOrderItemClick(id) {
- let url =
- '/pages/check-order/orderconfirm?id=' + id;
- uni.navigateTo({
- url: url
- })
- },
- onInspectionManageClick() {
- var url = '/pages/equipment-inspection/inspectionlist';
- uni.navigateTo({
- url: url
- })
- },
- onFinishedBeforeRainInspectionClick() {
- var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=1';
- uni.navigateTo({
- url: url
- })
- },
- onFinishedRainFirstInspectionClick() {
- var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=2';
- uni.navigateTo({
- url: url
- })
- },
- onFinishedRainSecondInspectionClick() {
- var url = '/pages/equipment-inspection/finishedinspectionreportlist?rainSeasonKind=3';
- uni.navigateTo({
- url: url
- })
- },
- onMoreTodayInspectionReportInfoClick() {
- uni.navigateTo({
- url: '/pages/equipment-inspection/todayinspectionreportlist'
- })
- },
- onInspectionItemClick(id, rainSeasonKind) {
- //console.log("onInspectionItemClick " + id)
- var url = '/pages/equipment-inspection/inspectionreportview?id=' + id + "&type=" + rainSeasonKind;
- uni.navigateTo({
- url: url
- })
- },
- onMoreUncomfireCheckOrderClick() {
- uni.navigateTo({
- url: '/pages/check-order/uncomfirecheckorderlist'
- })
- },
- getHomeInfo() {
- let that = this;
- http.request({
- url: '/galaxy-business/home/real/info',
- method: 'GET'
- }).then(res => {
- if (res && res.success) {
- that.realData = res.data;
- that.realData['processOrderCount'] = that.realData.processCheckOrderCount;
- that.realData['todayOrderProcessCount'] = '今日已处理任务数量:' + that.realData
- .todayOrderProcessCount;
- that.realData['todayIinspectionReportCount'] = '今日已巡检数量:' + that.realData
- .todayIinspectionReportCount;
- that.realData['newCheckOrderCount'] = '新任务数量:' + that.realData
- .unconfirmOrderCount;
- if (that.realData.hasNewNotice) {
- that.noticeDot = true;
- that.noticeValue = that.realData.newNoticeCount;
- } else {
- that.noticeDot = false;
- that.noticeValue = 0;
- }
- that.getTodayOrderProcessList();
- that.getTodayInspectionReport();
- if (that.permission.companyServciePerson) {
- that.getUnconfirmOrderList();
- }
- }
- }).catch(err => {
- console.log(JOSN.stringify(err))
- })
- },
- getUnconfirmOrderList() {
- let that = this;
- let postData = {};
- http.request({
- url: '/galaxy-business/rtu/check/order/unconfirm/last/list',
- method: 'GET',
- data: postData,
- }).then(res => {
- if (res.data != null) {
- that.unconfirmOrderList = res.data;
- if (that.realData.unconfirmOrderCount > 0) {
- if (that.realData.unconfirmOrderCount > that.unconfirmOrderList.length) {
- that.loadMoreStatus = "more";
- } else {
- that.loadMoreStatus = "load";
- }
- } else {
- that.loadMoreStatus = "noMore";
- }
- }
- }).catch(err => {
- console.log(JOSN.stringify(err))
- })
- },
- getTodayOrderProcessList() {
- const that = this;
- http.request({
- url: '/galaxy-business/rtu/check/order/process/today/list',
- method: 'GET'
- }).then(res => {
- that.todayOrderProcessList = [];
- if (res.data != null && res.data.length > 0) {
- that.todayOrderProcessList.push(res.data[0]);
- }
- }).catch(err => {
- console.log(JOSN.stringify(err))
- })
- },
- getTodayInspectionReport() {
- const that = this;
- http.request({
- url: '/galaxy-business/equipment/inspection/report/today/list',
- method: 'GET'
- }).then(res => {
- that.todayEquipmentInspectionList = [];
- if (res.data != null && res.data.length > 0) {
- that.todayEquipmentInspectionList.push(res.data[0]);
- }
- }).catch(err => {
- console.log(JOSN.stringify(err))
- })
- },
- //以下为应急系统代码
- toDangerAreaResidentRecord() {
- uni.navigateTo({
- url: '/pages-yj/yjxt/resident/dangerarearesidentrecord',
- })
- },
- toDangerAreaCheck() {
- uni.navigateTo({
- url: '/pages-yj/yjxt/check/dangerareacheck?type=1&id='
- })
- },
- toDangerAreaCheckList() {
- uni.navigateTo({
- url: '/pages-yj/yjxt/check/dangerareachecklist?type=1&warnId='
- })
- },
- toWarnDangerAreaCheckList(item) {
- let url = '/pages-yj/yjxt/check/dangerareachecklist?type=2&warnId=' + item.warnId;;
- uni.navigateTo({
- url: url
- })
- },
- onMoreYjWarnClick() {
- uni.navigateTo({
- url: '/pages-yj/yjxt/warn/yjwarnlist'
- })
- },
- onDangerAreaCheckClick(item) {
- let url =
- '/pages-yj/yjxt/check/dangerareacheck?type=2&id=' + item.id + '&warnId=' + item.warnId + '&warnAdcd=' +
- item.warnAdcd;
- uni.navigateTo({
- url: url
- })
- },
- onTransferRecordClick(item) {
- let url = '/pages-yj/yjxt/transfer/residenttransferrecord?id=' + item.warnId;
- uni.navigateTo({
- url: url
- })
- },
- onTransferResidentListClick(item) {
- let url = '/pages-yj/yjxt/transfer/transferresidentlist?id=' + item.warnId;
- uni.navigateTo({
- url: url
- })
- },
- getYjInfo() {
- let that = this;
- let params = {};
- params['warnStatus'] = 5;
- const current = this.pageCurrent;
- const size = this.pageSize;
- http.request({
- url: '/galaxy-business/yj/warn/page',
- method: 'GET',
- params: {
- current,
- size,
- },
- data: params,
- }).then(res => {
- if (res.data.records != null) {
- that.yjWarnList = res.data.records;
- }
- let total = res.data.total;
- if (total > 0) {
- if (total > that.pageSize) {
- that.loadMoreStatus = "more";
- } else {
- that.loadMoreStatus = "load";
- }
- that.yjRealData.warnCountSubTitle = total;
- } else {
- that.loadMoreStatus = "noMore";
- that.yjRealData.warnCountSubTitle = "0";
- }
- }).catch(err => {
- console.log(err)
- })
- },
- toWarnDetailView(item) {
- uni.navigateTo({
- url: '/pages-yj/yjxt/warn/yjwarndetail?id=' + item.id
- })
- },
- toFullQrImage(item) {
- uni.navigateTo({
- url: '/pages-yj/yjxt/warn/yjwarnqr?id=' + item.id
- })
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- $nav-height: 75px;
- .decoration {
- width: 6px;
- height: 6px;
- margin-right: 4px;
- border-radius: 50%;
- background-color: cadetblue;
- }
- .item-block {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- width: 100%;
- }
- .line {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- width: 100%;
- }
- .line .block {
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .line-end {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- width: 100%;
- }
- .line-end .block {
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .line-center {
- display: flex;
- flex-direction: row;
- justify-content: center;
- width: 100%;
- height: 100%;
- }
- .line-center .block {
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .rtu-name {
- margin-left: 5rpx;
- font-size: 0.7rem;
- font-weight: bold;
- }
- .rtu-code {
- margin-left: 5rpx;
- font-size: 0.6rem;
- color: gray;
- }
- .item-text-line {
- width: 100%;
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- padding-left: 0px;
- padding-right: 0px;
- .block {
- height: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .item-title {
- font-size: 0.7rem;
- }
- .item-text {
- padding-left: 2px;
- padding-right: 5px;
- font-size: 0.7rem;
- }
- .item-text-ell {
- width: 100%;
- overflow: hidden;
- font-size: 0.7rem;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .item-number {
- font-size: 0.7rem;
- margin-left: 2px;
- margin-right: 5px;
- }
- }
- .item-title-image {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- margin-right: 5px;
- width: 20px;
- height: 20px;
- border-radius: 50%;
- }
- .uni-badge-left-margin {
- margin-left: 0px;
- }
- .logo {
- flex-shrink: 0;
- width: 100rpx;
- height: auto;
- }
- .container {
- background-color: #f7f7f7;
- min-height: 100vh;
- overflow: hidden;
- }
- .nav {
- margin: 0rpx 0;
- box-sizing: border-box;
- padding: 0 10rpx;
- background-color: white;
- &-item {
- width: 100%;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- height: 130rpx;
- &-img {
- width: 80rpx;
- height: 80rpx;
- }
- &-name {
- font-size: 0.7rem;
- font-family: PingFang SC;
- font-weight: 500;
- color: #585b61;
- }
- }
- }
- </style>
|