Commit 25a9ff22 by zhangquan

门店api添加参数

1 parent 53d7d2e0
...@@ -248,6 +248,7 @@ export default { ...@@ -248,6 +248,7 @@ export default {
methods: { methods: {
changeTab() { changeTab() {
this.handleReset() this.handleReset()
this.getMerchantList()
}, },
getMerchantName(merchantId) { getMerchantName(merchantId) {
const _target = this.merchantList.find(item => item.merchantId == merchantId) const _target = this.merchantList.find(item => item.merchantId == merchantId)
...@@ -256,10 +257,10 @@ export default { ...@@ -256,10 +257,10 @@ export default {
getMerchantList() { getMerchantList() {
this.$apis.pointWriteOff this.$apis.pointWriteOff
.getMerchantList({ .getMerchantList({
parameterType: 2 parameterType: 2,
type: this.tabId
}) })
.then(res => { .then(res => {
console.log(res, 'list')
if (res?.length) { if (res?.length) {
const _target = this.searchFormData.find(e => e.name == 'merchantId') const _target = this.searchFormData.find(e => e.name == 'merchantId')
_target && (_target.optionList = res) _target && (_target.optionList = res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!