Commit 515be918 by fukai

合并与国结对接的内容

parent bd1b3e6b
...@@ -2,91 +2,91 @@ import link from "./service" ...@@ -2,91 +2,91 @@ import link from "./service"
export default{ export default{
sendSWiftMes(data){ sendSWiftMes(data){
return new link({ return new link({
url:`/swift/msgsend`, url:`/swiftiso/msgsend`,
method:"post", method:"post",
data:data data:data
}) })
}, },
saveSWiftMes(data){ saveSWiftMes(data){
return new link({ return new link({
url:`/swift/msgsave`, url:`/swiftiso/msgsave`,
method:"post", method:"post",
data:data data:data
}) })
}, },
validateSWiftMes(data){ validateSWiftMes(data){
return new link({ return new link({
url:`/swift/msgvalidate`, url:`/swiftiso/msgvalidate`,
method:"post", method:"post",
data:data data:data
}) })
}, },
mx2mt(data){ mx2mt(data){
return new link({ return new link({
url:`/swift/mx2mt`, url:`/swiftiso/mx2mt`,
method:"post", method:"post",
data:data data:data
}) })
}, },
mxType(data){ mxType(data){
return new link({ return new link({
url:`/swift/mxType`, url:`/swiftiso/mxType`,
method:"post", method:"post",
data:data data:data
}) })
}, },
mt2mx(data){ mt2mx(data){
return new link({ return new link({
url:`/swift/mt2mx`, url:`/swiftiso/mt2mx`,
method:"post", method:"post",
data:data data:data
}) })
}, },
mx2Json(data){ mx2Json(data){
return new link({ return new link({
url:`/swift/mx2Json`, url:`/swiftiso/mx2Json`,
method:"post", method:"post",
data:data data:data
}) })
}, },
saveTemplate(data){ saveTemplate(data){
return new link({ return new link({
url:`/swift/saveTemplate`, url:`/swiftiso/saveTemplate`,
method:"post", method:"post",
data:data data:data
}) })
}, },
getTemplate(data){ getTemplate(data){
return new link({ return new link({
url:`/swift/getTemplate`, url:`/swiftiso/getTemplate`,
method:"post", method:"post",
data:data data:data
}) })
}, },
getCancelOriginalMsgInfos(data){ getCancelOriginalMsgInfos(data){
return new link({ return new link({
url:`/swift/getCancelOriginalMsgInfos`, url:`/swiftiso/getCancelOriginalMsgInfos`,
method:"post", method:"post",
data:data data:data
}) })
}, },
getFillElements(data){ getFillElements(data){
return new link({ return new link({
url:`/swift/getFillElements`, url:`/swiftiso/getFillElements`,
method:"post", method:"post",
data:data data:data
}) })
}, },
getBic(data){ getBic(data){
return new link({ return new link({
url:`/swift/getBic`, url:`/swiftiso/getBic`,
method:"post", method:"post",
data:data data:data
}) })
}, },
getISOBankId(data){ getISOBankId(data){
return new link({ return new link({
url:`/swift/getBankId`, url:`/swiftiso/getBankId`,
method:"post", method:"post",
data:data data:data
}) })
......
import axios from 'axios' import axios from 'axios'
axios.interceptors.request.use(config=>{
config.headers.token = window.sessionStorage.token
config.headers.userid = window.sessionStorage.userId
config.headers.terminal = 'WEB'
})
const service = axios.create({ const service = axios.create({
baseURL: '/iso-editor', //代理 baseURL: '/webapi/frontend', //代理
// baseURL: '/swift-editor', //本地用这个 // baseURL: '/swift-editor', //本地用这个
timeout: 50000 // request timeout timeout: 50000, // request timeout
headers:{
token : window.sessionStorage.token,
userid : window.sessionStorage.userId,
terminal : 'WEB'
}
}) })
axios.interceptors.response.use(response => { axios.interceptors.response.use(response => {
response.headers['Content-Type'] = 'text/html; charset=utf-8'; response.headers['Content-Type'] = 'text/html; charset=utf-8';
return response; return response;
......
...@@ -260,21 +260,21 @@ export default { ...@@ -260,21 +260,21 @@ export default {
if("bicfi" === this.dataModel.tag){ if("bicfi" === this.dataModel.tag){
this.loadData(); this.loadData();
} }
if ("1"===this.dataModel.bicid) { // if ("1"===this.dataModel.bicid) {
var bicid = window.sessionStorage.getItem("bicid"); // var bicid = window.sessionStorage.getItem("bicid");
if (bicid != null || bicid != undefined) { // if (bicid != null || bicid != undefined) {
this.dataModel.defaultValue = this.generateId(bicid); // this.dataModel.defaultValue = this.generateId(bicid);
} else { // } else {
send.getISOBankId().then((res) => { // send.getISOBankId().then((res) => {
var data = res.data; // var data = res.data;
console.log(res); // console.log(res);
bicid = data; // bicid = data;
this.dataModel.defaultValue = this.generateId(bicid); // this.dataModel.defaultValue = this.generateId(bicid);
window.sessionStorage.setItem("bicid", bicid); // window.sessionStorage.setItem("bicid", bicid);
}); // });
} // }
console.log("bicid:"+this.dataModel.value); // console.log("bicid:"+this.dataModel.value);
} // }
var smhinr = this.$route.query.smhinr; var smhinr = this.$route.query.smhinr;
if (smhinr != undefined && smhinr != null) { if (smhinr != undefined && smhinr != null) {
// if ( // if (
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column> <el-table-column>
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/iso/'+scope.row.value+`/${loginUser}`">{{"Create " + scope.row.value + " " + scope.row.label}}</router-link> <router-link :to="'/iso/'+scope.row.value+`/iso?loginuser=${loginUser}`">{{"Create " + scope.row.value + " " + scope.row.label}}</router-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -31,7 +31,8 @@ export default { ...@@ -31,7 +31,8 @@ export default {
activeName: 'second', activeName: 'second',
inputCbprPlus: '', inputCbprPlus: '',
inputRtgs: '', inputRtgs: '',
loginUser: this.$route.query.loginUser, //loginUser: window.location.search.slice(1) || 1,
loginUser: this.$route.query.loginuser,
} }
}, },
methods:{ methods:{
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
map: "", map: "",
smhinr: this.$route.query.smhinr, smhinr: this.$route.query.smhinr,
mxminr: this.$route.query.mxminr, mxminr: this.$route.query.mxminr,
loginUser: this.$route.params.loginUser, loginUser: this.$route.query.loginuser,
count: 1, count: 1,
templateData:"", templateData:"",
}; };
...@@ -1077,7 +1077,8 @@ export default { ...@@ -1077,7 +1077,8 @@ export default {
}); });
}, },
created:function(){ created:function(){
window.sessionStorage.clear() window.sessionStorage.removeItem("id")
window.sessionStorage.removeItem("mmbid")
} }
}; };
</script> </script>
......
...@@ -981,7 +981,8 @@ export default { ...@@ -981,7 +981,8 @@ export default {
}); });
}, },
created:function(){ created:function(){
window.sessionStorage.clear() window.sessionStorage.removeItem("id")
window.sessionStorage.removeItem("mmbid")
} }
}; };
</script> </script>
......
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