Commit 7a7102ca by 潘际乾

部分报错解决

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