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 f43fe31d
authored
Sep 13, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复ui走查问题
1 parent
4ea5c6d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
27 deletions
src/views/businessCard/addCode.vue
src/views/businessCard/components/cardList.vue
src/views/businessCard/components/recordList.vue
src/views/businessCard/addCode.vue
View file @
f43fe31
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
</div>
</div>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
class=
"cancelBtn"
@
click=
"goback"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
@
click=
"goback"
>
取消
</el-button>
</GLFooter>
</GLFooter>
<el-dialog
class=
"image-dialog"
:visible
.
sync=
"dialogVisibleImg"
width=
"50%"
>
<el-dialog
class=
"image-dialog"
:visible
.
sync=
"dialogVisibleImg"
width=
"50%"
>
<img
:src=
"dialogSrc"
width=
"100%"
/>
<img
:src=
"dialogSrc"
width=
"100%"
/>
...
@@ -332,6 +332,9 @@ export default {
...
@@ -332,6 +332,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.cancelBtn
{
background
:
none
}
.image-dialog
{
.image-dialog
{
/deep/
{
/deep/
{
.el-dialog__header
{
.el-dialog__header
{
...
@@ -403,7 +406,7 @@ export default {
...
@@ -403,7 +406,7 @@ export default {
}
}
.channel-main-welcome
{
.channel-main-welcome
{
.welcome-panel
{
.welcome-panel
{
margin
:
10px
;
margin
:
20px
10px
10px
10px
;
padding
:
0px
20px
20px
;
padding
:
0px
20px
20px
;
.welcome-switch
{
.welcome-switch
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -416,6 +419,9 @@ export default {
...
@@ -416,6 +419,9 @@ export default {
}
}
.welcome-box
{
.welcome-box
{
margin-left
:
48px
;
margin-left
:
48px
;
/deep/
.content{
width
:
64%
;
}
}
}
}
}
}
}
...
@@ -441,7 +447,7 @@ export default {
...
@@ -441,7 +447,7 @@ export default {
padding
:
20px
;
padding
:
20px
;
width
:
60%
;
width
:
60%
;
.form-tips
{
.form-tips
{
font-size
:
1
4
px
;
font-size
:
1
2
px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#999999
;
color
:
#999999
;
line-height
:
20px
;
line-height
:
20px
;
...
...
src/views/businessCard/components/cardList.vue
View file @
f43fe31
...
@@ -21,24 +21,26 @@
...
@@ -21,24 +21,26 @@
<img
:src=
"scope.scope.miniprogramCode"
style=
"width: 360px; height: 360px"
/>
<img
:src=
"scope.scope.miniprogramCode"
style=
"width: 360px; height: 360px"
/>
<div
class=
"download-link"
@
click=
"downloadIamge(scope.scope.miniprogramCode)"
>
下载二维码
</div>
<div
class=
"download-link"
@
click=
"downloadIamge(scope.scope.miniprogramCode)"
>
下载二维码
</div>
</div>
</div>
<img
:src=
"scope.scope.miniprogramCode"
style=
"width:
80px; height: 80
px"
slot=
"reference"
/>
<img
:src=
"scope.scope.miniprogramCode"
style=
"width:
36px; height: 36
px"
slot=
"reference"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
slot=
"tagJson"
slot-scope=
"scope"
class=
"tag-panel"
>
<div
slot=
"tagJson"
slot-scope=
"scope"
class=
"tag-panel"
>
<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"
>
<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
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>
</div>
</div>
</el-popover>
</el-popover>
<template
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length
<
= 3
&&
JSON.parse(scope.scope.tagJson).length > 0">
<div
style=
"display:flex"
>
<div
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
>
<template
v-if=
"JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length
<
= 3
&&
JSON.parse(scope.scope.tagJson).length > 0">
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
></GLTitle>
<div
v-for=
"(item, index) in JSON.parse(scope.scope.tagJson)"
:key=
"index"
>
</div>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
></GLTitle>
</
template
>
</div>
</
template
>
</div>
<div
v-if=
"!JSON.parse(scope.scope.tagJson) || (JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length == 0)"
>
--
</div>
<div
v-if=
"!JSON.parse(scope.scope.tagJson) || (JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length == 0)"
>
--
</div>
</div>
</div>
<div
slot=
"cardName"
slot-scope=
"scope"
>
<div
slot=
"cardName"
slot-scope=
"scope"
>
...
@@ -156,7 +158,7 @@ export default {
...
@@ -156,7 +158,7 @@ export default {
label
:
'标签'
,
label
:
'标签'
,
prop
:
'tagJson'
,
prop
:
'tagJson'
,
addHtml
:
'tagJson'
,
addHtml
:
'tagJson'
,
width
:
'
1
80px'
width
:
'
2
80px'
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
...
@@ -166,7 +168,7 @@ export default {
...
@@ -166,7 +168,7 @@ export default {
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'1
7
0px'
,
width
:
'1
2
0px'
,
addHtml
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
fixed
:
'right'
}
}
...
@@ -268,7 +270,7 @@ export default {
...
@@ -268,7 +270,7 @@ export default {
width
:
1000px
;
width
:
1000px
;
}
}
.form-header
{
.form-header
{
margin-bottom
:
20
px
;
margin-bottom
:
16
px
;
}
}
.form-panel
{
.form-panel
{
padding
:
20px
;
padding
:
20px
;
...
@@ -294,13 +296,13 @@ export default {
...
@@ -294,13 +296,13 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
}
}
.tag-panel
{
.tag-panel
{
margin-bottom
:
-6px
;
.tag-item
{
.tag-item
{
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#e8e8ea
;
border
:
1px
solid
#e8e8ea
;
display
:
inline-block
;
display
:
inline-block
;
padding
:
4px
6px
;
padding
:
4px
6px
;
margin-right
:
3px
;
margin-right
:
3px
;
margin-bottom
:
3px
;
}
}
}
}
.allTagsWrap
{
.allTagsWrap
{
...
...
src/views/businessCard/components/recordList.vue
View file @
f43fe31
<
template
>
<
template
>
<div
class=
"channel-main scrm-box-f"
>
<div
class=
"channel-main scrm-box-f"
>
<div
class=
"scrm-flex"
>
<div
class=
"scrm-flex"
>
<el-radio-group
v-model=
"timeRadio"
size=
"mini"
@
change=
"handleTab"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
class=
"follow-form-item"
label-width=
"130px"
>
<el-radio-button
label=
"1"
>
今天
</el-radio-button>
<el-form-item
size=
"small"
label=
"访问时间:"
>
<el-radio-button
label=
"2"
>
本周
</el-radio-button>
<el-radio-button
label=
"3"
>
本月
</el-radio-button>
<el-radio-button
label=
"4"
>
今年
</el-radio-button>
</el-radio-group>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
class=
"follow-form-item"
label-width=
"80px"
>
<el-form-item
size=
"small"
label=
"访问时间"
>
<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=
"请输入渠道名称"
></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=
"请输入名片来源"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-left:
40
px"
>
<el-form-item
size=
"small"
style=
"float: right; margin-left:
12
px"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
@
click=
"handleReset"
class=
"resetBtn"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"titleAndTime"
>
<div
class=
"listTitle"
>
访问列表
</div>
<el-radio-group
v-model=
"timeRadio"
size=
"mini"
@
change=
"handleTab"
>
<el-radio-button
label=
"1"
>
今天
</el-radio-button>
<el-radio-button
label=
"2"
>
本周
</el-radio-button>
<el-radio-button
label=
"3"
>
本月
</el-radio-button>
<el-radio-button
label=
"4"
>
今年
</el-radio-button>
</el-radio-group>
</div>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"accessToRecords(scope)"
>
访问记录
</el-button>
<el-button
type=
"text"
@
click=
"accessToRecords(scope)"
>
访问记录
</el-button>
...
@@ -38,7 +41,7 @@
...
@@ -38,7 +41,7 @@
<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=
"150"
></el-table-column>
<el-table-column
type=
"index"
:index=
"1"
label=
"序号"
width=
"150"
></el-table-column>
<el-table-column
property=
"pageName"
label=
"访问页面"
width=
"
1
50"
></el-table-column>
<el-table-column
property=
"pageName"
label=
"访问页面"
width=
"
2
50"
></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>
...
@@ -193,6 +196,20 @@ export default {
...
@@ -193,6 +196,20 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.resetBtn
{
margin-left
:
8px
;
}
.titleAndTime
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
12px
;
.listTitle{
font-size
:
16px
;
font-weight
:
600
;
color
:
#333
;
}
}
.typeInfo
{
.typeInfo
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#2CCA74
;
color
:
#2CCA74
;
...
...
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