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

更新创建表单样式

parent 3dd7828c
<template>
<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
:model="model">
</ScheduleForm>
......@@ -47,6 +47,12 @@ export default {
this.diaVis = true
},
handleClose () {
Object.keys(this.model).forEach(item => {
this.model[item] = ''
})
},
save () {
requestAPI(Object.assign({}, api.saveNewSchedule, { method: 'POST' }), this.model)
.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