Index.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232
  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="24">
  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">FMS2.0产线</span>
  79. </div>
  80. <div class="timeTxt">{{ timeSpanList.timeSpanStatistics["FMS2.0产线"] }}分钟</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.mashingTwoList = this.filterResource(res.data.data.iconGroupList[0], true)
  551. /*this.mashingOneList = 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["FMS2.0"] / 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. let runLen = this.mashingTwoList.runData.length
  566. //this.mashingTwoList.data = this.mashingTwoList.data.concat(this.mashingThreeList.data).concat(this.mashingOneList.data)
  567. //this.gaugeData = {value : parseFloat(runLen/this.mashingTwoList.data.length).toFixed(2), name:"效率"}
  568. this.gaugeData = {value:0.67, name:"效率"}
  569. this.$refs.gauge.dispose()
  570. this.$refs.gauge.initChart(this.gaugeData)
  571. }else{
  572. this.$message({
  573. message: "设备数据查询失败",
  574. type: "error"
  575. })
  576. }
  577. })
  578. },
  579. initDatas(){
  580. // [预警信息]
  581. this.yujingList = [
  582. ];
  583. },
  584. async toggle (target) {
  585. await fullscreen.toggle(target, {
  586. teleport: true,
  587. pageOnly: false,
  588. callback: (isFullscreen) => {
  589. var sideBar = document.getElementById('sideBar')
  590. sideBar.style.display = isFullscreen ? 'none':'block'
  591. var fixedHeader = document.getElementById('fixedHeader')
  592. fixedHeader.style.display = isFullscreen ? 'none':'block'
  593. this.$store.commit("setting/toggleSidebar");
  594. this.isFullSreen = isFullscreen
  595. },
  596. })
  597. this.isFullSreen = fullscreen.isFullscreen
  598. },
  599. // 加载数据-[生产资源使用率]
  600. initPercentPie(vals){
  601. var elm = echarts.init(document.getElementById("percenter1"))
  602. var elm2 = echarts.init(document.getElementById("percenter2"))
  603. var elm3 = echarts.init(document.getElementById("percenter3"))
  604. var elm4 = echarts.init(document.getElementById("percenter4"))
  605. var elm5 = echarts.init(document.getElementById("percenter5"))
  606. var elm6 = echarts.init(document.getElementById("percenter6"))
  607. if(elm != null && elm !='' && elm != undefined){
  608. elm.dispose()
  609. }
  610. if(elm2 != null && elm2 !='' && elm2 != undefined){
  611. elm2.dispose()
  612. }
  613. if(elm3 != null && elm3 !='' && elm3 != undefined){
  614. elm3.dispose()
  615. }
  616. if(elm4 != null && elm4 !='' && elm4 != undefined){
  617. elm4.dispose()
  618. }
  619. if(elm5 != null && elm5 !='' && elm5 != undefined){
  620. elm5.dispose()
  621. }
  622. if(elm6 != null && elm6 !='' && elm6 != undefined){
  623. elm6.dispose()
  624. }
  625. var option1 = {
  626. value: vals == null ? randomFloor(67,77) : vals[0], //百分比,必填
  627. name:'保障中心运行时长', //必填
  628. name2:'保障设备工作时长',
  629. title:'',
  630. backgroundColor: null,
  631. color:['#24a9ea','#DDDDDD'],
  632. fontSize:12,
  633. domEle:document.getElementById("percenter1")//必填
  634. };
  635. percentPie(option1);
  636. var option2 = {
  637. value: vals == null ? randomFloor(49,59) : vals[1], //百分比,必填
  638. name:'框体产线运行时长', //必填
  639. name2:'框体设备加工时长', //必填
  640. title:'',
  641. backgroundColor: null,
  642. color:['#13ce66','#DDDDDD'],
  643. fontSize:12,
  644. domEle:document.getElementById("percenter2")//必填
  645. };
  646. percentPie(option2);
  647. var option3 = {
  648. value: vals == null ? randomFloor(49,69) : vals[2], //百分比,必填
  649. name:'舱体产线运行时长', //必填
  650. name2:'舱体设备加工时长', //必填
  651. title:'',
  652. backgroundColor: null,
  653. color:['#6a5acd','#DDDDDD'],
  654. fontSize:12,
  655. domEle:document.getElementById("percenter3")//必填
  656. };
  657. percentPie(option3);
  658. var option4 = {
  659. value: vals == null ? randomFloor(45,68) : vals[3], //百分比,必填
  660. name:'保障中心设备数', //必填
  661. name2:'保障中心工作设备数', //必填
  662. title:'',
  663. backgroundColor: null,
  664. color:['#33FF33','#DDDDDD'],
  665. fontSize:12,
  666. domEle:document.getElementById("percenter4")//必填
  667. };
  668. percentPie(option4);
  669. var option5 = {
  670. value: vals == null ? randomFloor(42,62) : vals[4], //百分比,必填
  671. name:'框体产线设备数', //必填
  672. name2:'框体产线加工设备数', //必填
  673. title:'',
  674. backgroundColor: null,
  675. color:['#ee82ee','#DDDDDD'],
  676. fontSize:12,
  677. domEle:document.getElementById("percenter5") //必填
  678. };
  679. percentPie(option5);
  680. var option6 = {
  681. value: vals == null ? randomFloor(32,66) : vals[5], //百分比,必填
  682. name:'舱体产线设备数', //必填
  683. name2:'舱体产线加工设备数', //必填
  684. title:'',
  685. backgroundColor: null,
  686. color:['#ffa500','#DDDDDD'],
  687. fontSize:12,
  688. domEle:document.getElementById("percenter6") //必填
  689. };
  690. percentPie(option6);
  691. },
  692. // 是否设置大屏
  693. setMaxScreen(){
  694. let isCurrScreen = db.get("isCurrScreen");
  695. console.log("是否全屏22222:",isCurrScreen)
  696. if(isCurrScreen == true){
  697. this.fullPing();
  698. }
  699. },
  700. // 推送接收到的数据
  701. openMessageTips(data){
  702. // 如果是【数据模式】
  703. if(this.$route.fullPath.indexOf("/largeScreen/twoDatasModel") > -1){
  704. console.log("接收websocket的推送信息 == ",data)
  705. if(data.type == 'PUSH_TYPE_DATA_SCREEN'){
  706. this.$nextTick(()=> {
  707. // 数据变更
  708. //this.initPercentPie([randomFloor(77,87), randomFloor(59,69), randomFloor(49,69)])
  709. this.orderDatas = data.data.zoneMap.zoneData
  710. this.runDatas = data.data.planMap.planData.records.slice(0,5)
  711. //合格率和工时时长信息更新
  712. 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]
  713. this.timeSpanList.validTimeSpanStatistics = data.data.validTimeSpanStatistics>0? data.data.validTimeSpanStatistics: 568
  714. this.timeSpanList.timeSpanStatistics = data.data.timeSpanStatistics
  715. this.timeSpanList.timeSpanStatistics["智能生产保障系统"] = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]>0? this.timeSpanList.timeSpanStatistics["智能生产保障系统"]: 254
  716. this.timeSpanList.timeSpanStatistics["框体类加工单元"] = this.timeSpanList.timeSpanStatistics["框体类加工单元"]>0? this.timeSpanList.timeSpanStatistics["框体类加工单元"]: 839
  717. this.timeSpend = this.timeSpanList.timeSpanStatistics["智能生产保障系统"]+this.timeSpanList.timeSpanStatistics["框体类加工单元"] + this.timeSpanList.timeSpanStatistics["舱体类加工单元"]
  718. this.diaoduList = data.data.orderMap.orderData.records
  719. this.incomplete = 0
  720. for(let i = 0; i < this.diaoduList.length; i++){
  721. if(this.diaoduList[i].completeNum == null){
  722. this.incomplete += parseInt(this.diaoduList[i].productNum)
  723. }else{
  724. this.incomplete += parseInt(this.diaoduList[i].productNum) - parseInt(this.diaoduList[i].completeNum)
  725. }
  726. }
  727. this.weibaoList = []
  728. this.weibaoList = data.data.repairMap.repairData.records
  729. this.mashingOneList = this.filterResource(data.data.groupMap.iconGroupList[0], true)
  730. this.mashingTwoList = this.filterResource(data.data.groupMap.iconGroupList[1], false)
  731. this.mashingThreeList = this.filterResource(data.data.groupMap.iconGroupList[2], false)
  732. //计算设备利用率
  733. //this.initPercentPie([parseInt(100 * this.mashingOneList.runData.length / this.mashingOneList.data.length),
  734. // parseInt(100 * this.mashingTwoList.runData.length / this.mashingTwoList.data.length), parseInt(100 * this.mashingThreeList.runData.length / this.mashingThreeList.data.length)])
  735. if(this.timeSpend>0){
  736. this.initPercentPie([parseInt(100* this.timeSpanList.timeSpanStatistics["智能生产保障系统"]/ this.timeSpend),
  737. parseInt(100 * this.timeSpanList.timeSpanStatistics["框体类加工单元"] / this.timeSpend), parseInt(100 * this.timeSpanList.timeSpanStatistics["舱体类加工单元"] / this.timeSpend),
  738. 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)
  739. ])
  740. }else{
  741. 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)
  742. ])
  743. }
  744. let runLen = this.mashingOneList.runData.length + this.mashingTwoList.runData.length + this.mashingThreeList.runData.length;
  745. this.mashingTwoList.data = this.mashingTwoList.data.concat(this.mashingThreeList.data).concat(this.mashingOneList.data)
  746. //this.gaugeData = {value : parseFloat(runLen/this.mashingTwoList.data.length).toFixed(2), name:"效率"}
  747. this.gaugeData = {value:randomFloor(60,75)/100, name:"效率"}
  748. this.$refs.gauge.dispose()
  749. this.$refs.gauge.initChart(this.gaugeData)
  750. let datas = data.data.warnMap.warnData.records
  751. let that = this
  752. this.yujingList = datas.map((data)=>{
  753. let msg = data.feedback ? data.feedback : " 响应超时 ";
  754. let arr = data.createTime;
  755. let time = arr[0] + "-" + arr[1] + "-" + arr[2] + "\t" + arr[3] + ":" + arr[4];
  756. let itemname = ""
  757. if(data.taskNodeId){
  758. itemname = "["+ data.resourceName +"] "+data.procedureName+"("+data.instructionName+")" + msg;
  759. }else{
  760. //itemname = "[监控推送]" + msg;
  761. itemname = ""+ msg;
  762. }
  763. if(data.status == '0'){
  764. setTimeout(function(){
  765. that.$notify({
  766. title: '预警提示',
  767. message: itemname + "\t" + "请管理人员去产线查看",
  768. type: 'warning',
  769. position: 'bottom-right',
  770. duration: 5000,
  771. customClass:'notifyStyle',
  772. });
  773. },8000);
  774. }
  775. return {itemname:itemname , time: time}
  776. });
  777. this.yujingList = []
  778. })
  779. }
  780. }
  781. },
  782. // 组件销毁的时候,关闭websocket连接
  783. websocketClose() {
  784. this.$store.getters.STAFF_UPDATE.lockReconnect = true
  785. this.$store.getters.STAFF_UPDATE.websock.close() // 离开路由之后断开websocket连接
  786. clearTimeout(this.$store.getters.STAFF_UPDATE.reconnectData) // 离开清除 timeout
  787. clearTimeout(this.$store.getters.STAFF_UPDATE.timeoutObj) // 离开清除 timeout
  788. clearTimeout(this.$store.getters.STAFF_UPDATE.serverTimeoutObj) // 离开清除 timeout
  789. },
  790. // websocket信息变更
  791. onmessage() {
  792. this.$store.getters.STAFF_UPDATE.websock.onmessage = function(evt) {
  793. console.log(evt)
  794. console.log("websocket获取数据==="+evt)
  795. }
  796. },
  797. // 过滤设备数据
  798. filterResource(mashingList, bool){
  799. let arr = mashingList.data.filter((data) => {
  800. return data.name.indexOf("接驳位") <0 && data.name.indexOf("托板") < 0 && data.name.indexOf("上下料站") < 0
  801. && data.name.indexOf("线边库") <0 && data.name.indexOf("立库") <0 && data.name.indexOf("三坐标") && data.name.indexOf("打标机") && data.name.indexOf("机器人") < 0
  802. });
  803. mashingList.data = arr
  804. console.log("mashingList.data:" + JSON.stringify(mashingList.data))
  805. if(bool){
  806. mashingList.runData = arr.filter((data)=> { return data.todoTaskcount>0});
  807. }else{
  808. mashingList.runData = arr.filter((data)=> { return data.productionStatusCN=="生产中"});
  809. }
  810. return mashingList
  811. },
  812. // 【SUM50】点击-事件
  813. boxCardClk(flag){
  814. let paths = (flag=='simple')? "/largeScreen/modeSummary" : "/largeScreen/threeDatasModel";
  815. // 调用全局挂载的方法
  816. this.$store.dispatch('tagsView/delView', this.$route).then(res => {
  817. this.$router.push({ path: paths, query: {}}) //带参跳转
  818. })
  819. // this.$router.push('/runManageCenter/lineBoardDetail')
  820. // console.log("弹出详情页面!", paths)
  821. },
  822. // 全屏
  823. fullPing(){
  824. this.$nextTick(() => {
  825. // 显示【退出全屏】
  826. this.isFullSreen = true
  827. // 如果是退出全屏
  828. db.save("isCurrScreen", this.isFullSreen)
  829. let playerMap = this.$refs.playerMap
  830. if(playerMap){
  831. //fullScreen($playerMap)
  832. // fullScreen(document.getElementById('playerMap'))
  833. this.toggle(playerMap)
  834. }
  835. })
  836. },
  837. // 退出全屏
  838. exitFullPing(){
  839. this.$nextTick(() => {
  840. // 显示【全屏】
  841. this.isFullSreen = false
  842. // 如果是全屏
  843. db.save("isCurrScreen", this.isFullSreen)
  844. //exitFullScreen(document.getElementById('playerMap'))
  845. this.toggle(this.$refs.playerMap)
  846. })
  847. },
  848. // 加载背景颜色
  849. setBackground(color){
  850. return "background: "+ color +";"
  851. },
  852. // 加载【本地图片】
  853. resolveLogo(logo) {
  854. return require(`@/assets/icon/${logo}`);
  855. },
  856. // 获取列表数据
  857. getTabList(){
  858. lineBoardAPI.getBigScreenList({}).then(res => {
  859. res = res.data
  860. if(res.isSuccess){
  861. this.tabDownData.list = res.data.list
  862. // 给资源赋值id
  863. this.resourceId = this.tabDownData.list[0].id
  864. }
  865. })
  866. },
  867. //时间差转换
  868. formatGap(date) {
  869. let staytimeGap = new Date(date).getTime() - new Date().getTime();
  870. if(staytimeGap<0){
  871. staytimeGap = new Date().getTime() - new Date(date).getTime();
  872. }
  873. let stayDay = Math.floor(staytimeGap/(24*3600*1000));
  874. let level = staytimeGap%(24*3600*1000);
  875. let stayHour = Math.floor(level/(3600*1000));
  876. let leave12 = level%(3600*1000);
  877. let stayMin = Math.floor(leave12/(60*1000));
  878. return [Number(parseFloat(stayDay/30*100).toFixed(2)), stayDay + "天" +stayHour + "小时" + stayMin + "分"]
  879. },
  880. // 设置进度文本内容
  881. setItemText(text){
  882. return () => {
  883. return this.formatGap(text)[1]
  884. }
  885. },
  886. expireText(text){
  887. return () => {
  888. return "过期" + this.formatGap(text)[1]
  889. }
  890. },
  891. setPercentage(text){
  892. return this.formatGap(text)[0]>100? 100 : this.formatGap(text)[0]
  893. }
  894. }
  895. }
  896. </script>
  897. <!-- 全局样式-通过定义父DOM的calss,来只影响本组件 -->
  898. <style lang="scss" type="text/css">
  899. .percenter{
  900. .el-progress--circle .el-progress__text{
  901. top: 60%;
  902. color: #FFFFFF;
  903. font-size: 14px;
  904. }
  905. }
  906. .pragreeTable {
  907. .el-progress-bar__outer{
  908. background-color: #a1a1a178;
  909. }
  910. }
  911. .timeprogress .el-progress-bar__outer {
  912. background-color:#000;
  913. }
  914. .timeprogress .el-progress-bar__inner {
  915. text-align:center;
  916. }
  917. .notifyStyle {
  918. background-color:#000088 !important;
  919. }
  920. .notifyStyle .el-notification__content{
  921. color: #fff !important;
  922. }
  923. .notifyStyle .el-notification__title {
  924. color: #fff !important;
  925. }
  926. </style>
  927. <!-- 本组件样式 -->
  928. <style lang="scss" scoped>
  929. .headerTitle{
  930. position: relative;
  931. top: 20px;
  932. left: -13px;
  933. font-family: "微软雅黑";
  934. font-size: 32px;
  935. text-shadow: 1px 2px 3px #ece9e9;
  936. letter-spacing: 3px;
  937. }
  938. .platformDiv {
  939. .leftDivAuto {
  940. min-height: initial;
  941. }
  942. .modelTitle {
  943. color: #28BDE0;
  944. }
  945. }
  946. .headerBg{
  947. .tabsDiv{
  948. position: absolute;
  949. font-size: 17px;
  950. font-weight: bold;
  951. color: #28BDE0;
  952. bottom: 20px;
  953. left: 0;
  954. span {
  955. cursor: pointer;
  956. margin-right: 20px;
  957. }
  958. span:hover{
  959. opacity: 0.7;
  960. }
  961. .tabsActive{
  962. color: #FFFFFF;
  963. }
  964. }
  965. }
  966. .gaugeDiv{
  967. width: 100%;
  968. height: 190px;
  969. }
  970. .bottomDiv{
  971. width: 100%;
  972. min-height: 215px;
  973. white-space: nowrap;
  974. ul {
  975. width: 100%;
  976. list-style: none;
  977. margin: 0;
  978. padding: 0;
  979. li {
  980. position: relative;
  981. background: #457f968c;
  982. display: inline-block;
  983. margin: 0 10px 10px;
  984. -moz-border-radius: 8px;
  985. -webkit-border-radius: 8px;
  986. border-radius: 8px;
  987. .mStatus {
  988. position: absolute;
  989. top: 10px;
  990. right: 0px;
  991. display: inline-block;
  992. background: #2573b8d1;
  993. padding: 2px 6px;
  994. font-size: 14px;
  995. -moz-border-radius: 3px;
  996. -webkit-border-radius: 3px;
  997. border-radius: 3px;
  998. }
  999. .mAudit {
  1000. position: absolute;
  1001. top: 40px;
  1002. right: 0px;
  1003. display: inline-block;
  1004. background: #2573b8d1;
  1005. padding: 2px 6px;
  1006. font-size: 14px;
  1007. -moz-border-radius: 3px;
  1008. -webkit-border-radius: 3px;
  1009. border-radius: 3px;
  1010. }
  1011. .mashingImg {
  1012. background: #FFFFFF;
  1013. width: 180px;
  1014. height: 110px;
  1015. -moz-border-radius: 8px;
  1016. -webkit-border-radius: 8px;
  1017. border-radius: 8px;
  1018. }
  1019. .mashingDiv {
  1020. padding: 20px 10px 10px;
  1021. .mashingCode {
  1022. position: relative;
  1023. text-align: left;
  1024. padding-left: 20px;
  1025. margin-bottom: 7px;
  1026. }
  1027. .mashingCode:before {
  1028. background: #00FFFF;
  1029. position: absolute;
  1030. content: "";
  1031. left: 0;
  1032. top: 5px;
  1033. width: 10px;
  1034. height: 10px;
  1035. -moz-border-radius: 50%;
  1036. -webkit-border-radius: 50%;
  1037. border-radius: 50%;
  1038. }
  1039. .mashingName {
  1040. text-align: left;
  1041. }
  1042. }
  1043. }
  1044. li.resourceLi{
  1045. background: none;
  1046. .modelTitle2 {
  1047. position: relative;
  1048. top: 0;
  1049. color: #28BDE0;
  1050. font-size: 18px;
  1051. line-height: 22px;
  1052. font-weight: bold;
  1053. width: 20px;
  1054. white-space: normal;
  1055. }
  1056. }
  1057. }
  1058. }
  1059. .tableBorder{
  1060. width: 100%;
  1061. border-left: 1px solid #184659;
  1062. border-top: 1px solid #184659;
  1063. tr {
  1064. th{
  1065. background: #457f968c;
  1066. padding: 5px 2px;
  1067. font-size: 12px;
  1068. border-bottom: 1px solid #184659;
  1069. }
  1070. td {
  1071. padding: 5px 2px;
  1072. text-align: center;
  1073. font-size: 11px;
  1074. border-right: 1px solid #184659;
  1075. border-bottom: 1px solid #184659;
  1076. }
  1077. }
  1078. }
  1079. .percenter{
  1080. position: relative;
  1081. width: 100%;
  1082. height: 105px;
  1083. .pcText{
  1084. display: inline-block;
  1085. position: absolute;
  1086. top: 35%;
  1087. left: 0;
  1088. width: 100%;
  1089. color: #999999;
  1090. font-size: 12px;
  1091. text-align: center;
  1092. }
  1093. }
  1094. .allTitleLeft{
  1095. padding-top: 10px;
  1096. margin-bottom: 30px;
  1097. }
  1098. .allTitle{
  1099. margin-bottom: 10px;
  1100. font-size: 14px;
  1101. }
  1102. .allFont{
  1103. font-size: 22px;
  1104. color: #00d8ff;
  1105. }
  1106. .modelStatus{
  1107. display: flex;
  1108. justify-content: center;
  1109. align-items: center;
  1110. background: #13ce66;
  1111. min-height: 40px;
  1112. -moz-border-radius: 5px;
  1113. -webkit-border-radius: 5px;
  1114. border-radius: 5px;
  1115. }
  1116. .modelStatus2{
  1117. background: #457f968c;
  1118. min-height: 60px;
  1119. -moz-border-radius: 5px;
  1120. -webkit-border-radius: 5px;
  1121. border-radius: 5px;
  1122. }
  1123. .centerNums{
  1124. font-size: 28px;
  1125. margin: 0;
  1126. padding: 15px 0 10px;
  1127. }
  1128. .centerTitle{
  1129. font-size: 14px;
  1130. padding: 10px 0;
  1131. }
  1132. .borderTop{
  1133. padding-top: 10px;
  1134. border-top: 1px solid #275379;
  1135. }
  1136. .seamless-warp {
  1137. height: 200px;
  1138. overflow: hidden;
  1139. }
  1140. .item > .DataList_top {
  1141. list-style: none;
  1142. float: left;
  1143. color: red;
  1144. margin-left: -40px;
  1145. font-size: 14px;
  1146. min-width:400px;
  1147. width:100%;
  1148. }
  1149. .item .DataList_col {
  1150. float: left;
  1151. font-size: 12px;
  1152. margin:2px 0;
  1153. }
  1154. .item .DataList_col2 {
  1155. float: left;
  1156. font-size: 12px;
  1157. margin:2px 0 2px 12px;
  1158. }
  1159. .item .clearfix {
  1160. clear: both;
  1161. }
  1162. .timeTxt {
  1163. margin: 5px 0;
  1164. padding: 5px 0;
  1165. }
  1166. </style>