Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 0c3230b5
authored
Oct 09, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
660e37f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
17 deletions
src/views/journey/index.vue
src/views/journey/index/table.vue
src/views/journey/index.vue
View file @
0c3230b
<
template
>
<
template
>
<div
class=
"journey"
v-loading=
"loading"
>
<div
class=
"journey"
v-loading=
"loading"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"searchFormData"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:key=
"FormKey"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"searchFormData"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:key=
"FormKey"
></GLCombiForm>
<div
:class=
"['sticky-btns',
{ hiddenExport: viewType == 1 }]">
<div
:class=
"['sticky-btns',
{ hiddenExport: viewType == 1 }]">
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
type=
"default"
@
click=
"refreshInst"
plain
>
状态刷新
</el-button>
<el-button
<el-button
type=
"default"
@
click=
"changeViewType"
>
切换为
{{
viewType
==
1
?
'列表'
:
'看板'
}}
视图
</el-button>
type=
"default"
<el-button
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
@
click=
"refreshInst"
plain
>
状态刷新
</el-button>
<el-button
type=
"default"
@
click=
"changeViewType"
>
切换为
{{
viewType
==
1
?
'列表'
:
'看板'
}}
视图
</el-button>
<el-button
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
<template
v-if=
"viewType == 1"
>
<template
v-if=
"viewType == 1"
>
<div
class=
"journey-data-view"
>
<div
class=
"journey-data-view"
>
<data-view
:params=
"tableSearchForm"
ref=
"dataView"
:stageList=
"stageList"
></data-view>
<data-view
:params=
"tableSearchForm"
ref=
"dataView"
:stageList=
"stageList"
></data-view>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<template
v-if=
"stageList && stageList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"flex-default tabs"
>
<div
class=
"flex-default tabs"
>
<template
v-if=
"stageList && stageList.length"
>
<template
v-for=
"(i, index) in stageList"
>
<template
v-for=
"(i, index) in stageList"
>
<template>
<template>
<div
:class=
"['tab',
{ active: searchForm.sopJourneyStage == i.label }]" :key="index" @click="changeTab(i.label)">
<div
:class=
"['tab',
{ active: searchForm.sopJourneyStage == i.label }]"
:key="index"
@click="changeTab(i.label)"
>
{{
i
.
label
}}
{{
i
.
label
}}
</div>
</div>
</
template
>
</
template
>
</template>
</template>
</template>
</div>
</div>
</div>
</div>
</template>
<div
class=
"journey-table"
>
<div
class=
"journey-table"
>
<journey-table
ref=
"table"
:params=
"tableSearchForm"
:stageList=
"stageList"
></journey-table>
<journey-table
ref=
"table"
:params=
"tableSearchForm"
:stageList=
"stageList"
></journey-table>
</div>
</div>
</template>
</template>
</div>
</div>
...
@@ -56,7 +90,7 @@ export default {
...
@@ -56,7 +90,7 @@ export default {
viewType
:
1
,
viewType
:
1
,
journeyList
:
[],
journeyList
:
[],
FormKey
:
Date
.
now
(),
FormKey
:
Date
.
now
(),
loading
:
false
loading
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -81,7 +115,7 @@ export default {
...
@@ -81,7 +115,7 @@ export default {
})
})
},
},
getList
()
{
getList
()
{
this
.
$apis
.
journeyConfig
.
byGroupIdSop
({
groupId
:
this
.
$globalState
.
session
.
merchantId
,
pageNumber
:
1
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
byGroupIdSop
({
groupId
:
this
.
$globalState
.
session
.
merchantId
,
pageNumber
:
1
}).
then
(
res
=>
{
this
.
journeyList
=
res
.
list
||
[]
this
.
journeyList
=
res
.
list
||
[]
this
.
journeyList
.
forEach
(
item
=>
{
this
.
journeyList
.
forEach
(
item
=>
{
const
stages
=
JSON
.
parse
(
item
.
instParam
).
stages
const
stages
=
JSON
.
parse
(
item
.
instParam
).
stages
...
@@ -170,18 +204,20 @@ export default {
...
@@ -170,18 +204,20 @@ export default {
border-bottom
:
none
;
border-bottom
:
none
;
display
:
flex
;
display
:
flex
;
gap
:
2px
;
gap
:
2px
;
height
:
40px
;
.tab
{
.tab
{
background
:
#fafafa
;
background
:
#fafafa
;
border
:
1px
solid
#e5e5e5
!important
;
border
:
1px
solid
#e5e5e5
;
border-radius
:
4px
4px
0
0
;
border-radius
:
4px
4px
0
0
;
border-bottom
:
0
;
border-bottom
:
none
;
height
:
40px
!important
;
height
:
40px
;
line-height
:
40px
!important
;
line-height
:
40px
;
width
:
fit-content
;
width
:
fit-content
;
min-width
:
86px
;
min-width
:
86px
;
padding
:
0
20px
!important
;
padding
:
0
20px
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
box-sizing
:
border-box
;
}
}
.active
,
.active
,
.tab
:hover
{
.tab
:hover
{
...
...
src/views/journey/index/table.vue
View file @
0c3230b
...
@@ -291,6 +291,9 @@ export default {
...
@@ -291,6 +291,9 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
.journey-table
{
.journey-table
{
padding
:
20px
;
border
:
1px
solid
#e5e5e5
;
border-radius
:
0
4px
4px
4px
;
/deep/.el-drawer__header
{
/deep/.el-drawer__header
{
margin-bottom
:
0
;
margin-bottom
:
0
;
padding-top
:
0
;
padding-top
:
0
;
...
...
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