Commit 10b4b344 by ZcyJames

1.fxdsdb页面调整

parent 88ad7f3e
......@@ -36,6 +36,9 @@
</div>
</template>
<script>
import Api from "~/service/Api"
export default {
mixins: [],
props: {
......@@ -124,8 +127,8 @@ export default {
width: "100px"
},
{
label: "bizdtltyp",
prop: "msgtyp",
label: "业务种类",
prop: "bizdtltyp",
width: "100px"
},
],
......@@ -308,7 +311,8 @@ export default {
},
],
filtyp: '',
keyCode: ''
keyCode: '',
filnam: ''
};
},
watch: {
......@@ -330,6 +334,7 @@ export default {
console.log('=====', res)
if(res.respCode == SUCCESS){
this.filtyp = res.data.filtyp
this.filnam = res.data.filnam
if(res.data.filtyp=='9' || res.data.filtyp=='10'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
......@@ -346,14 +351,14 @@ export default {
this.keyCode = 'fxdsuelst'
}
if(res.data.filtyp=='13' || res.data.filtyp=='14' || res.data.filtyp=='15'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
this.keyCode = 'fxdcomlst'
this.stmData.columns=this.fxdpatlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdpatlst
this.keyCode = 'fxdpatlst'
}
if(res.data.filtyp=='16' || res.data.filtyp=='17'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
this.keyCode = 'fxdcomlst'
this.stmData.columns=this.fxdrellstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdrellst
this.keyCode = 'fxdrellst'
}
if(res.data.filtyp=='18'){
this.stmData.columns=this.fxddcflstHead;
......@@ -370,11 +375,15 @@ export default {
this.isDispaly = true;
},
async handleSubmit() {
let rtnmsg = await Api.post("/webapi/frontend/fxdsdb/saveXml", {
let rtnmsg = await Api.post("/frontend/fxdsdb/saveXml", {
filtyp: this.filtyp,
filnam: this.filnam,
[this.keyCode]: this.stmData.data
});
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = "";
this.stmData.columns = "";
this.visible = false;
this.$notify.success({
title: '提示',
message: '提交成功',
......@@ -385,9 +394,10 @@ export default {
message: this.$t("financing.服务请求失败!"),
});
}
this.visible = false;
},
handleCancel() {
this.stmData.data = "";
this.stmData.columns = "";
this.visible = false;
}
}
......
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