提交 fc5ab20f authored 作者: CRS's avatar CRS

new

上级 096c1185
...@@ -113,11 +113,14 @@ export default { ...@@ -113,11 +113,14 @@ export default {
} }
this.$server.getEvaluationList(this.currentPage,this.pagesize,val).then(res=>{ this.$server.getEvaluationList(this.currentPage,this.pagesize,val).then(res=>{
console.log(res.data) console.log(res.data)
this.allData = res.data.rows; if (res.data.code === 200) {
this.totleLength = res.data.total; this.allData = res.data.data.rows;
this.totleLength = res.data.data.total;
for (let item of this.allData) { for (let item of this.allData) {
item.createDate = item.createDate === '' ? '暂无' : this.time(item.createDate); item.createDate = item.createDate === '' ? '暂无' : this.time(item.createDate);
} }
}
}).catch(err => { }).catch(err => {
console.log(err.message); console.log(err.message);
}) })
......
...@@ -1030,7 +1030,7 @@ export default { ...@@ -1030,7 +1030,7 @@ export default {
console.log(name) console.log(name)
this.$server.getTechnology(name).then(res=>{ this.$server.getTechnology(name).then(res=>{
console.log('数据请求结果',res) console.log('数据请求结果',res)
if (res.data === 500) { if (res.data.code === 500) {
this.picture = true this.picture = true
// this.orgName = res.data.orgName // this.orgName = res.data.orgName
...@@ -1040,51 +1040,50 @@ export default { ...@@ -1040,51 +1040,50 @@ export default {
// this.type = res.data.type // this.type = res.data.type
} else { } else {
this.orgName = res.data.data.orgName
this.orgName = res.data.orgName this.sysName = res.data.data.sysName
this.sysName = res.data.sysName this.time = res.data.data.time
this.time = res.data.time this.difficulty = res.data.data.difficulty
this.difficulty = res.data.difficulty this.type = res.data.data.type
this.type = res.data.type
// this.type === 1 ? this.type = '改造' : this.type = '适配' // this.type === 1 ? this.type = '改造' : this.type = '适配'
this.framework = res.data.framework this.framework = res.data.data.framework
this.language = res.data.language this.language = res.data.data.language
this.budget = res.data.budget this.budget = res.data.data.budget
// firstTable // firstTable
this.tableData = res.data.sysScale this.tableData = res.data.data.sysScale
console.log( 'pic', res.data) console.log( 'pic', res.data.data)
// console.log( '3333',this.tableData) // console.log( '3333',this.tableData)
// console.log( 'type',this.type) // console.log( 'type',this.type)
// technologyReports 技术和替换策略建议 // technologyReports 技术和替换策略建议
// 循环表格 // 循环表格
this.table1Data = res.data.technologyList.technologyReports this.table1Data = res.data.data.technologyList.technologyReports
console.log('9090',this.tableData) console.log('9090',this.tableData)
console.log(this.table1Data,'替换策略') console.log(this.table1Data,'替换策略')
let firstDetial; let firstDetial;
this.firstDetial = res.data.technologyList this.firstDetial = res.data.data.technologyList
// 技术和替换策略建议 // 技术和替换策略建议
// //
this.opper = res.data.technologyList.technologyReports this.opper = res.data.data.technologyList.technologyReports
console.log('oooo',this.opper) console.log('oooo',this.opper)
// 工作量评估 // 工作量评估
// let newWork; // let newWork;
this.newWork = res.data.workload; this.newWork = res.data.data.workload;
// console.log('wordLoad2222',this.newWork) // console.log('wordLoad2222',this.newWork)
// 额外费用申请 // 额外费用申请
this.newApply = res.data.apply this.newApply = res.data.data.apply
// console.log('额外费用申请',this.newApply) // console.log('额外费用申请',this.newApply)
// 适配难度评估 // 适配难度评估
// 系统部署架构难度 // 系统部署架构难度
this.newDifficuty = res.data.difficultyAssessment this.newDifficuty = res.data.data.difficultyAssessment
// 中间件 // 中间件
...@@ -1166,7 +1165,7 @@ export default { ...@@ -1166,7 +1165,7 @@ export default {
// 适配难度评估 // 适配难度评估
// 造价估算 manufacturingCost // 造价估算 manufacturingCost
this.newCost = res.data.manufacturingCost this.newCost = res.data.data.manufacturingCost
console.log('造价估算',this.newCost) console.log('造价估算',this.newCost)
// 造价估算 // 造价估算
......
...@@ -42,18 +42,6 @@ axios.interceptors.response.use(function (response) { ...@@ -42,18 +42,6 @@ axios.interceptors.response.use(function (response) {
} }
}, function (error) { }, function (error) {
// 预处理响应错误(error) // 预处理响应错误(error)
console.log(error.request.status);
if (error.request.status === 403) {
v.$message.error('您没有访问权限!');
setTimeout(function () {
router.push({name: 'login'})
}, 500)
} else if (error.request.status === 400) {
v.$message.error('登录已超时,请重新登陆!');
setTimeout(function () {
router.push({name: 'login'})
}, 500)
}
// console.log(error.splice(error.length - 4,error.length - 1)) // console.log(error.splice(error.length - 4,error.length - 1))
return Promise.reject(error); return Promise.reject(error);
}); });
......
...@@ -375,7 +375,7 @@ const server = { ...@@ -375,7 +375,7 @@ const server = {
method:'get', method:'get',
}) })
}, },
upExcel(data){ //excel upExcel(data){ // excel
return axios( assessma + '/inspect/importExcelToRapidAssessment',{ return axios( assessma + '/inspect/importExcelToRapidAssessment',{
method:'post', method:'post',
data:data data:data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论