admin.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  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="custom-ranking-table-row"
  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. // 报工列表
  532. getSubmittedRecordList () {
  533. let params = {
  534. current: 1,
  535. size: 20
  536. }
  537. getSubmittedRecordList(params).then(({ data }) => {
  538. if (data && data.code === '200') {
  539. this.submittedRecordList = data.data.records
  540. }
  541. })
  542. },
  543. // 生产统计
  544. getProduceCensus () {
  545. getProduceCensus({}).then(({ data }) => {
  546. if (data && data.code === '200') {
  547. this.produceCensus = data.data
  548. }
  549. })
  550. },
  551. contractProdTableScroll () {
  552. this.$nextTick(() => {
  553. const divData = this.$refs.contractProdTable.bodyWrapper
  554. setInterval(() => {
  555. divData.scrollTop += 1
  556. if (
  557. divData.clientHeight + divData.scrollTop + 1 >
  558. divData.scrollHeight
  559. ) {
  560. divData.scrollTop = 0
  561. }
  562. }, 50)
  563. })
  564. },
  565. customerRankTableScroll () {
  566. this.$nextTick(() => {
  567. const divData = this.$refs.customerRankTable.bodyWrapper
  568. setInterval(() => {
  569. divData.scrollTop += 1
  570. if (
  571. divData.clientHeight + divData.scrollTop + 1 >
  572. divData.scrollHeight
  573. ) {
  574. divData.scrollTop = 0
  575. }
  576. }, 50)
  577. })
  578. },
  579. contractAlarmTableScroll () {
  580. this.$nextTick(() => {
  581. const divData = this.$refs.contractAlarmTable.bodyWrapper
  582. setInterval(() => {
  583. divData.scrollTop += 1
  584. if (
  585. divData.clientHeight + divData.scrollTop + 1 >
  586. divData.scrollHeight
  587. ) {
  588. divData.scrollTop = 0
  589. }
  590. }, 50)
  591. })
  592. },
  593. outboundRecordTableScroll () {
  594. this.$nextTick(() => {
  595. const divData = this.$refs.outboundRecordTable.bodyWrapper
  596. setInterval(() => {
  597. divData.scrollTop += 1
  598. if (
  599. divData.clientHeight + divData.scrollTop + 1 >
  600. divData.scrollHeight
  601. ) {
  602. divData.scrollTop = 0
  603. }
  604. }, 50)
  605. })
  606. },
  607. submittedRecordTableScroll () {
  608. this.$nextTick(() => {
  609. const divData = this.$refs.submittedRecordTable.bodyWrapper
  610. setInterval(() => {
  611. divData.scrollTop += 1
  612. if (
  613. divData.clientHeight + divData.scrollTop + 1 >
  614. divData.scrollHeight
  615. ) {
  616. divData.scrollTop = 0
  617. }
  618. }, 50)
  619. })
  620. },
  621. damageTableScroll () {
  622. this.$nextTick(() => {
  623. const divData = this.$refs.damageTable.bodyWrapper
  624. setInterval(() => {
  625. divData.scrollTop += 1
  626. if (
  627. divData.clientHeight + divData.scrollTop + 1 >
  628. divData.scrollHeight
  629. ) {
  630. divData.scrollTop = 0
  631. }
  632. }, 50)
  633. })
  634. },
  635. // 全屏显示
  636. fullScreen () {
  637. const element = document.getElementById('content')
  638. element.requestFullscreen()
  639. }
  640. }
  641. }
  642. </script>
  643. <style>
  644. html,
  645. body,
  646. .site-wrapper,
  647. .site-content__wrapper,
  648. .site-content,
  649. .el-tabs--top,
  650. .el-tabs__content,
  651. .el-tab-pane,
  652. .el-card,
  653. .el-card__body {
  654. height: 100%;
  655. }
  656. </style>
  657. <style scoped>
  658. .mod-home {
  659. /* line-height: 1.5; */
  660. height: 100%;
  661. position: relative;
  662. }
  663. .full-screen-btn {
  664. position: absolute;
  665. top: 0;
  666. right: 0;
  667. z-index: 9;
  668. padding: 0 0;
  669. border-radius: 0;
  670. }
  671. .sample-bg {
  672. background-color: #021327;
  673. height: 60%;
  674. }
  675. .sample-bg1 {
  676. background-color: #021327;
  677. height: 40%;
  678. }
  679. .bg1-1 {
  680. /* background-color: yellow; */
  681. height: 100%;
  682. }
  683. .bg1-2 {
  684. /* background-color: orange; */
  685. height: 100%;
  686. }
  687. .bg1-3 {
  688. /* background-color: orchid; */
  689. height: 100%;
  690. }
  691. .bg2-1 {
  692. /* background-color: red; */
  693. height: 100%;
  694. }
  695. .bg2-2 {
  696. /* background-color: aqua; */
  697. height: 100%;
  698. }
  699. .bg1-1-1 {
  700. height: 25%;
  701. padding: 10px 10px;
  702. /* border: 1px solid black; */
  703. }
  704. .bg1-1-2 {
  705. height: 25%;
  706. padding: 10px;
  707. /* border: 1px solid black; */
  708. }
  709. .box-company-title {
  710. background-color: #094198;
  711. display: flex;
  712. height: 100%;
  713. }
  714. .company-title {
  715. font-size: 20px;
  716. color: aliceblue;
  717. margin: 0 auto;
  718. align-items: center;
  719. display: flex;
  720. }
  721. .box-custom-number {
  722. background-color: #d65246;
  723. display: flex;
  724. height: 100%;
  725. }
  726. .custom-number {
  727. font-size: 20px;
  728. color: aliceblue;
  729. margin: 0 auto;
  730. align-items: center;
  731. display: flex;
  732. }
  733. .box-contract-number {
  734. background-color: #11d2b7;
  735. display: flex;
  736. height: 100%;
  737. }
  738. .contract-number {
  739. font-size: 20px;
  740. color: aliceblue;
  741. margin: 0 auto;
  742. align-items: center;
  743. display: flex;
  744. }
  745. .box-contract-amount {
  746. background-color: #f6a647;
  747. display: flex;
  748. height: 100%;
  749. }
  750. .contract-amount {
  751. font-size: 20px;
  752. color: aliceblue;
  753. margin: 0 auto;
  754. align-items: center;
  755. display: flex;
  756. }
  757. /*中间通知区域*/
  758. .bg1-2-1 {
  759. height: 15%;
  760. padding: 10px;
  761. /* border: 1px solid black; */
  762. }
  763. .bg1-2-2 {
  764. height: 25%;
  765. padding: 10px;
  766. /* border: 1px solid black; */
  767. }
  768. .bg1-2-3 {
  769. height: 60%;
  770. padding: 10px;
  771. /* border: 1px solid black; */
  772. }
  773. .box-notice-title {
  774. background-color: #2fb5f2;
  775. display: flex;
  776. height: 100%;
  777. width: 100%;
  778. margin: 0 auto;
  779. overflow: hidden;
  780. }
  781. .notice-title {
  782. font-size: 20px;
  783. color: red;
  784. margin: 0 auto;
  785. align-items: center;
  786. display: flex;
  787. white-space: nowrap;
  788. }
  789. .notice-title-animation {
  790. animation: wordsLoop 25s linear infinite normal;
  791. }
  792. @keyframes wordsLoop{
  793. 0% {
  794. transform: translateX(0);
  795. -webkit-transform: translateX(0);
  796. }
  797. 100% {
  798. transform: translateX(-51%);
  799. -webkit-transform: translateX(-51%);
  800. }
  801. }
  802. @-webkit-keyframes wordsLoop{
  803. 0% {
  804. transform: translateX(0);
  805. -webkit-transform: translateX(0);
  806. }
  807. 100% {
  808. transform: translateX(-51%);
  809. -webkit-transform: translateX(-51%);
  810. }
  811. }
  812. .box-stat-number {
  813. background-color: #415065;
  814. display: flex;
  815. height: 100%;
  816. }
  817. .stat-number {
  818. font-size: 20px;
  819. color: aliceblue;
  820. margin: 0 auto;
  821. align-items: center;
  822. display: flex;
  823. justify-content: space-around;
  824. width: 100%;
  825. }
  826. .stat-number > .item {
  827. height: 80%;
  828. display: flex;
  829. flex-direction: column;
  830. justify-content: space-around;
  831. }
  832. .stat-number > .item > .title {
  833. color: darkturquoise;
  834. }
  835. .stat-number > .item > .number {
  836. text-align: center;
  837. }
  838. /*合同列表*/
  839. .box-contract-table {
  840. background-color: #415065;
  841. display: flex;
  842. height: 100%;
  843. }
  844. .contract-table {
  845. font-size: 20px;
  846. color: aliceblue;
  847. margin: 0 auto;
  848. align-items: center;
  849. display: flex;
  850. justify-content: space-around;
  851. width: 100%;
  852. }
  853. .bg1-3-1 {
  854. height: 10%;
  855. /* min-height: 45px; */
  856. padding: 10px;
  857. /* border: 1px solid black; */
  858. }
  859. .bg1-3-2 {
  860. height: 90%;
  861. padding: 2px 10px 10px;
  862. /* border: 1px solid black; */
  863. }
  864. /*客户排名*/
  865. .box-custom-ranking {
  866. background-color: #415065;
  867. height: 100%;
  868. }
  869. .custom-ranking {
  870. font-size: 14px;
  871. color: aliceblue;
  872. display: flex;
  873. flex-direction: column;
  874. align-items: center;
  875. justify-content: center;
  876. text-align: justify;
  877. width: 100%;
  878. height: 100%;
  879. }
  880. .custom-ranking > .table {
  881. background-color: darkturquoise;
  882. height: 100%;
  883. width: 100%;
  884. }
  885. .custom-ranking-table-row {
  886. font-size: 8px;
  887. }
  888. .bg2-3-1 {
  889. height: 10%;
  890. padding: 5px 10px;
  891. /* border: 1px solid black; */
  892. }
  893. .bg2-3-2 {
  894. height: 90%;
  895. padding: 2px 10px 10px;
  896. /* border: 1px solid black; */
  897. }
  898. /*合同预警*/
  899. .box-contract-alert {
  900. background-color: #415065;
  901. height: 100%;
  902. }
  903. .contract-alert {
  904. font-size: 14px;
  905. color: aliceblue;
  906. display: flex;
  907. flex-direction: column;
  908. align-items: center;
  909. justify-content: center;
  910. text-align: justify;
  911. width: 100%;
  912. height: 100%;
  913. }
  914. .contract-alert > .title > div {
  915. background-color: #415065;
  916. width: 100%;
  917. display: flex;
  918. align-items: center;
  919. justify-content: center;
  920. text-align: justify;
  921. }
  922. .contract-alert > .table {
  923. background-color: darkturquoise;
  924. height: 100%;
  925. width: 100%;
  926. }
  927. .table thead .cell {
  928. font-size: 12px;
  929. -webkit-transform: scale(0.8) !important;
  930. }
  931. .table tbody .cell {
  932. font-size: 12px;
  933. -webkit-transform: scale(0.8) !important;
  934. }
  935. /* 设置滚动条的样式 */
  936. ::-webkit-scrollbar {
  937. width: 6px;
  938. height: 6px;
  939. }
  940. /* 滚动槽 */
  941. ::-webkit-scrollbar-track {
  942. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  943. border-radius: 10px;
  944. }
  945. /* 滚动条滑块 */
  946. ::-webkit-scrollbar-thumb {
  947. border-radius: 10px;
  948. background: rgba(0, 0, 0, 0.1);
  949. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  950. }
  951. ::-webkit-scrollbar-thumb:window-inactive {
  952. background: rgba(161, 156, 156, 0.2);
  953. }
  954. </style>