Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-peregrination
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 109bb155
authored
Jan 08, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
b2002101
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
21 deletions
src/views/journeyConfig/config/table-config.js
src/views/journeyModel/components/CollapseItem.vue
src/views/journeyModel/components/concatActivity.vue
src/views/journeyModel/components/condition.vue
src/views/journeyConfig/config/table-config.js
View file @
109bb15
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 19:29:52
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-08 09:20:15
* @FilePath: \scrm-micro-peregrination\src\views\journeyConfig\config\table-config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const
tableConfig
=
{
const
tableConfig
=
{
data
()
{
data
()
{
return
{
return
{
getListApi
:
this
.
$apis
.
journeyConfig
.
getListApi
,
getListApi
:
this
.
$apis
.
journeyConfig
.
getListApi
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNumber'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNumber'
,
totalCount
:
'total'
},
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'模板ID'
,
label
:
'模板ID'
,
prop
:
'instId'
,
prop
:
'instId'
},
},
{
{
label
:
'旅程模板名称'
,
label
:
'旅程模板名称'
,
prop
:
'instName'
,
prop
:
'instName'
},
},
{
{
label
:
'旅程阶段'
,
label
:
'旅程阶段'
,
prop
:
'instRemark'
,
prop
:
'instRemark'
,
addHtml
:
'instRemark'
,
addHtml
:
'instRemark'
,
width
:
320
width
:
320
},
},
{
{
label
:
'门店名称'
,
label
:
'门店名称'
,
...
@@ -30,13 +38,13 @@ const tableConfig = {
...
@@ -30,13 +38,13 @@ const tableConfig = {
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createTime'
,
prop
:
'createTime'
},
},
{
{
label
:
'修改时间'
,
label
:
'修改时间'
,
prop
:
'updateTime'
,
prop
:
'updateTime'
}
}
],
]
},
},
tableButtonList
:
[
tableButtonList
:
[
{
{
...
@@ -47,15 +55,11 @@ const tableConfig = {
...
@@ -47,15 +55,11 @@ const tableConfig = {
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
this
.
gotoDetails
(
row
.
instId
)
click
:
row
=>
this
.
gotoDetails
(
row
.
instId
)
}
}
}
}
],
]
}
}
}
}
}
}
export
default
tableConfig
export
default
tableConfig
src/views/journeyModel/components/CollapseItem.vue
View file @
109bb15
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 20:36:05
* @Date: 2023-12-22 20:36:05
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
3 12:32:18
* @LastEditTime: 2024-01-0
8 12:18:31
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -332,9 +332,23 @@ export default {
...
@@ -332,9 +332,23 @@ export default {
this
.
statVisible
=
true
this
.
statVisible
=
true
},
},
spiltString
(
val
,
n
)
{
spiltString
(
val
,
n
)
{
const
title
=
JSON
.
parse
(
val
.
paramRemark
).
title
let
title
=
''
try
{
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
}
catch
(
error
)
{}
val
.
conditions
.
forEach
(
item
=>
{
title
+=
JSON
.
parse
(
item
.
paramRemark
).
title
item
.
subConditions
&&
item
.
subConditions
.
length
&&
item
.
subConditions
.
forEach
(
i
=>
{
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}
`
}
})
})
})
return
title
return
title
// return (title.split('-')[n] || '').replace('文字备注:', '')
},
},
//查看详情
//查看详情
getEmpDetail
()
{
getEmpDetail
()
{
...
...
src/views/journeyModel/components/concatActivity.vue
View file @
109bb15
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
5 12:42:14
* @LastEditTime: 2024-01-0
8 10:31:05
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -135,7 +135,9 @@ export default {
...
@@ -135,7 +135,9 @@ export default {
},
},
handleSure
()
{
handleSure
()
{
const
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
const
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
console
.
log
(
conditionList
,
'conditionList'
)
conditionList
.
conditions
.
forEach
(
i
=>
{
i
.
subConditions
=
i
.
subConditions
.
filter
(
sub
=>
sub
.
value
!==
''
)
})
conditionList
.
conditions
.
forEach
(
i
=>
{
conditionList
.
conditions
.
forEach
(
i
=>
{
conditionListAll
.
conditions
.
forEach
(
j
=>
{
conditionListAll
.
conditions
.
forEach
(
j
=>
{
if
(
i
.
id
==
j
.
id
)
{
if
(
i
.
id
==
j
.
id
)
{
...
@@ -144,8 +146,8 @@ export default {
...
@@ -144,8 +146,8 @@ export default {
}
}
})
})
})
})
console
.
log
(
conditionList
,
conditionListAll
,
9
)
console
.
log
(
conditionList
,
conditionListAll
,
9
)
this
.
$emit
(
'closeActivity'
,
{
conditionList
:
{
...
conditionListAll
,
flag
:
conditionList
.
flag
},
condition_i
})
this
.
$emit
(
'closeActivity'
,
{
conditionList
:
{
...
conditionListAll
,
flag
:
conditionList
.
flag
},
condition_i
})
},
},
handleAddEmp
()
{
handleAddEmp
()
{
this
.
membersVisible
=
true
this
.
membersVisible
=
true
...
...
src/views/journeyModel/components/condition.vue
View file @
109bb15
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43
* @Date: 2023-12-25 13:34:43
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
5 17:11:41
* @LastEditTime: 2024-01-0
8 10:28:06
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -141,7 +141,6 @@ export default {
...
@@ -141,7 +141,6 @@ export default {
this
.
conditionList
=
this
.
$common
.
utils
.
deepClone
(
conditions
)
this
.
conditionList
=
this
.
$common
.
utils
.
deepClone
(
conditions
)
if
(
this
.
conditionList
.
conditions
)
this
.
conditionList
.
conditions
=
this
.
conditionList
.
conditions
.
filter
(
i
=>
!
i
.
isHide
)
if
(
this
.
conditionList
.
conditions
)
this
.
conditionList
.
conditions
=
this
.
conditionList
.
conditions
.
filter
(
i
=>
!
i
.
isHide
)
this
.
condition
=
this
.
conditionList
.
conditions
[
0
]
this
.
condition
=
this
.
conditionList
.
conditions
[
0
]
console
.
log
(
this
.
condition
)
}
}
}
}
}
}
...
...
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