Commit 295eb25f by lichengming

修改了查看项目报告生成附录

parent 2086dee0
...@@ -191,9 +191,17 @@ export default { ...@@ -191,9 +191,17 @@ export default {
}) })
}, },
_generateAppendix: async function(id) { _generateAppendix: async function(id) {
this.$Message.warning('正在生成,请稍后')
this.$refs.pageTable._showLoading()
const result = await soilReport.generateAppendix({ id: id }) const result = await soilReport.generateAppendix({ id: id })
if (result) { if (result) {
this.$Message.success('生成成功')
this.$refs.pageTable._hideLoading()
this._page()
this._viewAppendix(result) this._viewAppendix(result)
} else {
this.$Message.warning('生成失败,请重试')
this.$refs.pageTable._hideLoading()
} }
}, },
// 查看试验项目 // 查看试验项目
......
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