|
|
@@ -215,16 +215,16 @@
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="最新更新时间" prop="updateTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="updateTimeText"
|
|
|
- type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- style="width: 240px"
|
|
|
+ <el-date-picker
|
|
|
+ v-model="updateTimeText"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
@change="updateChange"
|
|
|
- />
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<!-- 进线时间 -->
|
|
|
<!-- <el-form-item label="进线时间" prop="qecCreateTime">
|
|
|
@@ -411,11 +411,12 @@
|
|
|
<el-table-column label="课程名称" align="center" prop="courseName"/>
|
|
|
<el-table-column label="小节名称" align="center" prop="videoName"/>
|
|
|
<el-table-column label="是否全部正确" align="center" prop="isRightText"/>
|
|
|
-<!-- <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>-->
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="sysCompanyOr" :value="scope.row.isRight" style="margin-bottom: 5px;"></dict-tag>
|
|
|
+ <el-button type="text" size="mini" @click="showContentDialog(scope.row.questionJson)">
|
|
|
+ 查看详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
<el-table-column label="销售名称" align="center" prop="companyUserName"/>
|
|
|
<el-table-column label="企微员工名称" align="center" prop="qwUserName"/>
|
|
|
<el-table-column label="公司名称" align="center" prop="companyName"/>
|
|
|
@@ -487,14 +488,42 @@
|
|
|
/>
|
|
|
</el-drawer>
|
|
|
|
|
|
+
|
|
|
+ <el-dialog :visible.sync="contentDialog.isDialogVisible" title="消息详情" width="30%" append-to-body>
|
|
|
+ <div>
|
|
|
+ <div v-for="(item, index) in contentDialog.json || []" :key="index">
|
|
|
+ <el-card class="box-card" style="margin-top: 2%">
|
|
|
+ <div>题目:<span style="color: #0464f4">{{item.title}}</span></div>
|
|
|
+ <div>答题:<span style="color: #000000">{{item.answer}}</span></div>
|
|
|
+ <div>是否答题正确:
|
|
|
+ <span :style="{color: item.status === 1 ? 'green' : 'red'}">
|
|
|
+ {{ item.status === 1 ? '正确' : '错误' }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="contentDialog.isDialogVisible = false">关闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { deptListCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
|
|
|
+import {
|
|
|
+ addCourseWatchLog,
|
|
|
+ delCourseWatchLog,
|
|
|
+ deptListCourseWatchLog,
|
|
|
+ exportCourseWatchLog,
|
|
|
+ getCourseWatchLog,
|
|
|
+ updateCourseWatchLog
|
|
|
+} from "@/api/course/courseWatchLog";
|
|
|
import {courseList, myListCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
|
|
|
import {myListLogs} from "@/api/course/courseAnswerlogs";
|
|
|
-import { getCompanyUserListLikeName } from "@/api/company/companyUser";
|
|
|
+import {getCompanyUserListLikeName} from "@/api/company/companyUser";
|
|
|
import {getTask} from "@/api/common";
|
|
|
import Vue from 'vue'
|
|
|
import Calendar from 'vue-mobile-calendar'
|
|
|
@@ -502,6 +531,7 @@ import {infoSop} from "@/api/qw/sop";
|
|
|
import {myDeptTreeselect} from "../../../api/company/companyDept";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
+
|
|
|
Vue.use(Calendar)
|
|
|
|
|
|
|
|
|
@@ -550,6 +580,13 @@ export default {
|
|
|
courseLists:[],
|
|
|
videoList:[],
|
|
|
logTypeOptions:[],
|
|
|
+
|
|
|
+ //发送的消息
|
|
|
+ contentDialog:{
|
|
|
+ isDialogVisible:false,
|
|
|
+ json: [],
|
|
|
+ },
|
|
|
+
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
@@ -674,6 +711,17 @@ export default {
|
|
|
this.loading=false;
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ showContentDialog(questionJson){
|
|
|
+ // 解析 JSON 字符串为 JavaScript 对象
|
|
|
+ // 替换非法换行符等控制字符
|
|
|
+ const sanitizedJson = questionJson.replace(/[\u0000-\u001F\u007F]/g, '');
|
|
|
+ this.contentDialog.json = JSON.parse(sanitizedJson);
|
|
|
+
|
|
|
+ this.contentDialog.isDialogVisible = true;
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
setToday(){
|
|
|
const today = new Date();
|
|
|
const todayStart = new Date(today);
|