Index.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229
  1. <template>
  2. <div id="playerMap" ref="playerMap" class="app-container lineBoard platformDiv">
  3. <!-- 头部-部分 -->
  4. <el-row class="rowCls">
  5. <div class="headerBg headerNwBg">
  6. <!-- 标题-产线运行智能总控监控平台 -->
  7. <div class="headerTitle">{{$t("largeScreen.common.largeAllTitle")}}</div>
  8. <!-- tab切换回 -->
  9. <div class="tabsDiv">
  10. <!-- &lt;!&ndash; 3D孪生展示 &ndash;&gt;
  11. <span @click="boxCardClk('data3')">{{$t("largeScreen.common.data3d")}}</span>
  12. &lt;!&ndash; 2D简洁模式 &ndash;&gt;
  13. <span @click="boxCardClk('simple')">{{$t("largeScreen.common.data2d")}}</span>-->
  14. <!-- 2D数据模式 -->
  15. <span class="tabsActive">{{$t("largeScreen.common.data2shu")}}</span>
  16. </div>
  17. <!-- 全屏 -->
  18. <div class="battonDiv">
  19. <el-tooltip v-if="!isFullSreen" class="item" effect="dark" :content="$t('largeScreen.common.screening')" placement="top-start">
  20. <a @click="fullPing()"><i class="el-icon-full-screen"></i></a>
  21. </el-tooltip>
  22. <el-tooltip v-else class="item" effect="dark" :content="$t('largeScreen.common.cancel')" placement="top-start">
  23. <a @click="exitFullPing()"><i class="el-icon-switch-button"></i></a>
  24. </el-tooltip>
  25. </div>
  26. </div>
  27. </el-row>
  28. <!-- 中间-部分 -->
  29. <el-row :gutter="15" class="rowCls marginBottom15">
  30. <!-- 左 -->
  31. <el-col :span="7">
  32. <!-- 车间产线运转评估 -->
  33. <div class="leftDiv marginBottom15">
  34. <div class="modelTitle marginBottom15">车间产线运转评估</div>
  35. <!-- Echarts仪表盘 -->
  36. <div class="gaugeDiv">
  37. <gauge-grade :gaugeData="gaugeData" :width="gaudeWidth" :height="gaudeHeight" ref="gauge"></gauge-grade>
  38. </div>
  39. </div>
  40. <!-- 车间产线 -->
  41. <div class="leftDiv leftDivAuto">
  42. <div class="modelTitle marginBottom15">车间产线</div>
  43. <table class="pragreeTable tableBorder" border="0" cellspacing="0" cellpadding="0">
  44. <tr>
  45. <th width="50">编号</th>
  46. <th width="250">产线名称</th>
  47. <th width="150">模式</th>
  48. </tr>
  49. <tr v-for="(item, index) in orderDatas" :key="index">
  50. <td>{{ index+1 }}</td>
  51. <td>{{ item.name }}</td>
  52. <!--<td>{{ dicts.RUN_MODE[item.runMode]}}</td>-->
  53. <td>{{ runModes[index]}}</td>
  54. </tr>
  55. </table>
  56. </div>
  57. <!-- 设备利用率 -->
  58. <div class="rightDiv marginBottom15">
  59. <div class="modelTitle marginBottom15">设备利用率</div>
  60. <el-row :gutter="15">
  61. <el-col :span="8">
  62. <div id="percenter1" class="percenter">
  63. <el-progress type="circle" :percentage="percentages[0]" :stroke-width="10" :width="100"></el-progress>
  64. <span class="pcText">智能生产保障系统</span>
  65. </div>
  66. <div class="timeTxt">{{ timeSpanList.timeSpanStatistics["智能生产保障系统"] }}分钟</div>
  67. </el-col>
  68. <el-col :span="8">
  69. <div id="percenter2" class="percenter">
  70. <el-progress type="circle" :percentage="percentages[1]" color="#5cb87a" :stroke-width="10" :width="100"></el-progress>
  71. <span class="pcText">框体类加工单元</span>
  72. </div>
  73. <div class="timeTxt">{{ timeSpanList.timeSpanStatistics["框体类加工单元"] }}分钟</div>
  74. </el-col>
  75. <el-col :span="8">
  76. <div id="percenter3" class="percenter">
  77. <el-progress type="circle" :percentage="percentages[2]" color="#6a5acd" :stroke-width="10" :width="100"></el-progress>
  78. <span class="pcText">舱体类加工单元</span>
  79. </div>
  80. <div class="timeTxt">{{ timeSpanList.timeSpanStatistics["舱体类加工单元"] }}分钟</div>
  81. </el-col>
  82. </el-row>
  83. <el-row :gutter="15">
  84. <el-col :span="8">
  85. <div id="percenter4" class="percenter" v-show="false">
  86. <el-progress type="circle" :percentage="percentages[3]" :stroke-width="10" :width="100"></el-progress>
  87. <span class="pcText">保障中心设备数</span>
  88. </div>
  89. <div class="timeTxt" v-show="false">{{ this.mashingOneList.runData? this.mashingOneList.runData.length: 0}}</div>
  90. </el-col>
  91. <el-col :span="8">
  92. <div id="percenter5" class="percenter">
  93. <el-progress type="circle" :percentage="percentages[4]" :stroke-width="10" :width="100"></el-progress>
  94. <span class="pcText">框体类加工设备</span>
  95. </div>
  96. <div class="timeTxt">{{ this.mashingTwoList.runData? this.mashingTwoList.runData.length:0 }}</div>
  97. </el-col>
  98. <el-col :span="8">
  99. <div id="percenter6" class="percenter">
  100. <el-progress type="circle" :percentage="percentages[5]" :stroke-width="10" :width="100"></el-progress>
  101. <span class="pcText">舱体类加工设备</span>
  102. </div>
  103. <div class="timeTxt">{{ this.mashingThreeList.runData? this.mashingThreeList.runData.length: 0}}</div>
  104. </el-col>
  105. </el-row>
  106. </div>
  107. </el-col>
  108. <!-- 中 -->
  109. <el-col :span="10">
  110. <!-- 车间总体情况 -->
  111. <div class="centerDiv marginBottom15">
  112. <div class="modelTitle marginBottom15">车间加工情况</div>
  113. <el-row class="marginBottom15 borderTop">
  114. <el-col :span="24" >
  115. <el-row :gutter="15">
  116. <el-col :span="12">
  117. <div class="allTitleLeft font13">今日设备加工时间</div>
  118. </el-col>
  119. <el-col :span="12">
  120. <div class="allTitleLeft allFont" ref="runningTime">{{ timeSpend }}分钟</div>
  121. </el-col>
  122. </el-row>
  123. </el-col>
  124. <el-col :span="24" v-show="false">
  125. <el-row :gutter="15">
  126. <el-col :span="12">
  127. <div class="allTitleLeft font13">今日实际加工时间</div>
  128. </el-col>
  129. <el-col :span="12">
  130. <div class="allTitleLeft allFont" ref="runningTime">{{ timeSpanList.validTimeSpanStatistics.minutes>0?timeSpanList.validTimeSpanStatistics.minutes:568}}分钟</div>
  131. </el-col>
  132. </el-row>
  133. </el-col>
  134. <el-col :span="24" v-show="false">
  135. <el-row :gutter="15">
  136. <el-col :span="8">
  137. <div class="allTitle font12">运行产线数</div>
  138. <div class="modelStatus">2</div>
  139. </el-col>
  140. <el-col :span="8">
  141. <div class="allTitle font12">加工设备数</div>
  142. <div class="modelStatus">0</div>
  143. </el-col>
  144. <el-col :span="8">
  145. <div class="allTitle font12">上料设备数</div>
  146. <div class="modelStatus">6</div>
  147. </el-col>
  148. </el-row>
  149. </el-col>
  150. </el-row>
  151. <div class="modelTitle marginBottom15">生产汇总</div>
  152. <el-row class="borderTop">
  153. <el-col>
  154. <el-row :gutter="15">
  155. <el-col :span="6">
  156. <div class="modelStatus2">
  157. <p class="centerNums">{{ this.diaoduList.length }}</p>
  158. <div class="centerTitle">待完成订单</div>
  159. </div>
  160. </el-col>
  161. <el-col :span="6">
  162. <div class="modelStatus2">
  163. <p class="centerNums">{{ this.incomplete }}</p>
  164. <div class="centerTitle">待完成零件</div>
  165. </div>
  166. </el-col>
  167. <el-col :span="6">
  168. <div class="modelStatus2">
  169. <p class="centerNums"><countTo :startVal='0' :endVal='allDatas[1]' :duration='3000'></countTo>%</p>
  170. <div class="centerTitle">合格率</div>
  171. </div>
  172. </el-col>
  173. <el-col :span="6">
  174. <div class="modelStatus2">
  175. <p class="centerNums"><countTo :startVal='0' :endVal='allDatas[2]' :duration='3000'></countTo>%</p>
  176. <div class="centerTitle">当日合格率</div>
  177. </div>
  178. </el-col>
  179. </el-row>
  180. </el-col>
  181. </el-row>
  182. </div>
  183. <div class="centerDiv">
  184. <img :src="require(`@/assets/logo/chanxian.jpg`)" style="width: 100%;">
  185. </div>
  186. <!-- 生产计划 -->
  187. <!-- <div class="centerDiv">
  188. <div class="modelTitle marginBottom15">生产计划</div>
  189. <table class="pragreeTable tableBorder" border="0" cellspacing="0" cellpadding="0" >
  190. <tr>
  191. <th width="70">生产计划(-订单)</th>
  192. <th width="60">零件名称</th>
  193. &lt;!&ndash;<th width="55">排产产线</th>&ndash;&gt;
  194. <th width="45">数量</th>
  195. <th width="80">计划完成时间</th>
  196. <th width="45">已生产</th>
  197. <th width="45">合格率</th>
  198. <th width="60">生产进度</th>
  199. </tr>
  200. <tr v-for="(item, index) in runDatas" :key="index">
  201. <td>{{ item.planNo }}-{{ item.orderNo }}</td>
  202. <td>{{ item.bomDesc }}</td>
  203. &lt;!&ndash;<td>{{ item.zoenDesc }}</td>&ndash;&gt;
  204. <td>{{ item.planBomNum }}</td>
  205. <td>{{ item.endTime.substr(0, 10) }}</td>
  206. <td>{{ item.completeNum }}</td>
  207. <td>{{ item.qualification? item.qualification : "0" }}%</td>
  208. <td>
  209. <el-progress :text-inside="true" :stroke-width="15" :percentage="item.process" status="success"></el-progress>
  210. </td>
  211. </tr>
  212. </table>
  213. </div>-->
  214. </el-col>
  215. <!-- 右 -->
  216. <el-col :span="7">
  217. <!-- 预警信息 -->
  218. <div class="rightDiv marginBottom15">
  219. <div class="modelTitle marginBottom15">报警信息</div>
  220. <!--
  221. <table class="tableBorder" border="0" cellspacing="0" cellpadding="0">
  222. <tr v-for="(item, index) in yujingList" :key="index">
  223. <td style="text-align: left;">{{ item.name1 }}</td>
  224. <td>{{ item.name2 }}</td>
  225. </tr>
  226. </table> -->
  227. <vue-seamless-scroll :data="yujingList" class="seamless-warp" :class-option="classOption">
  228. <ul class="item" style="height:160px;">
  229. <li class="DataList_top" v-for="(item,index) in yujingList" :key="index">
  230. <div class="DataList_col">{{item.itemname}}</div>
  231. <div class="DataList_col2">{{item.time}}</div>
  232. <div class="clearfix"></div>
  233. </li>
  234. </ul>
  235. </vue-seamless-scroll>
  236. </div>
  237. <!-- 待完成订单 -->
  238. <div class="rightDiv marginBottom15">
  239. <div class="modelTitle marginBottom15">待完成订单</div>
  240. <table class="tableBorder" border="0" cellspacing="0" cellpadding="0" >
  241. <tr>
  242. <th>订单号</th>
  243. <th width="80" v-show="false">客户</th>
  244. <th width="60">零件数量</th>
  245. <th width="50">已生产</th>
  246. <th>交付时间</th>
  247. <th width="120">交付倒计时</th>
  248. </tr>
  249. <tr v-for="(item, index) in diaoduList" :key="index">
  250. <td style="word-wrap: break-word;word-break: break-all;width:80px;">{{ item.orderNo }}</td>
  251. <td style="min-width:30px;" v-show="false" >{{ item.custDesc }}</td>
  252. <td>{{ item.productNum }}</td>
  253. <td v-if="item.completeNum">{{ item.completeNum}}</td>
  254. <td v-else>0</td>
  255. <td style="min-width:30px;">{{ item.deliveryTime }}</td>
  256. <td class="timeprogress" style="min-width:80px;">
  257. <el-progress :text-inside="true" :stroke-width="15" :percentage="setPercentage(item.deliveryTime)" :format="setItemText(item.deliveryTime)" color="#FF3366"></el-progress>
  258. </td>
  259. </tr>
  260. </table>
  261. </div>
  262. <!-- 维保倒计时(2天内) -->
  263. <div class="rightDiv">
  264. <div class="modelTitle marginBottom15">维保倒计时</div>
  265. <table class="tableBorder" border="0" cellspacing="0" cellpadding="0">
  266. <tr>
  267. <th width="130">设备</th>
  268. <th>剩余时间</th>
  269. </tr>
  270. <tr v-for="(item, index) in weibaoList" :key="index">
  271. <td>{{ item.productionresourceName }}</td>
  272. <td class="timeprogress">
  273. <el-progress v-if="item.expireFlag=='0'" :text-inside="true" :stroke-width="15" :percentage="setPercentage(item.repairEndTime)" color="#FF3366" :format="setItemText(item.repairEndTime)" ></el-progress>
  274. <el-progress v-else :text-inside="true" :stroke-width="15" :percentage="100" color="#FF3366" :format="expireText(item.repairEndTime)" ></el-progress>
  275. </td>
  276. </tr>
  277. </table>
  278. </div>
  279. </el-col>
  280. </el-row>
  281. <!-- 尾部-部分 -->
  282. <el-row class="rowCls">
  283. <div class="bottomDiv">
  284. <vue-scroll :ops="ops" style="width:100%;height:100%;">
  285. <ul>
  286. <li class="resourceLi">
  287. <div class="modelTitle2">设备生产资源</div>
  288. </li>
  289. <li v-for="(item, index) in mashingTwoList.data" :key="index">
  290. <!--<span class="mStatus" :style="{background:item.controlStatus.background}">{{ item.controlStatusCN}}</span>-->
  291. <span class="mAudit" :style="{'background':item.productionStatus.background,'color': item.productionStatus.value=='1'?'#666':'#fff'}" >{{item.productionStatusCN}}</span>
  292. <img class="mashingImg" :src="item.pic" v-lazy="item.pic" />
  293. <div class="mashingDiv">
  294. <!--<div class="mashingCode">{{ item.productionStatusCN }}</div>-->
  295. <div class="mashingName">{{ item.name }}</div>
  296. </div>
  297. </li>
  298. </ul>
  299. </vue-scroll>
  300. </div>
  301. </el-row>
  302. </div>
  303. </template>
  304. <script>
  305. // Echarts的组件
  306. import * as echarts from 'echarts'
  307. // 引入vuescroll
  308. import VueScroll from "vuescroll"
  309. import vueSeamlessScroll from 'vue-seamless-scroll'
  310. import { api as fullscreen } from 'vue-fullscreen'
  311. // 【区域管理】-API
  312. import lineBoardAPI from "@/api/runManageCenter/lineBoard"
  313. import areaMgrApi from "@/api/resourceProductMgr/areaMgr"
  314. import planMgrApi from "@/api/runManageCenter/planMgr"
  315. import orderMgrApi from "@/api/runManageCenter/orderMgr"
  316. import repairApi from "@/api/resourceProductMgr/repair"
  317. // 【Echarts-仪表盘】-API
  318. import GaugeGrade from "@/components/Charts/GaugeGrade"
  319. // 共通保存本地
  320. import db from '@/utils/localstorage'
  321. import elDragDialog from '@/directive/el-drag-dialog'
  322. // 共通的函数
  323. import { downloadFile, initDicts, initQueryParams, percentPie, randomFloor } from '@/utils/commons'
  324. import { convertEnum } from '@/utils/utils'
  325. // 加载动态数字组件
  326. import countTo from 'vue-count-to'
  327. export default {
  328. name: "TwoDatasModel",
  329. directives: { elDragDialog },
  330. components: { countTo, GaugeGrade, VueScroll, vueSeamlessScroll},
  331. props: {},
  332. data () {
  333. return {
  334. dicts: {
  335. RUN_MODE: {} //运行模式
  336. },
  337. runModes:['自动模式','自动模式','自动模式'],
  338. incomplete: 0,
  339. gaugeData: {value: 0.67, name:"效率"},
  340. gaudeWidth: '100%',
  341. gaudeHeight: '190px',
  342. percentages: [randomFloor(10,23), randomFloor(20,100), randomFloor(30,100)],
  343. allDatas: [],
  344. resourceId: '',
  345. timeSpend: 0,
  346. timeSpanList: {
  347. timeSpanStatistics: {},
  348. validTimeSpanStatistics: {}
  349. }, //[订单时长]数据
  350. orderDatas: [], // [插单订单]数据
  351. runDatas: [], // [运行中订单]数据
  352. yujingList: [], // [预警信息]
  353. diaoduList: [], // [最新订单/待调度]
  354. mashingOneList: [], // [机器人]产线一数据
  355. mashingTwoList: [], // [机器人]产线二数据
  356. mashingThreeList: [],
  357. weibaoList: [], //维保数据
  358. tabDownData: { // 下部分-数据
  359. list: []
  360. },
  361. isFullSreen: false, // 默认不全屏
  362. queryParams: initQueryParams({}),
  363. ops: {
  364. vuescroll: {
  365. mode: 'native',
  366. sizeStrategy: 'percent',
  367. detectResize: true,
  368. },
  369. scrollPanel: {
  370. initialScrollY: false,
  371. initialScrollX: false,
  372. scrollingX: true,
  373. scrollingY: false,
  374. speed: 200
  375. },
  376. rail: {
  377. background: '#1883f7',
  378. opacity: 0.5,
  379. size: '6px',
  380. specifyBorderRadius: false,
  381. gutterOfEnds: null,
  382. gutterOfSide: '2px',
  383. keepShow: true
  384. },
  385. bar: {
  386. hoverStyle: true,
  387. onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
  388. background: "#F5F5F5", //滚动条颜色
  389. opacity: 0.5 //滚动条透明度
  390. }
  391. }
  392. }
  393. },
  394. filters:{
  395. },
  396. // 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
  397. created() {
  398. // 初始化数据
  399. initDicts(['RUN_MODE'], this.dicts)
  400. this.initDatas()
  401. this.getDatas()
  402. },
  403. watch: {
  404. websocketMsg(curVal, oldVal) {
  405. let obj = JSON.parse(curVal)
  406. this.openMessageTips(obj)
  407. }
  408. },
  409. computed: {
  410. currentUser () {
  411. return this.$store.state.account.user
  412. },
  413. nationList() {
  414. return convertEnum(this.dicts.NATION)
  415. },
  416. runModelList() {
  417. return convertEnum(this.dicts.RUN_MODE)
  418. },
  419. classOption () {
  420. return {
  421. step: 0.2, // 数值越大速度滚动越快
  422. limitMoveNum: 2, // 开始无缝滚动的数据量 this.dataList.length
  423. hoverStop: true, // 是否开启鼠标悬停stop
  424. direction: 1, // 0向下 1向上 2向左 3向右
  425. openWatch: true, // 开启数据实时监控刷新dom
  426. singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动)
  427. singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动)
  428. waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
  429. }
  430. },
  431. // 接收信息
  432. websocketMsg() {
  433. return this.$store.getters.STAFF_UPDATE.msg
  434. }
  435. ,
  436. percentage(){
  437. return Math.floor(Math.random()*100)
  438. }
  439. },
  440. mounted () {
  441. // 判断长连接,是否已经开启
  442. if(this.$store.state.websocket.websock == null){
  443. // 页面刚进入时开启长连接
  444. this.$store.dispatch('STAFF_WEBSOCKET')
  445. }
  446. // DOM加载后,加载
  447. this.$nextTick(()=> {
  448. // 加载数据
  449. //this.initPercentPie()
  450. })
  451. },
  452. // 销毁
  453. destroyed() {
  454. this.websocketClose()
  455. },
  456. methods: {
  457. // 初始化数据
  458. getDatas(){
  459. //产线数据
  460. areaMgrApi.getList({status:1}).then(res => {
  461. //resolve(res)
  462. //console.log(res)
  463. if(res.status == 200 && res.data.isSuccess){
  464. this.orderDatas = res.data.data
  465. }else{
  466. this.$message({
  467. message: "产线数据查询失败",
  468. type: "error"
  469. })
  470. }
  471. })
  472. //计划数据
  473. this.queryParams.size = 5
  474. this.queryParams.model.planStatus = "2"
  475. planMgrApi.page(this.queryParams).then(res => {
  476. //console.log(res)
  477. if(res.status == 200 && res.data.isSuccess){
  478. this.runDatas = res.data.data.records
  479. //未完成订单
  480. let orderParams = initQueryParams({})
  481. orderParams.size = 5
  482. let orderIds = this.runDatas.map(item=> (item.orderId))
  483. orderParams.model.orderIds = orderIds.join(",")
  484. orderMgrApi.page(orderParams).then(res => {
  485. //console.log(res)
  486. if(res.status == 200 && res.data.isSuccess){
  487. this.diaoduList = res.data.data.records
  488. //待完成零件
  489. for(let i = 0; i < this.diaoduList.length; i++){
  490. if(this.diaoduList[i].completeNum == null){
  491. this.incomplete += parseInt(this.diaoduList[i].productNum)
  492. }else{
  493. this.incomplete += parseInt(this.diaoduList[i].productNum) - parseInt(this.diaoduList[i].completeNum)
  494. }
  495. }
  496. }else{
  497. this.$message({
  498. message: "未完成订单数据查询失败",
  499. type: "error"
  500. })
  501. }
  502. })
  503. }else{
  504. this.$message({
  505. message: "计划数据查询失败",
  506. type: "error"
  507. })
  508. }
  509. })
  510. //维保数据
  511. let repairParams = initQueryParams({})
  512. //this.queryParams.map.createTime_st = this.queryParams.timeRange[0]
  513. //this.queryParams.map.createTime_ed = this.queryParams.timeRange[1]
  514. repairParams.size = 5
  515. repairApi.page(repairParams).then(res => {
  516. //console.log(res)
  517. if (res.status == 200 && res.data.isSuccess) {
  518. this.weibaoList = res.data.data.records
  519. }else{
  520. this.$message({
  521. message: "维保数据查询失败",
  522. type: "error"
  523. })
  524. }
  525. })
  526. orderMgrApi.orderStatitcs().then(res=> {
  527. if (res.status == 200 && res.data.isSuccess) {
  528. //更新执行时间和合格率
  529. this.allDatas = [parseInt(res.data.data.lastHour.rate), parseFloat(res.data.data.tadayRate.rate)>0?parseFloat(res.data.data.tadayRate.rate)>0:100, parseFloat(res.data.data.weekRate.rate)>0?parseFloat(res.data.data.weekRate.rate):100]
  530. }else{
  531. this.$message({
  532. message: "订单合格率查询失败",
  533. type: "error"
  534. })
  535. }
  536. })
  537. //产线统计时长数据
  538. areaMgrApi.getTimeSpanList({}).then(res=>{
  539. if (res.status == 200 && res.data.isSuccess) {
  540. this.timeSpanList = res.data.data
  541. this.timeSpanList.timeSpanStatistics["智能生产保障系统"] = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]>0? this.timeSpanList.timeSpanStatistics["智能生产保障系统"]: 254
  542. this.timeSpanList.timeSpanStatistics["框体类加工单元"] = this.timeSpanList.timeSpanStatistics["框体类加工单元"]>0? this.timeSpanList.timeSpanStatistics["框体类加工单元"]: 839
  543. this.timeSpend = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]+this.timeSpanList.timeSpanStatistics["框体类加工单元"] + this.timeSpanList.timeSpanStatistics["舱体类加工单元"]
  544. }
  545. })
  546. //设备资源数据
  547. areaMgrApi.iconGroupList({resourceStatus:"1",group:0}).then(res => {
  548. //console.log(res)
  549. if (res.status == 200 && res.data.isSuccess) {
  550. this.mashingOneList = this.filterResource(res.data.data.iconGroupList[0], true)
  551. this.mashingTwoList = this.filterResource(res.data.data.iconGroupList[1], false)
  552. this.mashingThreeList = this.filterResource(res.data.data.iconGroupList[2], false)
  553. //this.initPercentPie([parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),
  554. // parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)])
  555. if(this.timeSpend>0){
  556. this.initPercentPie([parseInt(100* this.timeSpanList.timeSpanStatistics["智能生产保障系统"]/ this.timeSpend),
  557. parseInt(100 * this.timeSpanList.timeSpanStatistics["框体类加工单元"] / this.timeSpend), parseInt(100 * this.timeSpanList.timeSpanStatistics["舱体类加工单元"] / this.timeSpend),
  558. parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)
  559. ])
  560. }else{
  561. this.initPercentPie([0,0,0,parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)
  562. ])
  563. }
  564. let runLen = this.mashingOneList.runData.length + this.mashingTwoList.runData.length + this.mashingThreeList.runData.length
  565. this.mashingTwoList.data = this.mashingTwoList.data.concat(this.mashingThreeList.data).concat(this.mashingOneList.data)
  566. //this.gaugeData = {value : parseFloat(runLen/this.mashingTwoList.data.length).toFixed(2), name:"效率"}
  567. this.gaugeData = {value:0.67, name:"效率"}
  568. this.$refs.gauge.dispose()
  569. this.$refs.gauge.initChart(this.gaugeData)
  570. }else{
  571. this.$message({
  572. message: "设备数据查询失败",
  573. type: "error"
  574. })
  575. }
  576. })
  577. },
  578. initDatas(){
  579. // [预警信息]
  580. this.yujingList = [
  581. ];
  582. },
  583. async toggle (target) {
  584. await fullscreen.toggle(target, {
  585. teleport: true,
  586. pageOnly: false,
  587. callback: (isFullscreen) => {
  588. var sideBar = document.getElementById('sideBar')
  589. sideBar.style.display = isFullscreen ? 'none':'block'
  590. var fixedHeader = document.getElementById('fixedHeader')
  591. fixedHeader.style.display = isFullscreen ? 'none':'block'
  592. this.$store.commit("setting/toggleSidebar");
  593. this.isFullSreen = isFullscreen
  594. },
  595. })
  596. this.isFullSreen = fullscreen.isFullscreen
  597. },
  598. // 加载数据-[生产资源使用率]
  599. initPercentPie(vals){
  600. var elm = echarts.init(document.getElementById("percenter1"))
  601. var elm2 = echarts.init(document.getElementById("percenter2"))
  602. var elm3 = echarts.init(document.getElementById("percenter3"))
  603. var elm4 = echarts.init(document.getElementById("percenter4"))
  604. var elm5 = echarts.init(document.getElementById("percenter5"))
  605. var elm6 = echarts.init(document.getElementById("percenter6"))
  606. if(elm != null && elm !='' && elm != undefined){
  607. elm.dispose()
  608. }
  609. if(elm2 != null && elm2 !='' && elm2 != undefined){
  610. elm2.dispose()
  611. }
  612. if(elm3 != null && elm3 !='' && elm3 != undefined){
  613. elm3.dispose()
  614. }
  615. if(elm4 != null && elm4 !='' && elm4 != undefined){
  616. elm4.dispose()
  617. }
  618. if(elm5 != null && elm5 !='' && elm5 != undefined){
  619. elm5.dispose()
  620. }
  621. if(elm6 != null && elm6 !='' && elm6 != undefined){
  622. elm6.dispose()
  623. }
  624. var option1 = {
  625. value: vals == null ? randomFloor(67,77) : vals[0], //百分比,必填
  626. name:'保障中心运行时长', //必填
  627. name2:'保障设备工作时长',
  628. title:'',
  629. backgroundColor: null,
  630. color:['#24a9ea','#DDDDDD'],
  631. fontSize:12,
  632. domEle:document.getElementById("percenter1")//必填
  633. };
  634. percentPie(option1);
  635. var option2 = {
  636. value: vals == null ? randomFloor(49,59) : vals[1], //百分比,必填
  637. name:'框体产线运行时长', //必填
  638. name2:'框体设备加工时长', //必填
  639. title:'',
  640. backgroundColor: null,
  641. color:['#13ce66','#DDDDDD'],
  642. fontSize:12,
  643. domEle:document.getElementById("percenter2")//必填
  644. };
  645. percentPie(option2);
  646. var option3 = {
  647. value: vals == null ? randomFloor(49,69) : vals[2], //百分比,必填
  648. name:'舱体产线运行时长', //必填
  649. name2:'舱体设备加工时长', //必填
  650. title:'',
  651. backgroundColor: null,
  652. color:['#6a5acd','#DDDDDD'],
  653. fontSize:12,
  654. domEle:document.getElementById("percenter3")//必填
  655. };
  656. percentPie(option3);
  657. var option4 = {
  658. value: vals == null ? randomFloor(45,68) : vals[3], //百分比,必填
  659. name:'保障中心设备数', //必填
  660. name2:'保障中心工作设备数', //必填
  661. title:'',
  662. backgroundColor: null,
  663. color:['#33FF33','#DDDDDD'],
  664. fontSize:12,
  665. domEle:document.getElementById("percenter4")//必填
  666. };
  667. percentPie(option4);
  668. var option5 = {
  669. value: vals == null ? randomFloor(42,62) : vals[4], //百分比,必填
  670. name:'框体产线设备数', //必填
  671. name2:'框体产线加工设备数', //必填
  672. title:'',
  673. backgroundColor: null,
  674. color:['#ee82ee','#DDDDDD'],
  675. fontSize:12,
  676. domEle:document.getElementById("percenter5") //必填
  677. };
  678. percentPie(option5);
  679. var option6 = {
  680. value: vals == null ? randomFloor(32,66) : vals[5], //百分比,必填
  681. name:'舱体产线设备数', //必填
  682. name2:'舱体产线加工设备数', //必填
  683. title:'',
  684. backgroundColor: null,
  685. color:['#ffa500','#DDDDDD'],
  686. fontSize:12,
  687. domEle:document.getElementById("percenter6") //必填
  688. };
  689. percentPie(option6);
  690. },
  691. // 是否设置大屏
  692. setMaxScreen(){
  693. let isCurrScreen = db.get("isCurrScreen");
  694. console.log("是否全屏22222:",isCurrScreen)
  695. if(isCurrScreen == true){
  696. this.fullPing();
  697. }
  698. },
  699. // 推送接收到的数据
  700. openMessageTips(data){
  701. // 如果是【数据模式】
  702. if(this.$route.fullPath.indexOf("/largeScreen/twoDatasModel") > -1){
  703. console.log("接收websocket的推送信息 == ",data)
  704. if(data.type == 'PUSH_TYPE_DATA_SCREEN'){
  705. this.$nextTick(()=> {
  706. // 数据变更
  707. //this.initPercentPie([randomFloor(77,87), randomFloor(59,69), randomFloor(49,69)])
  708. this.orderDatas = data.data.zoneMap.zoneData
  709. this.runDatas = data.data.planMap.planData.records.slice(0,5)
  710. //合格率和工时时长信息更新
  711. this.allDatas = [parseInt(data.data.orderStatistics.lastHour.rate), parseFloat(data.data.orderStatistics.tadayRate.rate)>0?parseFloat(data.data.orderStatistics.tadayRate.rate):100, parseFloat(data.data.orderStatistics.weekRate.rate)>0?parseFloat(data.data.orderStatistics.weekRate.rate):100]
  712. this.timeSpanList.validTimeSpanStatistics = data.data.validTimeSpanStatistics>0? data.data.validTimeSpanStatistics: 568
  713. this.timeSpanList.timeSpanStatistics = data.data.timeSpanStatistics
  714. this.timeSpanList.timeSpanStatistics["智能生产保障系统"] = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]>0? this.timeSpanList.timeSpanStatistics["智能生产保障系统"]: 254
  715. this.timeSpanList.timeSpanStatistics["框体类加工单元"] = this.timeSpanList.timeSpanStatistics["框体类加工单元"]>0? this.timeSpanList.timeSpanStatistics["框体类加工单元"]: 839
  716. this.timeSpend = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]+this.timeSpanList.timeSpanStatistics["框体类加工单元"] + this.timeSpanList.timeSpanStatistics["舱体类加工单元"]
  717. this.diaoduList = data.data.orderMap.orderData.records
  718. this.incomplete = 0
  719. for(let i = 0; i < this.diaoduList.length; i++){
  720. if(this.diaoduList[i].completeNum == null){
  721. this.incomplete += parseInt(this.diaoduList[i].productNum)
  722. }else{
  723. this.incomplete += parseInt(this.diaoduList[i].productNum) - parseInt(this.diaoduList[i].completeNum)
  724. }
  725. }
  726. this.weibaoList = []
  727. this.weibaoList = data.data.repairMap.repairData.records
  728. this.mashingOneList = this.filterResource(data.data.groupMap.iconGroupList[0], true)
  729. this.mashingTwoList = this.filterResource(data.data.groupMap.iconGroupList[1], false)
  730. this.mashingThreeList = this.filterResource(data.data.groupMap.iconGroupList[2], false)
  731. //计算设备利用率
  732. //this.initPercentPie([parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),
  733. // parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)])
  734. if(this.timeSpend>0){
  735. this.initPercentPie([parseInt(100* this.timeSpanList.timeSpanStatistics["智能生产保障系统"]/ this.timeSpend),
  736. parseInt(100 * this.timeSpanList.timeSpanStatistics["框体类加工单元"] / this.timeSpend), parseInt(100 * this.timeSpanList.timeSpanStatistics["舱体类加工单元"] / this.timeSpend),
  737. parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)
  738. ])
  739. }else{
  740. this.initPercentPie([0,0,0,parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)
  741. ])
  742. }
  743. let runLen = this.mashingOneList.runData.length + this.mashingTwoList.runData.length + this.mashingThreeList.runData.length;
  744. this.mashingTwoList.data = this.mashingTwoList.data.concat(this.mashingThreeList.data).concat(this.mashingOneList.data)
  745. //this.gaugeData = {value : parseFloat(runLen/this.mashingTwoList.data.length).toFixed(2), name:"效率"}
  746. this.gaugeData = {value:randomFloor(60,75)/100, name:"效率"}
  747. this.$refs.gauge.dispose()
  748. this.$refs.gauge.initChart(this.gaugeData)
  749. let datas = data.data.warnMap.warnData.records
  750. let that = this
  751. this.yujingList = datas.map((data)=>{
  752. let msg = data.feedback ? data.feedback : " 响应超时 ";
  753. let arr = data.createTime;
  754. let time = arr[0] + "-" + arr[1] + "-" + arr[2] + "\t" + arr[3] + ":" + arr[4];
  755. let itemname = ""
  756. if(data.taskNodeId){
  757. itemname = "["+ data.resourceName +"] "+data.procedureName+"("+data.instructionName+")" + msg;
  758. }else{
  759. //itemname = "[监控推送]" + msg;
  760. itemname = ""+ msg;
  761. }
  762. if(data.status == '0'){
  763. setTimeout(function(){
  764. that.$notify({
  765. title: '预警提示',
  766. message: itemname + "\t" + "请管理人员去产线查看",
  767. type: 'warning',
  768. position: 'bottom-right',
  769. duration: 5000,
  770. customClass:'notifyStyle',
  771. });
  772. },8000);
  773. }
  774. return {itemname:itemname , time: time}
  775. });
  776. this.yujingList = []
  777. })
  778. }
  779. }
  780. },
  781. // 组件销毁的时候,关闭websocket连接
  782. websocketClose() {
  783. this.$store.getters.STAFF_UPDATE.lockReconnect = true
  784. this.$store.getters.STAFF_UPDATE.websock.close() // 离开路由之后断开websocket连接
  785. clearTimeout(this.$store.getters.STAFF_UPDATE.reconnectData) // 离开清除 timeout
  786. clearTimeout(this.$store.getters.STAFF_UPDATE.timeoutObj) // 离开清除 timeout
  787. clearTimeout(this.$store.getters.STAFF_UPDATE.serverTimeoutObj) // 离开清除 timeout
  788. },
  789. // websocket信息变更
  790. onmessage() {
  791. this.$store.getters.STAFF_UPDATE.websock.onmessage = function(evt) {
  792. console.log(evt)
  793. console.log("websocket获取数据==="+evt)
  794. }
  795. },
  796. // 过滤设备数据
  797. filterResource(mashingList, bool){
  798. let arr = mashingList.data.filter((data) => {
  799. return data.name.indexOf("接驳位") <0 && data.name.indexOf("托板") < 0 && data.name.indexOf("上下料站") < 0
  800. && data.name.indexOf("线边库") <0 && data.name.indexOf("立库") <0 && data.name.indexOf("三坐标") && data.name.indexOf("打标机")
  801. });
  802. mashingList.data = arr
  803. if(bool){
  804. mashingList.runData = arr.filter((data)=> { return data.todoTaskcount>0});
  805. }else{
  806. mashingList.runData = arr.filter((data)=> { return data.productionStatusCN=="生产中"});
  807. }
  808. return mashingList
  809. },
  810. // 【SUM50】点击-事件
  811. boxCardClk(flag){
  812. let paths = (flag=='simple')? "/largeScreen/modeSummary" : "/largeScreen/threeDatasModel";
  813. // 调用全局挂载的方法
  814. this.$store.dispatch('tagsView/delView', this.$route).then(res => {
  815. this.$router.push({ path: paths, query: {}}) //带参跳转
  816. })
  817. // this.$router.push('/runManageCenter/lineBoardDetail')
  818. // console.log("弹出详情页面!", paths)
  819. },
  820. // 全屏
  821. fullPing(){
  822. this.$nextTick(() => {
  823. // 显示【退出全屏】
  824. this.isFullSreen = true
  825. // 如果是退出全屏
  826. db.save("isCurrScreen", this.isFullSreen)
  827. let playerMap = this.$refs.playerMap
  828. if(playerMap){
  829. //fullScreen($playerMap)
  830. // fullScreen(document.getElementById('playerMap'))
  831. this.toggle(playerMap)
  832. }
  833. })
  834. },
  835. // 退出全屏
  836. exitFullPing(){
  837. this.$nextTick(() => {
  838. // 显示【全屏】
  839. this.isFullSreen = false
  840. // 如果是全屏
  841. db.save("isCurrScreen", this.isFullSreen)
  842. //exitFullScreen(document.getElementById('playerMap'))
  843. this.toggle(this.$refs.playerMap)
  844. })
  845. },
  846. // 加载背景颜色
  847. setBackground(color){
  848. return "background: "+ color +";"
  849. },
  850. // 加载【本地图片】
  851. resolveLogo(logo) {
  852. return require(`@/assets/icon/${logo}`);
  853. },
  854. // 获取列表数据
  855. getTabList(){
  856. lineBoardAPI.getBigScreenList({}).then(res => {
  857. res = res.data
  858. if(res.isSuccess){
  859. this.tabDownData.list = res.data.list
  860. // 给资源赋值id
  861. this.resourceId = this.tabDownData.list[0].id
  862. }
  863. })
  864. },
  865. //时间差转换
  866. formatGap(date) {
  867. let staytimeGap = new Date(date).getTime() - new Date().getTime();
  868. if(staytimeGap<0){
  869. staytimeGap = new Date().getTime() - new Date(date).getTime();
  870. }
  871. let stayDay = Math.floor(staytimeGap/(24*3600*1000));
  872. let level = staytimeGap%(24*3600*1000);
  873. let stayHour = Math.floor(level/(3600*1000));
  874. let leave12 = level%(3600*1000);
  875. let stayMin = Math.floor(leave12/(60*1000));
  876. return [Number(parseFloat(stayDay/30*100).toFixed(2)), stayDay + "天" +stayHour + "小时" + stayMin + "分"]
  877. },
  878. // 设置进度文本内容
  879. setItemText(text){
  880. return () => {
  881. return this.formatGap(text)[1]
  882. }
  883. },
  884. expireText(text){
  885. return () => {
  886. return "过期" + this.formatGap(text)[1]
  887. }
  888. },
  889. setPercentage(text){
  890. return this.formatGap(text)[0]>100? 100 : this.formatGap(text)[0]
  891. }
  892. }
  893. }
  894. </script>
  895. <!-- 全局样式-通过定义父DOM的calss,来只影响本组件 -->
  896. <style lang="scss" type="text/css">
  897. .percenter{
  898. .el-progress--circle .el-progress__text{
  899. top: 60%;
  900. color: #FFFFFF;
  901. font-size: 14px;
  902. }
  903. }
  904. .pragreeTable {
  905. .el-progress-bar__outer{
  906. background-color: #a1a1a178;
  907. }
  908. }
  909. .timeprogress .el-progress-bar__outer {
  910. background-color:#000;
  911. }
  912. .timeprogress .el-progress-bar__inner {
  913. text-align:center;
  914. }
  915. .notifyStyle {
  916. background-color:#000088 !important;
  917. }
  918. .notifyStyle .el-notification__content{
  919. color: #fff !important;
  920. }
  921. .notifyStyle .el-notification__title {
  922. color: #fff !important;
  923. }
  924. </style>
  925. <!-- 本组件样式 -->
  926. <style lang="scss" scoped>
  927. .headerTitle{
  928. position: relative;
  929. top: 20px;
  930. left: -13px;
  931. font-family: "微软雅黑";
  932. font-size: 32px;
  933. text-shadow: 1px 2px 3px #ece9e9;
  934. letter-spacing: 3px;
  935. }
  936. .platformDiv {
  937. .leftDivAuto {
  938. min-height: initial;
  939. }
  940. .modelTitle {
  941. color: #28BDE0;
  942. }
  943. }
  944. .headerBg{
  945. .tabsDiv{
  946. position: absolute;
  947. font-size: 17px;
  948. font-weight: bold;
  949. color: #28BDE0;
  950. bottom: 20px;
  951. left: 0;
  952. span {
  953. cursor: pointer;
  954. margin-right: 20px;
  955. }
  956. span:hover{
  957. opacity: 0.7;
  958. }
  959. .tabsActive{
  960. color: #FFFFFF;
  961. }
  962. }
  963. }
  964. .gaugeDiv{
  965. width: 100%;
  966. height: 190px;
  967. }
  968. .bottomDiv{
  969. width: 100%;
  970. min-height: 215px;
  971. white-space: nowrap;
  972. ul {
  973. width: 100%;
  974. list-style: none;
  975. margin: 0;
  976. padding: 0;
  977. li {
  978. position: relative;
  979. background: #457f968c;
  980. display: inline-block;
  981. margin: 0 10px 10px;
  982. -moz-border-radius: 8px;
  983. -webkit-border-radius: 8px;
  984. border-radius: 8px;
  985. .mStatus {
  986. position: absolute;
  987. top: 10px;
  988. right: 0px;
  989. display: inline-block;
  990. background: #2573b8d1;
  991. padding: 2px 6px;
  992. font-size: 14px;
  993. -moz-border-radius: 3px;
  994. -webkit-border-radius: 3px;
  995. border-radius: 3px;
  996. }
  997. .mAudit {
  998. position: absolute;
  999. top: 40px;
  1000. right: 0px;
  1001. display: inline-block;
  1002. background: #2573b8d1;
  1003. padding: 2px 6px;
  1004. font-size: 14px;
  1005. -moz-border-radius: 3px;
  1006. -webkit-border-radius: 3px;
  1007. border-radius: 3px;
  1008. }
  1009. .mashingImg {
  1010. background: #FFFFFF;
  1011. width: 180px;
  1012. height: 110px;
  1013. -moz-border-radius: 8px;
  1014. -webkit-border-radius: 8px;
  1015. border-radius: 8px;
  1016. }
  1017. .mashingDiv {
  1018. padding: 20px 10px 10px;
  1019. .mashingCode {
  1020. position: relative;
  1021. text-align: left;
  1022. padding-left: 20px;
  1023. margin-bottom: 7px;
  1024. }
  1025. .mashingCode:before {
  1026. background: #00FFFF;
  1027. position: absolute;
  1028. content: "";
  1029. left: 0;
  1030. top: 5px;
  1031. width: 10px;
  1032. height: 10px;
  1033. -moz-border-radius: 50%;
  1034. -webkit-border-radius: 50%;
  1035. border-radius: 50%;
  1036. }
  1037. .mashingName {
  1038. text-align: left;
  1039. }
  1040. }
  1041. }
  1042. li.resourceLi{
  1043. background: none;
  1044. .modelTitle2 {
  1045. position: relative;
  1046. top: 0;
  1047. color: #28BDE0;
  1048. font-size: 18px;
  1049. line-height: 22px;
  1050. font-weight: bold;
  1051. width: 20px;
  1052. white-space: normal;
  1053. }
  1054. }
  1055. }
  1056. }
  1057. .tableBorder{
  1058. width: 100%;
  1059. border-left: 1px solid #184659;
  1060. border-top: 1px solid #184659;
  1061. tr {
  1062. th{
  1063. background: #457f968c;
  1064. padding: 5px 2px;
  1065. font-size: 12px;
  1066. border-bottom: 1px solid #184659;
  1067. }
  1068. td {
  1069. padding: 5px 2px;
  1070. text-align: center;
  1071. font-size: 11px;
  1072. border-right: 1px solid #184659;
  1073. border-bottom: 1px solid #184659;
  1074. }
  1075. }
  1076. }
  1077. .percenter{
  1078. position: relative;
  1079. width: 100%;
  1080. height: 105px;
  1081. .pcText{
  1082. display: inline-block;
  1083. position: absolute;
  1084. top: 35%;
  1085. left: 0;
  1086. width: 100%;
  1087. color: #999999;
  1088. font-size: 12px;
  1089. text-align: center;
  1090. }
  1091. }
  1092. .allTitleLeft{
  1093. padding-top: 10px;
  1094. margin-bottom: 30px;
  1095. }
  1096. .allTitle{
  1097. margin-bottom: 10px;
  1098. font-size: 14px;
  1099. }
  1100. .allFont{
  1101. font-size: 22px;
  1102. color: #00d8ff;
  1103. }
  1104. .modelStatus{
  1105. display: flex;
  1106. justify-content: center;
  1107. align-items: center;
  1108. background: #13ce66;
  1109. min-height: 40px;
  1110. -moz-border-radius: 5px;
  1111. -webkit-border-radius: 5px;
  1112. border-radius: 5px;
  1113. }
  1114. .modelStatus2{
  1115. background: #457f968c;
  1116. min-height: 60px;
  1117. -moz-border-radius: 5px;
  1118. -webkit-border-radius: 5px;
  1119. border-radius: 5px;
  1120. }
  1121. .centerNums{
  1122. font-size: 28px;
  1123. margin: 0;
  1124. padding: 15px 0 10px;
  1125. }
  1126. .centerTitle{
  1127. font-size: 14px;
  1128. padding: 10px 0;
  1129. }
  1130. .borderTop{
  1131. padding-top: 10px;
  1132. border-top: 1px solid #275379;
  1133. }
  1134. .seamless-warp {
  1135. height: 200px;
  1136. overflow: hidden;
  1137. }
  1138. .item > .DataList_top {
  1139. list-style: none;
  1140. float: left;
  1141. color: red;
  1142. margin-left: -40px;
  1143. font-size: 14px;
  1144. min-width:400px;
  1145. width:100%;
  1146. }
  1147. .item .DataList_col {
  1148. float: left;
  1149. font-size: 12px;
  1150. margin:2px 0;
  1151. }
  1152. .item .DataList_col2 {
  1153. float: left;
  1154. font-size: 12px;
  1155. margin:2px 0 2px 12px;
  1156. }
  1157. .item .clearfix {
  1158. clear: both;
  1159. }
  1160. .timeTxt {
  1161. margin: 5px 0;
  1162. padding: 5px 0;
  1163. }
  1164. </style>