Commit 45faeca9 by 李伟康

添加

1 parent 85e7032a
...@@ -162,6 +162,7 @@ export default { ...@@ -162,6 +162,7 @@ export default {
}, },
handleReset () { handleReset () {
const { journeyList } = this const { journeyList } = this
if (!journeyList.length) return
this.searchForm = { this.searchForm = {
sopJourneyStage: '', sopJourneyStage: '',
sopJourneyId: journeyList[0].instId sopJourneyId: journeyList[0].instId
...@@ -172,6 +173,7 @@ export default { ...@@ -172,6 +173,7 @@ export default {
this.handleSearch() this.handleSearch()
}, },
handleExport () { handleExport () {
if(!this.searchForm.sopJourneyId) return
this.$apis.journey.exportExcel({ ...this.searchForm, pageSize: 10000, pageNumber: 1 }).then(res => { this.$apis.journey.exportExcel({ ...this.searchForm, pageSize: 10000, pageNumber: 1 }).then(res => {
if (res.secureUrl) exportFn(res.secureUrl) if (res.secureUrl) exportFn(res.secureUrl)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!