|
@@ -0,0 +1,478 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="app-container">
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px">
|
|
|
|
|
+<!-- <el-form-item label="课程名称" prop="courseName">-->
|
|
|
|
|
+<!-- <el-input-->
|
|
|
|
|
+<!-- v-model="queryParams.courseName"-->
|
|
|
|
|
+<!-- placeholder="请输入课程名称"-->
|
|
|
|
|
+<!-- clearable-->
|
|
|
|
|
+<!-- size="small"-->
|
|
|
|
|
+<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
+<!-- />-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="视频标题" prop="videoName">-->
|
|
|
|
|
+<!-- <el-input-->
|
|
|
|
|
+<!-- v-model="queryParams.videoName"-->
|
|
|
|
|
+<!-- placeholder="请输入视频标题"-->
|
|
|
|
|
+<!-- clearable-->
|
|
|
|
|
+<!-- size="small"-->
|
|
|
|
|
+<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
+<!-- />-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="发送内容" prop="sendTitle">-->
|
|
|
|
|
+<!-- <el-input-->
|
|
|
|
|
+<!-- v-model="queryParams.sendTitle"-->
|
|
|
|
|
+<!-- placeholder="请输入发送内容"-->
|
|
|
|
|
+<!-- clearable-->
|
|
|
|
|
+<!-- size="small"-->
|
|
|
|
|
+<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
+<!-- />-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+ <el-form-item label="所属销售" prop="companyUserId">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.companyUserId"
|
|
|
|
|
+ placeholder="请选择销售"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ filterable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in companyUserOptions"
|
|
|
|
|
+ :key="item.dictValue"
|
|
|
|
|
+ :label="item.dictLabel"
|
|
|
|
|
+ :value="item.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发送类型" prop="sendType">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.sendType"
|
|
|
|
|
+ placeholder="请选择发送类型"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in sendTypeOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发送方式" prop="sendMode">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.sendMode"
|
|
|
|
|
+ placeholder="请选择发送方式"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in sendModeOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="发送状态" prop="sendStatus">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.sendStatus"
|
|
|
|
|
+ placeholder="请选择发送状态"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in sendStatusOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="执行状态" prop="status">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.status"
|
|
|
|
|
+ placeholder="请选择发送状态"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in statusOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="消息类型" prop="msgType">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.msgType"
|
|
|
|
|
+ placeholder="请选择消息类型"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in msgTypeOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="计划时间" prop="planSendTime">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="planSendTimeRange"
|
|
|
|
|
+ type="daterange"
|
|
|
|
|
+ range-separator="至"
|
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ style="width: 240px"
|
|
|
|
|
+ @change="handlePlanSendTimeChange"
|
|
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="创建时间" prop="createTime">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="createTimeRange"
|
|
|
|
|
+ type="datetimerange"
|
|
|
|
|
+ range-separator="至"
|
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ style="width: 240px"
|
|
|
|
|
+ @change="handleCreateTimeChange"
|
|
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
|
|
+ />
|
|
|
|
|
+ </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>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+<!-- <el-row :gutter="10" class="mb8">-->
|
|
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
|
|
+<!-- <el-button-->
|
|
|
|
|
+<!-- type="warning"-->
|
|
|
|
|
+<!-- plain-->
|
|
|
|
|
+<!-- icon="el-icon-download"-->
|
|
|
|
|
+<!-- size="mini"-->
|
|
|
|
|
+<!-- :loading="exportLoading"-->
|
|
|
|
|
+<!-- @click="handleExport"-->
|
|
|
|
|
+<!-- v-hasPermi="['course:imMsgSendLog:export']"-->
|
|
|
|
|
+<!-- >导出</el-button>-->
|
|
|
|
|
+<!-- </el-col>-->
|
|
|
|
|
+<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
|
|
+<!-- </el-row>-->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 统计卡片 -->
|
|
|
|
|
+ <el-row :gutter="16" class="mb8">
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-card shadow="hover">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>总记录数</span>
|
|
|
|
|
+ <el-tag type="info" style="float: right">全部</el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="stat-value">{{ statistics.total || 0 }}</div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-card shadow="hover">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>已发送</span>
|
|
|
|
|
+ <el-tag type="success" style="float: right">成功</el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="stat-value success">{{ statistics.sent || 0 }}</div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-card shadow="hover">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>待发送</span>
|
|
|
|
|
+ <el-tag type="warning" style="float: right">等待中</el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="stat-value warning">{{ statistics.pending || 0 }}</div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-card shadow="hover">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>失败数</span>
|
|
|
|
|
+ <el-tag type="danger" style="float: right">异常</el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="stat-value danger">{{ statistics.failed || 0 }}</div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ :data="imMsgSendLogList"
|
|
|
|
|
+ border
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column label="销售 ID" align="center" prop="companyUserId" width="100" />
|
|
|
|
|
+ <!-- <el-table-column label="公司 ID" align="center" prop="companyId" width="100" />-->
|
|
|
|
|
+ <el-table-column label="用户 ID" align="center" prop="userId" width="100" />
|
|
|
|
|
+ <el-table-column label="看课记录 ID" align="center" prop="logId" width="100" />
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="课程名称" align="center" prop="courseName" min-width="150" />
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="视频标题" align="center" prop="videoName" min-width="150" />
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="发送内容" align="center" prop="sendTitle" min-width="200" show-overflow-tooltip />
|
|
|
|
|
+ <el-table-column label="计划时间" align="center" prop="planSendTime" width="160" />
|
|
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
|
|
|
|
+ <el-table-column label="发送类型" align="center" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="sendTypeOptions" :value="scope.row.sendType"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="发送方式" align="center" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="sendModeOptions" :value="scope.row.sendMode"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="是否催课" align="center" width="80">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag :type="scope.row.isUrgeCourse ? 'success' : 'info'">
|
|
|
|
|
+ {{ scope.row.isUrgeCourse ? '是' : '否' }}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="消息类型" align="center" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="msgTypeOptions" :value="scope.row.msgType"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="发送状态" align="center" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="sendStatusOptions" :value="scope.row.sendStatus"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="执行状态" align="center" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="statusOptions" :value="scope.row.status"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="重试次数" align="center" prop="count" width="80" />
|
|
|
|
|
+<!-- <el-table-column label="执行结果" align="center" prop="resultMessage" min-width="150" show-overflow-tooltip />-->
|
|
|
|
|
+ <el-table-column label="异常信息" align="center" prop="exceptionInfo" min-width="150" show-overflow-tooltip />
|
|
|
|
|
+ <el-table-column label="项目 ID" align="center" prop="projectId" width="100" />
|
|
|
|
|
+ <el-table-column label="课程 ID" align="center" prop="courseId" width="100" />
|
|
|
|
|
+ <el-table-column label="视频 ID" align="center" prop="videoId" width="100" />
|
|
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="100" fixed="right">-->
|
|
|
|
|
+ <!-- <template slot-scope="scope">-->
|
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
|
+ <!-- size="mini"-->
|
|
|
|
|
+ <!-- type="text"-->
|
|
|
|
|
+ <!-- icon="el-icon-document-copy"-->
|
|
|
|
|
+ <!-- @click.stop="handleCopyContent(scope.row)"-->
|
|
|
|
|
+ <!-- >复制内容</el-button>-->
|
|
|
|
|
+ <!-- </template>-->
|
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <pagination
|
|
|
|
|
+ v-show="total>0"
|
|
|
|
|
+ :total="total"
|
|
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
|
|
+ @pagination="getList"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import {
|
|
|
|
|
+ listImMsgSendLog,
|
|
|
|
|
+ exportImMsgSendLog,
|
|
|
|
|
+ getImMsgSendStatistics
|
|
|
|
|
+} from "@/api/app/im/imMsgSendLog";
|
|
|
|
|
+import { getCompanyUserListLikeName } from "@/api/company/companyUser";
|
|
|
|
|
+
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: "ImMsgSendLog",
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ // 遮罩层
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ // 导出遮罩层
|
|
|
|
|
+ exportLoading: false,
|
|
|
|
|
+ // 显示搜索条件
|
|
|
|
|
+ showSearch: true,
|
|
|
|
|
+ // 总条数
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ // 消息发送记录列表数据 (已包含详情)
|
|
|
|
|
+ imMsgSendLogList: [],
|
|
|
|
|
+ // 统计数据
|
|
|
|
|
+ statistics: {},
|
|
|
|
|
+ // 时间范围
|
|
|
|
|
+ planSendTimeRange: [],
|
|
|
|
|
+ createTimeRange: [],
|
|
|
|
|
+ // 销售选项列表
|
|
|
|
|
+ companyUserOptions: [],
|
|
|
|
|
+ // 发送类型选项
|
|
|
|
|
+ sendTypeOptions: [],
|
|
|
|
|
+ // 发送方式选项
|
|
|
|
|
+ sendModeOptions: [],
|
|
|
|
|
+ // 发送状态选项
|
|
|
|
|
+ sendStatusOptions: [],
|
|
|
|
|
+ // 执行状态选项
|
|
|
|
|
+ statusOptions: [],
|
|
|
|
|
+ // 消息类型选项
|
|
|
|
|
+ msgTypeOptions: [],
|
|
|
|
|
+ // 查询参数
|
|
|
|
|
+ queryParams: {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ companyUserId: null,
|
|
|
|
|
+ companyId: null,
|
|
|
|
|
+ courseId: null,
|
|
|
|
|
+ courseName: null,
|
|
|
|
|
+ videoId: null,
|
|
|
|
|
+ videoName: null,
|
|
|
|
|
+ sendTitle: null,
|
|
|
|
|
+ planSendStartTime: null,
|
|
|
|
|
+ planSendEndTime: null,
|
|
|
|
|
+ sendType: null,
|
|
|
|
|
+ sendMode: null,
|
|
|
|
|
+ sendStatus: null,
|
|
|
|
|
+ status: null,
|
|
|
|
|
+ msgType: null,
|
|
|
|
|
+ projectId: null,
|
|
|
|
|
+ createTimeStartTime: null,
|
|
|
|
|
+ createTimeEndTime: null
|
|
|
|
|
+ },
|
|
|
|
|
+ // 详情对话框
|
|
|
|
|
+ detailDialogVisible: false
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.getStatistics();
|
|
|
|
|
+ this.loadCompanyUserOptions();
|
|
|
|
|
+ // 加载字典选项
|
|
|
|
|
+ this.getDicts("im_send_type").then(response => {
|
|
|
|
|
+ this.sendTypeOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getDicts("im_send_mode").then(response => {
|
|
|
|
|
+ this.sendModeOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getDicts("im_send_status").then(response => {
|
|
|
|
|
+ this.sendStatusOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getDicts("im_status").then(response => {
|
|
|
|
|
+ this.statusOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getDicts("im_msg_type").then(response => {
|
|
|
|
|
+ this.msgTypeOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ /** 查询消息发送记录列表 */
|
|
|
|
|
+ getList() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ listImMsgSendLog(this.queryParams).then(response => {
|
|
|
|
|
+ this.imMsgSendLogList = response.rows;
|
|
|
|
|
+ this.total = response.total;
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 查询统计数据 */
|
|
|
|
|
+ getStatistics() {
|
|
|
|
|
+ getImMsgSendStatistics(this.queryParams).then(response => {
|
|
|
|
|
+ this.statistics = response.data || {};
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 加载销售选项 */
|
|
|
|
|
+ loadCompanyUserOptions() {
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 200
|
|
|
|
|
+ };
|
|
|
|
|
+ getCompanyUserListLikeName(params).then(response => {
|
|
|
|
|
+ this.companyUserOptions = response.data.list || [];
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 处理计划发送时间范围变化 */
|
|
|
|
|
+ handlePlanSendTimeChange(value) {
|
|
|
|
|
+ if (value && value.length === 2) {
|
|
|
|
|
+ this.queryParams.planSendStartTime = value[0];
|
|
|
|
|
+ this.queryParams.planSendEndTime = value[1];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.queryParams.planSendStartTime = null;
|
|
|
|
|
+ this.queryParams.planSendEndTime = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 处理创建时间范围变化 */
|
|
|
|
|
+ handleCreateTimeChange(value) {
|
|
|
|
|
+ if (value && value.length === 2) {
|
|
|
|
|
+ this.queryParams.createTimeStartTime = value[0];
|
|
|
|
|
+ this.queryParams.createTimeEndTime = value[1];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.queryParams.createTimeStartTime = null;
|
|
|
|
|
+ this.queryParams.createTimeEndTime = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 搜索按钮操作 */
|
|
|
|
|
+ handleQuery() {
|
|
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.getStatistics();
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
|
+ resetQuery() {
|
|
|
|
|
+ this.$refs["queryForm"].resetFields();
|
|
|
|
|
+ this.planSendTimeRange = [];
|
|
|
|
|
+ this.createTimeRange = [];
|
|
|
|
|
+ this.queryParams.planSendStartTime = null;
|
|
|
|
|
+ this.queryParams.planSendEndTime = null;
|
|
|
|
|
+ this.queryParams.createTimeStartTime = null;
|
|
|
|
|
+ this.queryParams.createTimeEndTime = null;
|
|
|
|
|
+ this.handleQuery();
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 复制发送内容 */
|
|
|
|
|
+ handleCopyContent(row) {
|
|
|
|
|
+ const content = row.sendTitle || '';
|
|
|
|
|
+ if (content) {
|
|
|
|
|
+ this.$copyText(content).then(() => {
|
|
|
|
|
+ this.msgSuccess('复制成功');
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.msgError('复制失败');
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.msgWarning('没有可复制的内容');
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 导出按钮操作 */
|
|
|
|
|
+ handleExport() {
|
|
|
|
|
+ this.$confirm('是否确认导出所有消息发送记录数据项?', "警告", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.exportLoading = true;
|
|
|
|
|
+ return exportImMsgSendLog(this.queryParams);
|
|
|
|
|
+ }).then(response => {
|
|
|
|
|
+ this.download(response.msg);
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+// ... existing code ...
|