|
@@ -183,7 +183,6 @@ export default {
|
|
|
} else if (this.request == '2,4') {
|
|
|
params.type = 'kuaishou'
|
|
|
}
|
|
|
-
|
|
|
if (this.reqUrl == '/ctop/projectMember/participateListByMediaId') {
|
|
|
if (this.options.length > 0) {
|
|
|
return
|
|
@@ -261,25 +260,31 @@ export default {
|
|
|
} else {
|
|
|
getAction(this.reqUrl, {
|
|
|
userId: this.userInfo().id,
|
|
|
+ type:params.type
|
|
|
}).then((res) => {
|
|
|
if (res.code == 0) {
|
|
|
if (res.result.length > 0) {
|
|
|
- var arr = this.request.split(',')
|
|
|
- var dataTwo = []
|
|
|
- var data = res.result.filter((item) => {
|
|
|
- return item.mediaId == arr[0]
|
|
|
- })
|
|
|
- if (arr.length > 1) {
|
|
|
- dataTwo = res.result.filter((item) => {
|
|
|
- return item.mediaId == arr[1]
|
|
|
- })
|
|
|
- }
|
|
|
- var allData = data.concat(dataTwo)
|
|
|
- this.options = allData.map((item) => {
|
|
|
+ this.options = res.result.map((item) => {
|
|
|
return {
|
|
|
id: item.projectId,
|
|
|
label: item.projectName + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + item.advertiserName,
|
|
|
- children: null,
|
|
|
+ children: item.accountList
|
|
|
+ ? item.accountList.map((i) => {
|
|
|
+ return {
|
|
|
+ id: i.accountId,
|
|
|
+ label:
|
|
|
+ (i.userName&&i.userName.length == 2
|
|
|
+ ? i.userName + '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0'
|
|
|
+ : i.userName&&i.userName.length == 3
|
|
|
+ ? i.userName + '\xa0\xa0\xa0\xa0'
|
|
|
+ : i.userName) +
|
|
|
+ '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' +
|
|
|
+ i.accountId +
|
|
|
+ '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' +
|
|
|
+ i.authName,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ : [],
|
|
|
}
|
|
|
})
|
|
|
} else {
|