山西督察-superintend-distribute-web react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

  1. import React from 'react';
  2. import { FileDoneOutlined, FileExcelOutlined, BulbFilled } from '@ant-design/icons';
  3. import { YQQK } from '@/utils/constants';
  4. export const HGIcon = <FileDoneOutlined style={{ marginRight: 10, color: '#1AB58F' }} />;
  5. export const BHGIcon = <FileExcelOutlined style={{ marginRight: 10, color: '#FF704F' }} />
  6. export const ExampleBar = () => {
  7. return <div style={{ marginRight: 20, marginTop: 3}}>
  8. {HGIcon}<span style={{ marginRight: 15}}>抽查合格</span>
  9. {BHGIcon}<span style={{ marginRight: 15}}>抽查不合格</span>
  10. </div>
  11. }
  12. export const getHGIcons = (type) => {
  13. if (type === 1) return HGIcon;
  14. if (type === 0) return BHGIcon;
  15. return <span style={{display: 'inline-block', width: 24, height: 14 }}></span>
  16. }
  17. export const getTimeLine = (type) => {
  18. if (type === YQQK.CQ.value) {
  19. return <BulbFilled style={{ color: YQQK.CQ.color}} />
  20. } if (type === YQQK.JCQ.value) {
  21. return <BulbFilled style={{ color: YQQK.JCQ.color}} />
  22. } if (type === YQQK.ZC.value) {
  23. return <BulbFilled style={{ color: YQQK.ZC.color}} />
  24. }
  25. return ''
  26. }