Browse Source

yangshi

small-tupu
菅振宇 6 months ago
parent
commit
09d8ec8f3a
  1. 14
      ruoyi-ui/src/views/system/small/index.vue

14
ruoyi-ui/src/views/system/small/index.vue

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

Loading…
Cancel
Save