Commit ff7ff030 by lixinyi

将组报和解析都迁移至接口平台

parent 0380c934
......@@ -84,6 +84,13 @@ export default{
data:data
})
},
getBankId(data){
return new link({
url:`/cips/getBankId`,
method:"post",
data:data
})
},
getMsgId(data){
return new link({
url:`/cips/getMsgId`,
......
......@@ -2,8 +2,8 @@
import axios from 'axios'
const service = axios.create({
// baseURL: '/swift-editor-1.0.0', //代理
baseURL: '/swift-editor', //本地用这个
baseURL: '/swift-editor-1.0.0', //代理
// baseURL: '/swift-editor', //本地用这个
timeout: 50000 // request timeout
})
......
......@@ -326,20 +326,37 @@ export default {
this.active = true;
this.showSpan = true;
} else if("1" === this.dataModel.iscips){
// this.$set(this.dataModel, 'value', "C"+this.$moment(new Date()).format("YYYYMMDDHHmmssSSS"));
var msgid = window.sessionStorage.getItem("msgid");
if (msgid != null || msgid != undefined) {
this.dataModel.defaultValue = this.generateId(msgid);
} else {
send.getMsgId().then((res) => {
var data = res.data;
console.log(res);
msgid = data;
if("MsgId" === this.dataModel.tag){
// this.$set(this.dataModel, 'value', "C"+this.$moment(new Date()).format("YYYYMMDDHHmmssSSS"));
var msgid = window.sessionStorage.getItem("msgid");
if (msgid != null || msgid != undefined) {
this.dataModel.defaultValue = this.generateId(msgid);
} else {
send.getMsgId().then((res) => {
var data = res.data;
console.log(res);
msgid = data;
this.dataModel.defaultValue = this.generateId(msgid);
window.sessionStorage.setItem("msgid", msgid);
});
}
console.log("MsgId:"+this.dataModel.value);
}else if("MmbId" === this.dataModel.tag){
var msgid = window.sessionStorage.getItem("mmbid");
if (msgid != null || msgid != undefined) {
this.dataModel.defaultValue = this.generateId(msgid);
window.sessionStorage.setItem("msgid", msgid);
});
} else {
send.getBankId().then((res) => {
var data = res.data;
console.log(res);
msgid = data;
this.dataModel.defaultValue = this.generateId(msgid);
window.sessionStorage.setItem("mmbid", msgid);
});
}
console.log("MmgId:"+this.dataModel.value);
}
console.log("MsgId:"+this.dataModel.value);
}
if (this.dataModel.defaultValue !== undefined) {
this.$set(this.dataModel, "value", this.dataModel.defaultValue);
......
......@@ -88,7 +88,7 @@ public class CipsEditorController {
savemap.put("user", loginUser);
// 1-新增报文 2-更新报文
savemap.put("opeType", StringUtil.isNotEmpty(opeType) ? opeType : "1");
Map saveres = (Map) CommonSend.send(map);
Map saveres = (Map) CommonSend.send(savemap);
String saveretcod = (String) saveres.get("retcode");
String saveretmsg = (String) saveres.get("retmsg");
logger.info("save结果:"+saveres.toString());
......@@ -356,6 +356,21 @@ public class CipsEditorController {
return null;
}
@RequestMapping(value = "/getBankId", method = RequestMethod.POST)
@ResponseBody
public String getBankId() {
Map<String, Object> map = new HashMap();
map.put("interface", "getBankId");
map.put("transaction", "getBankId");
Map rs = (Map) CommonSend.send(map);
logger.info("getBankId结果:"+rs.toString());
String retcod = (String) rs.get("retcode");
if (retcod != null && retcod.endsWith("0000000")) {
return (String) rs.get("bankId");
}else
return null;
}
@RequestMapping(value = "/getMsgId", method = RequestMethod.POST)
@ResponseBody
......
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.dbe64cdc.js"></script><script defer="defer" src="js/app.40d9ace2.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.c80dfddd.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.dbe64cdc.js"></script><script defer="defer" src="js/app.9f47b6c5.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.ca356171.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
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