Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
7e490518
Commit
7e490518
authored
Sep 26, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 修改bug
parent
9903dfed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
current-list.vue
src/views/ecm/current-list.vue
+18
-5
No files found.
src/views/ecm/current-list.vue
View file @
7e490518
...
...
@@ -197,8 +197,11 @@ export default {
// }, 5000);
}
},
created
()
{
this
.
ecmCurrentSendInfos
();
async
created
()
{
await
this
.
ecmCurrentSendInfos
();
this
.
$nextTick
(
_
=>
{
this
.
$refs
.
multipleTable
.
toggleAllSelection
();
});
if
(
!
this
.
isComponet
)
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'智能营销'
,
path
:
'/ecm'
},
{
name
:
this
.
$route
.
query
.
name
+
' - 提交日志'
,
path
:
''
}]);
// eslint-disable-line
}
...
...
@@ -209,6 +212,7 @@ export default {
methods
:
{
formatDateTimeByType
,
handleSelectionChange
(
val
)
{
this
.
selectedId
=
val
.
map
(
v
=>
v
.
ecmMarketingTypeRelationId
);
let
list
=
val
.
map
(
v
=>
v
.
ecmMarketingTypeRelationId
)
.
filter
(
v
=>
v
)
...
...
@@ -250,9 +254,18 @@ export default {
status
:
this
.
listParams
.
status
});
this
.
infoList
=
res
.
result
||
[];
this
.
$nextTick
(
_
=>
{
this
.
$refs
.
multipleTable
.
toggleAllSelection
();
});
// this.$nextTick(_ => {
// this.$refs.multipleTable.toggleAllSelection();
// });
if
(
this
.
selectedId
&&
this
.
selectedId
.
length
>
0
)
{
const
selectedRows
=
this
.
infoList
.
filter
(
el
=>
this
.
selectedId
.
includes
(
el
.
ecmMarketingTypeRelationId
));
this
.
$nextTick
(
_
=>
{
selectedRows
.
forEach
(
el
=>
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
el
);
});
});
}
let
list
=
this
.
infoList
.
map
(
v
=>
v
.
ecmMarketingTypeRelationId
)
.
filter
(
v
=>
v
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment