Commit 4968ca2b by lichengming

修改了试验项目报告模板配置

parent 45ac3337
...@@ -68,6 +68,10 @@ export default { ...@@ -68,6 +68,10 @@ export default {
http.post('soil/v1/exp_report_template_config/page', data).then(res => res), http.post('soil/v1/exp_report_template_config/page', data).then(res => res),
saveReportTemplateConfig: data => saveReportTemplateConfig: data =>
http.post('soil/v1/exp_report_template_config/', data).then(res => res), http.post('soil/v1/exp_report_template_config/', data).then(res => res),
expReportTemplateConfigEdit: data =>
http
.put('soil/v1/exp_report_template_config/' + data.id, data.obj)
.then(res => res),
deleteReportTemplateConfig: data => deleteReportTemplateConfig: data =>
http http
.delete('soil/v1/exp_report_template_config/?ids=' + data) .delete('soil/v1/exp_report_template_config/?ids=' + data)
...@@ -85,5 +89,7 @@ export default { ...@@ -85,5 +89,7 @@ export default {
deleteOriginalTemplateConfig: data => deleteOriginalTemplateConfig: data =>
http http
.delete('soil/v1/original_template_config/?ids=' + data) .delete('soil/v1/original_template_config/?ids=' + data)
.then(res => res) .then(res => res),
expReportTemplateConfig: data =>
http.get('soil/v1/exp_report_template_config/' + data).then(res => res)
} }
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
} }
}, },
_getById: async function(data) { _getById: async function(data) {
const result = await soilAptitude.expItemGetById(data.id) const result = await soilAptitude.expReportTemplateConfig(data.id)
console.log(result) console.log(result)
if (result) { if (result) {
this.$refs.indexEdit._open('', result) this.$refs.indexEdit._open('', result)
......
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
} }
}, },
_edit: async function(data) { _edit: async function(data) {
const result = await soilAptitude.expItemEdit(data) const result = await soilAptitude.expReportTemplateConfigEdit(data)
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