|
|
@@ -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;
|