mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 04:37:31 +08:00
fix date picker
This commit is contained in:
@@ -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)
|
||||
|
@@ -393,7 +393,7 @@ export default {
|
||||
},
|
||||
|
||||
getAttributes () {
|
||||
searchAttributes().then(res => {
|
||||
searchAttributes({ page_size: 10000 }).then(res => {
|
||||
this.allAttributes = res.attributes
|
||||
})
|
||||
},
|
||||
|
Reference in New Issue
Block a user