Browse Source

修改员工资产编辑

master
lihua 5 years ago
parent
commit
56f18cc893
  1. 4
      src/api/asset/staff.js
  2. 2
      src/views/asset/staff/index.vue

4
src/api/asset/staff.js

@ -8,9 +8,9 @@ export function add(asset) {
}) })
} }
export function edit(asset) { export function edit(id, asset) {
return request({ return request({
url: '/asset/staff/edit', url: `/asset/staff/edit/${id}`,
method: 'post', method: 'post',
data: asset data: asset
}) })

2
src/views/asset/staff/index.vue

@ -227,7 +227,7 @@ export default {
this.addVisible = false this.addVisible = false
} }
if (this.editVisible) { if (this.editVisible) {
edit(this.form).then(response => { edit(this.form.id, this.form).then(response => {
console.log(response) console.log(response)
}) })
this.editVisible = false this.editVisible = false

Loading…
Cancel
Save