Commit dab034c5 by lichengming

修改了根据id调接口

parent ca8fca21
......@@ -102,7 +102,7 @@ export default {
endExpCheck: data =>
http.post('soil/v1/experiment/end_exp_check', data).then(res => res),
endExpAudit: data =>
http.post('soil/v1/experiment/end_exp_audit?ids=' + data).then(res => res),
http.post('soil/v1/experiment/end_exp_audit', data).then(res => res),
pageCheckByExp: data =>
http.post('soil/v1/experiment/page_check_by_exp', data).then(res => res),
pageExpByCheck: data =>
......@@ -114,14 +114,7 @@ export default {
pageExpByAudit: data =>
http.post('soil/v1/experiment/page_exp_audit', data).then(res => res),
auditBack: data =>
http
.post(
'soil/v1/experiment/exp_audit_back?ids=' +
data.ids +
'&remark=' +
data.remark
)
.then(res => res),
http.post('soil/v1/experiment/exp_audit_back', data).then(res => res),
checkBack: data =>
http.post('soil/v1/experiment/exp_check_back', data).then(res => res),
// 添加设备信息
......
......@@ -109,14 +109,7 @@ export default {
],
btn: [
{ type: 'success', id: '', name: '提交' },
{ type: '', id: '', name: '退回' },
{ type: '', id: 'food-task-assign-adjust-group', name: '调整分组' },
{
type: '',
id: 'food-task-assign-plan-date',
name: '设置计划完成时间'
},
{ type: '', id: 'food-task-assign-maintain-info', name: '信息维护' }
{ type: 'warning', id: '', name: '退回' }
],
iconMsg: [
{ type: 'ios-book', id: '', name: '查看原始记录' },
......@@ -171,7 +164,7 @@ export default {
},
_reportCheckBack: async function(data) {
const result = await soilTest.auditBack({
ids: this.selectIds,
ids: this.selectIds.join(','),
remark: data
})
......@@ -415,7 +408,9 @@ export default {
}
},
_submitToMakeOk: async function() {
const result = await soilTest.endExpAudit(this.selectIds.join(','))
const result = await soilTest.endExpAudit({
ids: this.selectIds.join(',')
})
if (result) {
this._resultChange('提交成功')
}
......
......@@ -153,7 +153,7 @@ export default {
},
_reportCheckBack: async function(data) {
const result = await soilTest.auditBack({
ids: this.selectIds,
ids: this.selectIds.join(','),
remark: data
})
......@@ -339,7 +339,9 @@ export default {
}
},
_submitToMakeOk: async function() {
const result = await soilTest.endExpAudit(this.selectIds.join(','))
const result = await soilTest.endExpAudit({
ids: this.selectIds.join(',')
})
if (result) {
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