|
@@ -289,6 +289,7 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.spinning = true
|
|
|
+ console.log('1111111111:', this.queryParam)
|
|
|
return dealerPromotionList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -523,18 +524,25 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
+ // 获取创建人默认值
|
|
|
+ const creatorObj = this.$store.state.user.info
|
|
|
+ const newObj = {
|
|
|
+ key: creatorObj.userid,
|
|
|
+ name: creatorObj.userNameCN,
|
|
|
+ label: creatorObj.userNameCN
|
|
|
+ }
|
|
|
+ this.$refs.creatorList.setDefaultVal(newObj)
|
|
|
this.queryParam = {
|
|
|
beginDate: undefined,
|
|
|
endDate: undefined,
|
|
|
queryWord: '',
|
|
|
enabledFlag: undefined, // 发布状态
|
|
|
state: undefined,
|
|
|
- creatorId: undefined,
|
|
|
+ creatorId: creatorObj.userid,
|
|
|
dealerAuditFlag: undefined
|
|
|
}
|
|
|
this.$refs.rangeDate.resetDate()
|
|
|
this.$refs.table.refresh(true)
|
|
|
- // this.$refs.dealerSubareaScopeList.resetForm()
|
|
|
},
|
|
|
|
|
|
pageInit () {
|
|
@@ -545,16 +553,7 @@ export default {
|
|
|
this.openModal = false
|
|
|
this.openDetailModal = false
|
|
|
this.itemSn = null
|
|
|
- this.rowSelectionInfo = null
|
|
|
this.$refs.table.clearTable()
|
|
|
- // 获取创建人默认值
|
|
|
- const creatorObj = this.$store.getters.userInfo
|
|
|
- const newObj = {
|
|
|
- key: creatorObj.userid,
|
|
|
- name: creatorObj.rootOrgName,
|
|
|
- label: creatorObj.rootOrgName
|
|
|
- }
|
|
|
- this.$refs.creatorList.setDefaultVal(newObj)
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|