Browse Source

批量客户营期删除 ,导出权限

xw 5 giờ trước cách đây
mục cha
commit
da9de0ba2d

+ 1 - 1
src/views/course/courseUserStatistics/qw/index.vue

@@ -83,7 +83,7 @@
           size="mini"
           :loading="exportLoading"
           @click="handleExport"
-          v-hasPermi="['course:courseRedPacketLog:export']"
+          v-hasPermi="['course:courseWatchLog:export']"
           >导出</el-button
         >
       </el-col>

+ 1 - 1
src/views/course/courseWatchLog/index.vue

@@ -30,7 +30,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="会员id" prop="userId" v-if="queryParams.sendType == 1">
+      <el-form-item label="客户id" prop="userId" >
         <el-input
           v-model="queryParams.userId"
           placeholder="请输入会员昵称"

+ 30 - 0
src/views/qw/sopUserLogsInfo/sopUserLogsInfoDetails.vue

@@ -129,6 +129,17 @@
           v-hasPermi="['qw:sopUserLogsInfo:edit']"
         >批量修改客户营期</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="medium"
+          :disabled="multiple"
+          @click="handleBatchDelete"
+          v-hasPermi="['qw:sopUserLogsInfo:remove']"
+        >批量客户营期删除</el-button>
+      </el-col>
     </el-row>
     <div style="color: #999;font-size: 14px;display: flex;align-items: center;margin-bottom: 5px" v-if="queryParams.filterMode == 1">
       <i class="el-icon-info"></i>
@@ -1381,6 +1392,25 @@ export default {
         this.msgSuccess("删除成功");
       }).catch(() => {});
     },
+    /** 批量删除按钮操作 */
+    handleBatchDelete() {
+      const ids = this.ids;
+      if (!ids || ids.length === 0) {
+        this.$message.warning('请选择需要删除的数据');
+        return;
+      }
+      this.$confirm('是否确认批量删除选中的 ' + ids.length + ' 条数据?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        return delSopUserLogsInfo(ids);
+      }).then(() => {
+        this.getList();
+        this.msgSuccess("批量删除成功");
+        this.$emit('flashNotify'); // 通知父组件刷新
+      }).catch(() => {});
+    },
     /** 导出按钮操作 */
     handleExport() {
       const queryParams = this.queryParams;