|
|
|
@ -201,12 +201,19 @@ export default { |
|
|
|
'fondsId': this.selectedDocument.fondsId |
|
|
|
} |
|
|
|
FetchMateByDocumentIdShow(params).then(res => { |
|
|
|
// 处理下拉框选项数据 |
|
|
|
this.rulesOptions = res.map(item => { |
|
|
|
const json = {} |
|
|
|
json.label = item.ruleName |
|
|
|
json.value = item.id |
|
|
|
return json |
|
|
|
return { |
|
|
|
label: item.ruleName, |
|
|
|
value: item.id |
|
|
|
} |
|
|
|
}) |
|
|
|
if (this.rulesOptions.length === 1) { |
|
|
|
this.form.ruleName = this.rulesOptions[0].value |
|
|
|
this.selectRules(this.rulesOptions[0].value) |
|
|
|
} else { |
|
|
|
this.form.ruleName = null |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getInitDetail(id) { |
|
|
|
|