修改时间格式

This commit is contained in:
qq787203167
2022-02-22 10:54:08 +08:00
parent 869b49f3f6
commit 24c7c76744
3 changed files with 6 additions and 48 deletions
@@ -48,8 +48,8 @@
<span class="title-text-text">{{item.db_field_txt}}</span>
</div>
<a-form-model-item class="itemModel" :prop="item.db_field_name">
@change="dateChange(item)"
<a-date-picker class="box-input"
@change="dateChange(item)"
format="YYYY-MM-DD"
v-model="formInline[item.db_field_name]"
:disabled="disabled"
@@ -285,9 +285,9 @@
}
})
},
// dateChange(item) {
// this.formInline[item.db_field_name] = moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD')
// },
dateChange(item) {
this.formInline[item.db_field_name] = moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD')
},
onChange(date, dateString) {
console.log(typeof date)
// moment(date).format('YYYY-MM-DD')
@@ -161,17 +161,6 @@
overflow: auto;
}
.box-table {
width: 100%;
overflow: auto;
position: relative;
}
.checkbox {
min-width: 30px;
margin-top: 10px;
}
.text {
margin-right: 16px;
}
@@ -181,36 +170,3 @@
margin-top: 20px;
}
</style>
<style>
.box-th {
min-width: 100px;
max-width: 300px;
padding: 20px 20px;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.box-td {
min-width: 100px;
max-width: 300px;
padding: 20px 20px;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.box-th-po {
max-width: 340px;
position: sticky;
right: 0;
background: #fff;
padding: 20px 0 20px 20px;
box-sizing: border-box;
text-align: left;
}
</style>
@@ -139,8 +139,10 @@
padding: 20px;
.doc-detail-wrap{
.doc-detail-header{
height: 50px;
display: flex;
justify-content: space-between;
border-bottom:1px #9e9e9e solid ;
.doc-detail-title{
display:inline-block;
text-overflow:ellipsis;