Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 5ebffb4e
authored
Oct 21, 2021
by
ym
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
test
1 parent
229777a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
145 additions
and
98 deletions
package.json
public/index.html
src/assets/css/common.scss
src/assets/img/home/guide2.png
src/components/glsx-table/index.vue
src/config/env.development.js
src/router/index.js
src/router/routes.js
src/setup/qiankun.js
src/setup/render.js
src/views/ehome/components/summary-ranking.vue
src/views/ehome/components/summary-statistics.vue
src/views/enterpriseWechat/index.vue
src/views/followUp/components/addSale.vue
src/views/followUp/components/selectEmp.vue
src/views/followUp/index.vue
src/views/home/index.vue
package.json
View file @
5ebffb4
{
"name"
:
"home"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.4.4"
,
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^1.4.4"
,
"glsx-components"
:
"^1.0.4"
,
"glsx-table"
:
"^1.0.9"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-eslint"
:
"^4.1.0"
,
"@vue/cli-plugin-router"
:
"^4.1.0"
,
"@vue/cli-plugin-vuex"
:
"^4.1.0"
,
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/eslint-config-prettier"
:
"^5.0.0"
,
"babel-eslint"
:
"^10.0.3"
,
"babel-plugin-component"
:
"^1.1.1"
,
"element-theme-chalk"
:
"^2.15.6"
,
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"node-sass"
:
"^4.14.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
"vue-template-compiler"
:
"^2.6.10"
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
]
}
\ No newline at end of file
"name"
:
"home"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.4.4"
,
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.0.8"
,
"glsx-table"
:
"^1.0.9"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-eslint"
:
"^4.1.0"
,
"@vue/cli-plugin-router"
:
"^4.1.0"
,
"@vue/cli-plugin-vuex"
:
"^4.1.0"
,
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/eslint-config-prettier"
:
"^5.0.0"
,
"babel-eslint"
:
"^10.0.3"
,
"babel-plugin-component"
:
"^1.1.1"
,
"element-theme-chalk"
:
"^2.15.6"
,
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"node-sass"
:
"^4.14.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
"vue-template-compiler"
:
"^2.6.10"
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
]
}
public/index.html
View file @
5ebffb4
...
...
@@ -5,6 +5,7 @@
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"referrer"
content=
"no-referrer"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- 使用CDN的CSS文件 -->
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.css) { %>
...
...
src/assets/css/common.scss
View file @
5ebffb4
...
...
@@ -106,12 +106,12 @@ img {
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
8
px
;
width
:
6
px
;
height
:
1px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
7
px
;
background-color
:
#E9E8FF
;
border-radius
:
4
px
;
background-color
:
rgba
(
144
,
147
,
153
,
.3
)
;
}
\ No newline at end of file
src/assets/img/home/guide2.png
View file @
5ebffb4
27.9 KB
|
W:
|
H:
23.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/glsx-table/index.vue
View file @
5ebffb4
This diff is collapsed.
Click to expand it.
src/config/env.development.js
View file @
5ebffb4
...
...
@@ -17,7 +17,7 @@ module.exports = {
code_message_map
:
{}
},
request
:
{
baseURL
:
'http
s://scrm.test.glsx.com.cn
'
,
baseURL
:
'http
://192.168.1.254
'
,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/router/index.js
View file @
5ebffb4
...
...
@@ -11,8 +11,14 @@ VueRouter.prototype.push = function push(location) {
function
getRoutes
(
routesData
)
{
return
routesData
.
reduce
((
routes
,
route
)
=>
{
routes
.
push
({...
route
,
component
:
()
=>
import
(
'@/views'
+
route
.
path
+
'.vue'
)
component
:
()
=>
{
if
(
route
.
path
==
'/home/index'
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
!=
4
)
{
return
import
(
'@/views/ehome/index.vue'
)
}
else
{
return
import
(
'@/views'
+
route
.
path
+
'.vue'
)
}
}
})
return
routes
},
[])
...
...
src/router/routes.js
View file @
5ebffb4
...
...
@@ -5,12 +5,6 @@ const staticRoutes = Object.freeze([{
component
:
resolve
=>
require
([
`@/views/home/index.vue`
],
resolve
)
},
{
name
:
'Ehome'
,
path
:
'/ehome/index'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/ehome/index.vue`
],
resolve
)
},
{
name
:
'EnterpriseWechat'
,
path
:
'/enterpriseWechat/index'
,
component
:
resolve
=>
require
([
`@/views/enterpriseWechat/index.vue`
],
resolve
),
...
...
src/setup/qiankun.js
View file @
5ebffb4
...
...
@@ -8,6 +8,8 @@ import { getRoutes } from '@/router'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
import
'glsx-components/src/theme/theme.scss'
import
'@/assets/css/common.scss'
let
routes
=
[]
...
...
src/setup/render.js
View file @
5ebffb4
...
...
@@ -18,14 +18,20 @@ const render = (base, routes) => {
mode
:
'history'
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
from
.
path
==
'/'
&&
(
to
.
path
==
'/home/index'
||
to
.
path
==
'/ehome/index'
))
{
next
();
let
modelStatus
=
false
;
if
(
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
1
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
1
)
{
modelStatus
=
true
;
}
if
(
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
2
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
4
)
{
modelStatus
=
true
;
}
if
(
from
.
path
==
'/'
&&
(
to
.
path
==
'/home/index'
||
to
.
path
==
'/ehome/index'
)
&&
modelStatus
)
{
Vue
.
prototype
.
$apis
.
ww
.
getStatus
({}).
then
((
res
)
=>
{
//
if (res.status != 'SUCCESS') {
//
next('/enterpriseWechat/index')
//
} else {
//
next()
//
}
if
(
res
.
status
!=
'SUCCESS'
)
{
next
(
'/enterpriseWechat/index'
)
}
else
{
next
()
}
})
}
else
{
next
();
...
...
src/views/ehome/components/summary-ranking.vue
View file @
5ebffb4
...
...
@@ -12,9 +12,9 @@
</el-radio-group>
</div>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-sno"
>
序号
</div>
<div
class=
"summary-ranking-name"
>
名
店名称
</div>
<div
class=
"summary-ranking-value"
>
总产值
</div>
<div
class=
"summary-ranking-sno"
>
排名
</div>
<div
class=
"summary-ranking-name"
>
门
店名称
</div>
<div
class=
"summary-ranking-value"
>
加企微客户数
</div>
</div>
<div
class=
"chart-empty"
v-if=
"custSortList.length == 0"
>
<img
src=
"@/assets/img/empty.png"
/>
...
...
@@ -40,10 +40,11 @@
<div
class=
"summary-progress-barout"
></div>
<div
class=
"summary-progress-barin"
:style=
"
{ width: (100 * item.
addEntmicro
Count) / custSortMax + '%' }"
:style=
"
{ width: (100 * item.
cust
Count) / custSortMax + '%' }"
>
</div>
<div
class=
"summary-progress-avg"
:style=
"
{ width: (100 * custAvergCount) / custSortMax + '%' }">
</div>
</div>
<div
class=
"summary-progress-value"
>
{{
item
.
addEntmicro
Count
}}
</div>
<div
class=
"summary-progress-value"
>
{{
item
.
cust
Count
}}
</div>
</div>
</div>
</div>
...
...
@@ -61,8 +62,8 @@
</el-radio-group>
</div>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-sno"
>
序号
</div>
<div
class=
"summary-ranking-name"
>
名
店名称
</div>
<div
class=
"summary-ranking-sno"
>
排名
</div>
<div
class=
"summary-ranking-name"
>
门
店名称
</div>
<div
class=
"summary-ranking-value"
>
总产值
</div>
</div>
<div
class=
"chart-empty"
v-if=
"summaryArr.length == 0"
>
...
...
@@ -110,6 +111,7 @@ export default {
dialogVisible
:
false
,
rankHeight
:
0
,
custSortMax
:
0
,
custAvergCount
:
0
,
chartStatus
:
false
,
radioStore
:
"1"
,
radioOutput
:
"1"
,
...
...
@@ -134,6 +136,7 @@ export default {
})
.
then
((
res
)
=>
{
this
.
custSortList
=
res
.
custSortList
;
this
.
custAvergCount
=
res
.
custAvergCount
;
if
(
this
.
custSortList
.
length
==
0
)
{
this
.
dialogVisible
=
true
;
return
;
...
...
@@ -164,8 +167,10 @@ export default {
display
:
flex
;
.summary-ranking-box
{
width
:
50%
;
margin-right
:
20px
;
min-height
:
100px
;
min-height
:
220px
;
&:first-child
{
margin-right
:
20px
;
}
}
.summary-ranking-title
{
height
:
64px
;
...
...
@@ -254,13 +259,19 @@ export default {
position
:
absolute
;
top
:
0px
;
left
:
0px
;
width
:
50%
;
height
:
100%
;
background-color
:
#5850ff
;
}
.summary-progress-avg
{
position
:
absolute
;
bottom
:
-5px
;
left
:
0px
;
height
:
2px
;
background-color
:
#FE9C1C
;
}
}
.summary-progress-value
{
width
:
80
px
;
width
:
64
px
;
margin-left
:
20px
;
}
}
...
...
src/views/ehome/components/summary-statistics.vue
View file @
5ebffb4
...
...
@@ -11,6 +11,7 @@
type=
"date"
placeholder=
"选择日期"
:clearable=
"false"
:picker-options=
"pickerOptions"
>
</el-date-picker>
</div>
...
...
@@ -139,6 +140,11 @@ export default {
packmenberCount
:
0
,
todayAddPackmenberCount
:
0
,
summaryTime
:
util
.
getBeforeDate
(),
pickerOptions
:
{
disabledDate
:(
time
)
=>
{
return
time
.
getTime
()
>
Date
.
now
();
}
},
expandStatus
:
true
,
chartStatus
:
false
,
echartId1
:
"customerEchartId1"
,
...
...
@@ -258,21 +264,18 @@ export default {
{
name
:
"每日新增企微用户"
,
type
:
"line"
,
stack
:
"总量"
,
lineStyle
:
{
color
:
"#5850FF "
},
data
:
custEntmicroAdds
,
},
{
name
:
"每日新增产值"
,
type
:
"line"
,
stack
:
"总量"
,
lineStyle
:
{
color
:
"#2CCA74 "
},
data
:
[],
},
{
name
:
"每日企微消失用户"
,
type
:
"line"
,
stack
:
"总量"
,
lineStyle
:
{
color
:
"#FF6D00 "
},
data
:
custLoseList
,
},
...
...
@@ -284,6 +287,8 @@ export default {
},
mounted
()
{
console
.
log
(
document
.
URL
)
this
.
getViewData
();
this
.
getChart
();
window
.
addEventListener
(
"resize"
,
()
=>
{
...
...
src/views/enterpriseWechat/index.vue
View file @
5ebffb4
...
...
@@ -303,7 +303,8 @@ export default {
timer
:
null
,
timerQrcode
:
null
,
statusQrcode
:
""
,
URL
:
"wwww.baidu.com"
,
URL
:
""
,
nextStatus
:
false
,
Token
:
""
,
Secret_1
:
""
,
Secret_2
:
""
,
...
...
@@ -324,7 +325,7 @@ export default {
window
.
open
(
url
);
},
jumpHome
()
{
this
.
$router
.
push
(
"/home/index"
);
this
.
$router
.
push
(
"/home/index
?id=2
"
);
},
jumpStore
()
{
this
.
$history
.
push
(
"/settings/account/index"
);
...
...
@@ -363,12 +364,14 @@ export default {
type
:
"success"
,
});
},
jumpConfig
()
{
window
.
open
(
"https://www.baidu.com"
);
},
handleNext
()
{
if
(
this
.
active
==
1
)
{
this
.
statusQrcode
==
"SUCCESS"
?
this
.
active
=
3
:
this
.
handleGetSecret
();
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
this
.
nextStatus
?
this
.
active
=
2
:
this
.
active
=
3
;
}
else
{
this
.
handleGetSecret
();
}
return
}
if
(
this
.
active
==
2
)
{
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
...
...
@@ -389,6 +392,9 @@ export default {
}
},
handlePrev
()
{
if
(
this
.
active
==
3
)
{
this
.
nextStatus
=
true
;
}
this
.
active
--
;
},
closeDalog
()
{
...
...
src/views/followUp/components/addSale.vue
View file @
5ebffb4
...
...
@@ -103,7 +103,8 @@ export default {
methods
:
{
init
()
{
(
this
.
newTag
=
""
),
(
this
.
innerTags
=
[]);
this
.
newTag
=
""
;
this
.
innerTags
=
[];
this
.
empTypeValue
=
""
;
},
listEntFollowerType
()
{
...
...
@@ -272,8 +273,8 @@ export default {
display
:
inline-block
;
outline
:
none
;
padding
:
0
10px
0
5px
;
flex-wrap
:
wrap
;
line-height
:
32px
;
height
:
35px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
100%
;
display
:
flex
;
...
...
@@ -284,6 +285,9 @@ export default {
outline
:
none
!important
;
border
:
none
!important
;
}
/
deep
/
.el-input
{
width
:
150px
;
}
}
.el-tag
{
...
...
src/views/followUp/components/selectEmp.vue
View file @
5ebffb4
...
...
@@ -66,7 +66,7 @@ export default {
},
{
label
:
"职务"
,
prop
:
"
departmentNam
e"
,
prop
:
"
staffTitl
e"
,
},
],
},
...
...
@@ -78,6 +78,10 @@ export default {
listDepartmentTree
()
{
this
.
$apis
.
emp
.
listDepartmentTree
({
id
:
1
}).
then
((
res
)
=>
{
this
.
listTree
=
res
;
this
.
$nextTick
(()
=>
{
document
.
getElementsByClassName
(
'el-tree-node__expand-icon'
)[
0
].
click
();
document
.
getElementsByClassName
(
'el-tree-node__content'
)[
0
].
click
();
});
});
},
clearSelect
(
arr
)
{
...
...
@@ -104,7 +108,6 @@ export default {
let
clientHeight
=
document
.
documentElement
.
clientHeight
;
this
.
treeHeight
=
clientHeight
-
450
;
this
.
listDepartmentTree
();
this
.
listEntmicroStaff
();
},
};
</
script
>
...
...
src/views/followUp/index.vue
View file @
5ebffb4
...
...
@@ -118,23 +118,23 @@ export default {
tableColumns
:
[
{
label
:
"姓名"
,
prop
:
"staffName"
,
prop
:
"staffName"
},
{
label
:
"部门"
,
prop
:
"departmentName"
,
prop
:
"departmentName"
},
{
label
:
"跟进专员类型"
,
prop
:
"followerTypeName"
,
prop
:
"followerTypeName"
},
{
label
:
"手机号"
,
prop
:
"staffPhone"
,
prop
:
"staffPhone"
},
{
label
:
"首次开通时间"
,
prop
:
"followerCreatedTime"
,
prop
:
"followerCreatedTime"
},
{
label
:
"是否有外部联系人权限"
,
...
...
@@ -163,7 +163,9 @@ export default {
methods
:
{
openDrawer
()
{
this
.
drawer
=
true
;
this
.
$refs
.
drawerForm
.
init
();
this
.
$nextTick
(()
=>
{
this
.
$refs
.
drawerForm
.
init
();
})
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
...
...
src/views/home/index.vue
View file @
5ebffb4
...
...
@@ -25,6 +25,7 @@
type=
"date"
placeholder=
"选择日期"
:clearable=
"false"
:picker-options=
"pickerOptions"
>
</el-date-picker>
</div>
...
...
@@ -63,7 +64,7 @@
class=
"guide-btn"
:style=
"
{
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
top: guideTop +
30
+ 'px',
top: guideTop +
imgHeight/2
+ 'px',
}"
>
我知道了
...
...
@@ -101,7 +102,7 @@
width: imgWidth + 'px',
height: imgHeight + 'px',
left: guideLeft - imgWidth - borderLeft + 'px',
top: guideTop - borderTop + 'px',
top: guideTop - borderTop
- 40
+ 'px',
}"
/>
<img
...
...
@@ -175,6 +176,11 @@ export default {
data
()
{
return
{
summaryTime
:
util
.
getBeforeDate
(),
pickerOptions
:
{
disabledDate
:(
time
)
=>
{
return
time
.
getTime
()
>
Date
.
now
();
}
},
guideStatus
:
false
,
step
:
1
,
headHeight
:
0
,
...
...
@@ -210,14 +216,14 @@ export default {
this
.
imgHeight
=
(
this
.
imgWidth
*
246
)
/
541
;
this
.
guideLeft
=
this
.
borderLeft
;
this
.
guideTop
=
document
.
querySelector
(
".header-panel"
).
offsetTop
+
this
.
borderTop
;
document
.
querySelector
(
".header-panel"
).
offsetTop
+
this
.
borderTop
-
2
;
}
else
if
(
this
.
step
==
2
)
{
this
.
guideWidth
=
document
.
querySelector
(
".consult-box"
).
offsetWidth
;
this
.
guideHeight
=
document
.
querySelector
(
".consult-box"
).
offsetHeight
;
this
.
imgHeight
=
this
.
guideHeight
;
this
.
imgWidth
=
(
this
.
imgHeight
*
614
)
/
222
;
this
.
imgHeight
=
this
.
guideHeight
/
2
;
this
.
imgWidth
=
(
this
.
imgHeight
*
759
)
/
128
;
this
.
guideLeft
=
document
.
querySelector
(
".consult-box"
).
offsetLeft
+
this
.
borderLeft
-
4
4
;
document
.
querySelector
(
".consult-box"
).
offsetLeft
+
this
.
borderLeft
-
4
2
;
this
.
guideTop
=
document
.
querySelector
(
".consult-box"
).
offsetTop
+
this
.
borderTop
;
}
else
{
let
top
=
document
.
querySelector
(
".accurate-sercives"
).
offsetTop
+
150
;
...
...
@@ -277,17 +283,18 @@ export default {
position
:
absolute
;
background
:
#f4c647
;
border-radius
:
4px
;
padding
:
0.6em
0.9em
;
padding
:
6px
9px
;
font-size
:
10px
;
font-weight
:
500
;
color
:
#ffffff
;
line-height
:
12px
;
cursor
:
pointer
;
bottom
:
7px
;
bottom
:
8px
;
left
:
73.5%
!important
;
}
>
img
{
width
:
100%
;
height
:
auto
;
height
:
100%
;
}
}
.main-isScroll
{
...
...
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