Commit 8c3d7196 by 李伟康

修改mock返回数据

1 parent 4a620100
...@@ -63,12 +63,12 @@ module.exports = { ...@@ -63,12 +63,12 @@ module.exports = {
} }
}, },
//根据企微配置特殊菜单 //根据企微配置特殊菜单
menuList: [ specialMenuList: [
{ {
label: '喜报早报记录', label: '喜报早报记录',
menuUrl: 'chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png', menuUrl: encodeURIComponent('chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png'),
corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e'], corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e'],
parentLabel: '工作台' parentLabel: '工作台',
} }
], ],
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
const { subsystemInfo, menuList } = window.$fetchConfig const { subsystemInfo, specialMenuList } = window.$fetchConfig
import { ssoApi } from '@/api' import { ssoApi } from '@/api'
export default { export default {
name: '', name: '',
...@@ -56,11 +56,12 @@ export default { ...@@ -56,11 +56,12 @@ export default {
let list = merchantProTreeResponses.children let list = merchantProTreeResponses.children
if (list && list.length) { if (list && list.length) {
list.map(e => { list.map(e => {
menuList.map(m => {
if (e.children) { if (e.children) {
specialMenuList.map(m => {
if (e.label == m.parentLabel && m.corpIds.includes(entmicroId)) e.children.push(m) if (e.label == m.parentLabel && m.corpIds.includes(entmicroId)) e.children.push(m)
})
e.children.map(i => { e.children.map(i => {
let [url, item] = i.menuUrl.split('@') let [url, item] = decodeURIComponent(i.menuUrl).split('@')
let [target, icon] = item.split('|') let [target, icon] = item.split('|')
let [link, query] = url.split('?') let [link, query] = url.split('?')
i.icon = icon i.icon = icon
...@@ -69,7 +70,6 @@ export default { ...@@ -69,7 +70,6 @@ export default {
i.query = query 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!