Commit b4a10a2a by 李伟康

提交

1 parent cb1907ea
......@@ -62,11 +62,14 @@ module.exports = {
path: '/dj-scrm-wx-work-attachment-psd/#/'
}
},
//喜报早报记录 配置企微
paperPage: {
label: '喜报早报记录',
menuUrl: 'chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png',
corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e']
},
//根据企微配置特殊菜单
menuList: [
{
label: '喜报早报记录',
menuUrl: 'chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png',
corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e'],
parentLabel: '工作台'
}
],
}
\ No newline at end of file
......@@ -37,7 +37,7 @@
</template>
<script type='text/ecmascript-6'>
const { subsystemInfo, paperPage } = window.$fetchConfig
const { subsystemInfo, menuList } = window.$fetchConfig
import { ssoApi } from '@/api'
export default {
name: '',
......@@ -56,21 +56,21 @@ export default {
let list = merchantProTreeResponses.children
if (list && list.length) {
list.map(e => {
if (e.children) {
if (e.label == '工作台' && paperPage.corpIds.includes(entmicroId)) {
if (e.children.length) e.children.push(paperPage)
else e.children = [paperPage]
menuList.map(m => {
if (e.children) {
if (e.label == m.parentLabel && m.corpIds.includes(entmicroId)) e.children.push(m)
e.children.map(i => {
let [url, item] = i.menuUrl.split('@')
let [target, icon] = item.split('|')
let [link, query] = url.split('?')
i.icon = icon
i.link = link
i.target = target
i.query = query
})
}
e.children?.map(i => {
let [url, item] = i.menuUrl.split('@')
let [target, icon] = item.split('|')
let [link, query] = url.split('?')
i.icon = icon
i.link = link
i.target = target
i.query = query
})
}
})
})
this.list = list
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!