admin.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. <template>
  2. <div class="mod-home" id="content">
  3. <el-button @click="fullScreen" class="full-screen-btn">全屏</el-button>
  4. <el-row :span="24" class="sample-bg">
  5. <el-col :span="6" class="bg1-1">
  6. <el-row :span="24" class="bg1-1-1">
  7. <div class="box-company-title">
  8. <div class="company-title">东齐公司大数据看板</div>
  9. </div>
  10. </el-row>
  11. <el-row :span="24" class="bg1-1-2">
  12. <div class="box-custom-number">
  13. <div class="custom-number">客户数:{{ analytics.clients }}</div>
  14. </div>
  15. </el-row>
  16. <el-row :span="24" class="bg1-1-1">
  17. <div class="box-contract-number">
  18. <div class="contract-number">合同数:{{ analytics.num }}</div>
  19. </div>
  20. </el-row>
  21. <el-row :span="24" class="bg1-1-2">
  22. <div class="box-contract-amount">
  23. <div class="contract-amount">
  24. 合同总金额:{{ analytics.totalAmount }}
  25. </div>
  26. </div>
  27. </el-row>
  28. </el-col>
  29. <el-col :span="12" class="bg1-2">
  30. <el-row :span="24" class="bg1-2-1">
  31. <div ref="boxnoticetitle" class="box-notice-title" @dblclick="doubleClick">
  32. <div ref="noticetitle" :class="isTran ? 'notice-title notice-title-animation' : 'notice-title'">{{ noticeContent }}</div>
  33. </div>
  34. </el-row>
  35. <el-row :span="24" class="bg1-2-2">
  36. <div class="box-stat-number">
  37. <div class="stat-number">
  38. <div class="item">
  39. <div class="title">在制产品总数</div>
  40. <div class="number">{{ produceCensus.produceNum }}</div>
  41. </div>
  42. <div class="item">
  43. <div class="title">已完成数量</div>
  44. <div class="number">{{ produceCensus.completeNum }}</div>
  45. </div>
  46. <div class="item">
  47. <div class="title">损坏数量</div>
  48. <div class="number">{{ produceCensus.damageNum }}</div>
  49. </div>
  50. <div class="item">
  51. <div class="title">生产总值</div>
  52. <div class="number">{{ produceCensus.totalOutputValue }}</div>
  53. </div>
  54. </div>
  55. </div>
  56. </el-row>
  57. <el-row :span="24" class="bg1-2-3">
  58. <div class="box-contract-table">
  59. <div class="contract-table table">
  60. <el-table
  61. ref="contractProdTable"
  62. :data="contractProdList"
  63. height="100%"
  64. :row-class-name="contractProdListAddClass"
  65. style="width: 100%"
  66. >
  67. <el-table-column type="index" label="序号"></el-table-column>
  68. <el-table-column
  69. prop="orderCode"
  70. label="合同号"
  71. ></el-table-column>
  72. <el-table-column
  73. prop="productName"
  74. label="产品名称"
  75. ></el-table-column>
  76. <el-table-column
  77. prop="prodCode"
  78. label="产品编号"
  79. ></el-table-column>
  80. <el-table-column
  81. prop="batchNo"
  82. label="批次号"
  83. ></el-table-column>
  84. <el-table-column label="生产进度" width="180">
  85. <template slot-scope="scope">
  86. <el-progress
  87. :percentage="parseInt(scope.row.progressBar)"
  88. ></el-progress>
  89. </template>
  90. </el-table-column>
  91. <el-table-column
  92. prop="customerName"
  93. label="客户名称"
  94. ></el-table-column>
  95. <el-table-column
  96. prop="curOperator"
  97. label="当前操作人"
  98. ></el-table-column>
  99. </el-table>
  100. </div>
  101. </div>
  102. </el-row>
  103. </el-col>
  104. <el-col :span="6" class="bg1-3">
  105. <el-row :span="24" class="bg1-3-1">
  106. <div class="box-custom-ranking">
  107. <div class="custom-ranking">客户排名</div>
  108. </div>
  109. </el-row>
  110. <el-row :span="24" class="bg1-3-2">
  111. <div class="box-custom-ranking">
  112. <div class="custom-ranking">
  113. <div class="table">
  114. <el-table
  115. ref="customerRankTable"
  116. :data="customerRankList"
  117. height="100%"
  118. row-class-name="custom-ranking-table-row"
  119. style="width: 100%"
  120. >
  121. <el-table-column
  122. prop="customerName"
  123. label="客户名称"
  124. ></el-table-column>
  125. <el-table-column label="合同金额占比">
  126. <template slot-scope="scope">
  127. <el-progress
  128. :text-inside="true"
  129. :stroke-width="16"
  130. :percentage="scope.row.percentage * 100"
  131. status="success"
  132. ></el-progress>
  133. </template>
  134. </el-table-column>
  135. </el-table>
  136. </div>
  137. </div>
  138. </div>
  139. </el-row>
  140. </el-col>
  141. </el-row>
  142. <el-row :span="24" class="sample-bg1">
  143. <el-col :span="6" class="bg2-1">
  144. <el-row :span="24" class="bg2-3-1">
  145. <div class="box-contract-alert">
  146. <div class="contract-alert">合同预警</div>
  147. </div>
  148. </el-row>
  149. <el-row :span="24" class="bg2-3-2">
  150. <div class="box-contract-alert">
  151. <div class="contract-alert">
  152. <div class="table">
  153. <el-table
  154. ref="contractAlarmTable"
  155. :data="contractAlarmList"
  156. height="100%"
  157. row-class-name="custom-ranking-table-row"
  158. style="width: 100%"
  159. >
  160. <el-table-column type="index" label="序号"></el-table-column>
  161. <el-table-column
  162. prop="contractNumber"
  163. label="合同号"
  164. ></el-table-column>
  165. <!-- <el-table-column prop="orderCode" label="订单号"></el-table-column> -->
  166. <el-table-column
  167. prop="remainTime"
  168. label="剩余时间(天)"
  169. width="100"
  170. ></el-table-column>
  171. <el-table-column
  172. prop="deliveryTime"
  173. label="交付日期"
  174. ></el-table-column>
  175. <el-table-column
  176. prop="customerName"
  177. label="客户名称"
  178. ></el-table-column>
  179. <!-- <el-table-column prop="salesmenName" label="业务员"></el-table-column> -->
  180. </el-table>
  181. </div>
  182. </div>
  183. </div>
  184. </el-row>
  185. </el-col>
  186. <el-col :span="6" class="bg2-2">
  187. <el-row :span="24" class="bg2-3-1">
  188. <div class="box-contract-alert">
  189. <div class="contract-alert">报损记录</div>
  190. </div>
  191. </el-row>
  192. <el-row :span="24" class="bg2-3-2">
  193. <div class="box-contract-alert">
  194. <div class="contract-alert">
  195. <div class="table">
  196. <el-table
  197. ref="damageTable"
  198. :data="damageList"
  199. height="100%"
  200. row-class-name="custom-ranking-table-row"
  201. style="width: 100%"
  202. >
  203. <el-table-column type="index" label="序号"></el-table-column>
  204. <el-table-column
  205. prop="productName"
  206. label="产品"
  207. ></el-table-column>
  208. <el-table-column
  209. prop="prodCode"
  210. label="编号"
  211. ></el-table-column>
  212. <!-- <el-table-column prop="damageReason" label="原因"></el-table-column> -->
  213. <el-table-column
  214. prop="liableUserName"
  215. label="报损人"
  216. width="80"
  217. ></el-table-column>
  218. <el-table-column
  219. prop="createTime"
  220. label="报损时间"
  221. ></el-table-column>
  222. </el-table>
  223. </div>
  224. </div>
  225. </div>
  226. </el-row>
  227. </el-col>
  228. <el-col :span="6" class="bg2-1">
  229. <el-row :span="24" class="bg2-3-1">
  230. <div class="box-contract-alert">
  231. <div class="contract-alert">报工</div>
  232. </div>
  233. </el-row>
  234. <el-row :span="24" class="bg2-3-2">
  235. <div class="box-contract-alert">
  236. <div class="contract-alert">
  237. <div class="table">
  238. <el-table
  239. ref="submittedRecordTable"
  240. :data="submittedRecordList"
  241. height="100%"
  242. row-class-name="custom-ranking-table-row"
  243. style="width: 100%"
  244. >
  245. <el-table-column type="index" label="序号"></el-table-column>
  246. <el-table-column
  247. prop="nodeName"
  248. label="工序"
  249. width="70"
  250. ></el-table-column>
  251. <el-table-column
  252. prop="taskName"
  253. label="产品名字"
  254. ></el-table-column>
  255. <el-table-column
  256. prop="endTime"
  257. label="完成时间"
  258. ></el-table-column>
  259. <el-table-column
  260. prop="operatorName"
  261. label="操作人名字"
  262. ></el-table-column>
  263. </el-table>
  264. </div>
  265. </div>
  266. </div>
  267. </el-row>
  268. </el-col>
  269. <el-col :span="6" class="bg2-2">
  270. <el-row :span="24" class="bg2-3-1">
  271. <div class="box-contract-alert">
  272. <div class="contract-alert">出库记录</div>
  273. </div>
  274. </el-row>
  275. <el-row :span="24" class="bg2-3-2">
  276. <div class="box-contract-alert">
  277. <div class="contract-alert">
  278. <div class="table">
  279. <el-table
  280. ref="outboundRecordTable"
  281. :data="outboundRecordList"
  282. height="100%"
  283. row-class-name="custom-ranking-table-row"
  284. style="width: 100%"
  285. >
  286. <el-table-column type="index" label="序号"></el-table-column>
  287. <el-table-column
  288. prop="materialName"
  289. label="物品"
  290. ></el-table-column>
  291. <el-table-column
  292. prop="cnt"
  293. label="数量"
  294. width="50"
  295. ></el-table-column>
  296. <el-table-column
  297. prop="createTime"
  298. label="时间"
  299. ></el-table-column>
  300. <el-table-column
  301. prop="applicant"
  302. label="申请人"
  303. ></el-table-column>
  304. </el-table>
  305. </div>
  306. </div>
  307. </div>
  308. </el-row>
  309. </el-col>
  310. </el-row>
  311. <el-dialog title="设置通知内容" :visible.sync="dialogFormVisible">
  312. <el-form :model="noticeForm">
  313. <el-form-item label="通知内容">
  314. <el-input v-model="noticeForm.content" autocomplete="off"></el-input>
  315. </el-form-item>
  316. </el-form>
  317. <div slot="footer">
  318. <el-button @click="dialogFormVisible = false">取 消</el-button>
  319. <el-button type="primary" @click="dialogSubmit">确 定</el-button>
  320. </div>
  321. </el-dialog>
  322. </div>
  323. </template>
  324. <script>
  325. import {
  326. getAnalytics,
  327. getContractAlarmList,
  328. getCustomerRankList,
  329. getDamageList,
  330. getOutboundRecordList,
  331. getContractProdList,
  332. getSubmittedRecordList,
  333. getProduceCensus
  334. } from '@/api/home'
  335. export default {
  336. name: 'admin',
  337. components: {},
  338. data () {
  339. return {
  340. analytics: {
  341. clients: '', // 客户数
  342. num: '', // 合同数
  343. totalAmount: '' // 合同总金额
  344. },
  345. analyticsTimer: null,
  346. // 合同预警列表
  347. contractAlarmList: [],
  348. contractAlarmListTimer: null,
  349. // 客户排名列表
  350. customerRankList: [],
  351. customerRankListTimer: null,
  352. // 报损记录列表
  353. damageList: [],
  354. damageListTimer: null,
  355. // 出库记录列表
  356. outboundRecordList: [],
  357. outboundRecordListTimer: null,
  358. // 合同生产记录列表
  359. contractProdList: [],
  360. contractProdListTimer: null,
  361. // 报工列表
  362. submittedRecordList: [],
  363. submittedRecordListTimer: null,
  364. // 生产统计
  365. produceCensus: {
  366. produceNum: 0, // 在制产品总数
  367. completeNum: 0, // 已完成数量
  368. damageNum: 0, // 损坏数量
  369. totalOutputValue: 0 // 生产总值
  370. },
  371. produceCensusTimer: null,
  372. dialogFormVisible: false,
  373. noticeForm: {
  374. content: ''
  375. },
  376. noticeContent: '',
  377. isTran: false
  378. }
  379. },
  380. created () {
  381. this.getAnalytics()
  382. this.analyticsTimer = setInterval(this.getAnalytics, 1000 * 3600) // 1小时刷新
  383. this.getContractAlarmList()
  384. this.contractAlarmListTimer = setInterval(
  385. this.getContractAlarmList,
  386. 1000 * 60 * 10
  387. ) // 10分钟刷新
  388. this.getCustomerRankList()
  389. this.damageListTimer = setInterval(
  390. this.getCustomerRankList,
  391. 1000 * 60 * 10
  392. ) // 10分钟刷新
  393. this.getDamageList()
  394. this.customerRankListTimer = setInterval(
  395. this.getDamageList,
  396. 1000 * 60 * 10
  397. ) // 10分钟刷新
  398. this.getOutboundRecordList()
  399. this.outboundRecordListTimer = setInterval(
  400. this.getOutboundRecordList,
  401. 1000 * 60 * 5
  402. ) // 5分钟刷新
  403. this.getContractProdList()
  404. this.contractProdListTimer = setInterval(
  405. this.getContractProdList,
  406. 1000 * 60 * 10
  407. ) // 10分钟刷新
  408. this.getSubmittedRecordList()
  409. this.submittedRecordListTimer = setInterval(
  410. this.getSubmittedRecordList,
  411. 1000 * 60 * 5
  412. ) // 5分钟刷新
  413. this.getProduceCensus()
  414. this.produceCensusTimer = setInterval(this.getProduceCensus, 1000 * 60 * 5) // 5分钟刷新
  415. this.getNoticeContent()
  416. this.setTitleScroll()
  417. },
  418. mounted () {
  419. this.contractProdTableScroll()
  420. this.customerRankTableScroll()
  421. this.contractAlarmTableScroll()
  422. this.outboundRecordTableScroll()
  423. this.submittedRecordTableScroll()
  424. this.damageTableScroll()
  425. },
  426. beforeDestroy () {
  427. clearInterval(this.analyticsTimer)
  428. clearInterval(this.contractAlarmListTimer)
  429. clearInterval(this.damageListTimer)
  430. clearInterval(this.customerRankListTimer)
  431. clearInterval(this.outboundRecordListTimer)
  432. clearInterval(this.contractProdListTimer)
  433. clearInterval(this.submittedRecordListTimer)
  434. clearInterval(this.produceCensusTimer)
  435. },
  436. methods: {
  437. setTitleScroll () {
  438. this.$nextTick(() => {
  439. let boxWidth = this.$refs.boxnoticetitle.offsetWidth
  440. let contentWidth = this.$refs.noticetitle.offsetWidth
  441. if (contentWidth > boxWidth) {
  442. // 设置水平滚动效果
  443. this.isTran = true
  444. }
  445. })
  446. },
  447. getNoticeContent () {
  448. let content = sessionStorage.getItem('noticeContent')
  449. if (content == null || content === '') {
  450. content = '双击此处修改通知内容'
  451. }
  452. this.noticeContent = content
  453. },
  454. doubleClick () {
  455. this.dialogFormVisible = true
  456. },
  457. dialogSubmit () {
  458. this.noticeContent = this.noticeForm.content
  459. this.dialogFormVisible = false
  460. sessionStorage.setItem('noticeContent', this.noticeContent)
  461. this.setTitleScroll()
  462. },
  463. // 合同统计
  464. getAnalytics () {
  465. getAnalytics({}).then(({ data }) => {
  466. if (data && data.code === '200') {
  467. this.analytics = { ...data.data }
  468. }
  469. })
  470. },
  471. // 合同预警列表
  472. getContractAlarmList () {
  473. let params = {
  474. current: 1,
  475. size: 20
  476. }
  477. getContractAlarmList(params).then(({ data }) => {
  478. if (data && data.code === '200') {
  479. this.contractAlarmList = data.data.records
  480. }
  481. })
  482. },
  483. // 客户排名列表
  484. getCustomerRankList () {
  485. let params = {
  486. current: 1,
  487. size: 20
  488. }
  489. getCustomerRankList(params).then(({ data }) => {
  490. if (data && data.code === '200') {
  491. this.customerRankList = data.data
  492. }
  493. })
  494. },
  495. // 报损记录列表
  496. getDamageList () {
  497. let params = {
  498. current: 1,
  499. size: 20
  500. }
  501. getDamageList(params).then(({ data }) => {
  502. if (data && data.code === '200') {
  503. this.damageList = data.data.records
  504. }
  505. })
  506. },
  507. // 出库记录列表
  508. getOutboundRecordList () {
  509. let params = {
  510. current: 1,
  511. size: 20
  512. }
  513. getOutboundRecordList(params).then(({ data }) => {
  514. if (data && data.code === '200') {
  515. this.outboundRecordList = data.data.records
  516. }
  517. })
  518. },
  519. // 合同生产记录列表
  520. getContractProdList () {
  521. let params = {
  522. current: 1,
  523. size: 20
  524. }
  525. getContractProdList(params).then(({ data }) => {
  526. if (data && data.code === '200') {
  527. this.contractProdList = data.data.records
  528. }
  529. })
  530. },
  531. contractProdListAddClass ({row, rowIndex}) {
  532. if (row.warningState === '3') {
  533. return 'custom-ranking-table-row overdue-row'
  534. }
  535. if (row.warningState === '2') {
  536. return 'custom-ranking-table-row warning-row'
  537. }
  538. return 'custom-ranking-table-row'
  539. },
  540. // 报工列表
  541. getSubmittedRecordList () {
  542. let params = {
  543. current: 1,
  544. size: 20
  545. }
  546. getSubmittedRecordList(params).then(({ data }) => {
  547. if (data && data.code === '200') {
  548. this.submittedRecordList = data.data.records
  549. }
  550. })
  551. },
  552. // 生产统计
  553. getProduceCensus () {
  554. getProduceCensus({}).then(({ data }) => {
  555. if (data && data.code === '200') {
  556. this.produceCensus = data.data
  557. }
  558. })
  559. },
  560. contractProdTableScroll () {
  561. this.$nextTick(() => {
  562. const divData = this.$refs.contractProdTable.bodyWrapper
  563. setInterval(() => {
  564. divData.scrollTop += 1
  565. if (
  566. divData.clientHeight + divData.scrollTop + 1 >
  567. divData.scrollHeight
  568. ) {
  569. divData.scrollTop = 0
  570. }
  571. }, 50)
  572. })
  573. },
  574. customerRankTableScroll () {
  575. this.$nextTick(() => {
  576. const divData = this.$refs.customerRankTable.bodyWrapper
  577. setInterval(() => {
  578. divData.scrollTop += 1
  579. if (
  580. divData.clientHeight + divData.scrollTop + 1 >
  581. divData.scrollHeight
  582. ) {
  583. divData.scrollTop = 0
  584. }
  585. }, 50)
  586. })
  587. },
  588. contractAlarmTableScroll () {
  589. this.$nextTick(() => {
  590. const divData = this.$refs.contractAlarmTable.bodyWrapper
  591. setInterval(() => {
  592. divData.scrollTop += 1
  593. if (
  594. divData.clientHeight + divData.scrollTop + 1 >
  595. divData.scrollHeight
  596. ) {
  597. divData.scrollTop = 0
  598. }
  599. }, 50)
  600. })
  601. },
  602. outboundRecordTableScroll () {
  603. this.$nextTick(() => {
  604. const divData = this.$refs.outboundRecordTable.bodyWrapper
  605. setInterval(() => {
  606. divData.scrollTop += 1
  607. if (
  608. divData.clientHeight + divData.scrollTop + 1 >
  609. divData.scrollHeight
  610. ) {
  611. divData.scrollTop = 0
  612. }
  613. }, 50)
  614. })
  615. },
  616. submittedRecordTableScroll () {
  617. this.$nextTick(() => {
  618. const divData = this.$refs.submittedRecordTable.bodyWrapper
  619. setInterval(() => {
  620. divData.scrollTop += 1
  621. if (
  622. divData.clientHeight + divData.scrollTop + 1 >
  623. divData.scrollHeight
  624. ) {
  625. divData.scrollTop = 0
  626. }
  627. }, 50)
  628. })
  629. },
  630. damageTableScroll () {
  631. this.$nextTick(() => {
  632. const divData = this.$refs.damageTable.bodyWrapper
  633. setInterval(() => {
  634. divData.scrollTop += 1
  635. if (
  636. divData.clientHeight + divData.scrollTop + 1 >
  637. divData.scrollHeight
  638. ) {
  639. divData.scrollTop = 0
  640. }
  641. }, 50)
  642. })
  643. },
  644. // 全屏显示
  645. fullScreen () {
  646. const element = document.getElementById('content')
  647. element.requestFullscreen()
  648. }
  649. }
  650. }
  651. </script>
  652. <style>
  653. html,
  654. body,
  655. .site-wrapper,
  656. .site-content__wrapper,
  657. .site-content,
  658. .el-tabs--top,
  659. .el-tabs__content,
  660. .el-tab-pane,
  661. .el-card,
  662. .el-card__body {
  663. height: 100%;
  664. }
  665. .custom-ranking-table-row {
  666. font-size: 8px;
  667. }
  668. .el-table .warning-row {
  669. color:#FFD700;
  670. }
  671. .el-table .overdue-row {
  672. color: #FF0000;
  673. }
  674. </style>
  675. <style scoped>
  676. .mod-home {
  677. /* line-height: 1.5; */
  678. height: 100%;
  679. position: relative;
  680. }
  681. .full-screen-btn {
  682. position: absolute;
  683. top: 0;
  684. right: 0;
  685. z-index: 9;
  686. padding: 0 0;
  687. border-radius: 0;
  688. }
  689. .sample-bg {
  690. background-color: #021327;
  691. height: 60%;
  692. }
  693. .sample-bg1 {
  694. background-color: #021327;
  695. height: 40%;
  696. }
  697. .bg1-1 {
  698. /* background-color: yellow; */
  699. height: 100%;
  700. }
  701. .bg1-2 {
  702. /* background-color: orange; */
  703. height: 100%;
  704. }
  705. .bg1-3 {
  706. /* background-color: orchid; */
  707. height: 100%;
  708. }
  709. .bg2-1 {
  710. /* background-color: red; */
  711. height: 100%;
  712. }
  713. .bg2-2 {
  714. /* background-color: aqua; */
  715. height: 100%;
  716. }
  717. .bg1-1-1 {
  718. height: 25%;
  719. padding: 10px 10px;
  720. /* border: 1px solid black; */
  721. }
  722. .bg1-1-2 {
  723. height: 25%;
  724. padding: 10px;
  725. /* border: 1px solid black; */
  726. }
  727. .box-company-title {
  728. background-color: #094198;
  729. display: flex;
  730. height: 100%;
  731. }
  732. .company-title {
  733. font-size: 20px;
  734. color: aliceblue;
  735. margin: 0 auto;
  736. align-items: center;
  737. display: flex;
  738. }
  739. .box-custom-number {
  740. background-color: #d65246;
  741. display: flex;
  742. height: 100%;
  743. }
  744. .custom-number {
  745. font-size: 20px;
  746. color: aliceblue;
  747. margin: 0 auto;
  748. align-items: center;
  749. display: flex;
  750. }
  751. .box-contract-number {
  752. background-color: #11d2b7;
  753. display: flex;
  754. height: 100%;
  755. }
  756. .contract-number {
  757. font-size: 20px;
  758. color: aliceblue;
  759. margin: 0 auto;
  760. align-items: center;
  761. display: flex;
  762. }
  763. .box-contract-amount {
  764. background-color: #f6a647;
  765. display: flex;
  766. height: 100%;
  767. }
  768. .contract-amount {
  769. font-size: 20px;
  770. color: aliceblue;
  771. margin: 0 auto;
  772. align-items: center;
  773. display: flex;
  774. }
  775. /*中间通知区域*/
  776. .bg1-2-1 {
  777. height: 15%;
  778. padding: 10px;
  779. /* border: 1px solid black; */
  780. }
  781. .bg1-2-2 {
  782. height: 25%;
  783. padding: 10px;
  784. /* border: 1px solid black; */
  785. }
  786. .bg1-2-3 {
  787. height: 60%;
  788. padding: 10px;
  789. /* border: 1px solid black; */
  790. }
  791. .box-notice-title {
  792. background-color: #2fb5f2;
  793. display: flex;
  794. height: 100%;
  795. width: 100%;
  796. margin: 0 auto;
  797. overflow: hidden;
  798. }
  799. .notice-title {
  800. font-size: 20px;
  801. color: red;
  802. margin: 0 auto;
  803. align-items: center;
  804. display: flex;
  805. white-space: nowrap;
  806. }
  807. .notice-title-animation {
  808. animation: wordsLoop 25s linear infinite normal;
  809. }
  810. @keyframes wordsLoop{
  811. 0% {
  812. transform: translateX(0);
  813. -webkit-transform: translateX(0);
  814. }
  815. 100% {
  816. transform: translateX(-51%);
  817. -webkit-transform: translateX(-51%);
  818. }
  819. }
  820. @-webkit-keyframes wordsLoop{
  821. 0% {
  822. transform: translateX(0);
  823. -webkit-transform: translateX(0);
  824. }
  825. 100% {
  826. transform: translateX(-51%);
  827. -webkit-transform: translateX(-51%);
  828. }
  829. }
  830. .box-stat-number {
  831. background-color: #415065;
  832. display: flex;
  833. height: 100%;
  834. }
  835. .stat-number {
  836. font-size: 20px;
  837. color: aliceblue;
  838. margin: 0 auto;
  839. align-items: center;
  840. display: flex;
  841. justify-content: space-around;
  842. width: 100%;
  843. }
  844. .stat-number > .item {
  845. height: 80%;
  846. display: flex;
  847. flex-direction: column;
  848. justify-content: space-around;
  849. }
  850. .stat-number > .item > .title {
  851. color: darkturquoise;
  852. }
  853. .stat-number > .item > .number {
  854. text-align: center;
  855. }
  856. /*合同列表*/
  857. .box-contract-table {
  858. background-color: #415065;
  859. display: flex;
  860. height: 100%;
  861. }
  862. .contract-table {
  863. font-size: 20px;
  864. color: aliceblue;
  865. margin: 0 auto;
  866. align-items: center;
  867. display: flex;
  868. justify-content: space-around;
  869. width: 100%;
  870. }
  871. .bg1-3-1 {
  872. height: 10%;
  873. /* min-height: 45px; */
  874. padding: 10px;
  875. /* border: 1px solid black; */
  876. }
  877. .bg1-3-2 {
  878. height: 90%;
  879. padding: 2px 10px 10px;
  880. /* border: 1px solid black; */
  881. }
  882. /*客户排名*/
  883. .box-custom-ranking {
  884. background-color: #415065;
  885. height: 100%;
  886. }
  887. .custom-ranking {
  888. font-size: 14px;
  889. color: aliceblue;
  890. display: flex;
  891. flex-direction: column;
  892. align-items: center;
  893. justify-content: center;
  894. text-align: justify;
  895. width: 100%;
  896. height: 100%;
  897. }
  898. .custom-ranking > .table {
  899. background-color: darkturquoise;
  900. height: 100%;
  901. width: 100%;
  902. }
  903. .bg2-3-1 {
  904. height: 10%;
  905. padding: 5px 10px;
  906. /* border: 1px solid black; */
  907. }
  908. .bg2-3-2 {
  909. height: 90%;
  910. padding: 2px 10px 10px;
  911. /* border: 1px solid black; */
  912. }
  913. /*合同预警*/
  914. .box-contract-alert {
  915. background-color: #415065;
  916. height: 100%;
  917. }
  918. .contract-alert {
  919. font-size: 14px;
  920. color: aliceblue;
  921. display: flex;
  922. flex-direction: column;
  923. align-items: center;
  924. justify-content: center;
  925. text-align: justify;
  926. width: 100%;
  927. height: 100%;
  928. }
  929. .contract-alert > .title > div {
  930. background-color: #415065;
  931. width: 100%;
  932. display: flex;
  933. align-items: center;
  934. justify-content: center;
  935. text-align: justify;
  936. }
  937. .contract-alert > .table {
  938. background-color: darkturquoise;
  939. height: 100%;
  940. width: 100%;
  941. }
  942. .table thead .cell {
  943. font-size: 12px;
  944. -webkit-transform: scale(0.8) !important;
  945. }
  946. .table tbody .cell {
  947. font-size: 12px;
  948. -webkit-transform: scale(0.8) !important;
  949. }
  950. /* 设置滚动条的样式 */
  951. ::-webkit-scrollbar {
  952. width: 6px;
  953. height: 6px;
  954. }
  955. /* 滚动槽 */
  956. ::-webkit-scrollbar-track {
  957. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  958. border-radius: 10px;
  959. }
  960. /* 滚动条滑块 */
  961. ::-webkit-scrollbar-thumb {
  962. border-radius: 10px;
  963. background: rgba(0, 0, 0, 0.1);
  964. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  965. }
  966. ::-webkit-scrollbar-thumb:window-inactive {
  967. background: rgba(161, 156, 156, 0.2);
  968. }
  969. </style>