Pārlūkot izejas kodu

feat: 新增项目

xdd 1 mēnesi atpakaļ
vecāks
revīzija
a710853d09
1 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. 15 0
      src/views/course/userCourse/index.vue

+ 15 - 0
src/views/course/userCourse/index.vue

@@ -1,6 +1,16 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
+      <el-form-item label="项目" prop="courseId">
+      <el-select filterable  v-model="queryParams.project" placeholder="请选择项目"  clearable size="small">
+        <el-option
+          v-for="dict in projectLists"
+          :key="dict.dictValue"
+          :label="dict.dictLabel"
+          :value="parseInt(dict.dictValue)"
+        />
+      </el-select>
+      </el-form-item>
       <el-form-item label="课堂分类" prop="cateId">
         <el-select v-model="queryParams.cateId" placeholder="请选择" clearable size="small"  @change="getQuerySubCateList(queryParams.cateId)">
           <el-option
@@ -148,6 +158,7 @@ export default {
       specShowOptions: [],
       specTypeOptions: [],
       categoryOptions:[],
+      projectLists: [],
       subCategoryOptions:[],
       querySubCateOptions:[],
       // 遮罩层
@@ -285,6 +296,10 @@ export default {
     this.getDicts("sys_company_or").then(response => {
       this.orOptions = response.data;
     });
+    this.getDicts("sys_course_project").then(response => {
+      this.projectLists = response.data;
+    })
+
   },
   methods: {