Browse Source

Merge branch '20240418_sun' of sckj/mz-cloud into master

15143018065 1 năm trước cách đây
mục cha
commit
590b134496

+ 107 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/controller/LnstYjController.java

@@ -0,0 +1,107 @@
+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.LnstYj;
+import com.ruoyi.lnst.service.ILnstYjService;
+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;
+
+/**
+ * 老年食堂硬件信息Controller
+ *
+ * @author sun
+ * @date 2024-04-25
+ */
+@RestController
+@RequestMapping("/yj")
+public class LnstYjController extends BaseController
+{
+    @Autowired
+    private ILnstYjService lnstYjService;
+
+    /**
+     * 查询老年食堂硬件信息列表
+     */
+    @RequiresPermissions("lnst:yj:list")
+    @GetMapping("/list")
+    public TableDataInfo list(LnstYj lnstYj)
+    {
+        startPage();
+        List<LnstYj> list = lnstYjService.selectLnstYjList(lnstYj);
+        return getDataTable(list);
+    }
+
+    @GetMapping("/check")
+    public AjaxResult check(LnstYj lnstYj)
+    {
+        return AjaxResult.success(lnstYjService.checkLnstYj(lnstYj));
+    }
+
+
+    /**
+     * 导出老年食堂硬件信息列表
+     */
+    @RequiresPermissions("lnst:yj:export")
+    @Log(title = "老年食堂硬件信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, LnstYj lnstYj)
+    {
+        List<LnstYj> list = lnstYjService.selectLnstYjList(lnstYj);
+        ExcelUtil<LnstYj> util = new ExcelUtil<LnstYj>(LnstYj.class);
+        util.exportExcel(response, list, "老年食堂硬件信息数据");
+    }
+
+    /**
+     * 获取老年食堂硬件信息详细信息
+     */
+    @RequiresPermissions("lnst:yj:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return AjaxResult.success(lnstYjService.selectLnstYjById(id));
+    }
+
+    /**
+     * 新增老年食堂硬件信息
+     */
+    @RequiresPermissions("lnst:yj:add")
+    @Log(title = "老年食堂硬件信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated({AddGroup.class}) @RequestBody LnstYj lnstYj)
+    {
+        return toAjax(lnstYjService.insertLnstYj(lnstYj),lnstYj.getId());
+    }
+
+    /**
+     * 修改老年食堂硬件信息
+     */
+    @RequiresPermissions("lnst:yj:edit")
+    @Log(title = "老年食堂硬件信息", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody LnstYj lnstYj)
+    {
+        return toAjax(lnstYjService.updateLnstYj(lnstYj));
+    }
+
+    /**
+     * 删除老年食堂硬件信息
+     */
+    @RequiresPermissions("lnst:yj:remove")
+    @Log(title = "老年食堂硬件信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(lnstYjService.deleteLnstYjByIds(ids));
+    }
+}

+ 73 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/domain/LnstYj.java

@@ -0,0 +1,73 @@
+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 io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+
+import javax.validation.constraints.Size;
+
+/**
+ * 老年食堂硬件信息对象 lnst_yj
+ *
+ * @author sun
+ * @date 2024-04-25
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@TableName("lnst_yj")
+@ApiModel("老年食堂硬件信息")
+public class LnstYj extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键标识 */
+    @Excel(name = "主键标识")
+    @TableId(value = "id",type = IdType.ASSIGN_UUID)
+    @ApiModelProperty(value = "主键标识")
+    private String id;
+
+    /** 硬件编码 */
+    @Excel(name = "硬件编码")
+    @ApiModelProperty(value = "硬件编码")
+    @Size(max = 200, message = "{硬件编码}")
+
+    private String yjCode;
+
+    /** 门店码 */
+    @Excel(name = "门店码")
+    @ApiModelProperty(value = "门店码")
+    @Size(max = 32, message = "{门店码}")
+
+    private String mchnt;
+
+    /** 部门检索串 */
+    @Excel(name = "部门检索串")
+    @ApiModelProperty(value = "部门检索串")
+    @Size(max = 60, message = "{部门检索串}")
+
+    private String createBmjsc;
+
+    /** 区划检索串 */
+    @Excel(name = "区划检索串")
+    @ApiModelProperty(value = "区划检索串")
+    @Size(max = 80, message = "{区划检索串}")
+
+    private String createQhjsc;
+
+    /** 创建人行政区划编码 */
+    @Excel(name = "创建人行政区划编码")
+    @ApiModelProperty(value = "创建人行政区划编码")
+    @Size(max = 12, message = "{创建人行政区划编码}")
+
+    private String createAreaCode;
+
+    private String state;
+}

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

@@ -0,0 +1,15 @@
+package com.ruoyi.lnst.mapper;
+
+import java.util.List;
+import com.ruoyi.lnst.domain.LnstYj;
+import com.ruoyi.common.datascope.utils.BaseMapperPlus;
+
+/**
+ * 老年食堂硬件信息Mapper接口
+ * 
+ * @author sun
+ * @date 2024-04-25
+ */
+public interface LnstYjMapper extends BaseMapperPlus<LnstYj> {
+
+}

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

@@ -0,0 +1,57 @@
+package com.ruoyi.lnst.service;
+
+import com.ruoyi.lnst.domain.LnstYj;
+
+import java.util.List;
+
+/**
+ * 老年食堂硬件信息Service接口
+ *
+ * @author sun
+ * @date 2024-04-25
+ */
+public interface ILnstYjService
+{
+    /**
+     * 查询老年食堂硬件信息
+     *
+     * @param id 老年食堂硬件信息主键
+     * @return 老年食堂硬件信息
+     */
+    public LnstYj selectLnstYjById(String id);
+
+    /**
+     * 查询老年食堂硬件信息列表
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 老年食堂硬件信息集合
+     */
+    public List<LnstYj> selectLnstYjList(LnstYj lnstYj);
+
+    public String checkLnstYj(LnstYj lnstYj);
+
+    /**
+     * 新增老年食堂硬件信息
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 结果
+     */
+    public int insertLnstYj(LnstYj lnstYj);
+
+    /**
+     * 修改老年食堂硬件信息
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 结果
+     */
+    public int updateLnstYj(LnstYj lnstYj);
+
+    /**
+     * 批量删除老年食堂硬件信息
+     *
+     * @param ids 需要删除的老年食堂硬件信息主键集合
+     * @return 结果
+     */
+    public int deleteLnstYjByIds(String[] ids);
+
+}

+ 103 - 0
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/service/impl/LnstYjServiceImpl.java

@@ -0,0 +1,103 @@
+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.LnstYj;
+import com.ruoyi.lnst.mapper.LnstYjMapper;
+import com.ruoyi.lnst.service.ILnstYjService;
+import org.apache.commons.lang3.ObjectUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * 老年食堂硬件信息Service业务层处理
+ *
+ * @author sun
+ * @date 2024-04-25
+ */
+@Service
+public class LnstYjServiceImpl implements ILnstYjService
+{
+    @Autowired
+    private LnstYjMapper lnstYjMapper;
+
+    /**
+     * 查询老年食堂硬件信息
+     *
+     * @param id 老年食堂硬件信息主键
+     * @return 老年食堂硬件信息
+     */
+    @Override
+    public LnstYj selectLnstYjById(String id)
+    {
+        return lnstYjMapper.selectById(id);
+    }
+
+    /**
+     * 查询老年食堂硬件信息列表
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 老年食堂硬件信息
+     */
+    @Override
+    public List<LnstYj> selectLnstYjList(LnstYj lnstYj)
+    {
+        return lnstYjMapper.selectList(new LambdaQueryWrapper<>(lnstYj));
+    }
+
+    @Override
+    public String checkLnstYj(LnstYj lnstYj) {
+        if (StringUtils.isEmpty(lnstYj.getYjCode())) {
+            throw new ServiceException("硬件非法!");
+        }
+        LnstYj yj = lnstYjMapper.selectOne(new LambdaQueryWrapper<LnstYj>().eq(LnstYj::getYjCode, lnstYj.getYjCode()));
+        if (ObjectUtils.isEmpty(yj)) {
+            throw new ServiceException("硬件非法!");
+        }
+        if (!StringUtils.equals(yj.getState(), "0")) {
+            throw new ServiceException("您的硬件已被禁用!");
+        }
+        return "硬件登录成功";
+    }
+
+    /**
+     * 新增老年食堂硬件信息
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 结果
+     */
+    @Override
+    public int insertLnstYj(LnstYj lnstYj)
+    {
+        return lnstYjMapper.insert(lnstYj);
+    }
+
+    /**
+     * 修改老年食堂硬件信息
+     *
+     * @param lnstYj 老年食堂硬件信息
+     * @return 结果
+     */
+    @Override
+    public int updateLnstYj(LnstYj lnstYj)
+    {
+        return lnstYjMapper.updateById(lnstYj);
+    }
+
+    /**
+     * 批量删除老年食堂硬件信息
+     *
+     * @param ids 需要删除的老年食堂硬件信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteLnstYjByIds(String[] ids)
+    {
+        return lnstYjMapper.deleteBatchIds(Arrays.asList(ids));
+    }
+
+}

+ 29 - 0
ruoyi-modules/mz-lnst/src/main/resources/mapper/lnst/LnstYjMapper.xml

@@ -0,0 +1,29 @@
+<?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.LnstYjMapper">
+    
+    <resultMap type="LnstYj" id="LnstYjResult">
+        <result property="id"    column="id"    />
+        <result property="yjCode"    column="yj_code"    />
+        <result property="mchnt"    column="mchnt"    />
+        <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/yj.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询老年食堂硬件信息列表
+export function listYj(query) {
+  return request({
+    url: '/lnst/yj/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询老年食堂硬件信息详细
+export function getYj(id) {
+  return request({
+    url: '/lnst/yj/' + id,
+    method: 'get'
+  })
+}
+
+// 新增老年食堂硬件信息
+export function addYj(data) {
+  return request({
+    url: '/lnst/yj',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改老年食堂硬件信息
+export function updateYj(data) {
+  return request({
+    url: '/lnst/yj',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除老年食堂硬件信息
+export function delYj(id) {
+  return request({
+    url: '/lnst/yj/' + id,
+    method: 'delete'
+  })
+}

+ 323 - 0
ruoyi-ui/src/views/lnst/yj/index.vue

@@ -0,0 +1,323 @@
+<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="硬件编码" prop="yjCode">
+        <el-input
+          v-model="queryParams.yjCode"
+          placeholder="请输入硬件编码"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="门店码" prop="mchnt">
+        <el-input
+          v-model="queryParams.mchnt"
+          placeholder="请输入门店码"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="数据状态" prop="state">
+        <el-select v-model="queryParams.state" placeholder="请选择数据状态" clearable>
+          <el-option
+            v-for="dict in dict.type.sys_yes_no"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
+        </el-select>
+      </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:yj: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:yj:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="yjList" >
+      <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="硬件编码" align="center" prop="yjCode" />
+      <el-table-column label="门店码" align="center" prop="mchnt" />
+      <el-table-column label="数据状态" align="center" prop="state">
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.state"/>
+        </template>
+      </el-table-column>
+      <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:yj:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row,scope.$index)"
+            v-hasPermi="['lnst:yj: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"
+    />
+
+    <!-- 添加或修改老年食堂硬件信息对话框 -->
+    <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="硬件编码" prop="yjCode">
+          <el-input v-model="form.yjCode" placeholder="请输入硬件编码" />
+        </el-form-item>
+
+        <el-form-item label="门店码" prop="mchnt">
+          <el-input v-model="form.mchnt" placeholder="请输入门店码" />
+        </el-form-item>
+
+        <el-form-item label="数据状态" prop="state">
+          <el-radio-group v-model="form.state">
+            <el-radio
+              v-for="dict in dict.type.sys_yes_no"
+              :key="dict.value"
+:label="parseInt(dict.value)"
+            >{{dict.label}}</el-radio>
+          </el-radio-group>
+        </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 {addYj, delYj, getYj, listYj, updateYj} from "@/api/lnst/yj.js";
+  import {chineseOne, idCard, Regular} from '@/utils/regular'
+
+  export default {
+  name: "Yj",
+  dicts: ['sys_yes_no'],
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      submitFormLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 老年食堂硬件信息表格数据
+      yjList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        yjCode: [
+          { max: 72, message: '硬件编码不能超过72个字符', trigger: 'blur'},
+        ],
+        mchnt: [
+          { max: 32, message: '门店码不能超过32个字符', trigger: 'blur'},
+        ],
+        createBmjsc: [
+          { max: 60, message: '部门检索串不能超过60个字符', trigger: 'blur'},
+        ],
+        createQhjsc: [
+          { max: 80, message: '区划检索串不能超过80个字符', trigger: 'blur'},
+        ],
+        createAreaCode: [
+          { max: 12, message: '创建人行政区划编码不能超过12个字符', trigger: 'blur'},
+        ],
+        state: [
+          { required: true, message: "数据状态不能为空", trigger: "blur" },
+        ]
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询老年食堂硬件信息列表 */
+    getList() {
+      this.loading = true;
+      listYj(this.queryParams).then(response => {
+        this.yjList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.submitFormLoading =false;
+      this.form = {
+        id: null,
+        yjCode: null,
+        mchnt: null,
+        createBmjsc: null,
+        createQhjsc: null,
+        createAreaCode: null,
+        state: 0
+      };
+      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 = "添加老年食堂硬件信息";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getYj(id).then(response => {
+        this.form = response.data;
+        /****** sks 需要改动的地方 start ******/
+        this.copyForm=this.deepCopy(response.data)
+        /****** sks 需要改动的地方 end ******/
+        this.open = true;
+        this.title = "修改老年食堂硬件信息";
+      });
+    },
+    /** 提交按钮 */
+    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) {
+              updateYj({...formData,id:this.form.id}).then(response => {
+                this.$modal.msgSuccess("修改成功");
+                this.open = false;
+                this.yjList=this.dataReplacement(this.yjList,this.form.id,formData);
+                // this.getList();
+              }).finally(()=>this.submitFormLoading =false);
+            }else{
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.submitFormLoading = false;
+            }
+            /****** sks 需要改动的地方 end ******/
+          } else {
+            addYj(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              // this.getList();
+              /****** sks 需要改动的地方 start ******/
+              if (this.queryParams.pageSize===this.yjList.length)
+              {
+                this.yjList.pop();
+              }
+              this.yjList.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 delYj(ids);
+      }).then(() => {
+        // this.getList();
+        /****** sks 需要改动的地方 ind参数需要传进来 start ******/
+        this.yjList.splice(index,1);
+        if(this.yjList.length===0)
+        {
+          this.getList();
+        }else {
+          this.total--;
+        }
+        this.$modal.msgSuccess("删除成功");
+        /****** sks 需要改动的地方 end ******/
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('lnst/yj/export', {
+        ...this.queryParams
+      }, `yj_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>