Commit 828fb1c9 by yangxiaolei

fix bug

parent 0e199d99
...@@ -22,8 +22,8 @@ export default { ...@@ -22,8 +22,8 @@ export default {
inr:this.model.brdgrp.rec.inr, inr:this.model.brdgrp.rec.inr,
pageIndex: this.pagination.pageIndex, pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
opndatfrom:this.$route.query.trn ? null : moment(opndatfrom).format('YYYY-MM-DD'), opndatfrom:!opndatfrom? null : moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:this.$route.query.trn ? null: moment(opndatto).format('YYYY-MM-DD'), opndatto:!opndatto ? null: moment(opndatto).format('YYYY-MM-DD'),
}; };
let rtnmsg = await Api.post('/service/infbrd/getList', params); let rtnmsg = await Api.post('/service/infbrd/getList', params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
...@@ -6,7 +6,6 @@ export default { ...@@ -6,7 +6,6 @@ export default {
methods: { methods: {
async handleSearch() { async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom; let opndatfrom = this.model.infcon.opndatfrom;
console.log("this.$route.query.trn=>",this.$route.query.trn)
if ((!opndatfrom || opndatfrom == '') && !this.$route.query.trn) { if ((!opndatfrom || opndatfrom == '') && !this.$route.query.trn) {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' }); this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
...@@ -28,8 +27,8 @@ export default { ...@@ -28,8 +27,8 @@ export default {
fingua: this.model.fingua, fingua: this.model.fingua,
pageIndex: this.pagination.pageIndex, pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
opndatfrom:this.$route.query.trn ? null : moment(opndatfrom).format('YYYY-MM-DD'), opndatfrom:!opndatfrom ? null : moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:this.$route.query.trn ? null :moment(opndatto).format('YYYY-MM-DD'), opndatto:!opndatto ? null :moment(opndatto).format('YYYY-MM-DD'),
}; };
let rtnmsg = await Api.post('/service/inflid/getList', params); let rtnmsg = await Api.post('/service/inflid/getList', params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
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