Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 028c0992
authored
Jun 26, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'
修sop二轮bug See merge request
!500
2 parents
b5db1aeb
5956eef0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/editSop/baseInfo.vue
View file @
028c099
...
@@ -272,10 +272,11 @@
...
@@ -272,10 +272,11 @@
</div>
</div>
<div
class=
"event-btns"
>
<div
class=
"event-btns"
>
<el-button
<el-button
v-if=
"
editForm.sopStatus !==1
&& routeInfo.addOrEdit !== 'copy' && routeInfo.addOrEdit !== 'add'"
v-if=
"
new Date(item.eventStartDate) <= new Date()
&& routeInfo.addOrEdit !== 'copy' && routeInfo.addOrEdit !== 'add'"
type=
"primary"
size=
"small"
type=
"primary"
size=
"small"
@
click=
"handleEventView(item)"
>
查看
@
click=
"handleEventView(item)"
>
查看
</el-button>
</el-button>
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
</el-button>
</el-button>
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
028c099
...
@@ -127,10 +127,6 @@ export default {
...
@@ -127,10 +127,6 @@ export default {
},
},
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'群名称'
,
prop
:
'groupName'
,
},
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -168,6 +164,12 @@ export default {
...
@@ -168,6 +164,12 @@ export default {
}
}
},
},
],
],
frontColumns
:[
{
label
:
'群名称'
,
prop
:
'groupName'
,
},
],
otherTableColumns
:
[
otherTableColumns
:
[
{
{
label
:
'点赞数'
,
label
:
'点赞数'
,
...
@@ -197,7 +199,9 @@ export default {
...
@@ -197,7 +199,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
// console.log('????????????')
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
console
.
log
(
'11'
)
this
.
getBaseData
()
this
.
getBaseData
()
this
.
$refs
.
touchListRef
.
tableHeightValues
=
'400px'
this
.
$refs
.
touchListRef
.
tableHeightValues
=
'400px'
this
.
$refs
.
touchListRef
.
refreshTable
()
this
.
$refs
.
touchListRef
.
refreshTable
()
...
@@ -207,15 +211,17 @@ export default {
...
@@ -207,15 +211,17 @@ export default {
getBaseInfo
()
{
getBaseInfo
()
{
this
.
$apis
.
sop
.
getSopBaseInfoApi
({
sopId
:
this
.
sopId
}).
then
(
res
=>
{
this
.
$apis
.
sop
.
getSopBaseInfoApi
({
sopId
:
this
.
sopId
}).
then
(
res
=>
{
this
.
sopInfo
=
res
this
.
sopInfo
=
res
if
(
this
.
sopInfo
.
sopType
==
2
){
if
(
this
.
sopInfo
.
sopType
==
1
){
this
.
tableParams
.
tableColumns
=
[...
this
.
frontColumns
,...
this
.
tableColumns
]
this
.
tableParams
.
tableColumns
.
splice
(
0
,
1
,
1
)
}
}
if
(
this
.
selectedEventInfo
.
pushChannelType
==
3
)
{
if
(
this
.
sopInfo
.
sopType
==
1
){
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
.
concat
(
this
.
otherTableColumns
)
if
(
this
.
selectedEventInfo
.
pushChannelType
==
3
)
{
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
.
concat
(
this
.
otherTableColumns
)
}
else
{
}
else
{
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
this
.
tableParams
.
tableColumns
=
this
.
tableColumns
}
}
}
this
.
sopInfo
.
touchPercent
=
this
.
baseData
.
sopEventList
.
length
&&
this
.
sopInfo
.
customerCount
?
Math
.
round
((
this
.
selectedEventInfo
.
eventStatistics
.
reachCustomerCount
/
this
.
sopInfo
.
customerCount
)
*
100
).
toFixed
(
0
)
+
'%'
:
'-'
this
.
sopInfo
.
touchPercent
=
this
.
baseData
.
sopEventList
.
length
&&
this
.
sopInfo
.
customerCount
?
Math
.
round
((
this
.
selectedEventInfo
.
eventStatistics
.
reachCustomerCount
/
this
.
sopInfo
.
customerCount
)
*
100
).
toFixed
(
0
)
+
'%'
:
'-'
// this.drawPie()
// this.drawPie()
})
})
...
@@ -238,7 +244,7 @@ export default {
...
@@ -238,7 +244,7 @@ export default {
.
getEventListApi
(
params
)
.
getEventListApi
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
baseData
.
sopEventList
=
res
.
list
this
.
baseData
.
sopEventList
=
res
.
list
this
.
labelOptUpdate
=
this
.
baseData
.
sopEventList
[
0
].
labelOptUpdate
this
.
labelOptUpdate
=
this
.
baseData
.
sopEventList
.
length
&&
this
.
baseData
.
sopEventList
[
0
].
labelOptUpdate
if
(
this
.
baseData
.
sopEventList
.
length
)
{
if
(
this
.
baseData
.
sopEventList
.
length
)
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
this
.
baseData
.
sopEventList
.
forEach
(
item
=>
{
...
...
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