Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
c5c8073d
Commit
c5c8073d
authored
Apr 12, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化实现
parent
f33c2af0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
memberGroupDetail.vue
src/view/memberGroup/memberGroupDetail.vue
+1
-2
memberGroupEdit.vue
src/view/memberGroup/memberGroupEdit.vue
+8
-3
No files found.
src/view/memberGroup/memberGroupDetail.vue
View file @
c5c8073d
...
...
@@ -497,7 +497,7 @@ export default {
},
/**
* 获取分组详情
* 获取分组详情
系统异常????
*/
getGroupDetail
(
list
)
{
const
that
=
this
;
...
...
@@ -511,7 +511,6 @@ export default {
};
getRequest
(
'/member-tag-member/findMemberList.json'
,
params
)
.
then
(
res
=>
{
console
.
log
(
res
,
'groupDetail'
);
that
.
total
=
res
.
data
.
result
.
page
.
totalCount
;
that
.
memberGroupDetailData
=
res
.
data
.
result
.
page
.
result
;
let
defaultFieldsArr
=
res
.
data
.
result
.
fieldsStr
.
split
(
','
);
...
...
src/view/memberGroup/memberGroupEdit.vue
View file @
c5c8073d
...
...
@@ -349,10 +349,15 @@ export default {
let
tagValueDtoList
=
Array
.
isArray
(
resData
.
result
.
tagValueDtoList
)
?
resData
.
result
.
tagValueDtoList
:
[];
this
.
ruleForm
.
selectedTags
=
tagValueDtoList
.
map
(
item
=>
{
let
newTagVal
=
JSON
.
parse
(
item
.
tagParams
);
item
.
newTagVal
=
newTagVal
.
selectedVal
?
JSON
.
stringify
(
newTagVal
.
selectedVal
)
:
''
;
return
item
;
return
item
.
map
(
el
=>
{
if
(
Object
.
prototype
.
toString
.
call
(
el
)
===
'[object Object]'
)
{
let
newTagVal
=
JSON
.
parse
(
el
.
tagParams
);
el
.
newTagVal
=
newTagVal
.
selectedVal
?
JSON
.
stringify
(
newTagVal
.
selectedVal
)
:
''
;
}
return
el
;
});
});
this
.
ruleForm
.
selectedTags
=
this
.
ruleForm
.
selectedTags
.
filter
(
item
=>
item
.
length
>
0
);
}
})
.
catch
(
error
=>
{
...
...
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