home.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841
  1. <template>
  2. <div class="body EditCMBox">
  3. <!-- <div class="left_body panel">
  4. <div class="inner">
  5. <el-menu default-active="首页" class="el-menu-vertical-demo" background-color="#00122d" text-color="#5BB7FF"
  6. active-text-color="#FFFFFF">
  7. <template v-for="(item, indexw) in menuList">
  8. <el-menu-item :index="item.title" :key="indexw" @click='goPage(item)'>
  9. <i :class="item.icon"></i>
  10. <span slot="title" :style="{ 'padding-left': item.icon ? '' : '20px' }">{{ item.title }}</span>
  11. </el-menu-item>
  12. </template>
  13. </el-menu>
  14. </div>
  15. </div> -->
  16. <div class="right_body">
  17. <div class="right_upper">
  18. <div class="right_upper_left">
  19. <top-title title="地图信息"></top-title>
  20. <div class="right_upper_title">
  21. <!-- <div class="right_uppertitle_left">
  22. <el-select class="Report order_select" v-model="value" placeholder="请选择订单模版">
  23. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
  24. </el-option>
  25. </el-select>
  26. </div> -->
  27. <div class="right_uppertitle_right">
  28. <!-- <el-button class="custom_btn Colorbutton_blue" @click="pathOnlock">路径解锁</el-button> -->
  29. <el-select class="maskright_select" v-model="addOrdersB" @change="addOrders(addOrdersB)" placeholder="">
  30. <el-option v-for="item in tempalteMode" :key="item.template_name" :label="item.template_name" :value="item.template_name">
  31. </el-option>
  32. </el-select>
  33. <el-select style="margin-left:24px" class="maskright_select" v-model="addOrdersC" @change="addOrders(addOrdersC)" placeholder="">
  34. <el-option v-for="item in tempalteMode" :key="item.template_name" :label="item.template_name" :value="item.template_name">
  35. </el-option>
  36. </el-select>
  37. <!-- <el-button class="custom_btn Colorbutton_blue" @click="showModels">模板总览</el-button> -->
  38. <!-- <el-button class="custom_btn Colorbutton_blue" @click="goMap">全屏显示</el-button> -->
  39. <div class="all_pul" @click="goMap"></div>
  40. </div>
  41. </div>
  42. <div class="right_map">
  43. <iframe width="100%" frameborder="0" scrolling="yes" height="100%" id="map_iframe" src="http://localhost:8088/page/map_export"></iframe>
  44. </div>
  45. <div class="right_mapMax" v-show="ifRe">
  46. <div class="right_mapMax_Top">
  47. <el-select class="maskright_select" v-model="addOrdersB" @change="addOrders(addOrdersB)" placeholder="">
  48. <el-option v-for="item in tempalteMode" :key="item.template_name" :label="item.template_name" :value="item.template_name">
  49. </el-option>
  50. </el-select>
  51. <el-select class="maskright_select" v-model="addOrdersB" @change="addOrders(addOrdersB)" placeholder="">
  52. <el-option v-for="item in tempalteMode" :key="item.template_name" :label="item.template_name" :value="item.template_name">
  53. </el-option>
  54. </el-select>
  55. <!-- <el-button class="custom_btn Colorbutton_blue" @click="showModels">模板总览</el-button> -->
  56. <el-button class="custom_btn exitRe Colorbutton_blue" @click="goMap">退出全屏</el-button>
  57. </div>
  58. <div class="right_mapMax_Bottom">
  59. <iframe frameborder="0" scrolling="no" width="100%" height="100%" id="map_iframe" src="http://localhost:8088/page/map_export"></iframe>
  60. </div>
  61. </div>
  62. <!-- <top-title title="报警统计" style="margin-top:20px"></top-title>
  63. <div class="alarm_statistics"></div> -->
  64. </div>
  65. <div class="right_upper_right">
  66. <div class="right_upper_top">
  67. <div class="right_upper_top_left">
  68. <top-title title="车辆信息">
  69. </top-title>
  70. <div class="cars_infor_body">
  71. <el-scrollbar style="width:100%;height:100%">
  72. <ul v-for="(item, index) in carsinfordata" :key="index">
  73. <li>
  74. {{ item.title }}
  75. </li>
  76. <li>
  77. {{item.statues}}
  78. </li>
  79. <li>
  80. 电量:{{ item.elect }}
  81. </li>
  82. <li>
  83. 调度上线:<i @click="changestatus(item, index)" :class="item.dispatchstatues == '1' ? 'IconStart' : 'IconClose'"></i>
  84. </li>
  85. </ul>
  86. </el-scrollbar>
  87. <!-- <div class="cars_item" :class="carsindex == index ? 'cars_item_active' : ''" @click="activeCar(index),carsindex=index"
  88. v-for="(item, index) in carsinfordata" :key="index">
  89. <div class="cars_item_body">
  90. <div class="cars_item_title">
  91. {{ item.title }}
  92. </div>
  93. <div class="cars_item_status">
  94. <div class="status_tips_body">
  95. <div class="status_tips_text">
  96. {{item.statues}}
  97. </div>
  98. </div>
  99. </div>
  100. <div class="elect_body">SOC:{{ item.elect }}</div>
  101. <div class="elect_body dispatch_body">
  102. 调度上线:<i @click="changestatus(item, index)" :class="item.dispatchstatues == '1' ? 'IconStart' : 'IconClose'"></i>
  103. </div>
  104. </div>
  105. </div> -->
  106. </div>
  107. </div>
  108. <div class="right_upper_top_right">
  109. <div style="width: 100%;height: 110px;position: relative;top: 0px;float:left">
  110. <top-title title="任务控制"></top-title>
  111. <div class="carbtn_box" style="width: 100%;height: 70%;">
  112. <div v-if="showCar.ifshow" class="carbtn_item" style="width: 100%;height: 120px;margin-bottom:13px;
  113. background-color: #092754;display: flex;align-items: center;justify-content: space-around;"
  114. v-for="(item,index) in carbtn">
  115. <label style="color: #FFFFFF;font-size: 20px;">{{item.btn_title}}</label>
  116. <i class="IconFont" style="font-size: 20px;"
  117. @click="changeCarbtn(item, index)" :class="item.btn_icon == '1' ? 'IconStart' : 'IconClose'"></i>
  118. </div>
  119. <!-- <p v-if="Offline" style="float: left;font-size: 28px;color: #606266b0;letter-spacing: 3px;line-height: 10px;padding-left: 40px;">车辆已下线</p> -->
  120. </div>
  121. <div class="moreOrder" style="float: right;position: relative;top: -5px; width: 100px;height: 50px;right: 30px;"
  122. @click="">
  123. <!-- <el-button class="Colorbutton_blue">更多订单</el-button> -->
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="alarm_up" style="width: 100%;height:120px;position: relative;top: 0px;float:left">
  129. <top-title title="告警信息"></top-title>
  130. <div style="width: 100%;height: 80%;overflow: hidden;">
  131. <vue-seamless-scroll :data="agreepersonlist" :class-option="optionSetting" ref="myScoll">
  132. <div class="givealarm_child" v-for="(item, index) in agreepersonlist" :key="index">
  133. <!-- <div class="top">
  134. <div :class="{'logcomplete':item.start2 == 1,'logwarning':item.start2 == 2,'logalarm':item.start2 == 3,}"></div>
  135. <div class="content">{{item.name}}</div>
  136. <div class="start" :class="item.start == 1 ? 'start': 'starter'">{{item.start == 1 ? '已处理': '未处理'}}</div>
  137. </div> -->
  138. <p>{{item.alarm_date}}</p>
  139. <span>{{item.error_content}}</span>
  140. </div>
  141. </vue-seamless-scroll>
  142. <!-- <p v-if="Offline" style="float: left;font-size: 28px;color: #606266b0;letter-spacing: 3px;line-height: 10px;padding-left: 40px;">车辆已下线</p> -->
  143. </div>
  144. </div>
  145. <top-title title="订单信息" style="margin-top: 30px;"></top-title>
  146. <div class="right_lower">
  147. <div class="filter_by_state">
  148. <el-select v-model="filter_by_state" placeholder="全部" clearable class="filter_by_state_select" @change="filterChange">
  149. <el-option
  150. v-for="item in typeOptions"
  151. :key="item.value"
  152. :label="item.label"
  153. :value="item.value">
  154. </el-option>
  155. </el-select>
  156. </div>
  157. <el-table :data="tableData" height="267px" width="100%">
  158. <el-table-column :label="item.label" :align="item.label=='完成进度'?'left':'center'"
  159. v-for="(item, index) in tableprop" :key="index">
  160. <template slot-scope="scope">
  161. <div v-if="item.label == '操作'">
  162. <!-- <el-button class="Colorbutton_blue" @click="showDetial(scope.row.Id)">详情信息</el-button> -->
  163. <el-button class="Colorbutton" @click="thisOrderStop(scope.row.Id)">暂停</el-button>
  164. <el-button class="Colorbutton" @click="thisOrderRun(scope.row.Id)">继续</el-button>
  165. <el-button class="Colorbutton_blue" @click="thisOrderClres(scope.row.Id)">取消</el-button>
  166. </div>
  167. <div v-else-if="item.label == '完成进度'">
  168. <div class="progress_body">
  169. <span class="progress_span">{{ scope.row[item.prop] }}</span>
  170. <div :style="{
  171. width: scope.row[item.prop],
  172. background: '#20CEA0',
  173. height: '100%',
  174. }"
  175. class="progress_item"></div>
  176. </div>
  177. </div>
  178. <div v-else>
  179. <div v-if="item.render" :style="{color: item.rendercolor ? item.rendercolor(scope.row) : '',}">
  180. {{ item.render(scope.row) }}
  181. </div>
  182. <div v-else>
  183. {{ scope.row[item.prop] }}
  184. </div>
  185. </div>
  186. </template>
  187. </el-table-column>
  188. </el-table>
  189. <el-pagination
  190. v-show="typeOptions.length<= 1"
  191. @current-change="changePage"
  192. @prev-click = "changePage"
  193. @next-click = "changePage"
  194. layout="prev, pager, next"
  195. :total="pageCount">
  196. </el-pagination>
  197. </div>
  198. </div>
  199. </div>
  200. <!-- <top-title title="具体订单状态" style="margin-top: 10px;"></top-title>
  201. <div class="right_lower">
  202. <div class="filter_by_state">
  203. <el-select v-model="filter_by_state" placeholder="全部" clearable class="filter_by_state_select" @change="filterChange">
  204. <el-option
  205. v-for="item in typeOptions"
  206. :key="item.value"
  207. :label="item.label"
  208. :value="item.value">
  209. </el-option>
  210. </el-select>
  211. </div>
  212. <el-table :data="tableData" height="240px" width="100%">
  213. <el-table-column :label="item.label" :width="item.width" :align="item.label=='完成进度'?'left':'center'"
  214. v-for="(item, index) in tableprop" :key="index">
  215. <template slot-scope="scope">
  216. <div v-if="item.label == '操作'">
  217. <el-button class="Colorbutton_blue" @click="showDetial(scope.row.Id)">详情信息</el-button>
  218. <el-button class="Colorbutton" v-if="scope.row.order_state == 'EXECUTING'" @click="thisOrderStop(scope.row.Id)">暂停</el-button>
  219. <el-button class="Colorbutton" v-if="scope.row.order_state == 'HELD'" @click="thisOrderRun(scope.row.Id)">继续</el-button>
  220. <el-button class="Colorbutton_blue" v-if="scope.row.order_state != 'CANCELLED'&&scope.row.order_state != 'FAILED'&&scope.row.order_state != 'DELETED'&&scope.row.order_state != 'SUCCESS'" @click="thisOrderClres(scope.row.Id)">取消</el-button>
  221. </div>
  222. <div v-else-if="item.label == '完成进度'">
  223. <div class="progress_body">
  224. <span class="progress_span">{{ scope.row[item.prop] }}</span>
  225. <div :style="{
  226. width: scope.row[item.prop],
  227. background: '#20CEA0',
  228. height: '100%',
  229. }"
  230. class="progress_item"></div>
  231. </div>
  232. </div>
  233. <div v-else>
  234. <div v-if="item.render" :style="{color: item.rendercolor ? item.rendercolor(scope.row) : '',}">
  235. {{ item.render(scope.row) }}
  236. </div>
  237. <div v-else>
  238. {{ scope.row[item.prop] }}
  239. </div>
  240. </div>
  241. </template>
  242. </el-table-column>
  243. </el-table>
  244. <el-pagination
  245. @current-change="changePage"
  246. @prev-click = "changePage"
  247. @next-click = "changePage"
  248. layout="prev, pager, next"
  249. :total="pageCount">
  250. </el-pagination>
  251. </div> -->
  252. </div>
  253. <el-dialog title="模板总览" :visible.sync="dialogVisible" width="800px" @close="closeDialog" id="addUserDialog">
  254. <el-table :data="ModeList" height="590" style="width: 100%;color: #2DAFF5;background-color: #103366;">
  255. <el-table-column prop="modeName" align="center" label="模板名称">
  256. </el-table-column>
  257. <el-table-column prop="btnName" align="center" label="对应按钮">
  258. </el-table-column>
  259. <el-table-column prop="carName" align="center" label="对应车辆">
  260. </el-table-column>
  261. <el-table-column prop="" align="center" label="操作">
  262. <template slot-scope="{row}">
  263. <el-button class="Colorbutton_blue" @click="bindOrder(row)">下单</el-button>
  264. </template>
  265. </el-table-column>
  266. </el-table>
  267. </el-dialog>
  268. <OrdersInfo ref="OrdersInfo"></OrdersInfo>
  269. </div>
  270. </template>
  271. <script>
  272. import {
  273. GetUsers,
  274. getVehicles,
  275. Getorders,
  276. GetTemplates,
  277. GetTemplateslist,
  278. getVehicleByIds,
  279. ordersTemplate,
  280. setVehicleStatus,
  281. setVehicleFace,
  282. Deblock,
  283. SetOrders,
  284. Changestat,
  285. getOrdersByIds,
  286. Changestat2,
  287. keepCarOnline,
  288. Changestat3,
  289. Dbalarm,
  290. getbuttonstat,
  291. alarmInformation
  292. } from '@/api/request.js'
  293. import OrdersInfo from '../../components/OrdersInfo.vue'
  294. export default {
  295. data() {
  296. return {
  297. // heighter: '100%',
  298. mapURL:"",
  299. pageCount:0,
  300. isopen1:false,
  301. isopen2:false,
  302. isopen3:false,
  303. ifRe: false,
  304. Offline: false,
  305. agreepersonlist: [],
  306. showCar: {
  307. ifshow: true,
  308. num: '#'
  309. },
  310. addOrdersC: '地图切换',
  311. modeList3: [{
  312. modeName: 'P1-Car1'
  313. },
  314. {
  315. modeName: 'P1-Car2'
  316. },
  317. {
  318. modeName: 'P1-Car3'
  319. },
  320. {
  321. modeName: 'P1-Car4'
  322. },
  323. {
  324. modeName: 'P1-Car5'
  325. },
  326. {
  327. modeName: 'P1-Car6'
  328. },
  329. {
  330. modeName: 'P1-Car7'
  331. },
  332. {
  333. modeName: 'P1-Car8'
  334. }
  335. ],
  336. addOrdersB: '选择模板下单',
  337. modeList2: [{
  338. modeName: 'P1-Car1'
  339. },
  340. {
  341. modeName: 'P1-Car2'
  342. },
  343. {
  344. modeName: 'P1-Car3'
  345. },
  346. {
  347. modeName: 'P1-Car4'
  348. },
  349. {
  350. modeName: 'P1-Car5'
  351. },
  352. {
  353. modeName: 'P1-Car6'
  354. },
  355. {
  356. modeName: 'P1-Car7'
  357. },
  358. {
  359. modeName: 'P1-Car8'
  360. }
  361. ],
  362. ModeList: [ //模板总览数据
  363. {
  364. modeName: 'P1-Car1',
  365. btnName: '开包任务',
  366. carName: 'AMR01'
  367. },
  368. {
  369. modeName: 'P1-Car2',
  370. btnName: '开包任务',
  371. carName: 'AMR02'
  372. },
  373. {
  374. modeName: 'P1-Car3',
  375. btnName: '开包任务',
  376. carName: 'AMR03'
  377. },
  378. {
  379. modeName: 'P1-Car4',
  380. btnName: '开包任务',
  381. carName: 'AMR04'
  382. },
  383. {
  384. modeName: 'P2-Car1',
  385. btnName: '备用任务',
  386. carName: 'AMR01'
  387. },
  388. {
  389. modeName: 'P2-Car2',
  390. btnName: '备用任务',
  391. carName: 'AMR02'
  392. },
  393. {
  394. modeName: 'P2-Car3',
  395. btnName: '备用任务',
  396. carName: 'AMR03'
  397. },
  398. {
  399. modeName: 'P2-Car4',
  400. btnName: '备用任务',
  401. carName: 'AMR04'
  402. },
  403. {
  404. modeName: '充电桩1充电-Car1',
  405. btnName: '充电桩1充电',
  406. carName: 'AMR01'
  407. },
  408. {
  409. modeName: '充电桩1充电-Car2',
  410. btnName: '充电桩1充电',
  411. carName: 'AMR02'
  412. },
  413. {
  414. modeName: '充电桩1充电-Car3',
  415. btnName: '充电桩1充电',
  416. carName: 'AMR03'
  417. },
  418. {
  419. modeName: '充电桩1充电-Car4',
  420. btnName: '充电桩1充电',
  421. carName: 'AMR04'
  422. },
  423. {
  424. modeName: '充电桩2充电-Car1',
  425. btnName: '充电桩2充电',
  426. carName: 'AMR01'
  427. },
  428. {
  429. modeName: '充电桩2充电-Car2',
  430. btnName: '充电桩2充电',
  431. carName: 'AMR02'
  432. },
  433. {
  434. modeName: '充电桩2充电-Car3',
  435. btnName: '充电桩2充电',
  436. carName: 'AMR03'
  437. },
  438. {
  439. modeName: '充电桩2充电-Car4',
  440. btnName: '充电桩2充电',
  441. carName: 'AMR04'
  442. },
  443. {
  444. modeName: 'Lock_Car1',
  445. btnName: '前往站点1',
  446. carName: 'AMR01'
  447. },
  448. {
  449. modeName: 'Lock_Car2',
  450. btnName: '前往站点1',
  451. carName: 'AMR02'
  452. },
  453. {
  454. modeName: 'Lock_Car3',
  455. btnName: '前往站点1',
  456. carName: 'AMR03'
  457. },
  458. {
  459. modeName: 'Lock_Car4',
  460. btnName: '前往站点1',
  461. carName: 'AMR04'
  462. }
  463. ],
  464. carbtn: [{
  465. type:"kbrw",
  466. btn_icon: 0,
  467. btn_title: '任务状态'
  468. },
  469. {
  470. type:"byrw",
  471. btn_icon: 0,
  472. btn_title: '在线控制'
  473. }
  474. ],
  475. singleVehicle: {
  476. nickname: "cccc",
  477. },
  478. tempalteMode: '',
  479. tempalteModes: '',
  480. statusCarInfo: false, //正在执行车辆下方看板显示隐藏
  481. CarInfoData: {
  482. nickname: 'sss',
  483. renwuname: '当前任务',
  484. systemstatus: '系统任务',
  485. datastatus: '数据状态',
  486. movestatus: '移动状态',
  487. dostatus: '动作状态',
  488. elect: '电量',
  489. },
  490. templateDatas: [],
  491. vehiclesDatas: [],
  492. usersData: [],
  493. dialogVisible: false,
  494. value: '',
  495. valuemap: '请选择',
  496. valuemap1: '请选择',
  497. carsindex: -1,
  498. map_center: '',
  499. my_scroll_wheel_zoom: '',
  500. my_zoom: '',
  501. carsinfordata: [
  502. ],
  503. broderoptions: [{
  504. value: '1',
  505. label: '边组合'
  506. }],
  507. mapoptions: [{
  508. value: '1',
  509. label: '地图元素'
  510. }],
  511. coordinateoptions: [],
  512. tableprop: [{
  513. "prop": 'Id',
  514. "label": 'ID',
  515. "width": '116',
  516. },
  517. {
  518. "prop": 'Status',
  519. "label": '状态',
  520. "width": '186',
  521. },
  522. {
  523. "prop": 'ChildStatus',
  524. "label": '子任务状态',
  525. "width": '186',
  526. },
  527. {
  528. "prop": 'template_name',
  529. "label": '模版名称',
  530. "width": '216',
  531. },
  532. {
  533. "prop": 'StartEnd',
  534. "label": '起点>终点',
  535. "width": '166',
  536. },
  537. {
  538. "prop": 'Type',
  539. "label": '类型',
  540. "width": '156',
  541. },
  542. {
  543. "prop": 'create_time',
  544. "label": '接收时间',
  545. "width": '286',
  546. },
  547. // {
  548. // "prop": 'Progress',
  549. // "label": '完成进度',
  550. // "width": '180',
  551. // },
  552. {
  553. "prop": 'Cars',
  554. "label": '执行车辆',
  555. "width": '156',
  556. },
  557. // {
  558. // "prop": 'OptionUser',
  559. // "label": '操作用户',
  560. // "width": '80',
  561. // },
  562. {
  563. "prop": 'Option',
  564. "label": '操作',
  565. "width": '',
  566. },
  567. ],
  568. tableData: [],
  569. menuList: [{
  570. title: '车辆管理',
  571. path: '/CarAdministration',
  572. icon: 'Icon-cars IconFont',
  573. },
  574. {
  575. title: '订单管理',
  576. path: '/OrderAdministration',
  577. icon: 'Icon-order IconFont',
  578. },
  579. {
  580. title: '异常与日志',
  581. path: '/',
  582. icon: 'Icon-nomore IconFont',
  583. },
  584. {
  585. title: '系统管理',
  586. path: '/',
  587. icon: 'Icon-system IconFont',
  588. }
  589. ],
  590. ifonline: 0,
  591. pageSize:1,
  592. pageSizes:1,
  593. sj:null,
  594. typeOptions:[
  595. {
  596. value: '1',
  597. label: '队列中'
  598. },
  599. {
  600. value: '2',
  601. label: '已取消'
  602. },
  603. {
  604. value: '3',
  605. label: '执行中'
  606. },
  607. {
  608. value: '4',
  609. label: '已失败'
  610. },
  611. {
  612. value: '5',
  613. label: '已成功'
  614. },
  615. {
  616. value: '6',
  617. label: '已删除'
  618. },
  619. {
  620. value: '7',
  621. label: '手动暂停'
  622. },
  623. {
  624. value: '8',
  625. label: '暂停执行'
  626. },
  627. {
  628. value: '9',
  629. label: '已挂起'
  630. },
  631. {
  632. value: '10',
  633. label: '队列外'
  634. }
  635. ],
  636. filter_by_state:null
  637. }
  638. },
  639. computed:{
  640. optionSetting () {
  641. return{
  642. step: 0.3,
  643. limitMoveNum:5,
  644. hoverStop:true,//是否悬停
  645. openWatch: true, // 开启数据实时监控刷新dom
  646. singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
  647. singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
  648. waitTime: 10000 // 单步运动停止的时间(默认值1000ms)
  649. }
  650. }
  651. },
  652. components: {
  653. OrdersInfo
  654. },
  655. mounted() {
  656. clearInterval(this.sj)
  657. let that = this;
  658. this.js = setInterval(()=>{//实时更新数据
  659. that.getVehicle();
  660. that.GetTemplate();
  661. that.gettempalteMode()
  662. that.Getorder();
  663. that.getbuttonstats();
  664. that.alarmList()
  665. },3000)
  666. },
  667. beforeRouteLeave(to, from, next){
  668. next();
  669. if (this.sj) {
  670. clearInterval(this.sj)
  671. this.sj = null;
  672. }
  673. },
  674. methods: {
  675. //告警信息
  676. alarmList() {
  677. alarmInformation().then(res => {
  678. this.agreepersonlist = res.resultData.result
  679. this.agreepersonlist.push()
  680. this.$refs.myScoll.reset();
  681. })
  682. },
  683. getbuttonstats(){
  684. getbuttonstat().then(res => {
  685. // console.log(res)
  686. if (res.resultData) {
  687. if(res.resultData[0].mission_boutton==1){
  688. this.isopen1==true
  689. this.carbtn[0].btn_icon=1;
  690. }
  691. else{
  692. this.isopen1==false
  693. this.carbtn[0].btn_icon=0;
  694. }
  695. if(res.resultData[1].mission_boutton==1){
  696. this.isopen2==true
  697. this.carbtn[1].btn_icon=1;
  698. }
  699. else{
  700. this.isopen2==false
  701. this.carbtn[1].btn_icon=0;
  702. }
  703. if(res.resultData[2].mission_boutton==1){
  704. this.isopen3==true
  705. this.carbtn[2].btn_icon=1;
  706. }
  707. else{
  708. this.isopen3==false
  709. this.carbtn[2].btn_icon=0;
  710. }
  711. }
  712. })
  713. },
  714. filterChange(){
  715. if(this.filter_by_state){
  716. this.pageSize = 1;
  717. this.Getorder();
  718. }
  719. },
  720. changePage(e){
  721. this.pageSize = e;
  722. this.Getorder();
  723. },
  724. setVehicleStatusTo(data) { //控制车辆状态公用接口
  725. setVehicleStatus(data).then(res => {
  726. console.log(res)
  727. if (res) {
  728. this.ifonline = 1;
  729. }
  730. })
  731. },
  732. pathOnlock() { //路径解锁
  733. this.$confirm('是否解锁路径?', '提示', {
  734. confirmButtonText: '确定',
  735. cancelButtonText: '取消',
  736. type: 'warning'
  737. }).then(() => {
  738. Deblock().then(res => {
  739. if(res){
  740. this.$message({
  741. type: 'info',
  742. duration: 800,
  743. message: res.Message
  744. });
  745. }
  746. })
  747. }).catch(() => {
  748. });
  749. },
  750. goMap() { //地图全屏
  751. this.ifRe = !this.ifRe;
  752. },
  753. showDetial(Id){
  754. // let data = {
  755. // order_id:Id
  756. // }
  757. getOrdersByIds(Id).then(res => {
  758. if(res){
  759. this.$refs.OrdersInfo.modelData=res;
  760. this.$refs.OrdersInfo.dialogVisible = true;
  761. }
  762. })
  763. },
  764. thisOrderStop(Id) { //当前订单暂停
  765. let data = {
  766. order_id:Id,
  767. command_type:"CMD_ORDER_HELD"
  768. }
  769. this.$confirm('是否暂停该任务?', '提示', {
  770. confirmButtonText: '确定',
  771. cancelButtonText: '取消',
  772. type: 'warning'
  773. }).then(() => {
  774. SetOrders(data).then(res => {
  775. if(res){
  776. this.$message({
  777. type: 'info',
  778. duration: 800,
  779. message: "操作成功"
  780. });
  781. }
  782. })
  783. }).catch(() => {
  784. });
  785. },
  786. thisOrderRun(Id){
  787. let data = {
  788. order_id:Id,
  789. command_type:"CMD_ORDER_CONTINUE_FROM_HELD"
  790. }
  791. this.$confirm('是否继续该任务?', '提示', {
  792. confirmButtonText: '确定',
  793. cancelButtonText: '取消',
  794. type: 'warning'
  795. }).then(() => {
  796. SetOrders(data).then(res => {
  797. if(res){
  798. this.$message({
  799. type: 'info',
  800. duration: 800,
  801. message: "操作成功"
  802. });
  803. }
  804. })
  805. }).catch(() => {
  806. });
  807. },
  808. thisOrderClres(Id) { //当前订单取消
  809. let data = {
  810. order_id:Id,
  811. command_type:"CMD_ORDER_CANCEL"
  812. }
  813. this.$confirm('是否取消该任务?', '提示', {
  814. confirmButtonText: '确定',
  815. cancelButtonText: '取消',
  816. type: 'warning'
  817. }).then(() => {
  818. SetOrders(data).then(res => {
  819. if(res){
  820. this.$message({
  821. type: 'info',
  822. duration: 800,
  823. message: "操作成功"
  824. });
  825. }
  826. })
  827. }).catch(() => {
  828. });
  829. },
  830. addOrders(name) { //下拉模板下单
  831. this.$confirm('将添加'+name+'为新的任务订单?', '提示', {
  832. confirmButtonText: '确定',
  833. cancelButtonText: '取消',
  834. type: 'warning'
  835. }).then(() => {
  836. let data = {
  837. template_name: name
  838. }
  839. ordersTemplate(data).then(res => {
  840. console.log(res)
  841. this.Getorder();
  842. this.$message({
  843. type: 'success',
  844. duration: 800,
  845. message: '下单成功!'
  846. });
  847. })
  848. }).catch(() => {
  849. this.$message({
  850. type: 'info',
  851. duration: 800,
  852. message: '已取消操作'
  853. });
  854. });
  855. },
  856. bindOrder(row) { //模板总览-绑定订单
  857. console.log(row)
  858. this.$confirm('将添加'+row.modeName+'为新的任务订单?', '提示', {
  859. confirmButtonText: '确定',
  860. cancelButtonText: '取消',
  861. type: 'warning'
  862. }).then(() => {
  863. let data = {
  864. template_name: row.modeName
  865. }
  866. ordersTemplate(data).then(res => {
  867. console.log(res)
  868. this.Getorder();
  869. this.$message({
  870. type: 'success',
  871. duration: 800,
  872. message: '下单成功!'
  873. });
  874. })
  875. }).catch(() => {
  876. this.$message({
  877. type: 'info',
  878. duration: 800,
  879. message: '已取消操作'
  880. });
  881. });
  882. },
  883. activeCar(index) { //切换车辆信息
  884. this.showCar.num = index + 1
  885. },
  886. map_handler(e) {
  887. },
  888. serchCarStatus(valuemap) {
  889. this.statusCarInfo = true
  890. },
  891. changestatus(item, index) { //车辆调度上线
  892. this.carsindex = index;
  893. if (item.dispatchstatues == '1') {
  894. let data = {
  895. command_type: 'CMD_VEHICLE_UPDATE_ONLINE',
  896. param1:0,
  897. vehicle_id: item.id
  898. };
  899. item.dispatchstatues = '0'
  900. this.setVehicleStatusTo(data)
  901. if (this.ifonline) {
  902. this.$message({
  903. type: 'success',
  904. duration: 800,
  905. message: '下线成功!'
  906. });
  907. } else {
  908. }
  909. } else {
  910. let data = {
  911. command_type: 'CMD_VEHICLE_UPDATE_ONLINE',
  912. param1:1,
  913. vehicle_id: item.id
  914. };
  915. item.dispatchstatues = '1'
  916. this.setVehicleStatusTo(data)
  917. if (this.ifonline) {
  918. this.$message({
  919. type: 'success',
  920. duration: 800,
  921. message: '上线成功!'
  922. });
  923. } else {
  924. }
  925. }
  926. },
  927. changeCarbtn(item, index) {
  928. if (item.btn_icon == '1') {
  929. let data = {
  930. state:"0"
  931. }
  932. if(index == 0){
  933. Changestat(data).then(res => {
  934. item.btn_icon = '0';
  935. sessionStorage.setItem("isopen1",false);
  936. this.isopen1 = false;
  937. this.$message({
  938. type: 'success',
  939. duration: 800,
  940. message: '关闭开包任务成功!'
  941. });
  942. }).catch(() =>{
  943. this.$message({
  944. type: 'error',
  945. duration: 800,
  946. message: '执行失败!'
  947. });
  948. })
  949. }
  950. else if(index == 1){
  951. Changestat2(data).then(res => {
  952. item.btn_icon = '0';
  953. this.isopen2 = false;
  954. sessionStorage.setItem("isopen2",false);
  955. this.$message({
  956. type: 'success',
  957. duration: 800,
  958. message: '关闭备用任务成功!'
  959. });
  960. }).catch(() =>{
  961. this.$message({
  962. type: 'error',
  963. duration: 800,
  964. message: '执行失败!'
  965. });
  966. })
  967. }
  968. else{
  969. keepCarOnline(data).then(res => {
  970. item.btn_icon = '0';
  971. this.isopen3 = false;
  972. sessionStorage.setItem("isopen3",false);
  973. this.$message({
  974. type: 'success',
  975. duration: 800,
  976. message: '关闭小车在线控制成功!'
  977. });
  978. }).catch(() =>{
  979. this.$message({
  980. type: 'error',
  981. duration: 800,
  982. message: '执行失败!'
  983. });
  984. })
  985. }
  986. } else {
  987. let data = {
  988. state:"1"
  989. }
  990. if(index == 0){
  991. Changestat(data).then(res => {
  992. item.btn_icon = '1'
  993. this.isopen1 = true;
  994. sessionStorage.setItem("isopen1",true);
  995. this.$message({
  996. type: 'success',
  997. duration: 800,
  998. message: '执行开包任务成功!'
  999. });
  1000. }).catch(() =>{
  1001. this.$message({
  1002. type: 'error',
  1003. duration: 800,
  1004. message: '执行失败!'
  1005. });
  1006. })
  1007. }
  1008. else if(index == 1){
  1009. Changestat2(data).then(res => {
  1010. item.btn_icon = '1'
  1011. this.isopen2 = true;
  1012. sessionStorage.setItem("isopen2",true);
  1013. this.$message({
  1014. type: 'success',
  1015. duration: 800,
  1016. message: '执行备用任务成功!'
  1017. });
  1018. }).catch(() =>{
  1019. this.$message({
  1020. type: 'error',
  1021. duration: 800,
  1022. message: '执行失败!'
  1023. });
  1024. })
  1025. }
  1026. else if(index == 2){
  1027. keepCarOnline(data).then(res => {
  1028. item.btn_icon = '1'
  1029. this.isopen3 = true;
  1030. sessionStorage.setItem("isopen3",true);
  1031. this.$message({
  1032. type: 'success',
  1033. duration: 800,
  1034. message: '执行小车在线控制成功!'
  1035. });
  1036. }).catch(() =>{
  1037. this.$message({
  1038. type: 'error',
  1039. duration: 800,
  1040. message: '执行失败!'
  1041. });
  1042. })
  1043. }
  1044. }
  1045. },
  1046. goPage(item) { //路由跳转
  1047. this.$router.push(item.path);
  1048. },
  1049. closeDialog() {
  1050. this.dialogVisible = false;
  1051. },
  1052. showModels() {
  1053. this.dialogVisible = true;
  1054. },
  1055. getVehicle() {
  1056. let json = {
  1057. page:this.pageSizes,
  1058. pagie:99
  1059. }
  1060. //获取全部车辆
  1061. getVehicles(json)
  1062. .then(res => {
  1063. // console.log(res, '车辆信息')
  1064. let vehiclesData = JSON.parse(JSON.stringify(res.vehicles));
  1065. this.vehiclesDatas = vehiclesData;
  1066. this.carsinfordata = [];
  1067. for (let index in vehiclesData) {
  1068. let item = {
  1069. id:vehiclesData[index].id,
  1070. title: vehiclesData[index].nickname,
  1071. elect: vehiclesData[index].battery + "%",
  1072. }
  1073. let coordinateoptions = {
  1074. value: '',
  1075. label: ''
  1076. }
  1077. if(vehiclesData[index].is_online == 0){
  1078. item['dispatchstatues'] = 0;
  1079. }
  1080. else{
  1081. item['dispatchstatues'] = 1;
  1082. }
  1083. if (vehiclesData[index].sys_state == "UNKNOWN") {
  1084. item["statues"] = "离线";
  1085. coordinateoptions['value'] = index + 1;
  1086. coordinateoptions['label'] = vehiclesData[index].nickname
  1087. this.coordinateoptions.push(coordinateoptions)
  1088. console.log(this.coordinateoptions)
  1089. } else if (vehiclesData[index].sys_state == "UNAVAILABLE") {
  1090. item["statues"] = "不可执行";
  1091. } else if (vehiclesData[index].sys_state == "IDLE") {
  1092. item["statues"] = "空闲中";
  1093. } else if (vehiclesData[index].sys_state == "EXECUTING") {
  1094. item["statues"] = "执行中";
  1095. } else if (vehiclesData[index].sys_state == "ERROR") {
  1096. item["statues"] = "状态出错";
  1097. } else if (vehiclesData[index].sys_state == "CHARGING") {
  1098. item["statues"] = "充电中";
  1099. } else {
  1100. item["statues"] = "避障中";
  1101. }
  1102. this.carsinfordata.push(item);
  1103. }
  1104. })
  1105. },
  1106. gettempalteMode() {
  1107. GetTemplateslist().then(res => {
  1108. // alert(JSON.stringify(res))
  1109. this.tempalteMode = res.templates
  1110. })
  1111. },
  1112. //获取全部订单
  1113. Getorder() {
  1114. let json = {
  1115. page:this.pageSize,
  1116. filter_by_state:this.filter_by_state
  1117. }
  1118. Getorders(json)
  1119. .then(res => {
  1120. let orderData = JSON.parse(JSON.stringify(res.orders));
  1121. this.tableData = [];
  1122. this.pageCount = res.total;
  1123. for (let index in orderData) {
  1124. let item = {
  1125. "template_name": orderData[index].template_id,
  1126. "Id": orderData[index].id,
  1127. "Status": orderData[index].order_state,
  1128. "ChildStatus": '1',
  1129. "ModelName": orderData[index].template_id,
  1130. "StartEnd": orderData[index].start_station_name + "/" + orderData[index].end_station_name,
  1131. "Type": orderData[index].order_type,
  1132. "Time": orderData[index].create_time,
  1133. "Progress": (Number(orderData[index].total_distance)-Number(orderData[index].distance))/Number(orderData[index].total_distance)*100 + "%",
  1134. "Cars": orderData[index].execute_vehicle_id,
  1135. "OptionUser": orderData[index].user_id,
  1136. "order_state":orderData[index].order_state,
  1137. "create_time":orderData[index].create_time
  1138. }
  1139. if(orderData[index].total_distance==0){
  1140. item.Progress = 0;
  1141. }
  1142. if (orderData[index].order_state == "QUEUEING") {
  1143. item.Status = "正在排队";
  1144. } else if (orderData[index].order_state == "CANCELLED") {
  1145. item.Status = "订单被取消";
  1146. } else if (orderData[index].order_state == "EXECUTING") {
  1147. item.Status = "正在执行";
  1148. this.singleVehicle.orderName = orderData[index].battery
  1149. this.getVehicleById(orderData[index].execute_vehicle_id);
  1150. } else if (orderData[index].order_state == "FAILED") {
  1151. item.Status = "订单未能成功执行完";
  1152. } else if (orderData[index].order_state == "DELETED") {
  1153. item.Status = "订单被删除";
  1154. } else if (orderData[index].order_state == "SUCCESS") {
  1155. item.Status = "订单被成功执行完";
  1156. } else if (orderData[index].order_state == "HELD") {
  1157. item.Status = "在执行中手动暂停任务";
  1158. } else if (orderData[index].order_state == "REJECTED") {
  1159. item.Status = "暂停执行";
  1160. } else if (orderData[index].order_state == "HANG") {
  1161. item.Status = "因为错误导致暂停执行 ";
  1162. } else if (orderData[index].order_state == "QUEUED") {
  1163. item.Status = "正在排队 ";
  1164. } else {
  1165. item.Status = "未知 ";
  1166. }
  1167. if (orderData[index].order_type == "NORMAL") {
  1168. item.Type = "工作任务";
  1169. } else if (orderData[index].order_type == "CHARGE") {
  1170. item.Type = "调度任务 ";
  1171. } else {
  1172. item.Type = "其他任务";
  1173. }
  1174. for (let key1 in this.usersData) {
  1175. if (this.usersData[key1].id == orderData[index].user_id) {
  1176. item.OptionUser = this.usersData[key1].username;
  1177. }
  1178. }
  1179. for (let key in this.vehiclesDatas) {
  1180. if (this.vehiclesDatas[key].id == orderData[index].execute_vehicle_id) {
  1181. item.Cars = this.vehiclesDatas[key].nickname;
  1182. }
  1183. }
  1184. for (let te in this.tempalteMode) {
  1185. if (this.tempalteMode[te].id == orderData[index].template_id) {
  1186. item.ModelName = this.tempalteMode[te].template_name;
  1187. item.template_name = this.tempalteMode[te].template_name
  1188. }
  1189. }
  1190. let num = orderData[index].executing_index;
  1191. let missions = orderData[index].mission;
  1192. let result_strs=""
  1193. if(missions[num]&&missions[num].result_str){
  1194. result_strs = missions[num].result_str;
  1195. }
  1196. result_strs=result_strs.substr(0,result_strs.length-1);
  1197. item.ChildStatus = result_strs;
  1198. this.tableData.push(item);
  1199. }
  1200. })
  1201. },
  1202. //获取全部用户
  1203. GetUser() {
  1204. GetUsers()
  1205. .then(res => {
  1206. this.usersData = JSON.parse(JSON.stringify(res.UsersManagement));
  1207. })
  1208. },
  1209. //获取全部订单模板
  1210. GetTemplate() {
  1211. // GetTemplates()
  1212. // .then(res => {
  1213. // console.log(res.templates);
  1214. // this.templateDatas = JSON.parse(JSON.stringify(res.templates));
  1215. // })
  1216. },
  1217. getVehicleById(id) {
  1218. getVehicleByIds()
  1219. .then(res => {
  1220. this.singleVehicle = JSON.parse(JSON.stringify(res));
  1221. })
  1222. }
  1223. },
  1224. async created() {
  1225. if(sessionStorage.getItem("isopen1")){
  1226. this.isopen1 = sessionStorage.getItem("isopen1");
  1227. if(this.isopen1==true){
  1228. this.carbtn[0].btn_icon=1
  1229. }
  1230. else{
  1231. this.carbtn[0].btn_icon=0
  1232. }
  1233. }
  1234. if(sessionStorage.getItem("isopen2")){
  1235. this.isopen2 = sessionStorage.getItem("isopen2");
  1236. if(this.isopen2==true){
  1237. this.carbtn[1].btn_icon=1
  1238. }
  1239. else{
  1240. this.carbtn[1].btn_icon=0
  1241. }
  1242. }
  1243. this.GetUser();
  1244. this.getVehicle();
  1245. this.GetTemplate();
  1246. this.gettempalteMode()
  1247. this.Getorder();
  1248. }
  1249. }
  1250. </script>
  1251. <style lang="less" scoped>
  1252. .right_mapMax {
  1253. position: fixed;
  1254. z-index: 99;
  1255. width: 98%;
  1256. height: 100%;
  1257. background-color: #00122D;
  1258. left: 20px;
  1259. top:0;
  1260. .right_mapMax_Top {
  1261. height: 5%;
  1262. width: 100%;
  1263. background-color: #00122D;
  1264. .exitRe {
  1265. float: right;
  1266. }
  1267. }
  1268. .right_mapMax_Bottom {
  1269. width: 100%;
  1270. height: 95%;
  1271. }
  1272. }
  1273. .IconStart {
  1274. display: inline-block;
  1275. width: 35px;
  1276. height: 20px;
  1277. background: url(../../assets/img/icon/开启@2x.png) no-repeat;
  1278. background-size: 100% 100%;
  1279. // position: relative;
  1280. // top: 5px;
  1281. }
  1282. .IconClose {
  1283. display: inline-block;
  1284. width: 48px;
  1285. height: 24px;
  1286. background: url(../../assets/img/icon/关闭@2x.png) no-repeat;
  1287. background-size: 100% 100%;
  1288. position: relative;
  1289. top: 5px;
  1290. }
  1291. .el-menu-item:hover {
  1292. background: linear-gradient(201deg, #0194E4 0%, #002497 100%) !important;
  1293. }
  1294. .progress_item {
  1295. background: rgba(1, 148, 228, 0.19);
  1296. display: inline-block;
  1297. height: 100%;
  1298. border-radius: 1px;
  1299. position: relative;
  1300. top: 0;
  1301. left: 0;
  1302. }
  1303. .progress_span {
  1304. position: absolute;
  1305. padding-left: 10px;
  1306. line-height: 19px;
  1307. color: #fff;
  1308. top: 0px;
  1309. left: 0px;
  1310. z-index: 10;
  1311. }
  1312. .progress_body {
  1313. border-radius: 1px;
  1314. background: rgba(1, 148, 228, 0.19);
  1315. height: 19px;
  1316. position: relative;
  1317. }
  1318. .cars_item_active {
  1319. background: #00122d;
  1320. box-shadow: inset 0px 1px 38px 0px rgba(0, 162, 253, 0.4);
  1321. border-radius: 2px 2px 0px 0px;
  1322. border: 2px solid #0194e4 !important;
  1323. }
  1324. .dispatch_body {
  1325. margin-top: 10px;
  1326. }
  1327. .elect_body {
  1328. font-weight: 400;
  1329. color: #ffffff;
  1330. }
  1331. .cars_item_status {
  1332. padding-bottom: 6px;
  1333. margin-bottom: 6px;
  1334. border-bottom: 1px solid rgba(1, 148, 228, 0.25);
  1335. }
  1336. .status_tips_body {
  1337. display: inline-block;
  1338. // width: 48px;
  1339. height: 18px;
  1340. background: rgba(249, 185, 14, 0.2);
  1341. border-radius: 0px 100px 100px 0px;
  1342. // opacity: 0.13;
  1343. .status_tips_text {
  1344. display: flex;
  1345. align-items: center;
  1346. padding:0 5px;
  1347. font-size: 12px;
  1348. font-weight: 500;
  1349. line-height: 18px;
  1350. color: #ffdf89;
  1351. }
  1352. }
  1353. .infor_progeress_body {
  1354. display: inline-block;
  1355. width: 31px;
  1356. height: 6px;
  1357. border-radius: 6px;
  1358. position: relative;
  1359. background: rgba(27, 27, 27, 0.37);
  1360. .infor_progeress {
  1361. position: absolute;
  1362. top: 0px;
  1363. left: 0px;
  1364. display: inline-block;
  1365. height: 6px;
  1366. border-radius: 6px;
  1367. background: rgba(255, 223, 137, 1);
  1368. }
  1369. }
  1370. .infor_statues {
  1371. display: inline-block;
  1372. width: 6px;
  1373. border-radius: 6px;
  1374. background: #ffdf89;
  1375. height: 6px;
  1376. }
  1377. .mask_right_infor {
  1378. width: 100%;
  1379. margin-top: 10px;
  1380. flex: 1;
  1381. display: flex;
  1382. flex-direction: column;
  1383. justify-content: center;
  1384. background: #1f5eb7;
  1385. .infor_title {
  1386. width: 100%;
  1387. height: 43px;
  1388. font-weight: 500;
  1389. color: #ffffff;
  1390. line-height: 43px;
  1391. text-align: center;
  1392. }
  1393. .infor_item {
  1394. flex: 1;
  1395. display: flex;
  1396. justify-items: center;
  1397. align-items: center;
  1398. padding: 0px 10px;
  1399. .infor_item_title {
  1400. width: 80px;
  1401. font-weight: 400;
  1402. color: rgba(255, 255, 255, 0.41);
  1403. }
  1404. .infor_item_body {
  1405. flex: 1;
  1406. text-align: right;
  1407. font-weight: 400;
  1408. color: #ffffff;
  1409. }
  1410. }
  1411. }
  1412. .mask_icon_img {
  1413. margin-left: 10px;
  1414. }
  1415. .mask_right_bottom {
  1416. height: 30px;
  1417. width: 100%;
  1418. display: flex;
  1419. margin-top: 10px;
  1420. justify-content: flex-end;
  1421. align-items: center;
  1422. }
  1423. .mask_left {
  1424. flex: 3;
  1425. }
  1426. .mask_right {
  1427. flex: 1;
  1428. display: flex;
  1429. flex-direction: column;
  1430. }
  1431. .right_uppermap_mask {
  1432. width: calc(100% - 20px);
  1433. position: absolute;
  1434. padding: 10px;
  1435. top: 0px;
  1436. left: 0px;
  1437. display: flex;
  1438. flex-direction: row;
  1439. pointer-events: none;
  1440. height: calc(100% - 20px);
  1441. background: rgba(0, 1, 7, 0);
  1442. }
  1443. .right_map {
  1444. // background-color: #FFFFFF;
  1445. width: 100%;
  1446. position: relative;
  1447. margin-top: 10px;
  1448. flex: 1;
  1449. min-height: 347px;
  1450. }
  1451. .panel {
  1452. -webkit-box-sizing: border-box;
  1453. box-sizing: border-box;
  1454. border: 2px solid;
  1455. border-image: url("../../assets/img/border_two_upper.png") 142 38 128 134 !important;
  1456. border-width: 4.125rem 1.583rem 3.875rem 5.5rem;
  1457. position: relative;
  1458. margin-bottom: 0.833rem;
  1459. }
  1460. .inner {
  1461. position: absolute;
  1462. top: -2.125rem;
  1463. right: -1.583rem;
  1464. bottom: -0.875rem;
  1465. left: -5.5rem;
  1466. padding: 2rem 0.59rem 1rem 0.5rem;
  1467. }
  1468. .body {
  1469. width: 100%;
  1470. height: 100%;
  1471. display: flex;
  1472. flex-direction: row;
  1473. .left_body {
  1474. width: 216px;
  1475. height: 100%;
  1476. }
  1477. .right_body {
  1478. margin-left: 15px;
  1479. flex: 1;
  1480. display: flex;
  1481. flex-direction: column;
  1482. width: 80%;
  1483. .right_upper {
  1484. flex: 2;
  1485. display: flex;
  1486. flex-direction: row;
  1487. .right_upper_left {
  1488. width: 40%;
  1489. display: flex;
  1490. flex-direction: column;
  1491. .alarm_statistics{
  1492. width: 100%;
  1493. height: 300px;
  1494. }
  1495. .right_upper_title {
  1496. height: 35px;
  1497. margin-top: 8px;
  1498. display: flex;
  1499. flex-direction: row;
  1500. .right_uppertitle_left {
  1501. flex: 1;
  1502. }
  1503. .right_uppertitle_right {
  1504. flex: 1;
  1505. text-align: right;
  1506. .all_pul{
  1507. width: 40px;
  1508. height: 40px;
  1509. background: url('../../assets/img/ic_fullscreen_map@2x.png') no-repeat;
  1510. background-size: 100% 100%;
  1511. cursor: pointer;
  1512. float: right;
  1513. margin-left: 24px;
  1514. }
  1515. }
  1516. }
  1517. // background: sienna;
  1518. }
  1519. .right_upper_right {
  1520. flex: 1;
  1521. margin-left: 50px;
  1522. display: flex;
  1523. flex-direction: column;
  1524. .givealarm_child{
  1525. width: 100%;
  1526. height: 30px;
  1527. display: flex;
  1528. align-items: center;
  1529. >p{
  1530. font-size: 14px;
  1531. font-family: Microsoft YaHei;
  1532. font-weight: 400;
  1533. color: #F27A7A;
  1534. margin-left: 27px;
  1535. // margin-top: 0;
  1536. }
  1537. >span{
  1538. font-size: 14px;
  1539. font-family: Microsoft YaHei;
  1540. font-weight: 400;
  1541. color: #F27A7A;
  1542. margin-left: 45px;
  1543. }
  1544. >.top{
  1545. width: 100%;
  1546. height: 15px;
  1547. display: flex;
  1548. align-items: center;
  1549. position: relative;
  1550. >.logcomplete{
  1551. width: 14px;
  1552. height: 14px;
  1553. // background: url('../../../../assets/givealarm/ic_clear_hint_alarm.png') no-repeat;
  1554. background-size: 100%;
  1555. border-radius: 50%;
  1556. margin-right: 12px;
  1557. }
  1558. >.logwarning{
  1559. width: 14px;
  1560. height: 14px;
  1561. // background: url('../../../../assets/givealarm/ic_warning_hint_alarm.png') no-repeat;
  1562. background-size: 100%;
  1563. border-radius: 50%;
  1564. margin-right: 12px;
  1565. }
  1566. >.logalarm{
  1567. width: 14px;
  1568. height: 14px;
  1569. // background: url('../../../../assets/givealarm/ic_hint_alarm.png') no-repeat;
  1570. background-size: 100%;
  1571. border-radius: 50%;
  1572. margin-right: 12px;
  1573. }
  1574. >.content{
  1575. width: 80%;
  1576. white-space: nowrap;
  1577. text-overflow: ellipsis;
  1578. overflow: hidden;
  1579. word-break: break-all;
  1580. font-size: 14px;
  1581. font-family: Microsoft YaHei;
  1582. font-weight: 400;
  1583. color: #303133;
  1584. line-height: 22px;
  1585. }
  1586. >.start{
  1587. font-size: 14px;
  1588. font-family: Microsoft YaHei;
  1589. font-weight: bold;
  1590. color: #5BC267;
  1591. line-height: 22px;
  1592. position: absolute;
  1593. right: 0;
  1594. }
  1595. >.starter{
  1596. font-size: 14px;
  1597. font-family: Microsoft YaHei;
  1598. font-weight: bold;
  1599. color: #EE6666;
  1600. line-height: 22px;
  1601. }
  1602. }
  1603. }
  1604. .right_upper_top{
  1605. width: 100%;
  1606. height: 295px;
  1607. display: flex;
  1608. justify-content: space-between;
  1609. .right_upper_top_left{
  1610. width: 65%;
  1611. height: 100%;
  1612. }
  1613. .right_upper_top_right{
  1614. width: 30%;
  1615. height: 100%;
  1616. }
  1617. }
  1618. .cars_infor_body {
  1619. margin-top: 10px;
  1620. width: 100%;
  1621. height: 80%;
  1622. flex: 1;
  1623. display: flex;
  1624. flex-direction: row;
  1625. justify-content: space-between;
  1626. flex-wrap: wrap;
  1627. align-content: space-between;
  1628. .el-scrollbar{
  1629. .el-scrollbar__wrap{
  1630. overflow-x: hidden;
  1631. ul{
  1632. width: 100%;
  1633. height: 42px;
  1634. background: #092754;
  1635. display: flex;
  1636. align-items: center;
  1637. margin-bottom: 16px;
  1638. >li{
  1639. width: 23%;
  1640. height: 100%;
  1641. display: flex;
  1642. align-items: center;
  1643. justify-content: flex-start;
  1644. font-size: 14px;
  1645. font-family: Microsoft YaHei;
  1646. font-weight: 400;
  1647. color: #FFFFFF;
  1648. >i{
  1649. margin-left: 16px;
  1650. }
  1651. }
  1652. }
  1653. }
  1654. }
  1655. // align-self: flex-end;
  1656. // align-items: flex-end;
  1657. // background: chartreuse;
  1658. .cars_item:hover {
  1659. background: #00122d;
  1660. box-shadow: inset 0px 1px 38px 0px rgba(0, 162, 253, 0.4);
  1661. border-radius: 2px 2px 0px 0px;
  1662. border: 2px solid #0194e4 !important;
  1663. }
  1664. .cars_item {
  1665. width: 23%;
  1666. height: 46%;
  1667. cursor: pointer;
  1668. display: flex;
  1669. flex-direction: column;
  1670. background: rgba(9, 39, 84, 1);
  1671. border: 2px solid rgba(255, 255, 255, 0);
  1672. font-size: 13px;
  1673. .cars_item_body {
  1674. padding: 10px 5px;
  1675. .cars_item_title {
  1676. color: rgba(255, 255, 255, 1);
  1677. font-weight: 500;
  1678. }
  1679. }
  1680. }
  1681. }
  1682. // background: yellow;
  1683. }
  1684. }
  1685. .right_lower {
  1686. width: 100%;
  1687. margin-top: 10px;
  1688. flex: 1;
  1689. position: relative;
  1690. .filter_by_state{
  1691. // position: absolute;
  1692. // right: 40px;
  1693. // top: -55px;
  1694. float: right;
  1695. margin-bottom: 5px;
  1696. }
  1697. }
  1698. }
  1699. }
  1700. </style>
  1701. <style scoped>
  1702. #addUserDialog .el-dialog {
  1703. background: none;
  1704. }
  1705. /deep/.filter_by_state_select .el-input__inner{
  1706. box-shadow: 0px -1px -38px 0px rgba(0, 162, 253, 0.4);
  1707. border-radius: 2px !important;
  1708. font-weight: 400 !important;
  1709. width: 100%;
  1710. color: #0194E4 !important;
  1711. border: 1px solid #0194E4 !important;
  1712. background: rgba(0, 162, 253, 0) !important;
  1713. height: 30px;
  1714. line-height: 30px;
  1715. }
  1716. /deep/.filter_by_state_select .el-input__icon{
  1717. line-height: 30px;
  1718. }
  1719. #addUserDialog .el-dialog .el-dialog__header {
  1720. padding: 55px 60px 10px;
  1721. color: #2DAFF5;
  1722. position: absolute;
  1723. width: 100%;
  1724. }
  1725. /deep/#addUserDialog .el-dialog .el-dialog__header .el-dialog__title {
  1726. color: #2DAFF5;
  1727. position: absolute;
  1728. top: -15px;
  1729. z-index: 99;
  1730. }
  1731. /deep/#addUserDialog .el-dialog .el-dialog__header .el-dialog__headerbtn {
  1732. position: absolute;
  1733. top: 5rem !important;
  1734. right: 11.5rem;
  1735. top: 10px !important;
  1736. z-index: 99;
  1737. }
  1738. /deep/#addUserDialog .el-dialog .el-dialog__body {
  1739. background: url(../../assets/img/dialogBack.png) no-repeat center center;
  1740. background-size: 100% 100%;
  1741. padding: 130px 70px 110px 90px;
  1742. color: #2DAFF5;
  1743. height: 37rem;
  1744. box-sizing: border-box;
  1745. width: 800px !important;
  1746. height: 830px;
  1747. position: absolute;
  1748. top: -100px;
  1749. margin: 0 auto;
  1750. }
  1751. #addUserDialog .el-dialog .el-dialog__body .el-form-item__label {
  1752. color: #red;
  1753. }
  1754. #addUserDialog .el-dialog .el-dialog__body input {
  1755. color: #ddd;
  1756. height: 32px !important;
  1757. line-height: 32px !important;
  1758. -webkit-box-shadow: inset 0px 1px 38px 0px rgba(0, 162, 253, 0.4) !important;
  1759. box-shadow: inset 0px 1px 38px 0px rgba(0, 162, 253, 0.4) !important;
  1760. border: 1px solid rgba(1, 148, 228, 0.34) !important;
  1761. background: none !important;
  1762. border-radius: 0 !important;
  1763. }
  1764. #addUserDialog .el-dialog .el-dialog__footer {
  1765. padding: 10px 50px;
  1766. position: absolute;
  1767. right: 0;
  1768. bottom: 50px;
  1769. }
  1770. .el-pagination{
  1771. text-align: center;
  1772. }
  1773. </style>