Commit 30032cad authored by huai.li's avatar huai.li

更新创建表单样式

parent 3dd7828c
<template> <template>
<section> <section>
<el-dialog title="新建待办事项" :visible.sync="diaVis" :modal-append-to-body="false"> <el-dialog title="新建待办事项" :visible.sync="diaVis" :modal-append-to-body="false" :before-close="handleClose">
<ScheduleForm <ScheduleForm
:model="model"> :model="model">
</ScheduleForm> </ScheduleForm>
...@@ -47,6 +47,12 @@ export default { ...@@ -47,6 +47,12 @@ export default {
this.diaVis = true this.diaVis = true
}, },
handleClose () {
Object.keys(this.model).forEach(item => {
this.model[item] = ''
})
},
save () { save () {
requestAPI(Object.assign({}, api.saveNewSchedule, { method: 'POST' }), this.model) requestAPI(Object.assign({}, api.saveNewSchedule, { method: 'POST' }), this.model)
.then((res) => { .then((res) => {
......
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