소스 검색

销售端优化

yjwang 1 일 전
부모
커밋
589bab8ecc
1개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. 25 0
      src/views/course/courseWatchLog/index.vue

+ 25 - 0
src/views/course/courseWatchLog/index.vue

@@ -185,6 +185,23 @@
         </el-select>
       </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-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>
@@ -514,6 +531,7 @@ import Calendar from 'vue-mobile-calendar'
 import {infoSop} from "@/api/qw/sop";
 import {getCompanyUserListLikeName} from "../../../api/company/companyUser";
 import { listGroupDept } from '@/api/company/companyDept'
+import { listPeriod } from '@/api/course/userCoursePeriod'
 Vue.use(Calendar)
 
 export default {
@@ -566,6 +584,7 @@ export default {
       deptGroupOptions:[],
       videoList:[],
       logTypeOptions:[],
+      periodOptions: [], // 营期下拉选项(仅当前公司数据权限内)
       sendTypeOptions:[{
         dictLabel:"会员",dictValue:'1'
       },
@@ -672,6 +691,7 @@ export default {
         sendType:process.env.VUE_APP_COURSE_DEFAULT,
         isVip: null,
         sopId: null, // sopId
+        periodId: null, // 营期ID筛选
       },
       // 表单参数
       form: {},
@@ -696,6 +716,10 @@ export default {
     listGroupDept().then( response=>{
       this.deptGroupOptions = response.data
     })
+    // 加载营期下拉,后端已按 loginUser.companyId 做数据权限过滤
+    listPeriod({ pageNum: 1, pageSize: 9999 }).then(response => {
+      this.periodOptions = response.rows || [];
+    });
     this.getList();
     this.getDicts("sys_course_watch_log_type").then(response => {
       this.logTypeOptions = response.data;
@@ -924,6 +948,7 @@ export default {
       this.queryParams.scheduleStartTime = null;
       this.queryParams.scheduleEndTime = null;
       this.queryParams.sopId = null; // 重置SOP ID
+      this.queryParams.periodId = null; // 重置营期选择
 
       // 重置SOP搜索
       this.handleSopClear();