Commit 95ab0b39 authored by lei's avatar lei

fix:商家隐患整改跳转

parent 434187bd
......@@ -127,21 +127,23 @@ window.onload = function () {
},
})
} else {
this.userInfo.userType === 'shop' && toData === 'checkrecord'
? (toData = 'checkrecord')
: (toData = 'shanghu_list')
// if (this.userInfo.userType === 'shop' && toData === 'checkrecord') {
// toData = 'checkrecord'
// } else {
// toData = 'shanghu_list'
// }
let param = {
accessType: this.accessType,
merId: this.userInfo.userId,
}
if (this.userInfo.userType === 'shop') {
param = {
...param,
accessType: 'shop',
merId: this.userInfo.userId,
unitName: this.userInfo.unitName,
smallPlaceTypeName: this.userInfo.smallPlaceTypeName,
}
}
let url = gemhoUtil.setParameter(`src/_${toData}.html`, param)
gemhoUtil.navigatePage(url, '跳转中...')
// gemhoUtil.navigatePage(`src/_${toData}.html`)
......@@ -227,9 +229,14 @@ window.onload = function () {
unitName: result.data.merchantInfoNumVo?.unitName, //
role: 'dudao',
roleName: result.data.roleDeptNameVo?.roleName,
merId: result.data.merchantInfoNumVo?.merId, //
merId: result.data.merchantInfoNumVo?.id, //
}
gemhoUtil.setCookie('userType', this.userInfo.userType)
if (this.userInfo.userType === 'shop') {
this.defaultMenuList[1].navTo = 'checkrecord'
} else {
this.defaultMenuList[1].navTo = 'shanghu_list'
}
// 生成最终菜单列表
this.menuList = (result.data.modules || []).map(
(moduleItem) => ({
......
......@@ -11,6 +11,7 @@ window.addEventListener('load', function () {
// 更多示例数据...
],
activeTab: '',
merId: null,
}
},
computed: {
......@@ -24,6 +25,7 @@ window.addEventListener('load', function () {
},
},
created() {
this.merId = gemhoUtil.getParameter('merId')
this.init()
},
methods: {
......@@ -82,6 +84,7 @@ window.addEventListener('load', function () {
interfacePrivateKey: API_KEY_MAP['page']['privateKey'],
reqParams: {
sign: 3,
merId: this.merId ? this.merId : '',
status: this.activeTab,
pageNum: this.page++, // 每次请求增加下一页
pageSize: this.size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment