Commit 3c3fdbd9 by 杨明

fixed

1 parent 528d8a3d
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
label: '业务场景', label: '业务场景',
prop: 'businessType', prop: 'businessType',
formatter: cellValue => { formatter: cellValue => {
return businessType.find(item => item.optionId == cellValue.subscribe)?.optionLabel return businessType.find(item => item.optionId == cellValue.businessType)?.optionLabel
} }
}, },
{ {
......
...@@ -192,6 +192,7 @@ export default { ...@@ -192,6 +192,7 @@ export default {
}, },
data() { data() {
return { return {
isFirst: true,
isStaffVisible: false, isStaffVisible: false,
size: 'small', size: 'small',
url: url, url: url,
...@@ -617,10 +618,13 @@ export default { ...@@ -617,10 +618,13 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
const { activityId, createdStartDateStr, createdEndDateStr } = this.$route.query const { activityId, createdStartDateStr, createdEndDateStr } = this.$route.query
if (activityId) { if (activityId && this.isFirst) {
this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : this.searchForm.createDate this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : this.searchForm.createDate
this.searchForm.activityId = activityId this.searchForm.activityId = activityId
} else {
this.searchForm.activityId = ''
} }
this.isFirst = false
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
// delete this.tableSearchForm.createDate // delete this.tableSearchForm.createDate
resolve() resolve()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!