fix date picker

This commit is contained in:
pycook
2019-10-24 14:48:58 +08:00
parent b5a987f6b4
commit 9c7d51127a
4 changed files with 11 additions and 5 deletions

View File

@@ -128,6 +128,11 @@ export default {
createInstance (e) {
e.preventDefault()
this.form.validateFields((err, values) => {
Object.keys(values).forEach(k => {
if (typeof values[k] === 'object') {
values[k] = values[k].format("YYYY-MM-DD HH:mm:ss")
}
})
if (!err) {
if (this.action === 'update') {
this.$emit('submit', values)

View File

@@ -393,7 +393,7 @@ export default {
},
getAttributes () {
searchAttributes().then(res => {
searchAttributes({ page_size: 10000 }).then(res => {
this.allAttributes = res.attributes
})
},