Commit b692c87d by WF1020

gitopn修改

parent f0ebe2fd
import Utils from '~/utils/index';
import Api from '~/service/Api';
import moment from 'moment'
export default {
methods: {
//重置
......@@ -65,8 +66,8 @@ export default {
}
let params = {
ownref: this.model.trncorco.ownref,
inidattil: this.model.trncorco.inidattil,
inidatfro: this.model.trncorco.inidatfro,
inidattil: moment(this.model.trncorco.inidattil).format('YYYY-MM-DD'),
inidatfro: moment(this.model.trncorco.inidatfro).format('YYYY-MM-DD'),
usrcon: this.model.usrcon,
relflg: this.model.trncorco.relflg,
bchcon: this.model.bchcon,
......
......@@ -99,7 +99,7 @@
<el-row>
<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
v-for="(item, key) in stmData.columns"
:key="key"
......@@ -196,12 +196,17 @@
methods: {
getInidatfro(){
let datetime = new Date();
datetime = datetime.setDate(datetime.getDate() - 1);
datetime = datetime.setDate(datetime.getDate() - 10);
this.model.trncorco.inidatfro = new Date(datetime);
}
},
created() {
this.getInidatfro();
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();
})
},
computed: {
reload() {
......@@ -214,12 +219,6 @@
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>
......
......@@ -81,7 +81,7 @@ export default {
let rtnmsg = await Api.post('/service/trnrel/relrow', params);
if (rtnmsg.respCode === SUCCESS) {
let errorMsg = '';
let fieldErrorsFlag = JSON.stringify(rtnmsg.data.fieldErrors) == '{}';
let fieldErrorsFlag = !rtnmsg.data.fieldErrors;
if (!fieldErrorsFlag) {
let errorMsgkey = '';
let errorMsgVal = '';
......@@ -109,7 +109,7 @@ export default {
}
} else {
let errorMsg = '';
let fieldErrorsFlag = JSON.stringify(rtnmsg.data.fieldErrors) == '{}';
let fieldErrorsFlag = !rtnmsg.data.fieldErrors;
if (!fieldErrorsFlag) {
let errorMsgkey = '';
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