|
|
@@ -1,128 +1,55 @@
|
|
|
var Mock = require('mockjs')
|
|
|
var data = Mock.mock({
|
|
|
- 'project': {
|
|
|
- 'name': '项目名',
|
|
|
- 'id': '27382hdsjkfdskfK', //项目编号
|
|
|
- 'contact': {
|
|
|
- 'name': '小王',
|
|
|
- 'phone': '12426177281'
|
|
|
+ 'projectDetails': {
|
|
|
+ 'id': 'PROJECT_1',
|
|
|
+ 'name': '慕测平台',
|
|
|
+ 'contactName': '郭超超',
|
|
|
+ 'contactPhone': '18032653383',
|
|
|
+ 'type': '1',
|
|
|
+ 'platform': 'ceshi',
|
|
|
+ 'desc': 'ceshi',
|
|
|
+ 'doc': 'ceshi',
|
|
|
+ 'file': 'cehsi',
|
|
|
+ 'resource': 1,
|
|
|
+ 'location': {
|
|
|
+ 'provinceCode': '100',
|
|
|
+ 'cityCode': '2333'
|
|
|
},
|
|
|
- // 0: "接口测试",
|
|
|
- // 1: "安全漏洞扫描",
|
|
|
- // 2: "风险评估服务",
|
|
|
- // 3: "源代码安全审计服务",
|
|
|
- // 4: "功能测试服务",
|
|
|
- // 5: "性能测试",
|
|
|
- // 6: "功能和易用性测试",
|
|
|
- 'type': ['安全漏洞扫描'],
|
|
|
- 'platform': ['0', '1'],
|
|
|
- 'desc': '需求描述文字',
|
|
|
- 'doc': '',
|
|
|
- 'file': 'http://a.apk',
|
|
|
- // 0: "定向",
|
|
|
- // 1: "区域",
|
|
|
- // 2: "广场",
|
|
|
- 'resource': '1',
|
|
|
- //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
|
|
|
- 'location': {'provinceCode': '3200', 'cityCode': '3201'},
|
|
|
- //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
|
|
|
- 'institution': '',
|
|
|
- 'datetime': new Date("2018-11-11 23:11:11"), //new Date("2018-11-11 23:11:11"),
|
|
|
- 'price': '400',
|
|
|
- 'useage': '练习',
|
|
|
- 'budget': '100',
|
|
|
- 'task': [
|
|
|
- {
|
|
|
- 'id': '1',
|
|
|
- 'name': '任务1',
|
|
|
- 'desc': '任务描述文字',
|
|
|
- 'type': '安全漏洞扫描',
|
|
|
- // 0: "定向",
|
|
|
- // 1: "区域",
|
|
|
- // 2: "广场",
|
|
|
- 'resource': '1',
|
|
|
- //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
|
|
|
- 'location': {'provinceCode': '3200', 'cityCode': '3201'},
|
|
|
- //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
|
|
|
- 'institution': '',
|
|
|
- //任务截止时间
|
|
|
- 'datetime': new Date("2018-11-11 23:11:11"),
|
|
|
- // 如已分配,则为测评机构id,否则为空
|
|
|
- 'worker': ''
|
|
|
- },
|
|
|
- {
|
|
|
- 'id': '1',
|
|
|
- 'name': '任务1',
|
|
|
- 'desc': '任务描述文字',
|
|
|
- 'type': '安全漏洞扫描',
|
|
|
- // 0: "定向",
|
|
|
- // 1: "区域",
|
|
|
- // 2: "广场",
|
|
|
- 'resource': '1',
|
|
|
- //当项目发布类型为0或2时,location字段无效;发布类型为1时,location字段表示接收项目的区域
|
|
|
- 'location': {'provinceCode': '3200', 'cityCode': '3201'},
|
|
|
- //当项目发布类型为1或2时,institution字段无效;发布类型为0时,institution字段表示接收项目的区域
|
|
|
- 'institution': '',
|
|
|
- 'datetime': new Date("2018-11-11 23:11:11"),
|
|
|
- 'worker': ''
|
|
|
- }
|
|
|
- ],
|
|
|
- 'reportList': [
|
|
|
- {
|
|
|
- 'id': 1,
|
|
|
- // 报告类型
|
|
|
- // 0: "接口测试",
|
|
|
- // 1: "安全漏洞扫描",
|
|
|
- // 2: "风险评估服务",
|
|
|
- // 3: "源代码安全审计服务",
|
|
|
- // 4: "功能测试服务",
|
|
|
- // 5: "性能测试",
|
|
|
- // 6: "功能和易用性测试",
|
|
|
- 'type': 0,
|
|
|
- 'file': [{'name': 'report2', 'url': 'report2.excel'}]
|
|
|
- },
|
|
|
- {
|
|
|
- 'id': 2,
|
|
|
- // 报告类型
|
|
|
- // 0: "接口测试",
|
|
|
- // 1: "安全漏洞扫描",
|
|
|
- // 2: "风险评估服务",
|
|
|
- // 3: "源代码安全审计服务",
|
|
|
- // 4: "功能测试服务",
|
|
|
- // 5: "性能测试",
|
|
|
- // 6: "功能和易用性测试",
|
|
|
- 'type': 1,
|
|
|
- //报告文件
|
|
|
- 'file': [{'name': 'report2', 'url': 'report2.excel'}]
|
|
|
- }
|
|
|
- ]
|
|
|
+ 'institution': 6,
|
|
|
+ 'datetime': '2019-07-29T20:54:23.000+0000',
|
|
|
+ 'price': 20.0,
|
|
|
+ 'budget': 20.0,
|
|
|
+ 'usage': null
|
|
|
},
|
|
|
- 'analyseDemandList': [
|
|
|
+ 'taskList': [
|
|
|
{
|
|
|
- 'id': '1',
|
|
|
- 'institution': '上软',
|
|
|
- 'feasibilityReport': {
|
|
|
- 'name': '可行性分析报告',
|
|
|
- 'url': 'feasibilityReport.docx'
|
|
|
- },
|
|
|
- 'priceAuditReport': {
|
|
|
- 'name': '价格审核报告',
|
|
|
- 'url': 'priceAuditReport.docx'
|
|
|
- }
|
|
|
+ 'id': 1,
|
|
|
+ 'name': '慕测平台-任务一',
|
|
|
+ 'crowdTestProjectId': null,
|
|
|
+ 'evaluationAgencyId': 1,
|
|
|
+ 'type': '0',
|
|
|
+ 'description': null,
|
|
|
+ 'requirementFile': null,
|
|
|
+ 'quotedPrice': 10.0,
|
|
|
+ 'fixedPrice': null,
|
|
|
+ 'status': 'HAS_CREATED',
|
|
|
+ 'createTime': '2019-07-29T21:08:54.000+0000'
|
|
|
},
|
|
|
{
|
|
|
- 'id': '1',
|
|
|
- 'institution': '上软',
|
|
|
- 'feasibilityReport': {
|
|
|
- 'name': '可行性分析报告',
|
|
|
- 'url': 'feasibilityReport.docx'
|
|
|
- },
|
|
|
- 'priceAuditReport': {
|
|
|
- 'name': '价格审核报告',
|
|
|
- 'url': 'priceAuditReport.docx'
|
|
|
- }
|
|
|
+ 'id': 2,
|
|
|
+ 'name': '慕测平台-任务二',
|
|
|
+ 'crowdTestProjectId': null,
|
|
|
+ 'evaluationAgencyId': 2,
|
|
|
+ 'type': '0',
|
|
|
+ 'description': null,
|
|
|
+ 'requirementFile': null,
|
|
|
+ 'quotedPrice': 10.0,
|
|
|
+ 'fixedPrice': null,
|
|
|
+ 'status': 'HAS_CREATED',
|
|
|
+ 'createTime': '2019-07-29T21:08:56.000+0000'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ 'reportList': null
|
|
|
})
|
|
|
|
|
|
export {
|