Commit dab034c5 by lichengming

修改了根据id调接口

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