|
|
|
@ -123,7 +123,7 @@ |
|
|
|
<!-- 添加或修改知识点关系对话框 --> |
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|
|
|
<el-form-item label="中心词" prop="author"> |
|
|
|
<el-form-item label="中心词" prop="keyword"> |
|
|
|
<el-select filterable v-model="form.keyword" placeholder="请选择" style="width: 300px"> |
|
|
|
<el-option |
|
|
|
v-for="option in selectOptions1" |
|
|
|
@ -147,7 +147,7 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="机构" prop="author"> |
|
|
|
<el-form-item label="机构" prop="agency"> |
|
|
|
<el-select filterable v-model="form.agency" placeholder="请选择" class="short-select" style="width: 300px"> |
|
|
|
<el-option |
|
|
|
v-for="option in selectOptions3" |
|
|
|
@ -261,6 +261,15 @@ export default { |
|
|
|
keywords: [], |
|
|
|
// 表单校验 |
|
|
|
rules: { |
|
|
|
keyword: [ |
|
|
|
{ required: true, message: '请选择中心词', trigger: 'change' } |
|
|
|
], |
|
|
|
author: [ |
|
|
|
{ required: true, message: '请选择作者', trigger: 'change' } |
|
|
|
], |
|
|
|
agency: [ |
|
|
|
{ required: true, message: '请选择机构', trigger: 'change' } |
|
|
|
], |
|
|
|
}, |
|
|
|
selectOptions1:[], |
|
|
|
selectOptions2:[], |
|
|
|
@ -479,6 +488,7 @@ export default { |
|
|
|
this.$modal.msgSuccess("新增成功"); |
|
|
|
this.open = false; |
|
|
|
this.getList(); |
|
|
|
this.keywords = [] |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|