|
|
@@ -68,7 +68,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</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"
|
|
|
@@ -81,7 +81,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="qwUserName">
|
|
|
<el-select v-model="queryParams.qwUserName" clearable filterable remote
|
|
|
placeholder="请输入关键词" :remote-method="loadQwUserOptions"
|
|
|
@@ -95,7 +107,6 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
<!-- sop名称 -->
|
|
|
<el-form-item label="SOP名称" prop="sopId" v-if="queryParams.sendType == 2">
|
|
|
<el-autocomplete
|
|
|
@@ -592,6 +603,7 @@ export default {
|
|
|
name: "CourseWatchLog",
|
|
|
data() {
|
|
|
return {
|
|
|
+ companyName:process.env.VUE_APP_COURSE_COMPANY_NAME,
|
|
|
// 日历 key 控制刷新
|
|
|
scheduleCalendarKey: 0,
|
|
|
createCalendarKey: 0,
|
|
|
@@ -762,9 +774,10 @@ export default {
|
|
|
name: undefined,
|
|
|
hasNextPage: false,
|
|
|
pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
+ pageSize: 200
|
|
|
},
|
|
|
companyUserOptions: [],
|
|
|
+ companyUserOptionsByAll: [],
|
|
|
companyUserOptionsLoading: false,
|
|
|
// 企微信息
|
|
|
qwUserOptions: [],
|
|
|
@@ -789,6 +802,7 @@ export default {
|
|
|
this.getDicts("sys_course_project").then(response => {
|
|
|
this.projectOptions = response.data;
|
|
|
});
|
|
|
+ this.getCompanyUserListLikeName(true);
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
@@ -836,14 +850,24 @@ 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;
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
+ },
|
|
|
getQwList() {
|
|
|
console.log("企微参数", this.queryParams);
|
|
|
getQwList(this.queryParams).then(response => {
|
|
|
@@ -866,7 +890,6 @@ export default {
|
|
|
this.getQwList()
|
|
|
},
|
|
|
|
|
|
-
|
|
|
// 重置日历组件
|
|
|
resetCalendars() {
|
|
|
this.scheduleTime = [];
|