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 da5b227f
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
605e8952
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
47 deletions
src/views/journey/index.vue
src/views/journey/index/combiFormConfig.js
src/views/journey/index.vue
View file @
da5b227
...
@@ -2,54 +2,27 @@
...
@@ -2,54 +2,27 @@
<div
class=
"journey"
>
<div
class=
"journey"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<div
class=
"sticky"
>
<GLCombiForm
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"searchFormData"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:key=
"FormKey"
></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
<el-button
type=
"default"
@
click=
"refreshInst"
plain
>
状态刷新
</el-button>
type=
"default"
<el-button
type=
"default"
@
click=
"changeViewType"
>
切换为看板视图
</el-button>
@
click=
"refreshInst"
<el-button
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
plain
>
状态刷新
</el-button>
<el-button
type=
"default"
@
click=
"changeViewType"
>
切换为看板视图
</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
<data-view
:params=
"tableSearchForm"
ref=
"dataView"
:stageList=
"stageList"
></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"
>
<template
v-if=
"stageList && stageList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"flex-default tabs"
>
<div
class=
"flex-default tabs"
>
<template
v-for=
"(i,index) in stageList"
>
<template
v-for=
"(i,
index) in stageList"
>
<template>
<template>
<div
<div
:class=
"['tab',
{ active: searchForm.sopJourneyStage == i.label }]" :key="index" @click="changeTab(i.label)">
:class=
"['tab',
{'active':searchForm.sopJourneyStage == i.value}]"
:key="index"
@click="changeTab(i.value)"
>
{{
i
.
label
}}
{{
i
.
label
}}
</div>
</div>
</
template
>
</
template
>
...
@@ -58,11 +31,7 @@
...
@@ -58,11 +31,7 @@
</div>
</div>
</template>
</template>
<div
class=
"journey-table"
>
<div
class=
"journey-table"
>
<journey-table
<journey-table
ref=
"table"
:params=
"tableSearchForm"
:stageList=
"stageList"
></journey-table>
ref=
"table"
:params=
"tableSearchForm"
:stageList=
"stageList"
></journey-table>
</div>
</div>
</template>
</template>
</div>
</div>
...
@@ -123,7 +92,7 @@ export default {
...
@@ -123,7 +92,7 @@ export default {
for
(
let
k
in
stages
)
{
for
(
let
k
in
stages
)
{
item
.
journeyItem
.
push
({
item
.
journeyItem
.
push
({
label
:
stages
[
k
].
value
,
label
:
stages
[
k
].
value
,
value
:
k
,
value
:
stages
[
k
].
value
,
// 后台要求改成label值 20230927
})
})
}
}
})
})
...
@@ -134,6 +103,7 @@ export default {
...
@@ -134,6 +103,7 @@ export default {
})
})
},
},
changeTab
(
val
)
{
changeTab
(
val
)
{
console
.
log
(
val
)
this
.
searchForm
.
sopJourneyStage
=
val
this
.
searchForm
.
sopJourneyStage
=
val
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/journey/index/combiFormConfig.js
View file @
da5b227
...
@@ -5,10 +5,10 @@ const defaultFormData = {
...
@@ -5,10 +5,10 @@ const defaultFormData = {
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
created
()
{
created
()
{
_this
=
this
_this
=
this
},
},
data
()
{
data
()
{
return
{
return
{
refreshTime
:
''
,
refreshTime
:
''
,
searchForm
:
{
searchForm
:
{
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
name
:
'wechatNickname'
name
:
'wechatNickname'
}
}
],
],
handleSelectChange
(
value
)
{
handleSelectChange
(
value
)
{
_this
.
searchSelectObj
.
keyword
.
value
=
''
_this
.
searchSelectObj
.
keyword
.
value
=
''
}
}
},
},
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
labelWidth
:
72
,
labelWidth
:
72
,
isClear
:
true
,
isClear
:
true
,
customPickerOptions
:
{
customPickerOptions
:
{
disabledDate
(
val
)
{
disabledDate
(
val
)
{
let
disabled
=
true
,
let
disabled
=
true
,
startTime
=
dayjs
().
subtract
(
1
,
'year'
),
startTime
=
dayjs
().
subtract
(
1
,
'year'
),
endTime
=
dayjs
(),
endTime
=
dayjs
(),
...
@@ -107,7 +107,7 @@ export default {
...
@@ -107,7 +107,7 @@ export default {
// console.log(newval)
// console.log(newval)
// }
// }
// },
// },
'searchForm.a'
(
newval
)
{
'searchForm.a'
(
newval
)
{
//清空旅程阶段并调用旅程阶段接口
//清空旅程阶段并调用旅程阶段接口
console
.
log
(
newval
,
'a'
)
console
.
log
(
newval
,
'a'
)
}
}
...
@@ -118,13 +118,15 @@ export default {
...
@@ -118,13 +118,15 @@ export default {
// }
// }
// },
// },
methods
:
{
methods
:
{
getStage
(
e
)
{
getStage
(
e
)
{
console
.
log
(
_this
.
searchFormData
)
const
step
=
_this
.
searchFormData
.
find
(
i
=>
i
.
name
===
'sopJourneyStage'
)
const
step
=
_this
.
searchFormData
.
find
(
i
=>
i
.
name
===
'sopJourneyStage'
)
let
optionList
=
_this
.
journeyList
.
find
(
i
=>
i
.
instId
==
e
).
journeyItem
let
optionList
=
_this
.
journeyList
.
find
(
i
=>
i
.
instId
==
e
).
journeyItem
step
.
optionList
=
optionList
step
.
optionList
=
optionList
this
.
stageList
=
step
.
optionList
this
.
stageList
=
step
.
optionList
console
.
log
(
this
.
stageList
)
},
},
getSelectInputParams
()
{
getSelectInputParams
()
{
const
list
=
Object
.
keys
(
this
.
searchSelectObj
)
const
list
=
Object
.
keys
(
this
.
searchSelectObj
)
var
params
=
{}
var
params
=
{}
list
.
forEach
(
i
=>
{
list
.
forEach
(
i
=>
{
...
...
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