Commit 47566ef2 by zhangquan

修复首次进入门店车主搜索为空的问题

1 parent c6f3f3d1
...@@ -44,7 +44,6 @@ export default { ...@@ -44,7 +44,6 @@ export default {
}) })
}) })
}) })
console.log(list)
state.searchList = list state.searchList = list
}, },
}, },
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div> <div>
<el-button type="primary" size="small" @click="handleEdit">频道设置</el-button> <el-button type="primary" size="small" @click="handleEdit">频道设置</el-button>
<el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button> <el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button>
<el-button v-if="activeName!=5" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button> <el-button v-if="activeName!=5 && activeName!=6" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button>
</div> </div>
</div> </div>
<GLTable ref="editRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="editRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
...@@ -80,7 +80,8 @@ export default { ...@@ -80,7 +80,8 @@ export default {
merchantName: '', merchantName: '',
createDate: [] createDate: []
}, },
searchForm: {}, searchForm: {
},
ClassifyInfo: {}, ClassifyInfo: {},
url: url, url: url,
mode: 'mid', mode: 'mid',
...@@ -411,6 +412,8 @@ export default { ...@@ -411,6 +412,8 @@ export default {
if(res?.list?.length){ if(res?.list?.length){
const _target = this.formData.find(item => item.name == 'associationClassifyFirstId') const _target = this.formData.find(item => item.name == 'associationClassifyFirstId')
_target && (_target.optionList = res.list) _target && (_target.optionList = res.list)
const _copyTarget = this.searchFormData.find(item => item.name == 'associationClassifyFirstId')
_copyTarget && (_copyTarget.optionList = res.list)
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!