提交 9d0ef17b authored 作者: zax's avatar zax

表格数据

上级 6abeee07
......@@ -4,7 +4,7 @@
// 服务地址
// const IP = 'https://www.easy-mock.com/mock/5b70ec93ad23a1570071a34e/Interview'; // easymock
const IP = 'http://192.168.1.54:8077';
const IP = 'http://192.168.1.246:8077';
const WS = '192.168.1.54:8077';
// const IP = 'http://120.55.57.35:8077';
// const WS = '120.55.57.35:8077';
......
......@@ -111,21 +111,22 @@ export default {
},
// 体检结果
Jump() {
const id = 2
this.$server.getProject(id).then(res => {
// this.$server.getPerformanceData(res.data)
console.log(res)
const id = 2 // 项目id
this.$server.getProject(id).then(res => { // 获取项目详情
this.$server.getPerformanceData(res.data.techId).then(res => { // 根据项目techID获取性能表格数据
console.log(res)
sessionStorage.setItem('tableData', JSON.stringify(res.data)) // 存储表格数据
this.$router.push('/qualityResult'); // 跳转表格
})
})
// this.$router.push('/qualityResult');
},
// 体验
experience(id) {
console.log(id)
let data = {
id: 2,
techId: id
id: 2, // 项目id
techId: id // 操作系统id
}
this.$server.postModify(data).then(res => {
this.$server.postModify(data).then(res => { // 传输每次体验系统id
console.log(res)
})
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论