|
@@ -100,12 +100,23 @@
|
|
|
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="handleRetry"
|
|
|
+ >重新发送</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">
|
|
|
<el-tab-pane label="全部订单" name="00"></el-tab-pane>
|
|
|
<el-tab-pane label="待发送" name="0"></el-tab-pane>
|
|
|
<el-tab-pane label="已发送" name="1"></el-tab-pane>
|
|
|
+ <el-tab-pane label="待补发" name="2"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<el-table border v-loading="loading" :data="courseRedPacketLogList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
@@ -142,7 +153,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="企微账号" align="center" prop="qwUserName" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
-
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button v-if=""
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleRetry(scope.row)"
|
|
|
+ >重新发送</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -187,7 +207,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { courseList,videoList,listCourseRedPacketLog, myListCourseRedPacketLogNew, getCourseRedPacketLog, delCourseRedPacketLog, addCourseRedPacketLog, updateCourseRedPacketLog, exportCourseRedPacketLog } from "@/api/course/courseRedPacketLog";
|
|
|
+import { courseList,videoList,listCourseRedPacketLog,retryCourseRedPacketLog, myListCourseRedPacketLogNew, getCourseRedPacketLog, delCourseRedPacketLog, addCourseRedPacketLog, updateCourseRedPacketLog, exportCourseRedPacketLog } from "@/api/course/courseRedPacketLog";
|
|
|
import { getCompanyList } from "@/api/company/company";
|
|
|
|
|
|
export default {
|
|
@@ -369,14 +389,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
+ handleRetry(row) {
|
|
|
const logIds = row.logId || this.ids;
|
|
|
- this.$confirm('是否确认删除短链课程看课记录编号为"' + logIds + '"的数据项?', "警告", {
|
|
|
+ this.$confirm('是否确认重新发送红包?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- return delCourseRedPacketLog(logIds);
|
|
|
+ return retryCourseRedPacketLog(logIds);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.msgSuccess("删除成功");
|