Commit 7a7102ca by 潘际乾

部分报错解决

parent f703822e
......@@ -75,7 +75,6 @@ export default {
pageSize: 5
};
},
mounted: {},
methods: {
sizeChange(size) {
this.pageSize = size;
......
......@@ -71,25 +71,28 @@ export default class Api
timeout: 50000,
})
.then(response=>{
const {data} = response;
if(data && data.code != SUCCESS)
{
console.log("错误码:"+data.code+" 错误信息:"+data.message)
}
if(data && data.code == 'L0003'){
window.sessionStorage.removeItem("token")
window.sessionStorage.removeItem("userId")
MessageBox.alert({
title:'会话超时',
message:'即将退出,请重新登录',
showClose:false,
callback:()=>{
window.location.href= "/?#/"+"login"
}
})
return ;
}
resolve(data)
const {data} = response;
// if(data && data.code != SUCCESS)
if(data && data.respCode != 'AAAAAA')
{
// console.log("错误码:"+data.code+" 错误信息:"+data.message)
console.log("错误码:"+data.respCode+" 错误信息:"+data.respMsg)
}
// if(data && data.code == 'L0003'){
if(data && data.respCode == 'L0003'){
window.sessionStorage.removeItem("token")
window.sessionStorage.removeItem("userId")
MessageBox.alert({
title:'会话超时',
message:'即将退出,请重新登录',
showClose:false,
callback:()=>{
window.location.href= "/?#/"+"login"
}
})
return ;
}
resolve(data)
})
.catch(error=> {
if (error.response) {
......
......@@ -43,7 +43,7 @@ export default {
methods:{...Event},
mounted:async function(){
console.log("进入sptsel交易");
let rtnmsg = await Api.post(this,"init",{params:{}})
let rtnmsg = await Api.post("sptsel/init",{params:{}})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......
......@@ -228,7 +228,7 @@
</el-col> -->
<!--<p>{{model.trncorco.trnstm}}</p>-->
<c-table style="text-align:center"
:data="stmData"
:list="stmData"
>
<el-table-column
label="TRN"
......
......@@ -67,8 +67,9 @@ export default {
console.log("进入trnrel交易");
let rtnmsg = await Api.post(this,"init",{params:{}})
if(rtnmsg.respCode == SUCCESS)
let rtnmsg = await Api.post("trnrel/init",{params:{}})
// if(rtnmsg.respCode == SUCCESS)
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
this.model.trncorco.trnstm=rtnmsg.data.trncorco_trnstm.rows
......
......@@ -59,7 +59,7 @@ module.exports = (options = {}) => ({
port: 8010,
proxy: {
'/gjjs/': {
target: 'http://127.0.0.1:8070',
target: 'http://127.0.0.1:8081',
changeOrigin: true,
pathRewrite: {
'^/gjjs': '/gjjs'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment