|
@@ -185,6 +185,23 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
+ <!-- 营期(仅当前登录公司数据权限内的营期) -->
|
|
|
|
|
+ <el-form-item label="营期" prop="periodId">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ filterable
|
|
|
|
|
+ v-model="queryParams.periodId"
|
|
|
|
|
+ placeholder="请选择营期"
|
|
|
|
|
+ clearable size="small"
|
|
|
|
|
+ style="width: 220px">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="period in periodOptions"
|
|
|
|
|
+ :key="period.periodId"
|
|
|
|
|
+ :label="period.periodName"
|
|
|
|
|
+ :value="period.periodId"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<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>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -514,6 +531,7 @@ import Calendar from 'vue-mobile-calendar'
|
|
|
import {infoSop} from "@/api/qw/sop";
|
|
import {infoSop} from "@/api/qw/sop";
|
|
|
import {getCompanyUserListLikeName} from "../../../api/company/companyUser";
|
|
import {getCompanyUserListLikeName} from "../../../api/company/companyUser";
|
|
|
import { listGroupDept } from '@/api/company/companyDept'
|
|
import { listGroupDept } from '@/api/company/companyDept'
|
|
|
|
|
+import { listPeriod } from '@/api/course/userCoursePeriod'
|
|
|
Vue.use(Calendar)
|
|
Vue.use(Calendar)
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -566,6 +584,7 @@ export default {
|
|
|
deptGroupOptions:[],
|
|
deptGroupOptions:[],
|
|
|
videoList:[],
|
|
videoList:[],
|
|
|
logTypeOptions:[],
|
|
logTypeOptions:[],
|
|
|
|
|
+ periodOptions: [], // 营期下拉选项(仅当前公司数据权限内)
|
|
|
sendTypeOptions:[{
|
|
sendTypeOptions:[{
|
|
|
dictLabel:"会员",dictValue:'1'
|
|
dictLabel:"会员",dictValue:'1'
|
|
|
},
|
|
},
|
|
@@ -672,6 +691,7 @@ export default {
|
|
|
sendType:process.env.VUE_APP_COURSE_DEFAULT,
|
|
sendType:process.env.VUE_APP_COURSE_DEFAULT,
|
|
|
isVip: null,
|
|
isVip: null,
|
|
|
sopId: null, // sopId
|
|
sopId: null, // sopId
|
|
|
|
|
+ periodId: null, // 营期ID筛选
|
|
|
},
|
|
},
|
|
|
// 表单参数
|
|
// 表单参数
|
|
|
form: {},
|
|
form: {},
|
|
@@ -696,6 +716,10 @@ export default {
|
|
|
listGroupDept().then( response=>{
|
|
listGroupDept().then( response=>{
|
|
|
this.deptGroupOptions = response.data
|
|
this.deptGroupOptions = response.data
|
|
|
})
|
|
})
|
|
|
|
|
+ // 加载营期下拉,后端已按 loginUser.companyId 做数据权限过滤
|
|
|
|
|
+ listPeriod({ pageNum: 1, pageSize: 9999 }).then(response => {
|
|
|
|
|
+ this.periodOptions = response.rows || [];
|
|
|
|
|
+ });
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.getDicts("sys_course_watch_log_type").then(response => {
|
|
this.getDicts("sys_course_watch_log_type").then(response => {
|
|
|
this.logTypeOptions = response.data;
|
|
this.logTypeOptions = response.data;
|
|
@@ -924,6 +948,7 @@ export default {
|
|
|
this.queryParams.scheduleStartTime = null;
|
|
this.queryParams.scheduleStartTime = null;
|
|
|
this.queryParams.scheduleEndTime = null;
|
|
this.queryParams.scheduleEndTime = null;
|
|
|
this.queryParams.sopId = null; // 重置SOP ID
|
|
this.queryParams.sopId = null; // 重置SOP ID
|
|
|
|
|
+ this.queryParams.periodId = null; // 重置营期选择
|
|
|
|
|
|
|
|
// 重置SOP搜索
|
|
// 重置SOP搜索
|
|
|
this.handleSopClear();
|
|
this.handleSopClear();
|