Commit f80d9177 by nanrui

infcur以及Dbecur静态交易优化。

parent 652ca280
...@@ -67,7 +67,7 @@ import Bctrad from "./Bctrad" ...@@ -67,7 +67,7 @@ import Bctrad from "./Bctrad"
import Bctdor from "./Bctdor" import Bctdor from "./Bctdor"
import Bctset from "./Bctset" import Bctset from "./Bctset"
import Bctame from "./Bctame" import Bctame from "./Bctame"
import Infcur from "../Statics/Infcur" import Infcur from "./Infcur"
import Infbed from "./Infbed" import Infbed from "./Infbed"
import Letcan from "./Letcan" import Letcan from "./Letcan"
import Ordrel from "./Ordrel" import Ordrel from "./Ordrel"
......
...@@ -42,6 +42,9 @@ export default { ...@@ -42,6 +42,9 @@ export default {
}; };
}, },
methods: { methods: {
async goin(){
this.model = await curInfo(this.$route.params.inr);
},
commitEdit() { commitEdit() {
this.model.inr = this.$route.params.inr this.model.inr = this.$route.params.inr
this.$refs.modelForm.validate((validated) => { this.$refs.modelForm.validate((validated) => {
...@@ -64,6 +67,9 @@ export default { ...@@ -64,6 +67,9 @@ export default {
this.$router.push({ name: "StaticsInfcur", params: { update } }); this.$router.push({ name: "StaticsInfcur", params: { update } });
}, },
}, },
created () {
this.goin(this.$route.params.inr);
},
mounted() { mounted() {
// this.$refs.cur.rules['ptaList'] = [ // this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' } // { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
......
...@@ -48,8 +48,8 @@ export default class Cur { ...@@ -48,8 +48,8 @@ export default class Cur {
"maxamt": 9999999999.99, "maxamt": 9999999999.99,
"ver": "0001", "ver": "0001",
"etgextkey": "CEBGRP", "etgextkey": "CEBGRP",
"pageSize": 0, "pageSize": 5,
"pageNum": 0 "pageNum": 1
} }
} }
} }
......
...@@ -103,38 +103,36 @@ export default { ...@@ -103,38 +103,36 @@ export default {
console.log(this.model); console.log(this.model);
}) })
}, },
async onInfbutSearow() { // async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow") // let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) { // if (rtnmsg.respCode == SUCCESS) {
console.log(rtnmsg.data); // console.log(rtnmsg.data);
//TODO 处理数据逻辑 // //TODO 处理数据逻辑
this.updateModel(rtnmsg.data); // this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.infbut_dspstm.rows; // this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
} // }
else { // else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); // this.$notify.error({ title: '错误', message: '服务请求失败!' });
} // }
}, // },
queryFunc(pageNumber, pageSize) { queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber this.model.pageNum = pageNumber
this.model.pageSize = pageSize this.model.pageSize = pageSize
// console.log(this.model);
this.onInfcurSearch() this.onInfcurSearch()
}, },
curtypeChange(val) { // curtypeChange(val) {
this.model.curtyp = val; // this.model.curtyp = val;
}, // },
getCodesByKey(key) { getCodesByKey(key) {
return codes[key] ?? []; return codes[key] ?? [];
}, },
curAdd() {
this.$router.push(`/statics/dbacur`)
},
curInfo(index, row) { curInfo(index, row) {
// console.log(row); // console.log(row);
this.$router.push(`/statics/dbicur/${row.inr}`) this.$router.push(`/statics/dbicur/${row.inr}`)
}, },
curEdit(index, row) { curEdit(index, row) {
this.$router.push(`/statics/dbecur/${row.inr}`) this.$router.push(`/statics/dbecur/${row.inr}`);
}, },
// curDelete(index, row) { // curDelete(index, row) {
// this.$router.push(`/statics/dbdcur/${row.inr}`) // this.$router.push(`/statics/dbdcur/${row.inr}`)
...@@ -148,13 +146,6 @@ export default { ...@@ -148,13 +146,6 @@ export default {
.then(() => { .then(() => {
let paramsData = { }; let paramsData = { };
paramsData.inr = row.inr; paramsData.inr = row.inr;
// let result = deleteById(paramsData).then((d) => {return {data: d}});
// console.log(result);
// if(result == "true"){
// this.$message.success("删除成功!");
// }else{
// this.$message.error("删除失败!");
// }
deleteById(paramsData) deleteById(paramsData)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
...@@ -171,6 +162,7 @@ export default { ...@@ -171,6 +162,7 @@ export default {
message: "已取消删除", message: "已取消删除",
}); });
}); });
this.onInfcurSearch();
}, },
goBack(update) { goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route); this.$store.dispatch("TagsView/delView", this.$route);
......
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