Commit bf8c5c1c by cwq0219

提交

1 parent 4a0076c0
...@@ -305,8 +305,7 @@ export default { ...@@ -305,8 +305,7 @@ export default {
}, },
// 1-新增;2-编辑 // 1-新增;2-编辑
handleEdit(addOrEdit, row) { handleEdit(addOrEdit, row) {
var id = row ? row.id : '-1' addOrEdit == 1 ? this.$router.push('/employee/editEmployee/' + addOrEdit) : this.$router.push('/employee/editEmployee/' + addOrEdit + '/' + row.id)
this.$router.push('/employee/editEmployee/' + addOrEdit + '/' + id)
}, },
handleSwitchChange(val, row) { handleSwitchChange(val, row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!