Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 c3fe5707
authored
Jun 19, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户详情页面路由name
1 parent
f5005800
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
12 deletions
vue3-lw-pc/src/config.js
vue3-lw-pc/src/router/permission.js
vue3-lw-pc/src/stores/modules/permission.js
vue3-lw-pc/src/views/contentCenter/components/DataDetail.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/detail.vue
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
vue3-lw-pc/src/views/customerManage/lossRemind.vue
vue3-lw-pc/src/views/guide/redEnvelopesGuide.vue
vue3-lw-pc/src/config.js
View file @
c3fe570
...
@@ -20,7 +20,8 @@ const common = {
...
@@ -20,7 +20,8 @@ const common = {
PRIVACY
:
env
.
BASE_URL
+
'static/PRIVACY.pdf'
,
// 隐私协议pdf
PRIVACY
:
env
.
BASE_URL
+
'static/PRIVACY.pdf'
,
// 隐私协议pdf
IS_PUBLISH_DIALOG
:
false
,
// 是否显示发布弹窗
IS_PUBLISH_DIALOG
:
false
,
// 是否显示发布弹窗
COOKIEEXPIRES
:
0.5
,
// token在Cookie中存储的天数,默认0.5天
COOKIEEXPIRES
:
0.5
,
// token在Cookie中存储的天数,默认0.5天
WORKWEIXINPAGENAME
:
'EnterpriseWechat'
,
// 企业微信设置页面路由name
WORK_WEIXIN_CONFIG_ROUTE_NAME
:
'EnterpriseWechat'
,
// 企业微信设置页面路由名称, 用于router 通过name判断与跳转,避免使用path不易于扩展
CUSTOMER_DETAIL_ROUTE_NAME
:
'customerDetail'
,
// 客户详情页面路由name,同上
DEFAULT_H5_PIC
:
env
.
DOMAIN
+
'/static/PIC.png'
,
DEFAULT_H5_PIC
:
env
.
DOMAIN
+
'/static/PIC.png'
,
DEFAULT_H5_ART
:
env
.
DOMAIN
+
'/static/ARTICAL.png'
,
// 文章默认封面
DEFAULT_H5_ART
:
env
.
DOMAIN
+
'/static/ARTICAL.png'
,
// 文章默认封面
DEFAULT_H5_TP
:
env
.
DOMAIN
+
'/static/TEXT_PIC.png'
,
// 图文默认封面
DEFAULT_H5_TP
:
env
.
DOMAIN
+
'/static/TEXT_PIC.png'
,
// 图文默认封面
...
...
vue3-lw-pc/src/router/permission.js
View file @
c3fe570
...
@@ -54,13 +54,13 @@ export default function permission(router) {
...
@@ -54,13 +54,13 @@ export default function permission(router) {
}
else
{
}
else
{
// 没有设置企业微信的
// 没有设置企业微信的
let
isEnterpriseWechat
=
router
.
getRoutes
().
some
((
element
)
=>
{
let
isEnterpriseWechat
=
router
.
getRoutes
().
some
((
element
)
=>
{
return
element
.
name
===
window
.
lwConfig
.
WORK
WEIXINPAGE
NAME
return
element
.
name
===
window
.
lwConfig
.
WORK
_WEIXIN_CONFIG_ROUTE_
NAME
})
})
// 若有设置企业微信的页面权限,默认跳转到设置企业微信页面
// 若有设置企业微信的页面权限,默认跳转到设置企业微信页面
if
(
isEnterpriseWechat
)
{
if
(
isEnterpriseWechat
)
{
Message
.
warning
(
'初次使用,请配置企业微信的id,以使用其他功能'
)
Message
.
warning
(
'初次使用,请配置企业微信的id,以使用其他功能'
)
next
({
next
({
name
:
window
.
lwConfig
.
WORK
WEIXINPAGE
NAME
,
name
:
window
.
lwConfig
.
WORK
_WEIXIN_CONFIG_ROUTE_
NAME
,
replace
:
true
,
replace
:
true
,
})
})
}
else
{
}
else
{
...
...
vue3-lw-pc/src/stores/modules/permission.js
View file @
c3fe570
...
@@ -113,14 +113,15 @@ export const loadView = (route) => {
...
@@ -113,14 +113,15 @@ export const loadView = (route) => {
res
=
modules
[
path
]
res
=
modules
[
path
]
// 为需要单独使用的路由命名,避免使用绝对路径跳转
// 为需要单独使用的路由命名,避免使用绝对路径跳转
// 组件路径: route name
let
routeNames
=
{
let
routeNames
=
{
'customerManage/customerDetail'
:
'customerDetail'
,
// 客户详情
'customerManage/customerDetail'
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
// 客户详情
'drainageCode/staff/list'
:
'staffCode'
,
// 员工活码
'drainageCode/staff/list'
:
'staffCode'
,
// 员工活码
'drainageCode/group/list'
:
'customerGroupCode'
,
// 群活码
'drainageCode/group/list'
:
'customerGroupCode'
,
// 群活码
'drainageCode/store/list'
:
'storeCode'
,
//门店活码
'drainageCode/store/list'
:
'storeCode'
,
//门店活码
'drainageCode/identity/list'
:
'identityCode'
,
//识客码
'drainageCode/identity/list'
:
'identityCode'
,
//识客码
'drainageCode/pullNews/list'
:
'pullNewsCode'
,
//拉新活码
'drainageCode/pullNews/list'
:
'pullNewsCode'
,
//拉新活码
'enterpriseWechat/list'
:
window
.
lwConfig
.
WORK
WEIXINPAGE
NAME
,
//企微配置
'enterpriseWechat/list'
:
window
.
lwConfig
.
WORK
_WEIXIN_CONFIG_ROUTE_
NAME
,
//企微配置
}
}
routeNames
[
route
.
component
]
&&
(
route
.
name
=
routeNames
[
route
.
component
])
routeNames
[
route
.
component
]
&&
(
route
.
name
=
routeNames
[
route
.
component
])
...
...
vue3-lw-pc/src/views/contentCenter/components/DataDetail.vue
View file @
c3fe570
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
goDetail
(
row
)
{
goDetail
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/operateCenter/customerManage/customerDetail'
,
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
,
userId
},
query
:
{
externalUserid
,
userId
},
})
})
},
},
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/detail.vue
View file @
c3fe570
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
show-overflow-tooltip
/>
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
text
@
click=
"goDetail(scope.row
.id
)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button>
<el-button
text
@
click=
"goDetail(scope.row)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -584,6 +584,13 @@ export default {
...
@@ -584,6 +584,13 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
goDetail
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
,
userId
},
})
},
},
},
mounted
()
{
mounted
()
{
this
.
dealLength
()
this
.
dealLength
()
...
...
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
c3fe570
...
@@ -398,7 +398,7 @@ export default {
...
@@ -398,7 +398,7 @@ export default {
goRoute
(
row
)
{
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'customerDetail'
,
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
,
userId
},
query
:
{
externalUserid
,
userId
},
})
})
},
},
...
...
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
c3fe570
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
v-hasPermi=
"['customerManage:dimission:edit']"
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"
@
click=
"
$router.push(
{
$router.push(
{
name:
'customerDetail'
,
name:
window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME
,
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
})
})
"
"
...
...
vue3-lw-pc/src/views/customerManage/lossRemind.vue
View file @
c3fe570
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
<el-button
<el-button
@click="
@click="
$router
.
push
({
$router
.
push
({
path
:
'/customerManage/customerManage/customer/customerDetail'
,
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
query
:
{
externalUserid
:
row
.
externalUserid
,
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
,
userId
:
row
.
firstUserId
,
...
...
vue3-lw-pc/src/views/guide/redEnvelopesGuide.vue
View file @
c3fe570
...
@@ -26,7 +26,7 @@ export default {
...
@@ -26,7 +26,7 @@ export default {
callback
:
(
action
)
=>
{
callback
:
(
action
)
=>
{
sessionStorage
.
setItem
(
'currentActive'
,
'4'
)
sessionStorage
.
setItem
(
'currentActive'
,
'4'
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
WORK
WEIXINPAGE
NAME
,
name
:
window
.
lwConfig
.
WORK
_WEIXIN_CONFIG_ROUTE_
NAME
,
})
})
},
},
},
},
...
@@ -41,7 +41,7 @@ export default {
...
@@ -41,7 +41,7 @@ export default {
callback
:
(
action
)
=>
{
callback
:
(
action
)
=>
{
sessionStorage
.
setItem
(
'currentActive'
,
'3'
)
sessionStorage
.
setItem
(
'currentActive'
,
'3'
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
WORK
WEIXINPAGE
NAME
,
name
:
window
.
lwConfig
.
WORK
_WEIXIN_CONFIG_ROUTE_
NAME
,
})
})
},
},
},
},
...
...
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