|
@@ -189,6 +189,15 @@
|
|
|
<el-table-column label="完课时间" align="center" prop="finishTime" />
|
|
|
<el-table-column label="营期时间" align="center" prop="campPeriodTime" />
|
|
|
<el-table-column label="进线时间" align="center" prop="qecCreateTime" />
|
|
|
+ <el-table-column
|
|
|
+ fixed="right"
|
|
|
+ label="操作"
|
|
|
+ width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="openAnswerLogFun(scope.row)" type="text" size="small">答题记录</el-button>
|
|
|
+ <el-button @click="openRedLogFun(scope.row)" type="text" size="small">红包记录</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -199,6 +208,102 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
+ <el-drawer title="答题记录" :visible.sync="openAnswerLog" size="70%" append-to-body>
|
|
|
+ <el-table border v-loading="" :data="answerLogsList">
|
|
|
+ <el-table-column label="会员用户" align="center" prop="userName">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div style="display: flex;white-space: nowrap">
|
|
|
+ <div style="margin: auto">
|
|
|
+ {{ scope.row.userName }}
|
|
|
+ </div>
|
|
|
+ <el-popover
|
|
|
+ placement="right"
|
|
|
+ title=""
|
|
|
+ trigger="hover">
|
|
|
+ <img slot="reference" :src="scope.row.fsAvatar" style="width: 30px;height: 30px">
|
|
|
+ <img :src="scope.row.fsAvatar" style="max-width: 200px;max-height: 200px">
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="课程名称" align="center" prop="courseName"/>
|
|
|
+ <el-table-column label="小节名称" align="center" prop="videoName"/>
|
|
|
+ <el-table-column label="是否全部正确" align="center" prop="isRight">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="sysCompanyOr" :value="scope.row.isRight"></dict-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="销售名称" align="center" prop="companyUserName"/>
|
|
|
+ <el-table-column label="企微员工名称" align="center" prop="qwUserName"/>
|
|
|
+ <el-table-column label="公司名称" align="center" prop="companyName"/>
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime"/>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="answerLogTotal>0"
|
|
|
+ :total="answerLogTotal"
|
|
|
+ :page.sync="answerLogQueryParams.pageNum"
|
|
|
+ :limit.sync="answerLogQueryParams.pageSize"
|
|
|
+ @pagination="answerLogList"
|
|
|
+ />
|
|
|
+ </el-drawer>
|
|
|
+
|
|
|
+ <el-drawer title="红包记录" :visible.sync="openRedLog" size="70%" append-to-body>
|
|
|
+ <el-table border v-loading="" :data="redLogsList">
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="记录编号" align="center" prop="logId" />
|
|
|
+ <el-table-column label="批次单号" align="center" prop="outBatchNo" />
|
|
|
+ <el-table-column label="课程名称" align="center" prop="courseId" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span prop="status" v-for="(item, index) in courseLists" v-if="scope.row.courseId==item.dictValue">{{item.dictLabel}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="小节名称" align="center" prop="title" />
|
|
|
+<!-- <el-table-column label="会员id" align="center" prop="userId" />-->
|
|
|
+ <el-table-column label="会员用户" align="center" prop="fsNickName">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div style="display: flex;white-space: nowrap">
|
|
|
+ <div style="margin: auto">
|
|
|
+ {{scope.row.fsNickName}}
|
|
|
+ </div>
|
|
|
+ <el-popover
|
|
|
+ placement="right"
|
|
|
+ title=""
|
|
|
+ trigger="hover">
|
|
|
+ <img slot="reference" :src="scope.row.fsAvatar" style="width: 30px;height: 30px">
|
|
|
+ <img :src="scope.row.fsAvatar" style="max-width: 200px;max-height: 200px">
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+<!-- <el-table-column label="会员电话" align="center" prop="phone" />-->
|
|
|
+<!-- <el-table-column label="所属销售" align="center" prop="companyUserName" />-->
|
|
|
+<!-- <el-table-column label="所属公司" align="center" prop="companyName" />-->
|
|
|
+ <el-table-column label="转帐金额" align="center" prop="amount" />
|
|
|
+ <el-table-column label="状态" align="center" prop="status" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag>
|
|
|
+ {{
|
|
|
+ scope.row.status === 0 ? "发送中" :
|
|
|
+ scope.row.status === 2 ? "待补发" :
|
|
|
+ "已完成"
|
|
|
+ }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="所属企微" align="center" prop="qwUserName" />
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="redLogTotal>0"
|
|
|
+ :total="redLogTotal"
|
|
|
+ :page.sync="redLogQueryParams.pageNum"
|
|
|
+ :limit.sync="redLogQueryParams.pageSize"
|
|
|
+ @pagination="redLogList"
|
|
|
+ />
|
|
|
+ </el-drawer>
|
|
|
+
|
|
|
<el-dialog title="批量添加标签" :visible.sync="tagOpen" width="800px" append-to-body>
|
|
|
<div>搜索标签:
|
|
|
<el-input v-model="tagChange.tagName" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" />
|
|
@@ -305,7 +410,8 @@
|
|
|
|
|
|
<script>
|
|
|
import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
|
|
|
-import { courseList,videoList } from '@/api/course/courseRedPacketLog'
|
|
|
+import {courseList, myListCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
|
|
|
+import {myListLogs} from "@/api/course/courseAnswerlogs";
|
|
|
import {allListTagGroup} from "../../../api/qw/tagGroup";
|
|
|
import {searchTags} from "../../../api/qw/tag";
|
|
|
import {addTagByWatch, delTagByWatch} from "../../../api/qw/externalContact";
|
|
@@ -392,6 +498,25 @@ export default {
|
|
|
},
|
|
|
|
|
|
|
|
|
+ //答题记录
|
|
|
+ openAnswerLog: false,
|
|
|
+ loadingAnswerLog: true,
|
|
|
+ answerLogsList: [],
|
|
|
+ answerLogTotal: 0,
|
|
|
+ answerLogQueryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
+
|
|
|
+ //红包记录
|
|
|
+ openRedLog: false,
|
|
|
+ loadingRedLog: true,
|
|
|
+ redLogsList: [],
|
|
|
+ redLogTotal: 0,
|
|
|
+ redLogQueryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
@@ -620,6 +745,36 @@ export default {
|
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
+
|
|
|
+ openAnswerLogFun(row) {
|
|
|
+ this.openAnswerLog = true;
|
|
|
+ this.answerLogQueryParams.watchLogId = row.logId;
|
|
|
+ this.answerLogList();
|
|
|
+ },
|
|
|
+ answerLogList() {
|
|
|
+ this.loadingAnswerLog = true;
|
|
|
+ myListLogs(this.answerLogQueryParams).then(e => {
|
|
|
+ this.answerLogsList = e.rows;
|
|
|
+ this.answerLogTotal = e.total;
|
|
|
+ this.loadingAnswerLog = false;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ openRedLogFun(row) {
|
|
|
+ this.openRedLog = true;
|
|
|
+ this.redLogQueryParams.watchLogId = row.logId;
|
|
|
+ this.redLogList();
|
|
|
+ },
|
|
|
+ redLogList() {
|
|
|
+ this.loadingRedLog = true;
|
|
|
+ console.info(this.redLogQueryParams)
|
|
|
+ myListCourseRedPacketLog(this.redLogQueryParams).then(e => {
|
|
|
+ this.redLogsList = e.rows;
|
|
|
+ this.redLogTotal = e.total;
|
|
|
+ this.loadingRedLog = false;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
handleScheduleTimeChange(val) {
|
|
|
if (val) {
|
|
|
this.queryParams.scheduleStartTime = val[0];
|