|
|
@@ -28,7 +28,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="所属销售" prop="companyUserId">
|
|
|
+ <el-form-item v-if="companyName === undefined || companyName === 1" label="所属销售" prop="companyUserId">
|
|
|
<el-select v-model="queryParams.companyUserId" clearable filterable remote
|
|
|
placeholder="请输入关键词" :remote-method="loadCompanyUserOptions"
|
|
|
v-select-load-more="loadMoreCompanyUserOptions"
|
|
|
@@ -41,6 +41,19 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item v-if="companyName==2" label="所属销售" prop="companyUserId">
|
|
|
+ <el-select v-model="queryParams.companyUserId" clearable filterable remote
|
|
|
+ placeholder="请输入关键词"
|
|
|
+ v-select-load-more="loadMoreCompanyUserOptions"
|
|
|
+ :loading="companyUserOptionsLoading">
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyUserOptionsByAll"
|
|
|
+ :key="item.dictValue"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="课程" prop="courseId">
|
|
|
<el-select filterable v-model="queryParams.courseId" placeholder="请选择课程" clearable size="small" @change="courseChange(queryParams.courseId)">
|
|
|
<el-option
|
|
|
@@ -359,6 +372,7 @@ export default {
|
|
|
name: "CourseWatchLog",
|
|
|
data() {
|
|
|
return {
|
|
|
+ companyName:process.env.VUE_APP_COURSE_COMPANY_NAME,
|
|
|
// 日历 key 控制刷新
|
|
|
scheduleCalendarKey: 0,
|
|
|
createCalendarKey: 0,
|
|
|
@@ -479,10 +493,11 @@ export default {
|
|
|
name: undefined,
|
|
|
hasNextPage: false,
|
|
|
pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
+ pageSize: 200
|
|
|
},
|
|
|
companyUserOptionsLoading: false,
|
|
|
companyUserOptions: [],
|
|
|
+ companyUserOptionsByAll: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -493,6 +508,7 @@ export default {
|
|
|
this.getDicts("sys_course_watch_log_type").then(response => {
|
|
|
this.logTypeOptions = response.data;
|
|
|
});
|
|
|
+ this.getCompanyUserListLikeName(true);
|
|
|
},
|
|
|
methods: {
|
|
|
// 重置日历组件
|
|
|
@@ -808,12 +824,23 @@ export default {
|
|
|
/**
|
|
|
* 获取员工列表
|
|
|
*/
|
|
|
- getCompanyUserListLikeName() {
|
|
|
- getCompanyUserListLikeName(this.companyUserOptionsParams).then(response => {
|
|
|
- this.companyUserOptions = [...this.companyUserOptions, ...response.data.list]
|
|
|
- this.companyUserOptionsParams.hasNextPage = response.data.hasNextPage
|
|
|
- this.companyUserOptionsLoading = false;
|
|
|
- });
|
|
|
+ getCompanyUserListLikeName(isAll) {
|
|
|
+
|
|
|
+ if (isAll){
|
|
|
+
|
|
|
+ getCompanyUserListLikeName(this.companyUserOptionsParams).then(response => {
|
|
|
+ this.companyUserOptionsByAll = [...this.companyUserOptions, ...response.data.list]
|
|
|
+ this.companyUserOptionsParams.hasNextPage = response.data.hasNextPage
|
|
|
+ this.companyUserOptionsLoading = false;
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ getCompanyUserListLikeName(this.companyUserOptionsParams).then(response => {
|
|
|
+ this.companyUserOptions = [...this.companyUserOptions, ...response.data.list]
|
|
|
+ this.companyUserOptionsParams.hasNextPage = response.data.hasNextPage
|
|
|
+ this.companyUserOptionsLoading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
* 加载更多员工选项
|