|
@@ -30,6 +30,16 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="关联的公司" prop="companyIds">
|
|
|
+ <el-select v-model="queryParams.companyIdsList" multiple placeholder="请选择公司" filterable clearable style="width: 90%;">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in companyOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -111,6 +121,7 @@ import Editor from '@/components/Editor/wang';
|
|
|
import ImageUpload from '@/components/ImageUpload/index';
|
|
|
import userCourseCatalogDetails from '../../components/course/userCourseCatalogDetails.vue';
|
|
|
import { getAllCourseCategoryList,getCatePidList ,getCateListByPid} from "@/api/course/userCourseCategory";
|
|
|
+import {allList} from "@/api/company/company";
|
|
|
|
|
|
export default {
|
|
|
name: "UserCourse",
|
|
@@ -133,6 +144,7 @@ export default {
|
|
|
projectOptions:[],
|
|
|
tagsOptions:[],
|
|
|
tags:[],
|
|
|
+ companyIds: [],
|
|
|
courseTypeOptions:[],
|
|
|
orOptions: [],
|
|
|
specShowOptions: [],
|
|
@@ -156,6 +168,7 @@ export default {
|
|
|
total: 0,
|
|
|
// 课程表格数据
|
|
|
userCourseList: [],
|
|
|
+ companyOptions: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
@@ -180,7 +193,8 @@ export default {
|
|
|
hotRanking: null,
|
|
|
integral: null,
|
|
|
price: null,
|
|
|
- isPrivate: 1
|
|
|
+ isPrivate: 1,
|
|
|
+ companyIdsList:[],
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -276,6 +290,9 @@ export default {
|
|
|
this.getDicts("sys_company_or").then(response => {
|
|
|
this.orOptions = response.data;
|
|
|
});
|
|
|
+ allList().then(response => {
|
|
|
+ this.companyOptions = response.rows;
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
@@ -378,6 +395,7 @@ export default {
|
|
|
};
|
|
|
this.tags=[];
|
|
|
this.subCategoryOptions=[]
|
|
|
+ this.companyIds = []
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|