Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 073c7cef
authored
Sep 19, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.10.0' into 'v2.10.0'
访问量搜索条件置灰,无标签错误样式调整 See merge request
!30
2 parents
47787627
4a58638a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
src/views/businessCard/components/cardList.vue
src/views/businessCard/components/recordList.vue
src/views/businessCard/components/cardList.vue
View file @
073c7ce
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-popover
trigger=
"hover"
placement=
"top"
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length > 3"
>
<el-popover
trigger=
"hover"
placement=
"top"
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length > 3"
>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
></GLTitle>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
></GLTitle>
<div
slot=
"reference"
class=
"name-wrapper"
style=
"display:flex"
>
<div
slot=
"reference"
class=
"name-wrapper"
style=
"display:flex"
>
<div
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
v-show=
"index
< 4
"
>
<div
style=
"display:flex"
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
v-show=
"index
< 4
"
>
<div
:title=
"item.name"
class=
"accountType-row accountType-row-tag"
v-if=
"index == 3 && JSON.parse(scope.scope.tagJson).length > 3"
>
{{
'...('
+
JSON
.
parse
(
scope
.
scope
.
tagJson
).
length
+
')'
}}
</div>
<div
:title=
"item.name"
class=
"accountType-row accountType-row-tag"
v-if=
"index == 3 && JSON.parse(scope.scope.tagJson).length > 3"
>
{{
'...('
+
JSON
.
parse
(
scope
.
scope
.
tagJson
).
length
+
')'
}}
</div>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-else
></GLTitle>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-else
></GLTitle>
</div>
</div>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</el-popover>
</el-popover>
<div
style=
"display:flex"
>
<div
style=
"display:flex"
>
<template
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length
<
= 3
&&
JSON.parse(scope.scope.tagJson).length > 0">
<template
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length
<
= 3
&&
JSON.parse(scope.scope.tagJson).length > 0">
<div
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
>
<div
style=
"display:flex"
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
></GLTitle>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
></GLTitle>
</div>
</div>
</
template
>
</
template
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</template>
</template>
<
script
>
<
script
>
import
util
from
"@/utils/util"
;
import
util
from
'@/utils/util'
export
default
{
export
default
{
name
:
'cardList'
,
name
:
'cardList'
,
...
@@ -183,9 +183,9 @@ export default {
...
@@ -183,9 +183,9 @@ export default {
methods
:
{
methods
:
{
// 跳转访问量
// 跳转访问量
visitCisitCont
(
scope
)
{
visitCisitCont
(
scope
)
{
const
{
cardName
,
visitCont
,
id
:
cardId
}
=
scope
const
{
cardName
,
visitCont
,
id
:
cardId
,
staffName
}
=
scope
if
(
!
visitCont
)
return
if
(
!
visitCont
)
return
this
.
$parent
.
query
=
{
cardName
,
cardId
}
this
.
$parent
.
query
=
{
cardName
,
cardId
,
staffName
}
this
.
$parent
.
activeName
=
'2'
this
.
$parent
.
activeName
=
'2'
},
},
staffNameSplit
(
name
)
{
staffNameSplit
(
name
)
{
...
@@ -295,7 +295,7 @@ export default {
...
@@ -295,7 +295,7 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
}
}
.tag-panel
{
.tag-panel
{
margin-bottom
:
-8px
;
//
margin-bottom
:
-8px
;
.tag-item
{
.tag-item
{
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#e8e8ea
;
border
:
1px
solid
#e8e8ea
;
...
@@ -382,7 +382,7 @@ export default {
...
@@ -382,7 +382,7 @@ export default {
border
:
1px
solid
#e8e8ea
;
border
:
1px
solid
#e8e8ea
;
padding
:
6px
;
padding
:
6px
;
display
:
inline-block
;
display
:
inline-block
;
margin-bottom
:
5px
;
//
margin-bottom
:
5px
;
margin-right
:
5px
;
margin-right
:
5px
;
&-tag
{
&-tag
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/businessCard/components/recordList.vue
View file @
073c7ce
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<el-date-picker
:picker-options=
"pickerOptions"
@
change=
"handleTime"
value-format=
"yyyy-MM-dd"
v-model=
"createTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
:picker-options=
"pickerOptions"
@
change=
"handleTime"
value-format=
"yyyy-MM-dd"
v-model=
"createTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"渠道名称:"
>
<el-form-item
size=
"small"
label=
"渠道名称:"
>
<el-input
size=
"small"
v-model=
"tableSearchForm.cardName"
placeholder=
"请输入渠道名称"
></el-input>
<el-input
size=
"small"
v-model=
"tableSearchForm.cardName"
placeholder=
"请输入渠道名称"
:disabled=
"isShowInput"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"名片来源:"
>
<el-form-item
size=
"small"
label=
"名片来源:"
>
<el-input
size=
"small"
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入名片来源"
></el-input>
<el-input
size=
"small"
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入名片来源"
:disabled=
"isShowInput"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-left: 12px"
>
<el-form-item
size=
"small"
style=
"float: right; margin-left: 12px"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
...
@@ -32,17 +32,17 @@
...
@@ -32,17 +32,17 @@
</div>
</div>
<div
class=
"table-btns"
slot=
"nickName"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"nickName"
slot-scope=
"scope"
>
{{
scope
.
scope
.
nickName
}}
{{
scope
.
scope
.
nickName
}}
<span
class=
"typeInfo"
>
{{
scope
.
scope
.
type
==
'1'
?
'@微信'
:
scope
.
scope
.
type
==
'2'
?
'@企微'
:
''
}}
</span>
<span
class=
"typeInfo"
>
{{
scope
.
scope
.
type
==
'1'
?
'@微信'
:
scope
.
scope
.
type
==
'2'
?
'@企微'
:
''
}}
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"isJoin"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"isJoin"
slot-scope=
"scope"
>
{{
scope
.
scope
.
isJoin
==
'0'
?
'否'
:
scope
.
scope
.
isJoin
==
'1'
?
'是'
:
'--'
}}
{{
scope
.
scope
.
isJoin
==
'0'
?
'否'
:
scope
.
scope
.
isJoin
==
'1'
?
'是'
:
'--'
}}
</div>
</div>
</GLTable>
</GLTable>
<el-dialog
class=
"recordDialog"
title=
"访问记录"
:visible
.
sync=
"dialogTableVisible"
width=
"38%"
:top=
"0"
>
<el-dialog
class=
"recordDialog"
title=
"访问记录"
:visible
.
sync=
"dialogTableVisible"
width=
"38%"
:top=
"0"
>
<el-table
:data=
"recordRelationList"
>
<el-table
:data=
"recordRelationList"
>
<el-table-column
type=
"index"
:index=
"1"
label=
"序号"
width=
"120"
></el-table-column>
<el-table-column
type=
"index"
:index=
"1"
label=
"序号"
width=
"120"
></el-table-column>
<el-table-column
property=
"pageName"
label=
"访问页面"
width=
"220"
></el-table-column>
<el-table-column
property=
"pageName"
label=
"访问页面"
width=
"220"
></el-table-column>
<el-table-column
property=
"createdTime"
label=
"访问时间"
></el-table-column>
<el-table-column
property=
"createdTime"
label=
"访问时间"
></el-table-column>
</el-table>
</el-table>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
name
:
'recordList'
,
name
:
'recordList'
,
data
()
{
data
()
{
return
{
return
{
isShowInput
:
false
,
recordRelationList
:
[],
recordRelationList
:
[],
dialogTableVisible
:
false
,
dialogTableVisible
:
false
,
timeRadio
:
1
,
timeRadio
:
1
,
...
@@ -145,7 +146,8 @@ export default {
...
@@ -145,7 +146,8 @@ export default {
this
.
codeSearch
()
this
.
codeSearch
()
},
},
handleReset
()
{
handleReset
()
{
Object
.
keys
(
this
.
tableSearchForm
).
forEach
((
key
)
=>
{
this
.
isShowInput
=
false
Object
.
keys
(
this
.
tableSearchForm
).
forEach
(
key
=>
{
this
.
tableSearchForm
[
key
]
=
''
this
.
tableSearchForm
[
key
]
=
''
})
})
this
.
createTime
=
[]
this
.
createTime
=
[]
...
@@ -173,7 +175,7 @@ export default {
...
@@ -173,7 +175,7 @@ export default {
this
.
sendPageListApi
(
params
)
this
.
sendPageListApi
(
params
)
},
},
sendPageListApi
(
params
){
sendPageListApi
(
params
)
{
this
.
$apis
.
businessCard
.
getaccessToRecordsPage
(
params
).
then
(
res
=>
{
this
.
$apis
.
businessCard
.
getaccessToRecordsPage
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableTotal
=
res
.
count
...
@@ -182,10 +184,12 @@ export default {
...
@@ -182,10 +184,12 @@ export default {
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$parent
.
query
&&
this
.
$parent
.
query
.
cardName
)
{
if
(
this
.
$parent
.
query
&&
this
.
$parent
.
query
.
cardName
)
{
let
{
cardName
,
cardId
}
=
this
.
$parent
.
query
let
{
cardName
,
cardId
,
staffName
}
=
this
.
$parent
.
query
this
.
timeRadio
=
this
.
dateInterval
=
4
this
.
timeRadio
=
this
.
dateInterval
=
4
this
.
$set
(
this
.
tableSearchForm
,
'cardName'
,
cardName
)
this
.
$set
(
this
.
tableSearchForm
,
'cardName'
,
cardName
)
this
.
$set
(
this
.
tableSearchForm
,
'staffName'
,
staffName
)
this
.
$set
(
this
.
tableSearchForm
,
'cardId'
,
cardId
)
this
.
$set
(
this
.
tableSearchForm
,
'cardId'
,
cardId
)
this
.
isShowInput
=
true
}
}
this
.
codeSearch
()
this
.
codeSearch
()
},
},
...
@@ -196,23 +200,23 @@ export default {
...
@@ -196,23 +200,23 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.resetBtn
{
.resetBtn
{
margin-left
:
8px
;
margin-left
:
8px
;
}
}
.titleAndTime
{
.titleAndTime
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
12px
;
margin-bottom
:
12px
;
.listTitle{
.listTitle
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#333
;
color
:
#333
;
}
}
}
}
.typeInfo
{
.typeInfo
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#2
CCA
74
;
color
:
#2
cca
74
;
}
}
/
deep
/
.recordDialog
{
/
deep
/
.recordDialog
{
.el-dialog
{
.el-dialog
{
...
...
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