Commit 21dc8789 authored by 岑歆奕's avatar 岑歆奕 Committed by AiNoeLiYa

修改新增按钮出错问题

Signed-off-by: 's avatarAiNoeLiYa <jzbcxy@gmail.com>
parent 880ec184
......@@ -12,8 +12,10 @@ body {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Arial, sans-serif;
}
label {
font-weight: 700;
}
......
......@@ -265,7 +265,14 @@ export default {
// 表单重置
reset() {
// TODO: 将模拟数据的空对象赋值给表单对象,达成清空填写表单的效果
this.form = this.formReset
this.form = {
processName: '',
workshop: '',
flag: '1',
createTime: new Date(),
updataTime: new Date(),
createBy: ''
}
},
/** TODO: 查询按钮操作 */
handleQuery() {
......@@ -279,7 +286,7 @@ export default {
/** TODO: 新增按钮操作 */
handleAdd() {
// TODO: 初始化新增对话框的状态
this.form = this.formReset
this.reset()
this.title = '添加工序'
this.open = !this.open
},
......
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