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 88709a66
authored
Dec 17, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2.0修改
1 parent
af328321
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
88 additions
and
92 deletions
linkwe-ui/src/components/ButtonSync.vue
linkwe-ui/src/components/SelectTag.vue
linkwe-ui/src/main.js
linkwe-ui/src/styles/element-variables.scss
linkwe-ui/src/views/customerManage/customer.vue
linkwe-ui/src/views/customerManage/customer/infoTab.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/group.vue
linkwe-ui/src/views/customerManage/tag/list.vue
linkwe-ui/src/views/friendCircle/index.vue
linkwe-ui/src/components/ButtonSync.vue
0 → 100644
View file @
88709a6
<
script
>
export
default
{
name
:
'ButtonSync'
,
props
:
{
customeBtn
:
{
type
:
Boolean
,
default
:
false
},
lastSyncTime
:
{
type
:
[
String
,
Number
],
default
:
0
}
},
components
:
{},
data
()
{
return
{}
},
computed
:
{
disabled
()
{
return
this
.
lastSyncTime
?
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
:
true
}
},
watch
:
{},
created
()
{},
mounted
()
{},
methods
:
{
sync
()
{
// if (this.disabled) {
// this.msgError('由于企业微信开放平台的限制,两小时内不得重复同步操作')
// return
// }
this
.
$emit
(
'click'
)
}
}
}
</
script
>
<
template
>
<el-tooltip
effect=
"light"
:disabled=
"!disabled"
class=
"item"
content=
"由于企业微信开放平台的限制,两小时内不得重复同步操作"
placement=
"top-start"
>
<el-tag
v-if=
"disabled"
type=
"info"
size=
"default"
><slot></slot></el-tag>
<el-button
v-else
v-preventReClick
type=
"primary"
@
click=
"sync"
>
<slot></slot>
</el-button>
</el-tooltip>
</
template
>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/components/SelectTag.vue
View file @
88709a6
...
@@ -160,13 +160,6 @@ export default {
...
@@ -160,13 +160,6 @@ export default {
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
style
>
.el-tag.el-tag--info
{
background-color
:
#f4f4f5
;
border-color
:
#e9e9eb
;
color
:
#909399
;
}
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.user-list
{
.user-list
{
.el-row
{
.el-row
{
...
...
linkwe-ui/src/main.js
View file @
88709a6
...
@@ -9,7 +9,7 @@ import Element from 'element-ui'
...
@@ -9,7 +9,7 @@ import Element from 'element-ui'
import
'./styles/element-variables.scss'
import
'./styles/element-variables.scss'
Vue
.
use
(
Element
,
{
Vue
.
use
(
Element
,
{
size
:
Cookies
.
get
(
'size'
)
||
'small'
,
// set element-ui default size
size
:
Cookies
.
get
(
'size'
)
||
'small'
// set element-ui default size
})
})
import
'@/styles/common.scss'
// common css
import
'@/styles/common.scss'
// common css
...
@@ -33,13 +33,14 @@ import {
...
@@ -33,13 +33,14 @@ import {
selectDictLabel
,
selectDictLabel
,
selectDictLabels
,
selectDictLabels
,
download
,
download
,
handleTree
,
handleTree
}
from
'@/utils/common'
}
from
'@/utils/common'
import
Pagination
from
'@/components/Pagination'
import
Pagination
from
'@/components/Pagination'
//自定义表格工具扩展
//自定义表格工具扩展
import
RightToolbar
from
'@/components/RightToolbar'
import
RightToolbar
from
'@/components/RightToolbar'
import
Upload
from
'@/components/Upload'
import
Upload
from
'@/components/Upload'
import
ButtonSync
from
'@/components/ButtonSync'
// 全局方法挂载
// 全局方法挂载
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getDicts
=
getDicts
...
@@ -86,14 +87,15 @@ VueAMap.initAMapApiLoader({
...
@@ -86,14 +87,15 @@ VueAMap.initAMapApiLoader({
'AMap.ToolBar'
,
'AMap.ToolBar'
,
'AMap.MapType'
,
'AMap.MapType'
,
'AMap.PolyEditor'
,
'AMap.PolyEditor'
,
'AMap.CircleEditor'
,
'AMap.CircleEditor'
],
],
v
:
'1.4.4'
,
v
:
'1.4.4'
})
})
// 全局组件挂载
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'Upload'
,
Upload
)
Vue
.
component
(
'Upload'
,
Upload
)
Vue
.
component
(
'ButtonSync'
,
ButtonSync
)
Vue
.
use
(
directive
)
Vue
.
use
(
directive
)
...
@@ -112,5 +114,5 @@ new Vue({
...
@@ -112,5 +114,5 @@ new Vue({
el
:
'#app'
,
el
:
'#app'
,
router
,
router
,
store
,
store
,
render
:
(
h
)
=>
h
(
App
)
,
render
:
(
h
)
=>
h
(
App
)
})
})
linkwe-ui/src/styles/element-variables.scss
View file @
88709a6
...
@@ -8,7 +8,7 @@ $--color-primary: #0079de;
...
@@ -8,7 +8,7 @@ $--color-primary: #0079de;
$--color-success
:
#06c160
;
$--color-success
:
#06c160
;
$--color-warning
:
#ffcf0e
;
$--color-warning
:
#ffcf0e
;
$--color-danger
:
#e74e59
;
$--color-danger
:
#e74e59
;
$--color-info
:
#fa7216
;
//
$--color-info: #fa7216;
// $--color-info: #1E1E1E;
// $--color-info: #1E1E1E;
$--button-font-weight
:
400
;
$--button-font-weight
:
400
;
...
...
linkwe-ui/src/views/customerManage/customer.vue
View file @
88709a6
...
@@ -58,11 +58,7 @@ export default {
...
@@ -58,11 +58,7 @@ export default {
}
}
},
},
watch
:
{},
watch
:
{},
computed
:
{
computed
:
{},
isSync
()
{
return
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
}
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
getListTag
()
this
.
getListTag
()
...
@@ -206,10 +202,6 @@ export default {
...
@@ -206,10 +202,6 @@ export default {
// this.$refs.selectTag.$forceUpdate()
// this.$refs.selectTag.$forceUpdate()
},
},
sync
()
{
sync
()
{
if
(
this
.
isSync
)
{
this
.
msgError
(
'由于企业微信开放平台的限制,两小时内不得重复同步操作'
)
return
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
...
@@ -418,21 +410,7 @@ export default {
...
@@ -418,21 +410,7 @@ export default {
<!-- 共
<!-- 共
<span class="num">{{ total }}</span> 位客户,实际客户
<span class="num">{{ total }}</span> 位客户,实际客户
<span class="num">{{ total }}</span> 位。 -->
<span class="num">{{ total }}</span> 位。 -->
<el-tooltip
<ButtonSync
:lastSyncTime=
"lastSyncTime"
@
click=
"sync"
>
同步客户
</ButtonSync>
effect=
"light"
:disabled=
"!isSync"
class=
"item"
content=
"由于企业微信开放平台的限制,两小时内不得重复同步操作"
placement=
"top-start"
>
<el-button
v-hasPermi=
"['customerManage:customer:sync']"
v-preventReClick
type=
"primary"
@
click=
"sync"
>
同步客户
</el-button
>
</el-tooltip>
<!-- <el-button v-hasPermi="['customerManage:customer:checkRepeat']" type="primary">查看重复客户</el-button> -->
<!-- <el-button v-hasPermi="['customerManage:customer:checkRepeat']" type="primary">查看重复客户</el-button> -->
<span
class=
"sub-text-color"
>
最近同步:{{ lastSyncTime }}
</span>
<span
class=
"sub-text-color"
>
最近同步:{{ lastSyncTime }}
</span>
</div>
</div>
...
...
linkwe-ui/src/views/customerManage/customer/infoTab.vue
View file @
88709a6
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
isSync
()
{
disabled
()
{
return
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
return
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
}
}
},
},
...
@@ -82,10 +82,6 @@ export default {
...
@@ -82,10 +82,6 @@ export default {
this
.
active
=
type
this
.
active
=
type
},
},
sync
()
{
sync
()
{
if
(
this
.
isSync
)
{
this
.
msgError
(
'由于企业微信开放平台的限制,两小时内不得重复同步操作'
)
return
}
this
.
openTrack
=
[
'0'
]
this
.
openTrack
=
[
'0'
]
this
.
active
=
'0'
this
.
active
=
'0'
this
.
$refs
[
'record'
][
0
].
$forceUpdate
()
this
.
$refs
[
'record'
][
0
].
$forceUpdate
()
...
@@ -189,22 +185,10 @@ export default {
...
@@ -189,22 +185,10 @@ export default {
<el-card>
<el-card>
<div
slot=
"header"
>
<div
slot=
"header"
>
<span
class=
"card-title"
>
客户轨迹
</span>
<span
class=
"card-title"
>
客户轨迹
</span>
<el-tooltip
effect=
"light"
<ButtonSync
class=
"btn-sync"
:lastSyncTime=
"lastSyncTime"
@
click=
"sync"
:disabled=
"!isSync"
>
同步
</ButtonSync
class=
"item"
content=
"由于企业微信开放平台的限制,两小时内不得重复同步操作"
placement=
"top-start"
>
<el-button
v-preventReClick
style=
"color: #13a2e8;padding: 0;"
class=
"fr cp"
type=
"text"
@
click=
"sync"
>
同步
</el-button
>
>
</el-tooltip>
</div>
</div>
<div
class=
"flex track-tab-wrap mb15"
>
<div
class=
"flex track-tab-wrap mb15"
>
<div
<div
...
@@ -266,4 +250,9 @@ export default {
...
@@ -266,4 +250,9 @@ export default {
}
}
}
}
}
}
.btn-sync
{
position
:
relative
;
float
:
right
;
top
:
-11px
;
}
</
style
>
</
style
>
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
88709a6
...
@@ -60,6 +60,11 @@ export default {
...
@@ -60,6 +60,11 @@ export default {
getDetail
()
{
getDetail
()
{
getDetail
(
this
.
$route
.
query
).
then
(({
data
})
=>
{
getDetail
(
this
.
$route
.
query
).
then
(({
data
})
=>
{
data
.
companyTags
&&
(
data
.
companyTags
=
data
.
companyTags
.
split
(
','
))
data
.
companyTags
&&
(
data
.
companyTags
=
data
.
companyTags
.
split
(
','
))
if
(
data
.
trackUsers
&&
data
.
trackUsers
.
length
>
1
)
{
data
.
trackUsers
.
unshift
({
userName
:
'客户画像汇总'
})
}
this
.
customer
=
data
this
.
customer
=
data
this
.
birthday
=
data
.
birthday
this
.
birthday
=
data
.
birthday
})
})
...
@@ -137,9 +142,6 @@ export default {
...
@@ -137,9 +142,6 @@ export default {
<
/el-card
>
<
/el-card
>
<
el
-
tabs
value
=
"0"
>
<
el
-
tabs
value
=
"0"
>
<
el
-
tab
-
pane
label
=
"客户画像汇总"
>
<
info
-
tab
><
/info-tab
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
v
-
for
=
"(item, index) of customer.trackUsers"
:
key
=
"index"
:
label
=
"item.userName"
>
<
el
-
tab
-
pane
v
-
for
=
"(item, index) of customer.trackUsers"
:
key
=
"index"
:
label
=
"item.userName"
>
<
info
-
tab
:
userId
=
"item.trackUserId"
><
/info-tab
>
<
info
-
tab
:
userId
=
"item.trackUserId"
><
/info-tab
>
<
/el-tab-pane
>
<
/el-tab-pane
>
...
...
linkwe-ui/src/views/customerManage/group.vue
View file @
88709a6
...
@@ -41,11 +41,7 @@ export default {
...
@@ -41,11 +41,7 @@ export default {
makeLabelCustomerList
:
[]
makeLabelCustomerList
:
[]
}
}
},
},
computed
:
{
computed
:
{},
isSync
()
{
return
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
}
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
},
},
...
@@ -143,10 +139,6 @@ export default {
...
@@ -143,10 +139,6 @@ export default {
this
.
getList
(
1
)
this
.
getList
(
1
)
},
},
sync
()
{
sync
()
{
if
(
this
.
isSync
)
{
this
.
msgError
(
'由于企业微信开放平台的限制,两小时内不得重复同步操作'
)
return
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
...
@@ -228,9 +220,8 @@ export default {
...
@@ -228,9 +220,8 @@ export default {
<div
class=
""
>
<div
class=
""
>
<!-- 己选
<!-- 己选
<span class="num">{{total}}</span> 个客户群-->
<span class="num">{{total}}</span> 个客户群-->
<el-button
v-hasPermi=
"['customerManage:group:sync']"
type=
"primary"
@
click=
"sync"
>
同步客户群
</el-button
<ButtonSync
:lastSyncTime=
"lastSyncTime"
@
click=
"sync"
>
同步客户群
</ButtonSync>
>
<span
class=
"sub-text-color"
>
<span
class=
"sub-text-color"
>
最近同步:{{ lastSyncTime }}
最近同步:{{ lastSyncTime }}
<!-- <span class="num">{{total}}</span> 条信息 ,
<!-- <span class="num">{{total}}</span> 条信息 ,
...
...
linkwe-ui/src/views/customerManage/tag/list.vue
View file @
88709a6
...
@@ -46,11 +46,7 @@ export default {
...
@@ -46,11 +46,7 @@ export default {
lastSyncTime
:
0
lastSyncTime
:
0
}
}
},
},
computed
:
{
computed
:
{},
isSync
()
{
return
(
+
new
Date
()
-
+
new
Date
(
this
.
lastSyncTime
))
/
3600000
<
2
}
},
created
()
{
created
()
{
// this.query.groupTagType = this.type
// this.query.groupTagType = this.type
this
.
getList
()
this
.
getList
()
...
@@ -78,10 +74,6 @@ export default {
...
@@ -78,10 +74,6 @@ export default {
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
syncTag
()
{
syncTag
()
{
if
(
this
.
isSync
)
{
this
.
msgError
(
'由于企业微信开放平台的限制,两小时内不得重复同步操作'
)
return
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
...
@@ -125,20 +117,16 @@ export default {
...
@@ -125,20 +117,16 @@ export default {
<div
class=
""
>
<div
class=
""
>
<div
class=
"mid-action"
>
<div
class=
"mid-action"
>
<div>
<div>
<el-button
v-hasPermi=
"['customerManage:tag:add']"
type=
"primary"
@
click=
"edit()"
<el-button
v-hasPermi=
"['customerManage:tag:add']"
type=
"primary"
class=
"mr10"
@
click=
"edit()"
>
新建标签组
</el-button
>
新建标签组
</el-button
>
>
<el-tooltip
<ButtonSync
v-if=
"type == 1"
:lastSyncTime=
"lastSyncTime"
@
click=
"syncTag"
>
effect=
"light"
:disabled=
"!isSync"
class=
"item"
content=
"由于企业微信开放平台的限制,两小时内不得重复同步操作"
placement=
"top-start"
>
<el-button
v-if=
"type == 1"
v-preventReClick
type=
"primary"
plain
@
click=
"syncTag"
>
同步企微标签
同步企微标签
</el-button>
</ButtonSync>
</el-tooltip>
</div>
</div>
<div>
<div>
<el-button
<el-button
...
...
linkwe-ui/src/views/friendCircle/index.vue
View file @
88709a6
This diff is collapsed.
Click to expand it.
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