Explorar o código

看课记录显示 被删除的小节

三七 hai 2 días
pai
achega
cc817c1ec3

+ 7 - 0
src/api/course/courseRedPacketLog.js

@@ -51,6 +51,13 @@ export function videoList(id) {
     method: 'get'
   })
 }
+
+export function videoListByWatch(id) {
+  return request({
+    url: '/course/courseRedPacketLog/videoListByWatch/' + id,
+    method: 'get'
+  })
+}
 // 新增短链课程看课记录
 export function addCourseRedPacketLog(data) {
   return request({

+ 7 - 3
src/views/course/courseWatchLog/index.vue

@@ -87,7 +87,11 @@
             :key="dict.dictValue"
             :label="dict.dictLabel"
             :value="dict.dictValue"
-          />
+          >
+            <span style="float: left">{{ dict.dictLabel }}</span>
+            <span style="float: right; color: #8492a6; font-size: 13px">ID: {{ dict.dictValue }}</span>
+            <span v-if="dict.isDel === 1" style="float: right; color: #f56c6c; font-size: 13px; margin-right: 10px">已删除</span>
+          </el-option>
         </el-select>
       </el-form-item>
       <el-form-item v-if="companyName === undefined || companyName === 1" label="所属销售" prop="companyUserId">
@@ -651,7 +655,7 @@
 <script>
 import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
 import {listPeriodLabel} from "@/api/course/userCoursePeriod";
-import {courseListByCompanyId, listCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
+import {courseListByCompanyId, listCourseRedPacketLog, videoListByWatch} from '@/api/course/courseRedPacketLog'
 import {listLogs} from "@/api/course/courseAnswerlogs";
 import {allListTagGroup} from "../../../api/qw/tagGroup";
 import {searchTags} from "../../../api/qw/tag";
@@ -1165,7 +1169,7 @@ export default {
         this.videoList=[];
         return
       }
-      videoList(row).then(response => {
+      videoListByWatch(row).then(response => {
         this.videoList=response.list
       });
     },

+ 7 - 3
src/views/course/courseWatchLog/myCourseWatchLog.vue

@@ -64,7 +64,11 @@
             :key="dict.dictValue"
             :label="dict.dictLabel"
             :value="dict.dictValue"
-          />
+          >
+            <span style="float: left">{{ dict.dictLabel }}</span>
+            <span style="float: right; color: #8492a6; font-size: 13px">ID: {{ dict.dictValue }}</span>
+            <span v-if="dict.isDel === 1" style="float: right; color: #f56c6c; font-size: 13px; margin-right: 10px">已删除</span>
+          </el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="创建时间" prop="createTime">
@@ -149,7 +153,7 @@
 
 <script>
 import { myListCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
-import { courseList,videoList } from '@/api/course/courseRedPacketLog'
+import { courseList,videoListByWatch } from '@/api/course/courseRedPacketLog'
 import {getMyQwUserList} from "@/api/qw/user";
 import {allListTagGroup} from "@/api/qw/tagGroup";
 import {listTag} from "@/api/qw/tag";
@@ -229,7 +233,7 @@ export default {
         this.videoList=[];
         return
       }
-      videoList(row).then(response => {
+      videoListByWatch(row).then(response => {
         this.videoList=response.list
       });
     },

+ 7 - 3
src/views/course/courseWatchLog/statistics.vue

@@ -63,7 +63,11 @@
             :key="dict.dictValue"
             :label="dict.dictLabel"
             :value="dict.dictValue"
-          />
+          >
+            <span style="float: left">{{ dict.dictLabel }}</span>
+            <span style="float: right; color: #8492a6; font-size: 13px">ID: {{ dict.dictValue }}</span>
+            <span v-if="dict.isDel === 1" style="float: right; color: #f56c6c; font-size: 13px; margin-right: 10px">已删除</span>
+          </el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="创建时间" prop="createTime">
@@ -131,7 +135,7 @@ import {
   statisticsList,
   exportCourseWatchLogStatisticsExport
 } from '@/api/course/courseWatchLog'
-import { courseList,videoList } from '@/api/course/courseRedPacketLog'
+import { courseList,videoListByWatch } from '@/api/course/courseRedPacketLog'
 import {getUserList} from "@/api/company/companyUser";
 import {getFsUserList} from "@/api/users/user";
 import {getCompanyList} from "@/api/company/company";
@@ -298,7 +302,7 @@ export default {
         this.videoList=[];
         return
       }
-      videoList(row).then(response => {
+      videoListByWatch(row).then(response => {
         this.videoList=response.list
       });
     },

+ 7 - 3
src/views/course/courseWatchLog/watchLog.vue

@@ -34,7 +34,11 @@
             :key="dict.dictValue"
             :label="dict.dictLabel"
             :value="dict.dictValue"
-          />
+          >
+            <span style="float: left">{{ dict.dictLabel }}</span>
+            <span style="float: right; color: #8492a6; font-size: 13px">ID: {{ dict.dictValue }}</span>
+            <span v-if="dict.isDel === 1" style="float: right; color: #f56c6c; font-size: 13px; margin-right: 10px">已删除</span>
+          </el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="营期时间" prop="scheduleTime">
@@ -261,7 +265,7 @@ import {
   myListCourseWatchLog,
   updateCourseWatchLog
 } from "@/api/course/courseWatchLog";
-import {courseList, myListCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
+import {courseList, myListCourseRedPacketLog, videoListByWatch} from '@/api/course/courseRedPacketLog'
 import {myListLogs} from "@/api/course/courseAnswerlogs";
 import {getMyQwUserList} from "@/api/qw/user";
 import {getFsUserList} from "@/api/users/user";
@@ -417,7 +421,7 @@ export default {
         this.videoList = [];
         return
       }
-      videoList(row).then(response => {
+      videoListByWatch(row).then(response => {
         this.videoList = response.list
       });
     },