Commit d43f0059 by lichengming

修改了报告编制生成报告

parent 701eff7d
...@@ -173,6 +173,11 @@ export default { ...@@ -173,6 +173,11 @@ export default {
type: 'primary', type: 'primary',
id: 'make-report-pass', id: 'make-report-pass',
name: '提交' name: '提交'
},
{
type: 'primary',
id: '',
name: '生成报告'
} }
], ],
selectIds: [], selectIds: [],
...@@ -208,6 +213,13 @@ export default { ...@@ -208,6 +213,13 @@ export default {
case '提交': case '提交':
this._submitToCheck() this._submitToCheck()
break break
case '生成报告':
if (this.selectIds.length === 1) {
this._viewItemRecord(this.selectIds.join(','))
} else {
this.$Message.warning('请选择一条数据')
}
break
case 'search': case 'search':
this.searchOpen = !this.searchOpen this.searchOpen = !this.searchOpen
break break
...@@ -363,6 +375,8 @@ export default { ...@@ -363,6 +375,8 @@ export default {
} }
}, },
_page: async function() { _page: async function() {
this.selectIds = []
this.selectData = []
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
const result = await soilStatistics.pageReportMakeByExpReport( const result = await soilStatistics.pageReportMakeByExpReport(
this.$serializeForm(this.formObj) this.$serializeForm(this.formObj)
......
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