|
@@ -278,7 +278,8 @@ const platformMixin = {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
res.data.map(i => this.platformOptions.push({
|
|
res.data.map(i => this.platformOptions.push({
|
|
value: Number(i.id),
|
|
value: Number(i.id),
|
|
- label: i.name
|
|
|
|
|
|
+ label: i.name,
|
|
|
|
+ joinType: i.joinType
|
|
}))
|
|
}))
|
|
e ? this.platformTypeOptions = this.platformOptions : ''
|
|
e ? this.platformTypeOptions = this.platformOptions : ''
|
|
resolve(this.platformOptions, this.platformTypeOptions)
|
|
resolve(this.platformOptions, this.platformTypeOptions)
|
|
@@ -287,6 +288,18 @@ const platformMixin = {
|
|
reject()
|
|
reject()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 第三方资源平台不可编辑
|
|
|
|
+ disabledPlatformId(e) {
|
|
|
|
+ if (e) {
|
|
|
|
+ return this.platformOptions.find(i => i.value === e).joinType.includes('1')
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 禁止选择第三方平台
|
|
|
|
+ disabledJoinType(e) {
|
|
|
|
+ return e.split(',').includes('1')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|