Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
ec6e26b0
Commit
ec6e26b0
authored
Aug 03, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 优化
parent
9ee8a6d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
memberTagSet.vue
src/views/apps/customerApp/memberTagSet.vue
+24
-19
No files found.
src/views/apps/customerApp/memberTagSet.vue
View file @
ec6e26b0
...
...
@@ -214,24 +214,25 @@ export default {
syncStatus
:
this
.
syncStatus
,
search
:
this
.
search
};
tagList
(
params
).
then
(
res
=>
{
this
.
total
=
res
.
data
.
result
.
totalCount
;
if
(
Array
.
isArray
(
res
.
data
.
result
.
result
)
&&
res
.
data
.
result
.
result
.
length
)
{
res
.
data
.
result
.
result
.
map
((
el
,
index
)
=>
{
el
.
expend
=
false
;
el
.
index
=
index
;
el
.
check
=
false
;
});
this
.
tableData
=
res
.
data
.
result
.
result
;
this
.
loading
=
false
;
this
.
$nextTick
(()
=>
{
this
.
chengePageToggleSelect
();
});
}
else
{
this
.
tableData
=
[];
this
.
tableData
=
[];
tagList
(
params
)
.
then
(
res
=>
{
this
.
total
=
res
.
data
.
result
.
totalCount
;
if
(
Array
.
isArray
(
res
.
data
.
result
.
result
)
&&
res
.
data
.
result
.
result
.
length
)
{
res
.
data
.
result
.
result
.
map
((
el
,
index
)
=>
{
el
.
expend
=
false
;
el
.
index
=
index
;
el
.
check
=
false
;
});
this
.
tableData
=
[].
concat
(
res
.
data
.
result
.
result
);
this
.
$nextTick
(()
=>
{
this
.
changePageToggleSelect
();
});
}
})
.
finally
(
_
=>
{
this
.
loading
=
false
;
}
});
});
},
// 关闭同步接口
closeSync
(
row
)
{
...
...
@@ -304,7 +305,7 @@ export default {
setTimeout
(()
=>
(
this
.
isShake
=
false
),
300
);
},
rowCheckChange
(
row
,
column
,
event
)
{
if
(
this
.
canSync
&&
row
.
syncFlag
===
0
)
{
if
(
this
.
canSync
&&
row
.
syncFlag
===
0
&&
row
.
tagItems
.
length
)
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
);
row
.
check
=
!
row
.
check
;
}
...
...
@@ -322,7 +323,7 @@ export default {
);
}
},
ch
e
ngePageToggleSelect
()
{
ch
a
ngePageToggleSelect
()
{
this
.
cancelIds
.
forEach
((
id
,
index
)
=>
{
const
item
=
this
.
tableData
.
find
(
el
=>
el
.
tagId
===
id
);
if
(
item
)
{
...
...
@@ -360,6 +361,9 @@ export default {
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
this
.
$message
.
success
(
'批量同步完成'
);
this
.
selectIds
=
{};
this
.
tagIds
=
[];
this
.
$refs
.
table
.
clearSelection
();
this
.
getTableList
();
}
else
{
errMsg
.
errorMsg
(
resData
);
...
...
@@ -373,6 +377,7 @@ export default {
});
},
clearSlected
()
{
this
.
selectIds
=
{};
this
.
tagIds
=
[];
this
.
$refs
.
table
.
clearSelection
();
}
...
...
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