|
@@ -129,12 +129,20 @@
|
|
|
<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 ? "发送中" : "已完成" }}</el-tag>
|
|
|
+ <el-tag>{{ scope.row.status === 0 ? "发送中" : scope.row.status === 1 ? "已完成" : "待补发" }}</el-tag>
|
|
|
</template>
|
|
|
</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="scope.row.status==2"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleRetry(scope.row)"
|
|
|
+ >重新发送</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -373,19 +381,20 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
+ handleRetry(row) {
|
|
|
const logIds = row.logId || this.ids;
|
|
|
- this.$confirm('是否确认删除短链课程看课记录编号为"' + logIds + '"的数据项?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return delCourseRedPacketLog(logIds);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
+ this.$confirm('是否确认重新发送红包?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return retryCourseRedPacketLog(logIds);
|
|
|
+ }).then((response) => {
|
|
|
+ this.getList();
|
|
|
+
|
|
|
+ this.msgSuccess(response.msg); // Fallback message
|
|
|
+
|
|
|
+ }).catch(() => {});
|
|
|
},
|
|
|
getSubCateList(pid){
|
|
|
this.form.subCateId=null;
|