Commit a719a982 by 前端

可选链

1 parent feb334b7
......@@ -529,6 +529,8 @@ export default {
mounted() {
this.userInfo = this.$globalState.session
// 判断当前的门店是不是物业门店
console.log(this.$wuye_merchantLists)
console.log(this.userInfo.merchantId)
this.isWuyeFlag = this.$wuye_merchantLists.some(item => item == this.userInfo.merchantId);
// 如果不是物业门店 隐藏福利二维码
this.updateExternalFormList();
......@@ -555,6 +557,7 @@ export default {
item.editFormData.forEach(formItem => {
if (formItem.name === 'welfareGroupQRCode' || formItem.name === 'welfareOfficerQRCode') {
formItem.isHide = !this.isWuyeFlag;
console.log(!this.isWuyeFlag)
}
});
}
......@@ -603,8 +606,8 @@ export default {
this.editForm.noticeToSubMerchant = res.noticeToSubMerchant || 'N'
// 本次新增福利二维码
this.editForm.welfareGroupQRCode = res?.welfareGroupQRCode.split() || []
this.editForm.welfareOfficerQRCode = res?.welfareOfficerQRCode.split() || []
this.editForm.welfareGroupQRCode = res?.welfareGroupQRCode?.split() || []
this.editForm.welfareOfficerQRCode = res?.welfareOfficerQRCode?.split() || []
// 在线客服
this.customerServerList = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!