Newer
Older
KaiFengPC / src / views / project / compensation / homeEcharts / index.js
@zhangdeliang zhangdeliang on 23 May 2 KB 初始化项目
  1. const data1 = ref({
  2. xData: [],
  3. yData: [],
  4. tittle: '项目类型统计',
  5. type: 'pie',
  6. center: ['40%', '50%'],
  7. padding: [0, 50, 0, 0],
  8. x: '35%',
  9. y: '40%',
  10. legend: [''],
  11. itemStyle: {
  12. normal: {
  13. color: function (colors) {
  14. var colorList = ['#fc8251', '#5470c6', '#9A60B4', '#ef6567', '#f9c956', '#3BA272'];
  15. return colorList[colors.dataIndex];
  16. },
  17. },
  18. },
  19. });
  20. const data2 = ref({
  21. xData: [],
  22. yData: [],
  23. type: 'pie',
  24. center: ['19.9%', '38%'],
  25. x: '15%',
  26. y: '30%',
  27. legend: [''],
  28. padding: [0, 0, 0, 0],
  29. itemStyle: {
  30. normal: {
  31. color: function (colors) {
  32. var colorList = ['#9A60B4', '#f9c956', '#3BA272', '#fc8251', '#5470c6', '#ef6567'];
  33. return colorList[colors.dataIndex];
  34. },
  35. },
  36. },
  37. });
  38. const data3 = ref({
  39. xData: [],
  40. yData: [],
  41. tittle: '',
  42. type: 'bar',
  43. color: '#0F69FF',
  44. title: '统计数据',
  45. interval: 5,
  46. legend: ['金额(万元)'],
  47. });
  48. const data4 = ref({
  49. xData: [],
  50. yData: {},
  51. legend: ['金额(万元)', '数量'],
  52. tittle: '',
  53. type: 'bar',
  54. color: '#0F69FF',
  55. });
  56. const data5 = ref({
  57. xData: [],
  58. yData: [],
  59. tittle: '',
  60. type: 'bar',
  61. areaStyle: {},
  62. color: '#0F69FF',
  63. title: '发放金额(万元)',
  64. interval: 5,
  65. });
  66. const conttList = ref([
  67. { label: '已发放奖励金额', value: 'issuedMoney' },
  68. { label: '发放中的金额', value: 'underReleaseMoney' },
  69. { label: '当年拨付的奖励金额', value: 'currentYearMoney' },
  70. { label: '当月拨付的奖励金额', value: 'currentMonthMoney' },
  71. ]);
  72. const projectCont = ref([
  73. { label: '项目合同数', value: 'count' },
  74. { label: '合同金额', value: 'contractMoney' },
  75. { label: '当年合同数', value: 'currentContractCount' },
  76. { label: '当年合同金额', value: 'currentContractMoney' },
  77. { label: '年度计划支付金额', value: 'currentYearPlanMoney' },
  78. { label: '年度实际支付金额', value: 'currentYearRealityPayMoney' },
  79. ]);
  80. const projectList = ref([
  81. { label: '累计申请奖励项目数', value: 'projectCount' },
  82. { label: '审核中', value: 'workFlowIng' },
  83. { label: '审核通过', value: 'workFlowSuccess' },
  84. { label: '审核驳回', value: 'workFlowReject' },
  85. ]);
  86.  
  87. export {
  88. data1,
  89. data2,
  90. data3,
  91. data4,
  92. data5,
  93. conttList,
  94. projectCont,
  95. projectList,
  96. }