change - 增添保养项目页面,保养部位页面新增或修改对话框绑定保养项目的前端复选框及接口
parent
b8344eadde
commit
3174142b61
@ -0,0 +1,127 @@
|
||||
package com.hw.dms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.hw.dms.domain.DmsBaseStationProject;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.hw.common.log.annotation.Log;
|
||||
import com.hw.common.log.enums.BusinessType;
|
||||
import com.hw.common.security.annotation.RequiresPermissions;
|
||||
import com.hw.dms.domain.DmsBaseMaintProject;
|
||||
import com.hw.dms.service.IDmsBaseMaintProjectService;
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.common.core.utils.poi.ExcelUtil;
|
||||
import com.hw.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 保养项目信息Controller
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dmsBaseMaintProject")
|
||||
public class DmsBaseMaintProjectController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDmsBaseMaintProjectService dmsBaseMaintProjectService;
|
||||
|
||||
/**
|
||||
* 查询保养项目信息列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DmsBaseMaintProject dmsBaseMaintProject)
|
||||
{
|
||||
startPage();
|
||||
List<DmsBaseMaintProject> list = dmsBaseMaintProjectService.selectDmsBaseMaintProjectList(dmsBaseMaintProject);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养项目信息列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:export")
|
||||
@Log(title = "保养项目信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DmsBaseMaintProject dmsBaseMaintProject)
|
||||
{
|
||||
List<DmsBaseMaintProject> list = dmsBaseMaintProjectService.selectDmsBaseMaintProjectList(dmsBaseMaintProject);
|
||||
ExcelUtil<DmsBaseMaintProject> util = new ExcelUtil<DmsBaseMaintProject>(DmsBaseMaintProject.class);
|
||||
util.exportExcel(response, list, "保养项目信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取保养项目信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:query")
|
||||
@GetMapping(value = "/{maintProjectId}")
|
||||
public AjaxResult getInfo(@PathVariable("maintProjectId") Long maintProjectId)
|
||||
{
|
||||
return success(dmsBaseMaintProjectService.selectDmsBaseMaintProjectByMaintProjectId(maintProjectId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养项目信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:add")
|
||||
@Log(title = "保养项目信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DmsBaseMaintProject dmsBaseMaintProject)
|
||||
{
|
||||
return toAjax(dmsBaseMaintProjectService.insertDmsBaseMaintProject(dmsBaseMaintProject));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养项目信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:edit")
|
||||
@Log(title = "保养项目信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DmsBaseMaintProject dmsBaseMaintProject)
|
||||
{
|
||||
return toAjax(dmsBaseMaintProjectService.updateDmsBaseMaintProject(dmsBaseMaintProject));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养项目信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBaseMaintProject:remove")
|
||||
@Log(title = "保养项目信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{maintProjectIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] maintProjectIds)
|
||||
{
|
||||
return toAjax(dmsBaseMaintProjectService.deleteDmsBaseMaintProjectByMaintProjectIds(maintProjectIds));
|
||||
}
|
||||
|
||||
@GetMapping("/projectMenu")
|
||||
//TODO 未完成
|
||||
public AjaxResult projectMenu(DmsBaseMaintProject dmsBaseMaintProject)
|
||||
{
|
||||
List<DmsBaseMaintProject> projectMenu = dmsBaseMaintProjectService.selectDmsBaseMaintProjectList(dmsBaseMaintProject);
|
||||
return success(projectMenu);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/projectMenuByStaion/{maintStationId}")
|
||||
public AjaxResult projectMenuByStaion(@PathVariable("maintStationId") Long maintStationId)
|
||||
{
|
||||
List<DmsBaseMaintProject> projectMenu = dmsBaseMaintProjectService.selectProjectMenuByStationId(maintStationId);
|
||||
return success(projectMenu);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,115 @@
|
||||
package com.hw.dms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.hw.common.security.utils.SecurityUtils;
|
||||
import com.sun.xml.bind.v2.TODO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.hw.common.log.annotation.Log;
|
||||
import com.hw.common.log.enums.BusinessType;
|
||||
import com.hw.common.security.annotation.RequiresPermissions;
|
||||
import com.hw.dms.domain.DmsBaseStationProject;
|
||||
import com.hw.dms.service.IDmsBaseStationProjectService;
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.common.core.utils.poi.ExcelUtil;
|
||||
import com.hw.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 保养部位关联项目信息Controller
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/baseStationProject")
|
||||
public class DmsBaseStationProjectController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDmsBaseStationProjectService dmsBaseStationProjectService;
|
||||
|
||||
/**
|
||||
* 查询保养部位关联项目信息列表
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:list")*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DmsBaseStationProject dmsBaseStationProject)
|
||||
{
|
||||
startPage();
|
||||
List<DmsBaseStationProject> list = dmsBaseStationProjectService.selectDmsBaseStationProjectList(dmsBaseStationProject);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养部位关联项目信息列表
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:export")*/
|
||||
@Log(title = "保养部位关联项目信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DmsBaseStationProject dmsBaseStationProject)
|
||||
{
|
||||
List<DmsBaseStationProject> list = dmsBaseStationProjectService.selectDmsBaseStationProjectList(dmsBaseStationProject);
|
||||
ExcelUtil<DmsBaseStationProject> util = new ExcelUtil<DmsBaseStationProject>(DmsBaseStationProject.class);
|
||||
util.exportExcel(response, list, "保养部位关联项目信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取保养部位关联项目信息详细信息
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:query")*/
|
||||
@GetMapping(value = "/{maintStationId}")
|
||||
public AjaxResult getInfo(@PathVariable("maintStationId") Long maintStationId)
|
||||
{
|
||||
return success(dmsBaseStationProjectService.selectDmsBaseStationProjectByMaintStationId(maintStationId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养部位关联项目信息
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:add")*/
|
||||
@Log(title = "保养部位关联项目信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DmsBaseStationProject dmsBaseStationProject)
|
||||
{
|
||||
return toAjax(dmsBaseStationProjectService.insertDmsBaseStationProject(dmsBaseStationProject));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养部位关联项目信息
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:edit")*/
|
||||
@Log(title = "保养部位关联项目信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DmsBaseStationProject dmsBaseStationProject)
|
||||
{
|
||||
return toAjax(dmsBaseStationProjectService.updateDmsBaseStationProject(dmsBaseStationProject));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养部位关联项目信息
|
||||
*/
|
||||
/* @RequiresPermissions("dms:baseStationProject:remove")*/
|
||||
@Log(title = "保养部位关联项目信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{maintStationIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] maintStationIds)
|
||||
{
|
||||
return toAjax(dmsBaseStationProjectService.deleteDmsBaseStationProjectByMaintStationIds(maintStationIds));
|
||||
}
|
||||
|
||||
/* @GetMapping("/treeselect")
|
||||
public AjaxResult stationProjectTreeselect(DmsBaseStationProject dmsBaseStationProject)
|
||||
{
|
||||
List<DmsBaseStationProject> dmsBaseStationProjects = dmsBaseStationProjectService.selectDmsBaseStationProjectList(dmsBaseStationProject);
|
||||
return success(dmsBaseStationProjects);
|
||||
}*/
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.hw.dms.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.hw.common.core.annotation.Excel;
|
||||
import com.hw.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 保养项目信息对象 dms_base_maint_project
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public class DmsBaseMaintProject extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键标识 */
|
||||
private Long maintProjectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String maintProjectName;
|
||||
|
||||
/** 项目描述 */
|
||||
@Excel(name = "项目描述")
|
||||
private String maintProjectDesc;
|
||||
|
||||
private Long maintStationId;
|
||||
|
||||
public Long getMaintStationId() {
|
||||
return maintStationId;
|
||||
}
|
||||
|
||||
public void setMaintStationId(Long maintStationId) {
|
||||
this.maintStationId = maintStationId;
|
||||
}
|
||||
|
||||
public void setMaintProjectId(Long maintProjectId)
|
||||
{
|
||||
this.maintProjectId = maintProjectId;
|
||||
}
|
||||
|
||||
public Long getMaintProjectId()
|
||||
{
|
||||
return maintProjectId;
|
||||
}
|
||||
public void setMaintProjectName(String maintProjectName)
|
||||
{
|
||||
this.maintProjectName = maintProjectName;
|
||||
}
|
||||
|
||||
public String getMaintProjectName()
|
||||
{
|
||||
return maintProjectName;
|
||||
}
|
||||
public void setMaintProjectDesc(String maintProjectDesc)
|
||||
{
|
||||
this.maintProjectDesc = maintProjectDesc;
|
||||
}
|
||||
|
||||
public String getMaintProjectDesc()
|
||||
{
|
||||
return maintProjectDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("maintProjectId", getMaintProjectId())
|
||||
.append("maintProjectName", getMaintProjectName())
|
||||
.append("maintProjectDesc", getMaintProjectDesc())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("maintStationId", getMaintStationId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.hw.dms.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.hw.common.core.annotation.Excel;
|
||||
import com.hw.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 保养部位关联项目信息对象 dms_base_station_project
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public class DmsBaseStationProject extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 保养部位ID */
|
||||
@Excel(name = "保养部位ID")
|
||||
private Long maintStationId;
|
||||
|
||||
/** 保养项目ID */
|
||||
@Excel(name = "保养项目ID")
|
||||
private Long maintProjectId;
|
||||
|
||||
private String maintProjectName;
|
||||
private String maintStationCode;
|
||||
private String maintStationName;
|
||||
|
||||
|
||||
/** 保养项目编号 */
|
||||
private Long[] productIds;
|
||||
|
||||
public Long[] getProductIds() {
|
||||
return productIds;
|
||||
}
|
||||
|
||||
public void setProductIds(Long[] productIds) {
|
||||
this.productIds = productIds;
|
||||
}
|
||||
|
||||
|
||||
public String getMaintProjectName() {
|
||||
return maintProjectName;
|
||||
}
|
||||
|
||||
public void setMaintProjectName(String maintProjectName) {
|
||||
this.maintProjectName = maintProjectName;
|
||||
}
|
||||
|
||||
public String getMaintStationCode() {
|
||||
return maintStationCode;
|
||||
}
|
||||
|
||||
public void setMaintStationCode(String maintStationCode) {
|
||||
this.maintStationCode = maintStationCode;
|
||||
}
|
||||
|
||||
public String getMaintStationName() {
|
||||
return maintStationName;
|
||||
}
|
||||
|
||||
public void setMaintStationName(String maintStationName) {
|
||||
this.maintStationName = maintStationName;
|
||||
}
|
||||
|
||||
public void setMaintStationId(Long maintStationId)
|
||||
{
|
||||
this.maintStationId = maintStationId;
|
||||
}
|
||||
|
||||
public Long getMaintStationId()
|
||||
{
|
||||
return maintStationId;
|
||||
}
|
||||
public void setMaintProjectId(Long maintProjectId)
|
||||
{
|
||||
this.maintProjectId = maintProjectId;
|
||||
}
|
||||
|
||||
public Long getMaintProjectId()
|
||||
{
|
||||
return maintProjectId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("maintStationId", getMaintStationId())
|
||||
.append("maintProjectId", getMaintProjectId())
|
||||
|
||||
.append("maintProjectName",getMaintProjectName())
|
||||
.append("maintStationCode",getMaintStationName())
|
||||
.append("maintStationName",getMaintStationName())
|
||||
.append("productIds",getProductIds())
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.hw.dms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBaseMaintProject;
|
||||
|
||||
/**
|
||||
* 保养项目信息Mapper接口
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public interface DmsBaseMaintProjectMapper
|
||||
{
|
||||
/**
|
||||
* 查询保养项目信息
|
||||
*
|
||||
* @param maintProjectId 保养项目信息主键
|
||||
* @return 保养项目信息
|
||||
*/
|
||||
public DmsBaseMaintProject selectDmsBaseMaintProjectByMaintProjectId(Long maintProjectId);
|
||||
|
||||
/**
|
||||
* 查询保养项目信息列表
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 保养项目信息集合
|
||||
*/
|
||||
public List<DmsBaseMaintProject> selectDmsBaseMaintProjectList(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 新增保养项目信息
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBaseMaintProject(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 修改保养项目信息
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBaseMaintProject(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 删除保养项目信息
|
||||
*
|
||||
* @param maintProjectId 保养项目信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseMaintProjectByMaintProjectId(Long maintProjectId);
|
||||
|
||||
/**
|
||||
* 批量删除保养项目信息
|
||||
*
|
||||
* @param maintProjectIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseMaintProjectByMaintProjectIds(Long[] maintProjectIds);
|
||||
|
||||
public List<DmsBaseMaintProject> selectProjectMenuByStationId(Long maintStationId);
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.hw.dms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBaseStationProject;
|
||||
|
||||
/**
|
||||
* 保养部位关联项目信息Mapper接口
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public interface DmsBaseStationProjectMapper
|
||||
{
|
||||
/**
|
||||
* 查询保养部位关联项目信息
|
||||
*
|
||||
* @param maintStationId 保养部位关联项目信息主键
|
||||
* @return 保养部位关联项目信息
|
||||
*/
|
||||
public DmsBaseStationProject selectDmsBaseStationProjectByMaintStationId(Long maintStationId);
|
||||
|
||||
/**
|
||||
* 查询保养部位关联项目信息列表
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 保养部位关联项目信息集合
|
||||
*/
|
||||
public List<DmsBaseStationProject> selectDmsBaseStationProjectList(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 新增保养部位关联项目信息
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBaseStationProject(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 修改保养部位关联项目信息
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBaseStationProject(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 删除保养部位关联项目信息
|
||||
*
|
||||
* @param maintStationId 保养部位关联项目信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseStationProjectByMaintStationId(Long maintStationId);
|
||||
|
||||
/**
|
||||
* 批量删除保养部位关联项目信息
|
||||
*
|
||||
* @param maintStationIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseStationProjectByMaintStationIds(Long[] maintStationIds);
|
||||
|
||||
public int batchUpdateDmsBaseStationProject(List<DmsBaseStationProject> dmsBaseStationProjectList);
|
||||
public int batchInsertDmsBaseStationProject(List<DmsBaseStationProject> dmsBaseStationProjectList);
|
||||
|
||||
public DmsBaseStationProject selectDmsBaseStationProjectBymaintProjectId(Long maintProjectId);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.hw.dms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBaseMaintProject;
|
||||
|
||||
/**
|
||||
* 保养项目信息Service接口
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public interface IDmsBaseMaintProjectService
|
||||
{
|
||||
/**
|
||||
* 查询保养项目信息
|
||||
*
|
||||
* @param maintProjectId 保养项目信息主键
|
||||
* @return 保养项目信息
|
||||
*/
|
||||
public DmsBaseMaintProject selectDmsBaseMaintProjectByMaintProjectId(Long maintProjectId);
|
||||
|
||||
/**
|
||||
* 查询保养项目信息列表
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 保养项目信息集合
|
||||
*/
|
||||
public List<DmsBaseMaintProject> selectDmsBaseMaintProjectList(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 新增保养项目信息
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBaseMaintProject(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 修改保养项目信息
|
||||
*
|
||||
* @param dmsBaseMaintProject 保养项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBaseMaintProject(DmsBaseMaintProject dmsBaseMaintProject);
|
||||
|
||||
/**
|
||||
* 批量删除保养项目信息
|
||||
*
|
||||
* @param maintProjectIds 需要删除的保养项目信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseMaintProjectByMaintProjectIds(Long[] maintProjectIds);
|
||||
|
||||
/**
|
||||
* 删除保养项目信息信息
|
||||
*
|
||||
* @param maintProjectId 保养项目信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseMaintProjectByMaintProjectId(Long maintProjectId);
|
||||
|
||||
public List<DmsBaseMaintProject> selectProjectMenuByStationId(Long maintStationId);
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.hw.dms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBaseStationProject;
|
||||
|
||||
/**
|
||||
* 保养部位关联项目信息Service接口
|
||||
*
|
||||
* @author zangch
|
||||
* @date 2024-09-23
|
||||
*/
|
||||
public interface IDmsBaseStationProjectService
|
||||
{
|
||||
/**
|
||||
* 查询保养部位关联项目信息
|
||||
*
|
||||
* @param maintStationId 保养部位关联项目信息主键
|
||||
* @return 保养部位关联项目信息
|
||||
*/
|
||||
public DmsBaseStationProject selectDmsBaseStationProjectByMaintStationId(Long maintStationId);
|
||||
|
||||
/**
|
||||
* 查询保养部位关联项目信息列表
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 保养部位关联项目信息集合
|
||||
*/
|
||||
public List<DmsBaseStationProject> selectDmsBaseStationProjectList(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 新增保养部位关联项目信息
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBaseStationProject(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 修改保养部位关联项目信息
|
||||
*
|
||||
* @param dmsBaseStationProject 保养部位关联项目信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBaseStationProject(DmsBaseStationProject dmsBaseStationProject);
|
||||
|
||||
/**
|
||||
* 批量删除保养部位关联项目信息
|
||||
*
|
||||
* @param maintStationIds 需要删除的保养部位关联项目信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseStationProjectByMaintStationIds(Long[] maintStationIds);
|
||||
|
||||
/**
|
||||
* 删除保养部位关联项目信息信息
|
||||
*
|
||||
* @param maintStationId 保养部位关联项目信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBaseStationProjectByMaintStationIds(Long maintStationId);
|
||||
|
||||
|
||||
public int batchUpdateDmsBaseStationProject(List<DmsBaseStationProject> dmsBaseStationProjectList);
|
||||
public int batchInsertDmsBaseStationProject(List<DmsBaseStationProject> dmsBaseStationProjectList);
|
||||
|
||||
public DmsBaseStationProject selectDmsBaseStationProjectBymaintProjectId(Long maintProjectId);
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
<?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.hw.dms.mapper.DmsBaseStationProjectMapper">
|
||||
|
||||
<resultMap type="DmsBaseStationProject" id="DmsBaseStationProjectResult">
|
||||
<result property="maintStationId" column="maint_station_id" />
|
||||
<result property="maintProjectId" column="maint_project_id" />
|
||||
<result property="maintProjectName" column="maint_project_name" />
|
||||
<result property="maintStationName" column="maint_station_name" />
|
||||
<result property="maintStationCode" column="maint_station_code" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsBaseStationProjectVo">
|
||||
select dbsp.maint_station_id,
|
||||
dbsp.maint_project_id,
|
||||
dbmp.maint_project_name,
|
||||
dbms.maint_station_name,
|
||||
dbms.maint_station_code
|
||||
from dms_base_station_project dbsp
|
||||
left join dms_base_maint_project dbmp on dbsp.maint_project_id = dbmp.maint_project_id
|
||||
left join dms_base_maint_station dbms on dbsp.maint_station_id = dbms.maint_station_id
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsBaseStationProjectList" parameterType="DmsBaseStationProject" resultMap="DmsBaseStationProjectResult">
|
||||
<include refid="selectDmsBaseStationProjectVo"/>
|
||||
<where>
|
||||
<if test="maintStationId != null "> and dbsp.maint_station_id = #{maintStationId}</if>
|
||||
<if test="maintProjectId != null "> and dbsp.maint_project_id = #{maintProjectId}</if>
|
||||
<if test="maintProjectName != null and maintProjectName != ''"> and dbmp.maint_project_name like concat('%', #{maintProjectName}, '%')</if>
|
||||
<if test="maintStationName != null and maintStationName != ''"> and dbms.maint_station_name like concat('%', #{maintStationName}, '%')</if>
|
||||
<if test="maintStationCode != null and maintStationCode != ''"> and dbms.maint_station_code like concat('%', #{maintStationCode}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsBaseStationProjectByMaintStationId" parameterType="Long" resultMap="DmsBaseStationProjectResult">
|
||||
<include refid="selectDmsBaseStationProjectVo"/>
|
||||
where dbsp.maint_station_id = #{maintStationId}
|
||||
</select>
|
||||
|
||||
<select id="selectDmsBaseStationProjectBymaintProjectId" parameterType="Long" resultMap="DmsBaseStationProjectResult">
|
||||
<include refid="selectDmsBaseStationProjectVo"/>
|
||||
where dbsp.maint_project_id = #{maintProjectId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertDmsBaseStationProject" parameterType="DmsBaseStationProject">
|
||||
insert into dms_base_station_project
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="maintStationId != null">maint_station_id,</if>
|
||||
<if test="maintProjectId != null">maint_project_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="maintStationId != null">#{maintStationId},</if>
|
||||
<if test="maintProjectId != null">#{maintProjectId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsBaseStationProject" parameterType="DmsBaseStationProject">
|
||||
update dms_base_station_project
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="maintProjectId != null">maint_project_id = #{maintProjectId},</if>
|
||||
<if test="maintProjectName != null and maintProjectName != ''">maint_project_name = #{maintProjectName},</if>
|
||||
</trim>
|
||||
where maint_station_id = #{maintStationId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsBaseStationProjectByMaintStationId" parameterType="Long">
|
||||
delete from dms_base_station_project where maint_station_id = #{maintStationId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsBaseStationProjectByMaintStationIds" parameterType="String">
|
||||
delete from dms_base_station_project where maint_station_id in
|
||||
<foreach item="maintStationId" collection="array" open="(" separator="," close=")">
|
||||
#{maintStationId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
|
||||
<update id="batchUpdateDmsBaseStationProject" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
||||
update dms_base_station_project
|
||||
<set>
|
||||
maint_project_id = #{item.maintProjectId}
|
||||
</set>
|
||||
where maint_station_id = #{item.maintStationId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<insert id="batchInsertDmsBaseStationProject" parameterType="java.util.List">
|
||||
insert into dms_base_station_project(maint_station_id,maint_project_id)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
||||
(#{item.maintStationId},#{item.maintProjectId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询保养部位关联项目信息列表
|
||||
export function listBaseStationProject(query) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询保养部位关联项目信息详细
|
||||
export function getBaseStationProject(maintStationId) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject/' + maintStationId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保养部位关联项目信息
|
||||
export function addBaseStationProject(data) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保养部位关联项目信息
|
||||
export function updateBaseStationProject(data) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除保养部位关联项目信息
|
||||
export function delBaseStationProject(maintStationId) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject/' + maintStationId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/*// 查询菜单下拉树结构
|
||||
export function stationProjectTreeselect(query) {
|
||||
return request({
|
||||
url: '/dms/baseStationProject/treeselect',
|
||||
method: 'get'
|
||||
})
|
||||
}*/
|
@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询保养项目信息列表
|
||||
export function listDmsBaseMaintProject(query) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询保养项目信息详细
|
||||
export function getDmsBaseMaintProject(maintProjectId) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject/' + maintProjectId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保养项目信息
|
||||
export function addDmsBaseMaintProject(data) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保养项目信息
|
||||
export function updateDmsBaseMaintProject(data) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 删除保养项目信息
|
||||
export function delDmsBaseMaintProject(maintProjectId) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject/' + maintProjectId,
|
||||
method: 'delete'
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 查询菜单
|
||||
export function projectMenu(query) {
|
||||
return request({
|
||||
url: '/dms/dmsBaseMaintProject/projectMenu',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据部位ID查询菜单结构
|
||||
export function projectMenuByStaion(maintStationId) {
|
||||
return request({
|
||||
url:'/dms/dmsBaseMaintProject/projectMenuByStaion/'+ maintStationId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
@ -0,0 +1,278 @@
|
||||
<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="maintProjectName">
|
||||
<el-input
|
||||
v-model="queryParams.maintProjectName"
|
||||
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="['dms:dmsBaseMaintProject:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['dms:dmsBaseMaintProject:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['dms:dmsBaseMaintProject:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['dms:dmsBaseMaintProject:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="dmsBaseMaintProjectList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="maintProjectId" />
|
||||
<el-table-column label="项目名称" align="center" prop="maintProjectName" />
|
||||
<el-table-column label="项目描述" align="center" prop="maintProjectDesc" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['dms:dmsBaseMaintProject:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['dms:dmsBaseMaintProject: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 :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="maintProjectName">
|
||||
<el-input v-model="form.maintProjectName" placeholder="请输入项目名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="项目描述" prop="maintProjectDesc">
|
||||
<el-input v-model="form.maintProjectDesc" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listDmsBaseMaintProject, getDmsBaseMaintProject, delDmsBaseMaintProject, addDmsBaseMaintProject, updateDmsBaseMaintProject } from "@/api/dms/dmsBaseMaintProject";
|
||||
|
||||
export default {
|
||||
name: "DmsBaseMaintProject",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 保养项目信息表格数据
|
||||
dmsBaseMaintProjectList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 备注时间范围
|
||||
daterangeCreateTime: [],
|
||||
// 备注时间范围
|
||||
daterangeUpdateTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
maintProjectName: null,
|
||||
maintProjectDesc: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
maintProjectName: [
|
||||
{ required: true, message: "项目名称不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询保养项目信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
|
||||
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
|
||||
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
|
||||
}
|
||||
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
|
||||
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
|
||||
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
|
||||
}
|
||||
listDmsBaseMaintProject(this.queryParams).then(response => {
|
||||
this.dmsBaseMaintProjectList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
maintProjectId: null,
|
||||
maintProjectName: null,
|
||||
maintProjectDesc: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeCreateTime = [];
|
||||
this.daterangeUpdateTime = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.maintProjectId)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加保养项目信息";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const maintProjectId = row.maintProjectId || this.ids
|
||||
getDmsBaseMaintProject(maintProjectId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改保养项目信息";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.maintProjectId != null) {
|
||||
updateDmsBaseMaintProject(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addDmsBaseMaintProject(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const maintProjectIds = row.maintProjectId || this.ids;
|
||||
this.$modal.confirm('是否确认删除保养项目信息编号为"' + maintProjectIds + '"的数据项?').then(function() {
|
||||
return delDmsBaseMaintProject(maintProjectIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('dms/dmsBaseMaintProject/export', {
|
||||
...this.queryParams
|
||||
}, `dmsBaseMaintProject_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue