var Mock = require('mockjs') var data = Mock.mock({ 'project': { 'name': '项目名', 'id': '27382hdsjkfdskfK', //项目编号 'contact': { 'name': '小王', 'phone': '12426177281' }, // 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'}] } ] }, 'analyseDemandList': [ { 'id': '1', 'institution': '上软', 'feasibilityReport': { 'name': '可行性分析报告', 'url': 'feasibilityReport.docx' }, 'priceAuditReport': { 'name': '价格审核报告', 'url': 'priceAuditReport.docx' } }, { 'id': '1', 'institution': '上软', 'feasibilityReport': { 'name': '可行性分析报告', 'url': 'feasibilityReport.docx' }, 'priceAuditReport': { 'name': '价格审核报告', 'url': 'priceAuditReport.docx' } } ] }) export { data }