Commit b692c87d by WF1020

gitopn修改

parent f0ebe2fd
import Utils from '~/utils/index'; import Utils from '~/utils/index';
import Api from '~/service/Api'; import Api from '~/service/Api';
import moment from 'moment'
export default { export default {
methods: { methods: {
//重置 //重置
...@@ -65,8 +66,8 @@ export default { ...@@ -65,8 +66,8 @@ export default {
} }
let params = { let params = {
ownref: this.model.trncorco.ownref, ownref: this.model.trncorco.ownref,
inidattil: this.model.trncorco.inidattil, inidattil: moment(this.model.trncorco.inidattil).format('YYYY-MM-DD'),
inidatfro: this.model.trncorco.inidatfro, inidatfro: moment(this.model.trncorco.inidatfro).format('YYYY-MM-DD'),
usrcon: this.model.usrcon, usrcon: this.model.usrcon,
relflg: this.model.trncorco.relflg, relflg: this.model.trncorco.relflg,
bchcon: this.model.bchcon, bchcon: this.model.bchcon,
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-row> <el-row>
<c-col :span="24" style=""> <c-col :span="24" style="">
<el-table :data="stmData.data" :columns="stmData.columns" style="width:100%" :max-height="maxHeight"> <el-table :data="stmData.data" :columns="stmData.columns" style="width:100%">
<el-table-column <el-table-column
v-for="(item, key) in stmData.columns" v-for="(item, key) in stmData.columns"
:key="key" :key="key"
...@@ -196,12 +196,17 @@ ...@@ -196,12 +196,17 @@
methods: { methods: {
getInidatfro(){ getInidatfro(){
let datetime = new Date(); let datetime = new Date();
datetime = datetime.setDate(datetime.getDate() - 1); datetime = datetime.setDate(datetime.getDate() - 10);
this.model.trncorco.inidatfro = new Date(datetime); this.model.trncorco.inidatfro = new Date(datetime);
} }
}, },
created() { mounted() {
//适配不同页面下的table高度
//其中159为form表单高度,不同页面高度不同,可以考虑获取dom高度
// this.maxHeight = (document.body.clientHeight || document.documentElement.clientHeight) - 60 - 40 - 40 - 42 - 40 - 159 - 10 - 37 - 60;
this.$nextTick(() => {
this.getInidatfro(); this.getInidatfro();
})
}, },
computed: { computed: {
reload() { reload() {
...@@ -214,12 +219,6 @@ ...@@ -214,12 +219,6 @@
this.handleSearch() this.handleSearch()
} }
} }
},
created() {
//适配不同页面下的table高度
//其中159为form表单高度,不同页面高度不同,可以考虑获取dom高度
this.maxHeight = (document.body.clientHeight || document.documentElement.clientHeight) - 60 - 40 - 40 - 42 - 40 - 159 - 10 - 37 - 60;
} }
}; };
</script> </script>
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
let rtnmsg = await Api.post('/service/trnrel/relrow', params); let rtnmsg = await Api.post('/service/trnrel/relrow', params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
let errorMsg = ''; let errorMsg = '';
let fieldErrorsFlag = JSON.stringify(rtnmsg.data.fieldErrors) == '{}'; let fieldErrorsFlag = !rtnmsg.data.fieldErrors;
if (!fieldErrorsFlag) { if (!fieldErrorsFlag) {
let errorMsgkey = ''; let errorMsgkey = '';
let errorMsgVal = ''; let errorMsgVal = '';
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
} }
} else { } else {
let errorMsg = ''; let errorMsg = '';
let fieldErrorsFlag = JSON.stringify(rtnmsg.data.fieldErrors) == '{}'; let fieldErrorsFlag = !rtnmsg.data.fieldErrors;
if (!fieldErrorsFlag) { if (!fieldErrorsFlag) {
let errorMsgkey = ''; let errorMsgkey = '';
let errorMsgVal = ''; let errorMsgVal = '';
......
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