Commit e7878e3b by 前端

Merge branch 'xuyl_dev_v2.11.0' into 'v2.11.0'

修复欢迎语组件传参

See merge request !38
2 parents dfa76062 febe55b9
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
groupListApi: this.$apis.welcomeword.getGroupListApi, groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi, materialListApi: this.$apis.welcomeword.getMaterialListApi,
params: { params: {
merchantId: this.$globalState.session.merchantId merchant: this.$globalState.session.merchantId
} }
}, },
{ {
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
templateSaveApi: this.$apis.welcomeword.templateSave, templateSaveApi: this.$apis.welcomeword.templateSave,
templateDetailApi: this.$apis.welcomeword.templateDetail, templateDetailApi: this.$apis.welcomeword.templateDetail,
params: { params: {
merchantId: this.$globalState.session.merchantId merchant: this.$globalState.session.merchantId
} }
} }
], ],
...@@ -361,8 +361,8 @@ export default { ...@@ -361,8 +361,8 @@ export default {
selectChange(val) { selectChange(val) {
// 选择门店时,替换欢迎语组件当中的所有merchantId // 选择门店时,替换欢迎语组件当中的所有merchantId
this.btnList.forEach(item =>{ this.btnList.forEach(item =>{
if (item.params && item.params.hasOwnProperty('merchantId')){ if (item.params && item.params.hasOwnProperty('merchant')){
item.params.merchantId = val item.params.merchant = val
} }
if(item.funParams && Object.prototype.toString.call(item.funParams) === '[object Array]'){ if(item.funParams && Object.prototype.toString.call(item.funParams) === '[object Array]'){
item.funParams.forEach(funArr =>{ item.funParams.forEach(funArr =>{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!