Commit 10b4b344 by ZcyJames

1.fxdsdb页面调整

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