Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chart-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhaowei
chart-web
Commits
c5850fef
Commit
c5850fef
authored
Jun 02, 2019
by
looker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lave you be
parent
5b52b5f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
api.js
src/service/api.js
+6
-0
chenzhen.js
src/service/chenzhen.js
+24
-3
chenzhen.js
src/store/modules/chenzhen.js
+1
-1
No files found.
src/service/api.js
View file @
c5850fef
...
@@ -10,6 +10,8 @@ url.customersessionInfo = `${process.env.API_URL}o/customersession/info`
...
@@ -10,6 +10,8 @@ url.customersessionInfo = `${process.env.API_URL}o/customersession/info`
url
.
customerConversation
=
`
${
process
.
env
.
API_URL
}
o/customerConversation/accessNum`
url
.
customerConversation
=
`
${
process
.
env
.
API_URL
}
o/customerConversation/accessNum`
url
.
changeCustomerStatus
=
`
${
process
.
env
.
API_URL
}
o/customersession/update/userstate`
url
.
changeCustomerStatus
=
`
${
process
.
env
.
API_URL
}
o/customersession/update/userstate`
const
chenzhen
=
{}
const
chenzhen
=
{}
chenzhen
.
login
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/login`
chenzhen
.
login
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/login`
chenzhen
.
getCustomerInfo
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/customer/info`
chenzhen
.
getCustomerInfo
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/customer/info`
...
@@ -17,6 +19,10 @@ chenzhen.getPersonStatistics = `${process.env.API_URL}nice-wechat-service/v1/sta
...
@@ -17,6 +19,10 @@ chenzhen.getPersonStatistics = `${process.env.API_URL}nice-wechat-service/v1/sta
chenzhen
.
personTodo
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/statistics/person/todo`
chenzhen
.
personTodo
=
`
${
process
.
env
.
API_URL
}
nice-wechat-service/v1/statistics/person/todo`
chenzhen
.
speechSort
=
`
${
process
.
env
.
API_URL
}
p/api/speech/sort`
chenzhen
.
speechSort
=
`
${
process
.
env
.
API_URL
}
p/api/speech/sort`
chenzhen
.
findByMobile
=
`
${
process
.
env
.
API_URL
}
v1/customer/findByMobile`
chenzhen
.
findByMobile
=
`
${
process
.
env
.
API_URL
}
v1/customer/findByMobile`
url
.
searchBiaoqingbao
=
""
url
.
getScriptTags
=
""
url
.
getScriptCatgary
=
""
url
.
getScripts
=
""
url
.
chenzhen
=
chenzhen
url
.
chenzhen
=
chenzhen
// url.wsUrl = process.env.API_URL
// url.wsUrl = process.env.API_URL
export
default
url
export
default
url
\ No newline at end of file
src/service/chenzhen.js
View file @
c5850fef
...
@@ -35,6 +35,27 @@ const speechSort = (param)=>{
...
@@ -35,6 +35,27 @@ const speechSort = (param)=>{
params
:
param
params
:
param
})
})
}
}
const
searchBiaoqingbao
=
(
param
)
=>
{
return
request
({
url
:
apiUrl
.
chenzhen
.
searchBiaoqingbao
,
method
:
'get'
,
params
:
param
})
}
const
getScriptTags
=
(
param
)
=>
{
return
request
({
url
:
apiUrl
.
chenzhen
.
getScriptTags
,
method
:
'get'
,
params
:
param
})
}
const
getScriptCatgary
=
(
param
)
=>
{
return
request
({
url
:
apiUrl
.
chenzhen
.
getScriptCatgary
,
method
:
'get'
,
params
:
param
})
}
const
apis
=
[
const
apis
=
[
[
apiUrl
.
chenzhen
.
speechSort
],
[
apiUrl
.
chenzhen
.
speechSort
],
[
apiUrl
.
chenzhen
.
getPersonStatistics
],
[
apiUrl
.
chenzhen
.
getPersonStatistics
],
...
@@ -42,7 +63,7 @@ const apis = [
...
@@ -42,7 +63,7 @@ const apis = [
[
apiUrl
.
chenzhen
.
findByMobile
,
'post'
]
[
apiUrl
.
chenzhen
.
findByMobile
,
'post'
]
]
]
const
reMap
=
new
Map
()
const
reMap
=
new
Map
()
const
baseService
=
()
=>
{
const
baseService
=
(
(
)
=>
{
for
(
let
ap
of
apis
){
for
(
let
ap
of
apis
){
let
temp
=
(
param
)
=>
{
let
temp
=
(
param
)
=>
{
return
request
({
return
request
({
...
@@ -51,10 +72,10 @@ const baseService = ()=>{
...
@@ -51,10 +72,10 @@ const baseService = ()=>{
params
:
param
params
:
param
})
})
}
}
reMap
.
set
(
ap
,
temp
)
reMap
.
set
(
ap
[
0
]
,
temp
)
}
}
return
reMap
return
reMap
}
}
)()
export
default
{
export
default
{
login
,
login
,
personTodo
,
personTodo
,
...
...
src/store/modules/chenzhen.js
View file @
c5850fef
...
@@ -4,7 +4,7 @@ import apiUrl from '@/service/api.js'
...
@@ -4,7 +4,7 @@ import apiUrl from '@/service/api.js'
import
*
as
auth
from
'@/utils/auth'
import
*
as
auth
from
'@/utils/auth'
import
{
MessageBox
,
Alert
}
from
'element-ui'
import
{
MessageBox
,
Alert
}
from
'element-ui'
import
Vue
from
'vue'
import
Vue
from
'vue'
const
chenzhenService
=
service
.
chenzhen
.
baseService
()
const
chenzhenService
=
service
.
chenzhen
.
baseService
const
user
=
{
const
user
=
{
namespaced
:
true
,
namespaced
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment