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 afba4342
authored
May 06, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
合并代码到主干 See merge request
!3
2 parents
b5440d49
9dab5614
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
32 deletions
src/api/wwbenchApi.js
src/config/env.development.js
src/mixins/indexMixin.js
src/router/router.js
src/views/workbench/index.vue
src/api/wwbenchApi.js
View file @
afba434
...
...
@@ -11,7 +11,7 @@ export default {
/** 查询我的待办 */
getTasksList
(
data
=
{})
{
data
.
method
=
'scrm.api.wwbench.user.task.list.get'
data
.
taskTypes
=
[
3
,
4
,
5
,
6
]
data
.
taskTypes
=
[
3
,
4
,
5
,
6
,
8
]
return
window
.
$HTTP
({
url
,
data
,
...
...
src/config/env.development.js
View file @
afba434
...
...
@@ -54,6 +54,9 @@ module.exports = {
},
sop
:
{
path
:
'/dj-scrm-wx-work-sop/#/'
},
clew
:
{
path
:
'/dj-scrm-wx-work-attachment-clew/#/'
}
}
}
\ No newline at end of file
src/mixins/indexMixin.js
View file @
afba434
...
...
@@ -15,7 +15,8 @@ export default {
3
:
'客户群发'
,
4
:
'客户群群发'
,
5
:
'客户资料完善'
,
6
:
'营销sop-任务'
6
:
'营销sop-任务'
,
8
:
'线索跟进-任务'
,
},
userInfo
:
{},
accountList
:
[],
...
...
@@ -37,7 +38,8 @@ export default {
{
text
:
'客户群发'
,
value
:
3
},
{
text
:
'客户群群发'
,
value
:
4
},
{
text
:
'客户资料完善'
,
value
:
5
},
{
text
:
'营销sop'
,
value
:
6
}
{
text
:
'营销sop'
,
value
:
6
},
{
text
:
'线索跟进'
,
value
:
8
}
],
list
:
[
{
...
...
@@ -177,9 +179,8 @@ export default {
},
click
(
e
)
{
let
{
status
,
id
,
taskType
}
=
e
if
(
status
==
2
&&
taskType
!=
6
)
return
if
(
taskType
==
6
)
{
if
(
status
==
2
&&
(
taskType
!=
6
||
taskType
!=
8
))
return
if
(
taskType
==
6
||
taskType
==
8
)
{
this
.
jump
(
e
)
}
else
{
wwbenchApi
.
updateTasks
({
id
}).
then
(
res
=>
{
...
...
@@ -204,11 +205,13 @@ export default {
1
:
'customerDetails'
,
2
:
'customerGroup/mass'
,
5
:
'customer/information'
,
6
:
'home'
6
:
'home'
,
8
:
'clew/detail'
}[
taskType
]
let
{
path
}
=
subsystemInfo
[{
5
:
'customer'
,
6
:
'sop'
6
:
'sop'
,
8
:
'clew'
}[
taskType
]]
if
(
link
)
{
if
(
!
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
))
path
=
'/dj-scrm-wx-work-main-lwk/#/'
...
...
src/router/router.js
View file @
afba434
...
...
@@ -12,7 +12,7 @@ import routes from './routes'
import
store
from
'@/store'
// hack router push callback
const
originalPush
=
Router
.
prototype
.
push
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
if
(
onResolve
||
onReject
)
return
originalPush
.
call
(
this
,
location
,
onResolve
,
onReject
)
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
)
}
...
...
@@ -21,11 +21,11 @@ Vue.use(Router)
const
router
=
createRouter
()
function
createRouter
()
{
function
createRouter
()
{
return
new
Router
({
// mode: 'history', // 如果是 history模式 需要配置vue.config.js publicPath
base
:
process
.
env
.
BASE_URL
,
scrollBehavior
:
function
(
to
,
from
,
savedPosition
)
{
scrollBehavior
:
function
(
to
,
from
,
savedPosition
)
{
return
savedPosition
||
{
x
:
0
,
y
:
0
}
},
routes
...
...
@@ -33,20 +33,23 @@ function createRouter() {
}
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main/
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
name
!=
'common.accountList'
)
store
.
commit
(
'SET_LAST_PATH'
,
to
.
name
)
/* 路由发生变化修改页面title */
store
.
dispatch
(
'setPageMeta'
,
to
.
meta
)
/* 路由发生变化修改页面背景色 */
document
.
documentElement
.
style
.
backgroundColor
=
to
.
meta
.
backgroundColor
||
'#fff'
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
noAuth
))
{
store
.
state
.
app
.
showWindow
=
true
}
else
{
store
.
dispatch
(
'navigation'
,
to
)
}
next
()
})
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export
function
resetRouter
()
{
if
(
to
.
name
!=
'common.accountList'
)
store
.
commit
(
'SET_LAST_PATH'
,
to
.
name
)
// if (to.fullPath.indexOf('code') !== -1 && from.fullPath === '/') {
// wx.closeWindow()
// }
/* 路由发生变化修改页面title */
store
.
dispatch
(
'setPageMeta'
,
to
.
meta
)
/* 路由发生变化修改页面背景色 */
document
.
documentElement
.
style
.
backgroundColor
=
to
.
meta
.
backgroundColor
||
'#fff'
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
noAuth
))
{
store
.
state
.
app
.
showWindow
=
true
}
else
{
store
.
dispatch
(
'navigation'
,
to
)
}
next
()
})
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export
function
resetRouter
()
{
const
newRouter
=
createRouter
()
router
.
matcher
=
newRouter
.
matcher
// reset router
}
...
...
src/views/workbench/index.vue
View file @
afba434
...
...
@@ -33,13 +33,6 @@
<van-empty
description=
"暂无内容"
/>
</
template
>
</template>
<!-- <div class="title">统计分析</div>
<div class="box">
<div class="item">
<div class="sprite-icon icon-9"></div>
门店报表
</div>
</div> -->
</div>
</template>
...
...
@@ -121,7 +114,9 @@ export default {
.item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
height
:
84px
;
.icon
{
width
:
40px
;
height
:
40px
;
...
...
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