Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-main
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cb1907ea
authored
May 24, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
喜报早报记录可配置
1 parent
ab121270
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
src/components/TabBar.vue
src/config/env.development.js
src/views/workbench/index.vue
src/components/TabBar.vue
View file @
cb1907e
...
...
@@ -59,7 +59,6 @@ export default {
.van-tabbar
{
background
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#ffffff
100%
);
box-shadow
:
0px
-2px
4px
0px
rgba
(
0
,
0
,
0
,
0.04
);
border-radius
:
10px
10px
0px
0px
;
overflow
:
hidden
;
z-index
:
3
;
.van-tabbar-item--active
{
...
...
src/config/env.development.js
View file @
cb1907e
...
...
@@ -11,7 +11,7 @@ module.exports = {
envVersion
:
'trial'
,
title
:
'嘀加企微管家'
,
request
:
{
baseURL
:
'
http:
//scrm.test.glsx.com.cn'
,
// 本地测试项目地址,
baseURL
:
'//scrm.test.glsx.com.cn'
,
// 本地测试项目地址,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
@@ -57,6 +57,16 @@ module.exports = {
},
clew
:
{
path
:
'/dj-scrm-wx-work-attachment-clew/#/'
},
psd
:
{
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'
]
},
}
\ No newline at end of file
src/views/workbench/index.vue
View file @
cb1907e
...
...
@@ -37,7 +37,7 @@
</template>
<
script
type=
'text/ecmascript-6'
>
const
{
subsystemInfo
}
=
window
.
$fetchConfig
const
{
subsystemInfo
,
paperPage
}
=
window
.
$fetchConfig
import
{
ssoApi
}
from
'@/api'
export
default
{
name
:
''
,
...
...
@@ -49,6 +49,7 @@ export default {
},
activated
()
{
ssoApi
.
getPermission
().
then
(
data
=>
{
const
{
entmicroId
}
=
this
.
getLocalStorage
(
'dj_scrm_userInfo'
)
if
(
data
&&
data
.
length
)
{
let
[
merchantProTreeResponses
]
=
data
[
0
].
products
[
0
].
merchantProTreeResponses
if
(
merchantProTreeResponses
)
{
...
...
@@ -56,7 +57,11 @@ export default {
if
(
list
&&
list
.
length
)
{
list
.
map
(
e
=>
{
if
(
e
.
children
)
{
e
.
children
.
map
(
i
=>
{
if
(
e
.
label
==
'工作台'
&&
paperPage
.
corpIds
.
includes
(
entmicroId
))
{
if
(
e
.
children
.
length
)
e
.
children
.
push
(
paperPage
)
else
e
.
children
=
[
paperPage
]
}
e
.
children
?.
map
(
i
=>
{
let
[
url
,
item
]
=
i
.
menuUrl
.
split
(
'@'
)
let
[
target
,
icon
]
=
item
.
split
(
'|'
)
let
[
link
,
query
]
=
url
.
split
(
'?'
)
...
...
@@ -67,7 +72,6 @@ export default {
})
}
})
console
.
log
(
list
)
this
.
list
=
list
}
}
...
...
@@ -93,12 +97,14 @@ export default {
<
style
scoped
lang=
'scss'
>
.layout
{
padding
:
16px
16px
66px
;
padding
-bottom
:
66px
;
.title
{
font-weight
:
500
;
font-size
:
16px
;
color
:
#4a4a4a
;
padding
:
16px
0
10px
;
height
:
34px
;
line-height
:
34px
;
text-indent
:
16px
;
}
.box
{
display
:
grid
;
...
...
@@ -106,8 +112,8 @@ export default {
align-items
:
center
;
min-height
:
84px
;
background
:
#ffffff
;
box-shadow
:
0px
2px
4px
0px
rgba
(
206
,
209
,
222
,
0.12
),
0px
2px
8px
0px
rgba
(
206
,
209
,
222
,
0.4
);
border-radius
:
4px
;
//
box-shadow
:
0px
2px
4px
0px
rgba
(
206
,
209
,
222
,
0.12
),
0px
2px
8px
0px
rgba
(
206
,
209
,
222
,
0.4
);
//
border-radius
:
4px
;
box-sizing
:
border-box
;
color
:
#333
;
font-size
:
12px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment