|
@@ -54,7 +54,20 @@ export default {
|
|
|
},
|
|
|
isSearch: true,
|
|
|
},
|
|
|
- { label: '演员', model: 'actor' },
|
|
|
+ {
|
|
|
+ label: '演员',
|
|
|
+ model: 'actor',
|
|
|
+ format: (i) => {
|
|
|
+ let r = [];
|
|
|
+ for (const val of i) {
|
|
|
+ let data = this.actorList.find((r) => r._id == val);
|
|
|
+ if (data) {
|
|
|
+ r.push(data.title);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (r.length > 0) return r.join(',');
|
|
|
+ },
|
|
|
+ },
|
|
|
{ label: '来源', model: 'origin' },
|
|
|
{ label: '时长', model: 'time_num' },
|
|
|
{
|
|
@@ -142,15 +155,12 @@ export default {
|
|
|
this.$set(this, `isnoList`, res.data);
|
|
|
}
|
|
|
// 领衔演员
|
|
|
- res = await this.scQuery({ is_use: '0' });
|
|
|
+ res = await this.scQuery({ is_use: '0', title: '演员' });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- for (const val of res.data) {
|
|
|
- let arr;
|
|
|
- let type = '';
|
|
|
- if (val.title == '演员') type = 'actor';
|
|
|
- arr = await this.scdQuery({ is_use: '0', type_id: val._id });
|
|
|
- if (this.$checkRes(arr)) {
|
|
|
- this.$set(this, `${type}List`, arr.data);
|
|
|
+ if (res.total > 0) {
|
|
|
+ res = await this.scdQuery({ is_use: '0', type_id: res.data[0]._id });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `actorList`, res.data);
|
|
|
}
|
|
|
}
|
|
|
}
|