Commit b4a10a2a by 李伟康

提交

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