getProjectDetailMock.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. var Mock = require('mockjs')
  2. var data = Mock.mock({
  3. 'project': {
  4. 'name': '项目名',
  5. 'id': '27382hdsjkfdskfK', //项目编号
  6. 'contact': {
  7. 'name': '小王',
  8. 'phone': '12426177281'
  9. },
  10. // 0: "接口测试",
  11. // 1: "安全漏洞扫描",
  12. // 2: "风险评估服务",
  13. // 3: "源代码安全审计服务",
  14. // 4: "功能测试服务",
  15. // 5: "性能测试",
  16. // 6: "功能和易用性测试",
  17. 'type': ['安全漏洞扫描'],
  18. 'platform': ['0', '1'],
  19. 'desc': '需求描述文字',
  20. 'doc': '',
  21. 'file': 'http://a.apk',
  22. // 0: "定向",
  23. // 1: "区域",
  24. // 2: "广场",
  25. 'resource': '1',
  26. //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
  27. 'location': {'provinceCode': '3200', 'cityCode': '3201'},
  28. //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
  29. 'institution': '',
  30. 'datetime': new Date("2018-11-11 23:11:11"), //new Date("2018-11-11 23:11:11"),
  31. 'price': '400',
  32. 'useage': '练习',
  33. 'budget': '100',
  34. 'task': [
  35. {
  36. 'id': '1',
  37. 'name': '任务1',
  38. 'desc': '任务描述文字',
  39. 'type': '安全漏洞扫描',
  40. // 0: "定向",
  41. // 1: "区域",
  42. // 2: "广场",
  43. 'resource': '1',
  44. //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
  45. 'location': {'provinceCode': '3200', 'cityCode': '3201'},
  46. //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
  47. 'institution': '',
  48. //任务截止时间
  49. 'datetime': new Date("2018-11-11 23:11:11"),
  50. // 如已分配,则为测评机构id,否则为空
  51. 'worker': ''
  52. },
  53. {
  54. 'id': '1',
  55. 'name': '任务1',
  56. 'desc': '任务描述文字',
  57. 'type': '安全漏洞扫描',
  58. // 0: "定向",
  59. // 1: "区域",
  60. // 2: "广场",
  61. 'resource': '1',
  62. //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
  63. 'location': {'provinceCode': '3200', 'cityCode': '3201'},
  64. //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
  65. 'institution': '',
  66. 'datetime': new Date("2018-11-11 23:11:11"),
  67. 'worker': ''
  68. }
  69. ],
  70. 'reportList': [
  71. {
  72. 'id': 1,
  73. // 报告类型
  74. // 0: "接口测试",
  75. // 1: "安全漏洞扫描",
  76. // 2: "风险评估服务",
  77. // 3: "源代码安全审计服务",
  78. // 4: "功能测试服务",
  79. // 5: "性能测试",
  80. // 6: "功能和易用性测试",
  81. 'type': 0,
  82. 'file': [{'name': 'report2', 'url': 'report2.excel'}]
  83. },
  84. {
  85. 'id': 2,
  86. // 报告类型
  87. // 0: "接口测试",
  88. // 1: "安全漏洞扫描",
  89. // 2: "风险评估服务",
  90. // 3: "源代码安全审计服务",
  91. // 4: "功能测试服务",
  92. // 5: "性能测试",
  93. // 6: "功能和易用性测试",
  94. 'type': 1,
  95. //报告文件
  96. 'file': [{'name': 'report2', 'url': 'report2.excel'}]
  97. }
  98. ]
  99. },
  100. 'analyseDemandList': [
  101. {
  102. 'id': '1',
  103. 'institution': '上软',
  104. 'feasibilityReport': {
  105. 'name': '可行性分析报告',
  106. 'url': 'feasibilityReport.docx'
  107. },
  108. 'priceAuditReport': {
  109. 'name': '价格审核报告',
  110. 'url': 'priceAuditReport.docx'
  111. }
  112. },
  113. {
  114. 'id': '1',
  115. 'institution': '上软',
  116. 'feasibilityReport': {
  117. 'name': '可行性分析报告',
  118. 'url': 'feasibilityReport.docx'
  119. },
  120. 'priceAuditReport': {
  121. 'name': '价格审核报告',
  122. 'url': 'priceAuditReport.docx'
  123. }
  124. }
  125. ]
  126. })
  127. export {
  128. data
  129. }