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 7dde7739
authored
Nov 01, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
2f568fa1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
92 deletions
linkwe-ui/src/utils/resize.js
linkwe-ui/src/views/index.vue
linkwe-ui/src/utils/resize.js
deleted
100644 → 0
View file @
2f568fa
<
script
src
=
"node_modules/element-resize-detector/dist/element-resize-detector.min.js"
><
/script
>
var
elemt
=
elementResizeDetectorMaker
();
var
erdUltraFast
=
elementResizeDetectorMaker
({
strategy
:
"scroll"
});
elemt
.
listenTo
(
document
.
getElementById
(
"fatherbox"
),
function
(
element
)
{
var
width
=
element
.
offsetWidth
;
var
height
=
element
.
offsetHeight
;
console
.
log
(
"Size: "
+
width
+
"x"
+
height
);
});
\ No newline at end of file
\ No newline at end of file
linkwe-ui/src/views/index.vue
View file @
7dde773
...
@@ -9,12 +9,7 @@
...
@@ -9,12 +9,7 @@
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
>
<el-col
:span=
"24"
class=
"title_name"
>
数据总览
</el-col>
<el-col
:span=
"24"
class=
"title_name"
>
数据总览
</el-col>
</el-row>
</el-row>
<el-row
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:35px; text-align: center;"
>
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:35px; text-align: center;"
>
<el-col
:span=
"6"
class=
"col_style"
>
企业成员总数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
企业成员总数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户总人数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户总人数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户群总数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户群总数
</el-col>
...
@@ -40,27 +35,16 @@
...
@@ -40,27 +35,16 @@
>
实时数据
<span
class=
" fontgay"
>
更新于
{{
uptime
}}
</span></el-col
>
实时数据
<span
class=
" fontgay"
>
更新于
{{
uptime
}}
</span></el-col
>
>
<el-col
:span=
"10"
style=
"text-align:right"
>
<el-col
:span=
"10"
style=
"text-align:right"
>
<el-radio-group
<el-radio-group
v-model=
"timeType"
style=
"margin-top: 20px;"
@
change=
"timeTypeCheck"
>
v-model=
"timeType"
style=
"margin-top: 20px;"
@
change=
"timeTypeCheck"
>
<el-radio-button
label=
"today"
>
今日
</el-radio-button>
<el-radio-button
label=
"today"
>
今日
</el-radio-button>
<el-radio-button
label=
"week"
>
本周
</el-radio-button>
<el-radio-button
label=
"week"
>
本周
</el-radio-button>
<el-radio-button
label=
"month"
>
本月
</el-radio-button>
<el-radio-button
label=
"month"
>
本月
</el-radio-button>
<el-radio-button
label=
"reset"
<el-radio-button
label=
"reset"
><i
class=
"el-icon-refresh"
>
</i></el-radio-button>
><i
class=
"el-icon-refresh"
>
</i
></el-radio-button>
</el-radio-group>
</el-radio-group>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:30px; text-align: center;"
>
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:30px; text-align: center;"
>
<el-col
:span=
"6"
>
发起申请数
</el-col>
<el-col
:span=
"6"
>
发起申请数
</el-col>
<el-col
:span=
"6"
>
新增客户数
</el-col>
<el-col
:span=
"6"
>
新增客户数
</el-col>
<el-col
:span=
"6"
>
群新增人数
</el-col>
<el-col
:span=
"6"
>
群新增人数
</el-col>
...
@@ -74,17 +58,10 @@
...
@@ -74,17 +58,10 @@
>
>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newApplyCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newApplyCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newContactCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newContactCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
<el-col
:span=
"6"
>
{{
erchatsTable
.
newMemberCnt
?
erchatsTable
.
newMemberCnt
:
0
}}
</el-col>
erchatsTable
.
newMemberCnt
?
erchatsTable
.
newMemberCnt
:
0
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
negativeFeedbackCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
negativeFeedbackCnt
}}
</el-col>
</el-row>
</el-row>
<el-row
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px; text-align: center;"
>
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px; text-align: center;"
>
<el-col
<el-col
:span=
"6"
:span=
"6"
:class=
"
{
:class=
"
{
...
@@ -110,11 +87,7 @@
...
@@ -110,11 +87,7 @@
redicon: Number(erchatsTable.newMemberCntDiff)
< 0
redicon: Number(erchatsTable.newMemberCntDiff)
< 0
}"
}"
>
较
{{
time
}}
>
较
{{
time
}}
<span>
{{
<span>
{{
erchatsTable
.
newMemberCntDiff
?
erchatsTable
.
newMemberCntDiff
:
0
}}
</span>
erchatsTable
.
newMemberCntDiff
?
erchatsTable
.
newMemberCntDiff
:
0
}}
</span>
</el-col>
</el-col>
<el-col
<el-col
:span=
"6"
:span=
"6"
...
@@ -169,39 +142,21 @@
...
@@ -169,39 +142,21 @@
<p
class=
"p1"
>
{{
$store
.
state
.
user
.
companyName
}}
,欢迎登陆本系统
</p>
<p
class=
"p1"
>
{{
$store
.
state
.
user
.
companyName
}}
,欢迎登陆本系统
</p>
<p
class=
"p2"
>
登录时间:
{{
parseTime
(
new
Date
())
}}
</p>
<p
class=
"p2"
>
登录时间:
{{
parseTime
(
new
Date
())
}}
</p>
<p
class=
"p1 p3 margint20"
>
LinkWechat 企业微信SCRM
</p>
<p
class=
"p1 p3 margint20"
>
LinkWechat 企业微信SCRM
</p>
<p
class=
"p2 p4"
>
<p
class=
"p2 p4"
>
版本信息:开源
<span
class=
"fr"
>
可用期限:永久
</span></p>
版本信息:开源
<span
class=
"fr"
>
可用期限:永久
</span>
<el-row
:gutter=
"20"
type=
"flex"
class=
"row-bg"
justify=
"center"
style=
"text-align:center"
>
</p>
<el-row
:gutter=
"20"
type=
"flex"
class=
"row-bg"
justify=
"center"
style=
"text-align:center"
>
<el-col
:span=
"10"
class=
"flexspan"
>
<el-col
:span=
"10"
class=
"flexspan"
>
<img
src=
"../assets/index/bzwd.png"
/>
<img
src=
"../assets/index/bzwd.png"
/>
<a
href=
"https://www.yuque.com/linkwechat/help"
>
帮助手册
</a>
<a
href=
"https://www.yuque.com/linkwechat/help"
>
帮助手册
</a>
</el-col>
</el-col>
<el-col
:span=
"2"
></el-col>
<el-col
:span=
"2"
></el-col>
<el-col
<el-col
:span=
"10"
class=
"flexspan"
@
click
.
native=
"msgInfo('《使用手册》正在加急上线中,敬请关注…')"
:span=
"10"
class=
"flexspan"
@
click
.
native=
"msgInfo('《使用手册》正在加急上线中,敬请关注…')"
><img
src=
"../assets/index/kfsc.png"
/>
开发文档
</el-col
><img
src=
"../assets/index/kfsc.png"
/>
开发文档
</el-col
>
>
</el-row>
</el-row>
</div>
</div>
<div
class=
"inedx_r_top_bottom"
>
<div
class=
"inedx_r_top_bottom"
>
<span
class=
"inedx_r_top_bottomp1"
<span
class=
"inedx_r_top_bottomp1"
><img
src=
"../assets/index/gxrz.png"
/>
更新日志
</span>
><img
src=
"../assets/index/gxrz.png"
/>
更新日志
</span
<span
class=
"fr"
style=
"color:#0079DE"
@
click=
"msgInfo('《更新日志》正在加急上线中,敬请关注…')"
>
更多
</span>
>
<span
class=
"fr"
style=
"color:#0079DE"
@
click=
"msgInfo('《更新日志》正在加急上线中,敬请关注…')"
>
更多
</span
>
<ul>
<ul>
<li
v-for=
"(index, i) in 3"
:key=
"i"
@
click=
"msgInfo('暂无内容')"
>
<li
v-for=
"(index, i) in 3"
:key=
"i"
@
click=
"msgInfo('暂无内容')"
>
即将上线,敬请期待
<span
class=
"fr"
>
03-26
</span>
即将上线,敬请期待
<span
class=
"fr"
>
03-26
</span>
...
@@ -209,9 +164,7 @@
...
@@ -209,9 +164,7 @@
</ul>
</ul>
</div>
</div>
<div
class=
"inedx_r_top_bottom"
>
<div
class=
"inedx_r_top_bottom"
>
<span
class=
"inedx_r_top_bottomp1"
<span
class=
"inedx_r_top_bottomp1"
><img
src=
"../assets/index/qyxy.png"
/>
私域学院
</span>
><img
src=
"../assets/index/qyxy.png"
/>
私域学院
</span
>
<span
class=
"fr"
style=
"color:#0079DE"
>
更多
</span>
<span
class=
"fr"
style=
"color:#0079DE"
>
更多
</span>
<ul>
<ul>
<li
v-for=
"(index, i) in 3"
:key=
"i"
@
click=
"msgInfo('暂无内容')"
>
<li
v-for=
"(index, i) in 3"
:key=
"i"
@
click=
"msgInfo('暂无内容')"
>
...
@@ -221,17 +174,13 @@
...
@@ -221,17 +174,13 @@
</div>
</div>
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<p
style=
"text-align:left"
>
<p
style=
"text-align:left"
>
<span
class=
"inedx_r_top_bottomp1"
>
<span
class=
"inedx_r_top_bottomp1"
>
<img
src=
"../assets/index/kfq.png"
/>
官方交流
</span>
<img
src=
"../assets/index/kfq.png"
/>
官方交流
</span
>
</p>
</p>
<img
:src=
"bossImg"
class=
"img"
/>
<img
:src=
"bossImg"
class=
"img"
/>
</div>
</div>
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<p
style=
"text-align:left"
>
<p
style=
"text-align:left"
>
<span
class=
"inedx_r_top_bottomp1"
>
<span
class=
"inedx_r_top_bottomp1"
>
<img
src=
"../assets/index/khq.png"
/>
联系客服
</span>
<img
src=
"../assets/index/khq.png"
/>
联系客服
</span
>
</p>
</p>
<img
:src=
"bossImg"
class=
"img"
/>
<img
:src=
"bossImg"
class=
"img"
/>
</div>
</div>
...
@@ -249,8 +198,7 @@
...
@@ -249,8 +198,7 @@
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
v-for=
"(index, i) in car"
:key=
"i"
>
<el-col
:span=
"4"
v-for=
"(index, i) in car"
:key=
"i"
>
<div
class=
"grid-content"
@
click=
"$router.push(index.url)"
>
<div
class=
"grid-content"
@
click=
"$router.push(index.url)"
>
<span
class=
"fl"
>
<img
:src=
"index.img"
alt=
""
/>
</span
<span
class=
"fl"
>
<img
:src=
"index.img"
alt=
""
/>
</span><span
class=
"fl craname"
>
{{
index
.
name
}}
</span>
><span
class=
"fl craname"
>
{{
index
.
name
}}
</span>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -258,7 +206,6 @@
...
@@ -258,7 +206,6 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
var
elementResizeDetectorMaker
=
require
(
'element-resize-detector'
)
import
{
content
}
from
'@/api/conversation/content.js'
import
{
content
}
from
'@/api/conversation/content.js'
import
echarts
from
'echarts'
import
echarts
from
'echarts'
export
default
{
export
default
{
...
@@ -436,17 +383,6 @@ export default {
...
@@ -436,17 +383,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
erchatInfo
()
this
.
erchatInfo
()
this
.
tableInfo
()
this
.
tableInfo
()
var
erd
=
elementResizeDetectorMaker
()
let
that
=
this
erd
.
listenTo
(
document
.
getElementById
(
'fatherbox'
),
function
(
element
)
{
var
width
=
element
.
offsetWidth
that
.
$nextTick
(
function
()
{
this
.
drawLine
(
'main'
)
this
.
drawLine
(
'main2'
)
this
.
drawLine
(
'main3'
)
this
.
drawLine
(
'main4'
)
})
})
}
}
}
}
</
script
>
</
script
>
...
...
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