Commit 95ab0b39 authored by lei's avatar lei

fix:商家隐患整改跳转

parent 434187bd
...@@ -127,21 +127,23 @@ window.onload = function () { ...@@ -127,21 +127,23 @@ window.onload = function () {
}, },
}) })
} else { } else {
this.userInfo.userType === 'shop' && toData === 'checkrecord' // if (this.userInfo.userType === 'shop' && toData === 'checkrecord') {
? (toData = 'checkrecord') // toData = 'checkrecord'
: (toData = 'shanghu_list') // } else {
// toData = 'shanghu_list'
// }
let param = { let param = {
accessType: this.accessType, accessType: this.accessType,
merId: this.userInfo.userId,
} }
if (this.userInfo.userType === 'shop') { if (this.userInfo.userType === 'shop') {
param = { param = {
...param,
accessType: 'shop', accessType: 'shop',
merId: this.userInfo.userId,
unitName: this.userInfo.unitName, unitName: this.userInfo.unitName,
smallPlaceTypeName: this.userInfo.smallPlaceTypeName, smallPlaceTypeName: this.userInfo.smallPlaceTypeName,
} }
} }
let url = gemhoUtil.setParameter(`src/_${toData}.html`, param) let url = gemhoUtil.setParameter(`src/_${toData}.html`, param)
gemhoUtil.navigatePage(url, '跳转中...') gemhoUtil.navigatePage(url, '跳转中...')
// gemhoUtil.navigatePage(`src/_${toData}.html`) // gemhoUtil.navigatePage(`src/_${toData}.html`)
...@@ -227,9 +229,14 @@ window.onload = function () { ...@@ -227,9 +229,14 @@ window.onload = function () {
unitName: result.data.merchantInfoNumVo?.unitName, // unitName: result.data.merchantInfoNumVo?.unitName, //
role: 'dudao', role: 'dudao',
roleName: result.data.roleDeptNameVo?.roleName, roleName: result.data.roleDeptNameVo?.roleName,
merId: result.data.merchantInfoNumVo?.merId, // merId: result.data.merchantInfoNumVo?.id, //
} }
gemhoUtil.setCookie('userType', this.userInfo.userType) 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( this.menuList = (result.data.modules || []).map(
(moduleItem) => ({ (moduleItem) => ({
......
...@@ -11,6 +11,7 @@ window.addEventListener('load', function () { ...@@ -11,6 +11,7 @@ window.addEventListener('load', function () {
// 更多示例数据... // 更多示例数据...
], ],
activeTab: '', activeTab: '',
merId: null,
} }
}, },
computed: { computed: {
...@@ -24,6 +25,7 @@ window.addEventListener('load', function () { ...@@ -24,6 +25,7 @@ window.addEventListener('load', function () {
}, },
}, },
created() { created() {
this.merId = gemhoUtil.getParameter('merId')
this.init() this.init()
}, },
methods: { methods: {
...@@ -82,6 +84,7 @@ window.addEventListener('load', function () { ...@@ -82,6 +84,7 @@ window.addEventListener('load', function () {
interfacePrivateKey: API_KEY_MAP['page']['privateKey'], interfacePrivateKey: API_KEY_MAP['page']['privateKey'],
reqParams: { reqParams: {
sign: 3, sign: 3,
merId: this.merId ? this.merId : '',
status: this.activeTab, status: this.activeTab,
pageNum: this.page++, // 每次请求增加下一页 pageNum: this.page++, // 每次请求增加下一页
pageSize: this.size, 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