|
@@ -1,16 +1,6 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="公司名" prop="companyId">
|
|
|
- <el-select filterable v-model="queryParams.companyId" placeholder="请选择公司名" clearable size="small">
|
|
|
- <el-option
|
|
|
- v-for="item in companys"
|
|
|
- :key="item.companyId"
|
|
|
- :label="item.companyName"
|
|
|
- :value="item.companyId"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
<el-form-item label="员工" prop="companyUserName">
|
|
|
<el-input
|
|
|
v-model="queryParams.companyUserName"
|
|
@@ -39,15 +29,6 @@
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="加密电话" prop="phoneMk">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.phoneMk"
|
|
|
- placeholder="请输入电话"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="课程" prop="courseId">
|
|
|
<el-select filterable v-model="queryParams.courseId" placeholder="请选择课程" clearable size="small" @change="courseChange(queryParams.courseId)">
|
|
@@ -81,17 +62,17 @@
|
|
|
</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:courseRedPacketLog:export']"
|
|
|
- >导出</el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="warning"-->
|
|
|
+<!-- plain-->
|
|
|
+<!-- icon="el-icon-download"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- :loading="exportLoading"-->
|
|
|
+<!-- @click="handleExport"-->
|
|
|
+<!-- v-hasPermi="['course:courseRedPacketLog:export']"-->
|
|
|
+<!-- >导出</el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClick">
|
|
@@ -103,10 +84,10 @@
|
|
|
<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 label="课程名称" align="center" prop="courseName" >
|
|
|
+<!-- <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" />
|
|
@@ -179,7 +160,7 @@ export default {
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
- exportLoading: false,
|
|
|
+ // exportLoading: false,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
// 非单个禁用
|
|
@@ -372,20 +353,20 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- const queryParams = this.queryParams;
|
|
|
- this.$confirm('是否确认导出所有短链课程看课记录数据项?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- this.exportLoading = true;
|
|
|
- return exportCourseRedPacketLog(queryParams);
|
|
|
- }).then(response => {
|
|
|
- this.download(response.msg);
|
|
|
- this.exportLoading = false;
|
|
|
- }).catch(() => {});
|
|
|
- }
|
|
|
+ // handleExport() {
|
|
|
+ // const queryParams = this.queryParams;
|
|
|
+ // this.$confirm('是否确认导出所有短链课程看课记录数据项?', "警告", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // cancelButtonText: "取消",
|
|
|
+ // type: "warning"
|
|
|
+ // }).then(() => {
|
|
|
+ // this.exportLoading = true;
|
|
|
+ // return exportCourseRedPacketLog(queryParams);
|
|
|
+ // }).then(response => {
|
|
|
+ // this.download(response.msg);
|
|
|
+ // this.exportLoading = false;
|
|
|
+ // }).catch(() => {});
|
|
|
+ // }
|
|
|
}
|
|
|
};
|
|
|
</script>
|