Commit 42775394 by lichengming

修改了开土制备记录查看删除按钮

parent 13178534
...@@ -17,6 +17,8 @@ export default { ...@@ -17,6 +17,8 @@ export default {
http.post('soil/v1/open_soil_record/page', data).then(res => res), http.post('soil/v1/open_soil_record/page', data).then(res => res),
getRecordById: data => getRecordById: data =>
http.get('soil/v1/open_soil_record/' + data).then(res => res), http.get('soil/v1/open_soil_record/' + data).then(res => res),
deleteRecordSoil: data =>
http.delete('soil/v1/open_soil_record/?ids=' + data).then(res => res),
listEntrustItemNum: data => listEntrustItemNum: data =>
http http
.post('soil/v1/statistics/list_entrust_item_num', data) .post('soil/v1/statistics/list_entrust_item_num', data)
......
...@@ -103,7 +103,10 @@ export default { ...@@ -103,7 +103,10 @@ export default {
value: 0 value: 0
} }
], ],
iconMsg: [{ type: 'ios-book', id: '', name: '编辑' }], iconMsg: [
{ type: 'ios-book', id: '', name: '编辑' },
{ type: 'md-trash', id: '', name: '删除' }
],
sampleId: '', // 样品id sampleId: '', // 样品id
entrustId: '', entrustId: '',
showModal: false, showModal: false,
...@@ -507,7 +510,7 @@ export default { ...@@ -507,7 +510,7 @@ export default {
}, },
_deleteOk: async function(ids) { _deleteOk: async function(ids) {
const result = await soilEntrust.experimentDeleteById(ids) const result = await soilEntrust.deleteRecordSoil(ids)
if (result) { if (result) {
this._resultChange('删除成功! ') this._resultChange('删除成功! ')
} }
......
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