15143018065 11 mēneši atpakaļ
vecāks
revīzija
a2730270f5

+ 106 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/controller/LnstBbhController.java

@@ -0,0 +1,106 @@
+package com.ruoyi.lnst.controller;
+
+import com.ruoyi.common.core.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.web.controller.BaseController;
+import com.ruoyi.common.core.web.domain.AjaxResult;
+import com.ruoyi.common.core.web.page.TableDataInfo;
+import com.ruoyi.common.log.annotation.Log;
+import com.ruoyi.common.log.enums.BusinessType;
+import com.ruoyi.common.security.annotation.RequiresPermissions;
+import com.ruoyi.lnst.domain.LnstBbh;
+import com.ruoyi.lnst.service.ILnstBbhService;
+import com.ruoyi.system.validate.group.AddGroup;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 老年食堂app版本号信息Controller
+ *
+ * @author sun
+ * @date 2024-04-29
+ */
+@RestController
+@RequestMapping("/bbh")
+public class LnstBbhController extends BaseController
+{
+    @Autowired
+    private ILnstBbhService lnstBbhService;
+
+    /**
+     * 查询老年食堂app版本号信息列表
+     */
+    @RequiresPermissions("lnst:bbh:list")
+    @GetMapping("/list")
+    public TableDataInfo list(LnstBbh lnstBbh)
+    {
+        startPage();
+        List<LnstBbh> list = lnstBbhService.selectLnstBbhList(lnstBbh);
+        return getDataTable(list);
+    }
+
+    @GetMapping("/checkVersion")
+    public AjaxResult checkVersion(LnstBbh lnstBbh)
+    {
+        return AjaxResult.success(lnstBbhService.checkVersion(lnstBbh));
+    }
+
+    /**
+     * 导出老年食堂app版本号信息列表
+     */
+    @RequiresPermissions("lnst:bbh:export")
+    @Log(title = "老年食堂app版本号信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, LnstBbh lnstBbh)
+    {
+        List<LnstBbh> list = lnstBbhService.selectLnstBbhList(lnstBbh);
+        ExcelUtil<LnstBbh> util = new ExcelUtil<LnstBbh>(LnstBbh.class);
+        util.exportExcel(response, list, "老年食堂app版本号信息数据");
+    }
+
+    /**
+     * 获取老年食堂app版本号信息详细信息
+     */
+    @RequiresPermissions("lnst:bbh:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return AjaxResult.success(lnstBbhService.selectLnstBbhById(id));
+    }
+
+    /**
+     * 新增老年食堂app版本号信息
+     */
+    @RequiresPermissions("lnst:bbh:add")
+    @Log(title = "老年食堂app版本号信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated({AddGroup.class}) @RequestBody LnstBbh lnstBbh)
+    {
+        return toAjax(lnstBbhService.insertLnstBbh(lnstBbh),lnstBbh.getId());
+    }
+
+    /**
+     * 修改老年食堂app版本号信息
+     */
+    @RequiresPermissions("lnst:bbh:edit")
+    @Log(title = "老年食堂app版本号信息", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody LnstBbh lnstBbh)
+    {
+        return toAjax(lnstBbhService.updateLnstBbh(lnstBbh));
+    }
+
+    /**
+     * 删除老年食堂app版本号信息
+     */
+    @RequiresPermissions("lnst:bbh:remove")
+    @Log(title = "老年食堂app版本号信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(lnstBbhService.deleteLnstBbhByIds(ids));
+    }
+}

+ 63 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/domain/LnstBbh.java

@@ -0,0 +1,63 @@
+package com.ruoyi.lnst.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.ruoyi.common.core.annotation.Excel;
+import com.ruoyi.common.core.web.domain.BaseEntity;
+import com.ruoyi.system.validate.group.AddGroup;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.Size;
+
+/**
+ * 老年食堂app版本号信息对象 lnst_bbh
+ *
+ * @author sun
+ * @date 2024-04-29
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@TableName("lnst_bbh")
+@ApiModel("老年食堂app版本号信息")
+public class LnstBbh extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键标识 */
+    @Excel(name = "主键标识")
+    @TableId(value = "id",type = IdType.ASSIGN_UUID)
+    @ApiModelProperty(value = "主键标识")
+    private String id;
+
+    /** appid */
+    @Excel(name = "appid")
+    @ApiModelProperty(value = "appid", required = true)
+    @NotBlank(message = "{appid}",groups = AddGroup.class)
+    private String appid;
+
+    /** 版本号 */
+    @Excel(name = "版本号")
+    @ApiModelProperty(value = "版本号", required = true)
+    @NotBlank(message = "{版本号}",groups = AddGroup.class)
+    @Size(min = 1, max = 72, message = "{版本号}")
+
+    private String version;
+
+    /** 下载路径 */
+    @Excel(name = "下载路径")
+    @ApiModelProperty(value = "下载路径", required = true)
+    @NotBlank(message = "{下载路径}",groups = AddGroup.class)
+    @Size(min = 1, max = 720, message = "{下载路径}")
+
+    private String url;
+
+    @Size(max = 720, message = "{备注}")
+    private String remark;
+}

+ 15 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/mapper/LnstBbhMapper.java

@@ -0,0 +1,15 @@
+package com.ruoyi.lnst.mapper;
+
+import java.util.List;
+import com.ruoyi.lnst.domain.LnstBbh;
+import com.ruoyi.common.datascope.utils.BaseMapperPlus;
+
+/**
+ * 老年食堂app版本号信息Mapper接口
+ * 
+ * @author sun
+ * @date 2024-04-29
+ */
+public interface LnstBbhMapper extends BaseMapperPlus<LnstBbh> {
+
+}

+ 57 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/service/ILnstBbhService.java

@@ -0,0 +1,57 @@
+package com.ruoyi.lnst.service;
+
+import com.ruoyi.lnst.domain.LnstBbh;
+
+import java.util.List;
+
+/**
+ * 老年食堂app版本号信息Service接口
+ *
+ * @author sun
+ * @date 2024-04-29
+ */
+public interface ILnstBbhService
+{
+    /**
+     * 查询老年食堂app版本号信息
+     *
+     * @param id 老年食堂app版本号信息主键
+     * @return 老年食堂app版本号信息
+     */
+    public LnstBbh selectLnstBbhById(String id);
+
+    /**
+     * 查询老年食堂app版本号信息列表
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 老年食堂app版本号信息集合
+     */
+    public List<LnstBbh> selectLnstBbhList(LnstBbh lnstBbh);
+
+    public LnstBbh checkVersion(LnstBbh lnstBbh);
+
+    /**
+     * 新增老年食堂app版本号信息
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 结果
+     */
+    public int insertLnstBbh(LnstBbh lnstBbh);
+
+    /**
+     * 修改老年食堂app版本号信息
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 结果
+     */
+    public int updateLnstBbh(LnstBbh lnstBbh);
+
+    /**
+     * 批量删除老年食堂app版本号信息
+     *
+     * @param ids 需要删除的老年食堂app版本号信息主键集合
+     * @return 结果
+     */
+    public int deleteLnstBbhByIds(String[] ids);
+
+}

+ 101 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/service/impl/LnstBbhServiceImpl.java

@@ -0,0 +1,101 @@
+package com.ruoyi.lnst.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.ruoyi.common.core.exception.ServiceException;
+import com.ruoyi.common.core.utils.StringUtils;
+import com.ruoyi.lnst.domain.LnstBbh;
+import com.ruoyi.lnst.mapper.LnstBbhMapper;
+import com.ruoyi.lnst.service.ILnstBbhService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.util.ObjectUtils;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * 老年食堂app版本号信息Service业务层处理
+ *
+ * @author sun
+ * @date 2024-04-29
+ */
+@Service
+public class LnstBbhServiceImpl implements ILnstBbhService
+{
+    @Autowired
+    private LnstBbhMapper lnstBbhMapper;
+
+    /**
+     * 查询老年食堂app版本号信息
+     *
+     * @param id 老年食堂app版本号信息主键
+     * @return 老年食堂app版本号信息
+     */
+    @Override
+    public LnstBbh selectLnstBbhById(String id)
+    {
+        return lnstBbhMapper.selectById(id);
+    }
+
+    /**
+     * 查询老年食堂app版本号信息列表
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 老年食堂app版本号信息
+     */
+    @Override
+    public List<LnstBbh> selectLnstBbhList(LnstBbh lnstBbh)
+    {
+        return lnstBbhMapper.selectList(new LambdaQueryWrapper<>(lnstBbh));
+    }
+
+    @Override
+    public LnstBbh checkVersion(LnstBbh lnstBbh) {
+        if (StringUtils.isEmpty(lnstBbh.getAppid())) {
+            throw new ServiceException("appid 不能为空!");
+        }
+        LnstBbh res = lnstBbhMapper.selectOne(new LambdaQueryWrapper<LnstBbh>().eq(LnstBbh::getAppid, lnstBbh.getAppid())
+                .orderByDesc(LnstBbh::getCreateTimeStr).last("limit 1"));
+        if (ObjectUtils.isEmpty(res)) {
+            throw new ServiceException("您的 appid 有误!");
+        }
+        return res;
+    }
+
+    /**
+     * 新增老年食堂app版本号信息
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 结果
+     */
+    @Override
+    public int insertLnstBbh(LnstBbh lnstBbh)
+    {
+        return lnstBbhMapper.insert(lnstBbh);
+    }
+
+    /**
+     * 修改老年食堂app版本号信息
+     *
+     * @param lnstBbh 老年食堂app版本号信息
+     * @return 结果
+     */
+    @Override
+    public int updateLnstBbh(LnstBbh lnstBbh)
+    {
+        return lnstBbhMapper.updateById(lnstBbh);
+    }
+
+    /**
+     * 批量删除老年食堂app版本号信息
+     *
+     * @param ids 需要删除的老年食堂app版本号信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteLnstBbhByIds(String[] ids)
+    {
+        return lnstBbhMapper.deleteBatchIds(Arrays.asList(ids));
+    }
+
+}

+ 31 - 0
ruoyi-modules/mz-lnst/src/main/resources/mapper/lnst/LnstBbhMapper.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.lnst.mapper.LnstBbhMapper">
+    
+    <resultMap type="LnstBbh" id="LnstBbhResult">
+        <result property="id"    column="id"    />
+        <result property="appid"    column="appid"    />
+        <result property="version"    column="version"    />
+        <result property="remark"    column="remark"    />
+        <result property="url"    column="url"    />
+        <result property="createTimeStr"    column="create_time_str"    />
+        <result property="createUserId"    column="create_user_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createUserType"    column="create_user_type"    />
+        <result property="createUnit"    column="create_unit"    />
+        <result property="createTounit"    column="create_tounit"    />
+        <result property="createBmjsc"    column="create_bmjsc"    />
+        <result property="createQhjsc"    column="create_qhjsc"    />
+        <result property="createUnitName"    column="create_unit_name"    />
+        <result property="createAreaCode"    column="create_area_code"    />
+        <result property="updateTimeStr"    column="update_time_str"    />
+        <result property="updateUserId"    column="update_user_id"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateUnit"    column="update_unit"    />
+        <result property="updateUnitName"    column="update_unit_name"    />
+        <result property="state"    column="state"    />
+    </resultMap>
+
+</mapper>

+ 44 - 0
ruoyi-ui/src/api/lnst/bbh.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询老年食堂app版本号信息列表
+export function listBbh(query) {
+  return request({
+    url: '/lnst/bbh/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询老年食堂app版本号信息详细
+export function getBbh(id) {
+  return request({
+    url: '/lnst/bbh/' + id,
+    method: 'get'
+  })
+}
+
+// 新增老年食堂app版本号信息
+export function addBbh(data) {
+  return request({
+    url: '/lnst/bbh',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改老年食堂app版本号信息
+export function updateBbh(data) {
+  return request({
+    url: '/lnst/bbh',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除老年食堂app版本号信息
+export function delBbh(id) {
+  return request({
+    url: '/lnst/bbh/' + id,
+    method: 'delete'
+  })
+}

+ 312 - 0
ruoyi-ui/src/views/lnst/bbh/index.vue

@@ -0,0 +1,312 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="appid" prop="appid">
+        <el-input
+          v-model="queryParams.appid"
+          placeholder="请输入appid"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="版本号" prop="version">
+        <el-input
+          v-model="queryParams.version"
+          placeholder="请输入版本号"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['lnst:bbh:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['lnst:bbh:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="bbhList" >
+      <el-table-column label="序号" align="center">
+        <template slot-scope="scope">
+          {{(queryParams.pageNum-1)*queryParams.pageSize + scope.$index + 1}}
+        </template>
+      </el-table-column>
+      <el-table-column label="appid" align="center" prop="appid" />
+      <el-table-column label="版本号" align="center" prop="version" />
+      <el-table-column label="下载路径" align="center" prop="url" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['lnst:bbh:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row,scope.$index)"
+            v-hasPermi="['lnst:bbh:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改老年食堂app版本号信息对话框 -->
+    <el-dialog v-dialog-drag :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+
+        <el-form-item label="appid" prop="appid">
+          <el-input v-model="form.appid" placeholder="请输入appid" />
+        </el-form-item>
+
+        <el-form-item label="版本号" prop="version">
+          <el-input v-model="form.version" placeholder="请输入版本号" />
+        </el-form-item>
+
+        <el-form-item label="升级备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" maxlength="720" show-word-limit placeholder="请输入升级备注" />
+        </el-form-item>
+
+        <el-form-item label="下载路径" prop="url">
+          <el-input v-model="form.url" type="textarea" maxlength="720" show-word-limit placeholder="请输入下载路径" />
+        </el-form-item>
+
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm" :loading="submitFormLoading">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+  import {addBbh, delBbh, getBbh, listBbh, updateBbh} from "@/api/lnst/bbh";
+  import {chineseOne, idCard, Regular} from '@/utils/regular'
+
+  export default {
+  name: "Bbh",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      submitFormLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 老年食堂app版本号信息表格数据
+      bbhList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        appid: [
+          { required: true, message: "appid不能为空", trigger: "blur" },
+        ],
+        version: [
+          { required: true, message: "版本号不能为空", trigger: "blur" },
+          { max: 72, message: '版本号不能超过72个字符', trigger: 'blur'},
+        ],
+        remark: [
+          { required: true, message: "升级备注不能为空", trigger: "blur" },
+        ],
+        url: [
+          { required: true, message: "下载路径不能为空", trigger: "blur" },
+        ],
+        createBmjsc: [
+          { max: 60, message: '部门检索串不能超过60个字符', trigger: 'blur'},
+        ],
+        createQhjsc: [
+          { max: 80, message: '区划检索串不能超过80个字符', trigger: 'blur'},
+        ],
+        state: [
+          { required: true, message: "数据状态不能为空", trigger: "blur" },
+        ]
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询老年食堂app版本号信息列表 */
+    getList() {
+      this.loading = true;
+      listBbh(this.queryParams).then(response => {
+        this.bbhList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.submitFormLoading =false;
+      this.form = {
+        id: null,
+        appid: null,
+        version: null,
+        remark: null,
+        url: null,
+        createBmjsc: null,
+        createQhjsc: null,
+        state: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加老年食堂app版本号信息";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getBbh(id).then(response => {
+        this.form = response.data;
+        /****** sks 需要改动的地方 start ******/
+        this.copyForm=this.deepCopy(response.data)
+        /****** sks 需要改动的地方 end ******/
+        this.open = true;
+        this.title = "修改老年食堂app版本号信息";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.submitFormLoading = true;
+          if (this.form.id != null) {
+            /****** sks 需要改动的地方 start ******/
+            let formData=this.comparisonObject(this.form,this.copyForm);
+            if(formData) {
+              updateBbh({...formData,id:this.form.id}).then(response => {
+                this.$modal.msgSuccess("修改成功");
+                this.open = false;
+                this.bbhList=this.dataReplacement(this.bbhList,this.form.id,formData);
+                // this.getList();
+              }).finally(()=>this.submitFormLoading =false);
+            }else{
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.submitFormLoading = false;
+            }
+            /****** sks 需要改动的地方 end ******/
+          } else {
+            addBbh(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              // this.getList();
+              /****** sks 需要改动的地方 start ******/
+              if (this.queryParams.pageSize===this.bbhList.length)
+              {
+                this.bbhList.pop();
+              }
+              this.bbhList.unshift({...this.form,id:response.data});
+              this.total++;
+              /****** sks 需要改动的地方 end ******/
+            }).finally(()=>this.submitFormLoading =false);
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row,index) {
+      const ids = row.id || this.ids;
+      const xh = (this.queryParams.pageNum-1)*this.queryParams.pageSize + index + 1;
+      this.$modal.confirm('确认删除' + this.changeDelData(row,'id','ID值',xh) + '的记录?').then(function() {
+        return delBbh(ids);
+      }).then(() => {
+        // this.getList();
+        /****** sks 需要改动的地方 ind参数需要传进来 start ******/
+        this.bbhList.splice(index,1);
+        if(this.bbhList.length===0)
+        {
+          this.getList();
+        }else {
+          this.total--;
+        }
+        this.$modal.msgSuccess("删除成功");
+        /****** sks 需要改动的地方 end ******/
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('lnst/bbh/export', {
+        ...this.queryParams
+      }, `bbh_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>