Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.collectionParamConf.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | 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.jcdm.common.annotation.Log; |
| | | import com.jcdm.common.core.controller.BaseController; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.enums.BusinessType; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ééåæ°é
ç½®Controller |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-25 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/da/collectionParamConf") |
| | | public class DaCollectionParamConfController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDaCollectionParamConfService daCollectionParamConfService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | startPage(); |
| | | List<DaCollectionParamConf> list = daCollectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºééåæ°é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:export')") |
| | | @Log(title = "ééåæ°é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | List<DaCollectionParamConf> list = daCollectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | ExcelUtil<DaCollectionParamConf> util = new ExcelUtil<DaCollectionParamConf>(DaCollectionParamConf.class); |
| | | util.exportExcel(response, list, "ééåæ°é
ç½®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åééåæ°é
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(daCollectionParamConfService.selectDaCollectionParamConfById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ééåæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:add')") |
| | | @Log(title = "ééåæ°é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | return toAjax(daCollectionParamConfService.insertDaCollectionParamConf(daCollectionParamConf)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ééåæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:edit')") |
| | | @Log(title = "ééåæ°é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | return toAjax(daCollectionParamConfService.updateDaCollectionParamConf(daCollectionParamConf)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ééåæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:collectionParamConf:remove')") |
| | | @Log(title = "ééåæ°é
ç½®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(daCollectionParamConfService.deleteDaCollectionParamConfByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.collectionParamConf.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.jcdm.common.annotation.Excel; |
| | | import com.jcdm.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ééåæ°é
置对象 da_collection_param_conf |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-25 |
| | | */ |
| | | public class DaCollectionParamConf extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** å·¥åºç¼å· */ |
| | | @Excel(name = "å·¥åºç¼å·") |
| | | private String processesCode; |
| | | |
| | | /** åæ°éç¼ç */ |
| | | @Excel(name = "åæ°éç¼ç ") |
| | | private String parameterSetCode; |
| | | |
| | | /** åæ°éå称 */ |
| | | @Excel(name = "åæ°éå称") |
| | | private String parameterSetName; |
| | | |
| | | /** ééåæ°ID */ |
| | | @Excel(name = "ééåæ°ID") |
| | | private String collectParameterId; |
| | | |
| | | /** ééåæ°å称 */ |
| | | @Excel(name = "ééåæ°å称") |
| | | private String collectParameterName; |
| | | |
| | | /** æ¯å¦ä½ä¸ºå¯¹æ¯åæ° */ |
| | | @Excel(name = "æ¯å¦ä½ä¸ºå¯¹æ¯åæ°") |
| | | private String contrastParameterFlag; |
| | | |
| | | /** ééåæ°ç±»å */ |
| | | @Excel(name = "ééåæ°ç±»å") |
| | | private String collectParameterType; |
| | | |
| | | /** ééåæ°åä½ */ |
| | | @Excel(name = "ééåæ°åä½") |
| | | private String collectParameterUnit; |
| | | |
| | | /** æ°æ®æè¿° */ |
| | | @Excel(name = "æ°æ®æè¿°") |
| | | private String Descriptives; |
| | | |
| | | /** ä¸éå¼ */ |
| | | @Excel(name = "ä¸éå¼") |
| | | private String paramUpper; |
| | | |
| | | /** ä¸éå¼ */ |
| | | @Excel(name = "ä¸éå¼") |
| | | private String paramLower; |
| | | |
| | | /** ä¸å¿å¼ */ |
| | | @Excel(name = "ä¸å¿å¼") |
| | | private String paramCentral; |
| | | |
| | | /** 产åç¼ç */ |
| | | @Excel(name = "产åç¼ç ") |
| | | private String productCode; |
| | | |
| | | /** ééå°å */ |
| | | @Excel(name = "ééå°å") |
| | | private String gatherAddress; |
| | | |
| | | /** ééé¡ºåº */ |
| | | @Excel(name = "éé顺åº") |
| | | private String gatherSequence; |
| | | |
| | | /** å¤æ³¨ */ |
| | | @Excel(name = "å¤æ³¨") |
| | | private String remarks; |
| | | |
| | | /** å建ç¨æ· */ |
| | | @Excel(name = "å建ç¨æ·") |
| | | private String createUser; |
| | | |
| | | /** æ´æ¹ç¨æ· */ |
| | | @Excel(name = "æ´æ¹ç¨æ·") |
| | | private String updateUser; |
| | | |
| | | /** é¢çå段1 */ |
| | | private String spareField1; |
| | | |
| | | /** é¢çå段2 */ |
| | | private String spareField2; |
| | | |
| | | /** é¢çå段3 */ |
| | | private String spareField3; |
| | | |
| | | /** é¢çå段4 */ |
| | | private String spareField4; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setProcessesCode(String processesCode) |
| | | { |
| | | this.processesCode = processesCode; |
| | | } |
| | | |
| | | public String getProcessesCode() |
| | | { |
| | | return processesCode; |
| | | } |
| | | public void setParameterSetCode(String parameterSetCode) |
| | | { |
| | | this.parameterSetCode = parameterSetCode; |
| | | } |
| | | |
| | | public String getParameterSetCode() |
| | | { |
| | | return parameterSetCode; |
| | | } |
| | | public void setParameterSetName(String parameterSetName) |
| | | { |
| | | this.parameterSetName = parameterSetName; |
| | | } |
| | | |
| | | public String getParameterSetName() |
| | | { |
| | | return parameterSetName; |
| | | } |
| | | public void setCollectParameterId(String collectParameterId) |
| | | { |
| | | this.collectParameterId = collectParameterId; |
| | | } |
| | | |
| | | public String getCollectParameterId() |
| | | { |
| | | return collectParameterId; |
| | | } |
| | | public void setCollectParameterName(String collectParameterName) |
| | | { |
| | | this.collectParameterName = collectParameterName; |
| | | } |
| | | |
| | | public String getCollectParameterName() |
| | | { |
| | | return collectParameterName; |
| | | } |
| | | public void setContrastParameterFlag(String contrastParameterFlag) |
| | | { |
| | | this.contrastParameterFlag = contrastParameterFlag; |
| | | } |
| | | |
| | | public String getContrastParameterFlag() |
| | | { |
| | | return contrastParameterFlag; |
| | | } |
| | | public void setCollectParameterType(String collectParameterType) |
| | | { |
| | | this.collectParameterType = collectParameterType; |
| | | } |
| | | |
| | | public String getCollectParameterType() |
| | | { |
| | | return collectParameterType; |
| | | } |
| | | public void setCollectParameterUnit(String collectParameterUnit) |
| | | { |
| | | this.collectParameterUnit = collectParameterUnit; |
| | | } |
| | | |
| | | public String getCollectParameterUnit() |
| | | { |
| | | return collectParameterUnit; |
| | | } |
| | | public void setDescriptives(String Descriptives) |
| | | { |
| | | this.Descriptives = Descriptives; |
| | | } |
| | | |
| | | public String getDescriptives() |
| | | { |
| | | return Descriptives; |
| | | } |
| | | public void setParamUpper(String paramUpper) |
| | | { |
| | | this.paramUpper = paramUpper; |
| | | } |
| | | |
| | | public String getParamUpper() |
| | | { |
| | | return paramUpper; |
| | | } |
| | | public void setParamLower(String paramLower) |
| | | { |
| | | this.paramLower = paramLower; |
| | | } |
| | | |
| | | public String getParamLower() |
| | | { |
| | | return paramLower; |
| | | } |
| | | public void setParamCentral(String paramCentral) |
| | | { |
| | | this.paramCentral = paramCentral; |
| | | } |
| | | |
| | | public String getParamCentral() |
| | | { |
| | | return paramCentral; |
| | | } |
| | | public void setProductCode(String productCode) |
| | | { |
| | | this.productCode = productCode; |
| | | } |
| | | |
| | | public String getProductCode() |
| | | { |
| | | return productCode; |
| | | } |
| | | public void setGatherAddress(String gatherAddress) |
| | | { |
| | | this.gatherAddress = gatherAddress; |
| | | } |
| | | |
| | | public String getGatherAddress() |
| | | { |
| | | return gatherAddress; |
| | | } |
| | | public void setGatherSequence(String gatherSequence) |
| | | { |
| | | this.gatherSequence = gatherSequence; |
| | | } |
| | | |
| | | public String getGatherSequence() |
| | | { |
| | | return gatherSequence; |
| | | } |
| | | public void setRemarks(String remarks) |
| | | { |
| | | this.remarks = remarks; |
| | | } |
| | | |
| | | public String getRemarks() |
| | | { |
| | | return remarks; |
| | | } |
| | | public void setCreateUser(String createUser) |
| | | { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public String getCreateUser() |
| | | { |
| | | return createUser; |
| | | } |
| | | public void setUpdateUser(String updateUser) |
| | | { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public String getUpdateUser() |
| | | { |
| | | return updateUser; |
| | | } |
| | | public void setSpareField1(String spareField1) |
| | | { |
| | | this.spareField1 = spareField1; |
| | | } |
| | | |
| | | public String getSpareField1() |
| | | { |
| | | return spareField1; |
| | | } |
| | | public void setSpareField2(String spareField2) |
| | | { |
| | | this.spareField2 = spareField2; |
| | | } |
| | | |
| | | public String getSpareField2() |
| | | { |
| | | return spareField2; |
| | | } |
| | | public void setSpareField3(String spareField3) |
| | | { |
| | | this.spareField3 = spareField3; |
| | | } |
| | | |
| | | public String getSpareField3() |
| | | { |
| | | return spareField3; |
| | | } |
| | | public void setSpareField4(String spareField4) |
| | | { |
| | | this.spareField4 = spareField4; |
| | | } |
| | | |
| | | public String getSpareField4() |
| | | { |
| | | return spareField4; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("processesCode", getProcessesCode()) |
| | | .append("parameterSetCode", getParameterSetCode()) |
| | | .append("parameterSetName", getParameterSetName()) |
| | | .append("collectParameterId", getCollectParameterId()) |
| | | .append("collectParameterName", getCollectParameterName()) |
| | | .append("contrastParameterFlag", getContrastParameterFlag()) |
| | | .append("collectParameterType", getCollectParameterType()) |
| | | .append("collectParameterUnit", getCollectParameterUnit()) |
| | | .append("Descriptives", getDescriptives()) |
| | | .append("paramUpper", getParamUpper()) |
| | | .append("paramLower", getParamLower()) |
| | | .append("paramCentral", getParamCentral()) |
| | | .append("productCode", getProductCode()) |
| | | .append("gatherAddress", getGatherAddress()) |
| | | .append("gatherSequence", getGatherSequence()) |
| | | .append("remarks", getRemarks()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("spareField1", getSpareField1()) |
| | | .append("spareField2", getSpareField2()) |
| | | .append("spareField3", getSpareField3()) |
| | | .append("spareField4", getSpareField4()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.collectionParamConf.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | |
| | | /** |
| | | * ééåæ°é
ç½®Mapperæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-25 |
| | | */ |
| | | public interface DaCollectionParamConfMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½® |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ééåæ°é
ç½® |
| | | */ |
| | | public DaCollectionParamConf selectDaCollectionParamConfById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½®å表 |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ééåæ°é
ç½®éå |
| | | */ |
| | | public List<DaCollectionParamConf> selectDaCollectionParamConfList(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * æ°å¢ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * ä¿®æ¹ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * å é¤ééåæ°é
ç½® |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCollectionParamConfById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ééåæ°é
ç½® |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCollectionParamConfByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.collectionParamConf.service; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | |
| | | /** |
| | | * ééåæ°é
ç½®Serviceæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-25 |
| | | */ |
| | | public interface IDaCollectionParamConfService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½® |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ééåæ°é
ç½® |
| | | */ |
| | | public DaCollectionParamConf selectDaCollectionParamConfById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½®å表 |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ééåæ°é
ç½®éå |
| | | */ |
| | | public List<DaCollectionParamConf> selectDaCollectionParamConfList(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * æ°å¢ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * ä¿®æ¹ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf); |
| | | |
| | | /** |
| | | * æ¹éå é¤ééåæ°é
ç½® |
| | | * |
| | | * @param ids éè¦å é¤çééåæ°é
置主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCollectionParamConfByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ééåæ°é
ç½®ä¿¡æ¯ |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCollectionParamConfById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.collectionParamConf.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.jcdm.main.da.collectionParamConf.mapper.DaCollectionParamConfMapper; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; |
| | | |
| | | /** |
| | | * ééåæ°é
ç½®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Service |
| | | public class DaCollectionParamConfServiceImpl implements IDaCollectionParamConfService |
| | | { |
| | | @Autowired |
| | | private DaCollectionParamConfMapper daCollectionParamConfMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½® |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ééåæ°é
ç½® |
| | | */ |
| | | @Override |
| | | public DaCollectionParamConf selectDaCollectionParamConfById(Long id) |
| | | { |
| | | return daCollectionParamConfMapper.selectDaCollectionParamConfById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ééåæ°é
ç½®å表 |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ééåæ°é
ç½® |
| | | */ |
| | | @Override |
| | | public List<DaCollectionParamConf> selectDaCollectionParamConfList(DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | return daCollectionParamConfMapper.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | daCollectionParamConf.setCreateTime(DateUtils.getNowDate()); |
| | | return daCollectionParamConfMapper.insertDaCollectionParamConf(daCollectionParamConf); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ééåæ°é
ç½® |
| | | * |
| | | * @param daCollectionParamConf ééåæ°é
ç½® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf) |
| | | { |
| | | daCollectionParamConf.setUpdateTime(DateUtils.getNowDate()); |
| | | return daCollectionParamConfMapper.updateDaCollectionParamConf(daCollectionParamConf); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ééåæ°é
ç½® |
| | | * |
| | | * @param ids éè¦å é¤çééåæ°é
ç½®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaCollectionParamConfByIds(Long[] ids) |
| | | { |
| | | return daCollectionParamConfMapper.deleteDaCollectionParamConfByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ééåæ°é
ç½®ä¿¡æ¯ |
| | | * |
| | | * @param id ééåæ°é
ç½®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaCollectionParamConfById(Long id) |
| | | { |
| | | return daCollectionParamConfMapper.deleteDaCollectionParamConfById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.jcdm.main.da.collectionParamConf.mapper.DaCollectionParamConfMapper"> |
| | | |
| | | <resultMap type="DaCollectionParamConf" id="DaCollectionParamConfResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="processesCode" column="processes_code" /> |
| | | <result property="parameterSetCode" column="parameter_set_code" /> |
| | | <result property="parameterSetName" column="parameter_set_name" /> |
| | | <result property="collectParameterId" column="collect_parameter_id" /> |
| | | <result property="collectParameterName" column="collect_parameter_name" /> |
| | | <result property="contrastParameterFlag" column="contrast_parameter_flag" /> |
| | | <result property="collectParameterType" column="collect_parameter_type" /> |
| | | <result property="collectParameterUnit" column="collect_parameter_unit" /> |
| | | <result property="Descriptives" column="Descriptives" /> |
| | | <result property="paramUpper" column="param_upper" /> |
| | | <result property="paramLower" column="param_lower" /> |
| | | <result property="paramCentral" column="param_Central" /> |
| | | <result property="productCode" column="product_code" /> |
| | | <result property="gatherAddress" column="gather_address" /> |
| | | <result property="gatherSequence" column="gather_sequence" /> |
| | | <result property="remarks" column="remarks" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="spareField1" column="spare_field_1" /> |
| | | <result property="spareField2" column="spare_field_2" /> |
| | | <result property="spareField3" column="spare_field_3" /> |
| | | <result property="spareField4" column="spare_field_4" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaCollectionParamConfVo"> |
| | | select id, processes_code, parameter_set_code, parameter_set_name, collect_parameter_id, collect_parameter_name, contrast_parameter_flag, collect_parameter_type, collect_parameter_unit, Descriptives, param_upper, param_lower, param_Central, product_code, gather_address, gather_sequence, remarks, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from da_collection_param_conf |
| | | </sql> |
| | | |
| | | <select id="selectDaCollectionParamConfList" parameterType="DaCollectionParamConf" resultMap="DaCollectionParamConfResult"> |
| | | <include refid="selectDaCollectionParamConfVo"/> |
| | | <where> |
| | | <if test="processesCode != null and processesCode != ''"> and processes_code like concat('%', #{processesCode}, '%')</if> |
| | | <if test="parameterSetCode != null and parameterSetCode != ''"> and parameter_set_code like concat('%', #{parameterSetCode}, '%')</if> |
| | | <if test="parameterSetName != null and parameterSetName != ''"> and parameter_set_name like concat('%', #{parameterSetName}, '%')</if> |
| | | <if test="collectParameterId != null and collectParameterId != ''"> and collect_parameter_id like concat('%', #{collectParameterId}, '%')</if> |
| | | <if test="collectParameterName != null and collectParameterName != ''"> and collect_parameter_name like concat('%', #{collectParameterName}, '%')</if> |
| | | <if test="contrastParameterFlag != null and contrastParameterFlag != ''"> and contrast_parameter_flag like concat('%', #{contrastParameterFlag}, '%')</if> |
| | | <if test="collectParameterType != null and collectParameterType != ''"> and collect_parameter_type like concat('%', #{collectParameterType}, '%')</if> |
| | | <if test="productCode != null and productCode != ''"> and product_code like concat('%', #{productCode}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDaCollectionParamConfById" parameterType="Long" resultMap="DaCollectionParamConfResult"> |
| | | <include refid="selectDaCollectionParamConfVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
| | | insert into da_collection_param_conf |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="processesCode != null">processes_code,</if> |
| | | <if test="parameterSetCode != null">parameter_set_code,</if> |
| | | <if test="parameterSetName != null">parameter_set_name,</if> |
| | | <if test="collectParameterId != null">collect_parameter_id,</if> |
| | | <if test="collectParameterName != null">collect_parameter_name,</if> |
| | | <if test="contrastParameterFlag != null">contrast_parameter_flag,</if> |
| | | <if test="collectParameterType != null">collect_parameter_type,</if> |
| | | <if test="collectParameterUnit != null">collect_parameter_unit,</if> |
| | | <if test="Descriptives != null">Descriptives,</if> |
| | | <if test="paramUpper != null">param_upper,</if> |
| | | <if test="paramLower != null">param_lower,</if> |
| | | <if test="paramCentral != null">param_Central,</if> |
| | | <if test="productCode != null">product_code,</if> |
| | | <if test="gatherAddress != null">gather_address,</if> |
| | | <if test="gatherSequence != null">gather_sequence,</if> |
| | | <if test="remarks != null">remarks,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="spareField1 != null">spare_field_1,</if> |
| | | <if test="spareField2 != null">spare_field_2,</if> |
| | | <if test="spareField3 != null">spare_field_3,</if> |
| | | <if test="spareField4 != null">spare_field_4,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="processesCode != null">#{processesCode},</if> |
| | | <if test="parameterSetCode != null">#{parameterSetCode},</if> |
| | | <if test="parameterSetName != null">#{parameterSetName},</if> |
| | | <if test="collectParameterId != null">#{collectParameterId},</if> |
| | | <if test="collectParameterName != null">#{collectParameterName},</if> |
| | | <if test="contrastParameterFlag != null">#{contrastParameterFlag},</if> |
| | | <if test="collectParameterType != null">#{collectParameterType},</if> |
| | | <if test="collectParameterUnit != null">#{collectParameterUnit},</if> |
| | | <if test="Descriptives != null">#{Descriptives},</if> |
| | | <if test="paramUpper != null">#{paramUpper},</if> |
| | | <if test="paramLower != null">#{paramLower},</if> |
| | | <if test="paramCentral != null">#{paramCentral},</if> |
| | | <if test="productCode != null">#{productCode},</if> |
| | | <if test="gatherAddress != null">#{gatherAddress},</if> |
| | | <if test="gatherSequence != null">#{gatherSequence},</if> |
| | | <if test="remarks != null">#{remarks},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="spareField1 != null">#{spareField1},</if> |
| | | <if test="spareField2 != null">#{spareField2},</if> |
| | | <if test="spareField3 != null">#{spareField3},</if> |
| | | <if test="spareField4 != null">#{spareField4},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
| | | update da_collection_param_conf |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="processesCode != null">processes_code = #{processesCode},</if> |
| | | <if test="parameterSetCode != null">parameter_set_code = #{parameterSetCode},</if> |
| | | <if test="parameterSetName != null">parameter_set_name = #{parameterSetName},</if> |
| | | <if test="collectParameterId != null">collect_parameter_id = #{collectParameterId},</if> |
| | | <if test="collectParameterName != null">collect_parameter_name = #{collectParameterName},</if> |
| | | <if test="contrastParameterFlag != null">contrast_parameter_flag = #{contrastParameterFlag},</if> |
| | | <if test="collectParameterType != null">collect_parameter_type = #{collectParameterType},</if> |
| | | <if test="collectParameterUnit != null">collect_parameter_unit = #{collectParameterUnit},</if> |
| | | <if test="Descriptives != null">Descriptives = #{Descriptives},</if> |
| | | <if test="paramUpper != null">param_upper = #{paramUpper},</if> |
| | | <if test="paramLower != null">param_lower = #{paramLower},</if> |
| | | <if test="paramCentral != null">param_Central = #{paramCentral},</if> |
| | | <if test="productCode != null">product_code = #{productCode},</if> |
| | | <if test="gatherAddress != null">gather_address = #{gatherAddress},</if> |
| | | <if test="gatherSequence != null">gather_sequence = #{gatherSequence},</if> |
| | | <if test="remarks != null">remarks = #{remarks},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="spareField1 != null">spare_field_1 = #{spareField1},</if> |
| | | <if test="spareField2 != null">spare_field_2 = #{spareField2},</if> |
| | | <if test="spareField3 != null">spare_field_3 = #{spareField3},</if> |
| | | <if test="spareField4 != null">spare_field_4 = #{spareField4},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDaCollectionParamConfById" parameterType="Long"> |
| | | delete from da_collection_param_conf where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDaCollectionParamConfByIds" parameterType="String"> |
| | | delete from da_collection_param_conf where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ééåæ°é
ç½®å表 |
| | | export function listCollectionParamConf(query) { |
| | | return request({ |
| | | url: '/da/collectionParamConf/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢ééåæ°é
ç½®è¯¦ç» |
| | | export function getCollectionParamConf(id) { |
| | | return request({ |
| | | url: '/da/collectionParamConf/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢ééåæ°é
ç½® |
| | | export function addCollectionParamConf(data) { |
| | | return request({ |
| | | url: '/da/collectionParamConf', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹ééåæ°é
ç½® |
| | | export function updateCollectionParamConf(data) { |
| | | return request({ |
| | | url: '/da/collectionParamConf', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤ééåæ°é
ç½® |
| | | export function delCollectionParamConf(id) { |
| | | return request({ |
| | | url: '/da/collectionParamConf/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="å·¥åºç¼å·" prop="processesCode"> |
| | | <el-input |
| | | v-model="queryParams.processesCode" |
| | | placeholder="请è¾å
¥å·¥åºç¼å·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="åæ°éç¼ç " prop="parameterSetCode">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.parameterSetCode"--> |
| | | <!-- placeholder="请è¾å
¥åæ°éç¼ç "--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="åæ°éå称" prop="parameterSetName">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.parameterSetName"--> |
| | | <!-- placeholder="请è¾å
¥åæ°éå称"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="ééåæ°ID" prop="collectParameterId">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.collectParameterId"--> |
| | | <!-- placeholder="请è¾å
¥ééåæ°ID"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="ééåæ°å称" prop="collectParameterName">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.collectParameterName"--> |
| | | <!-- placeholder="请è¾å
¥ééåæ°å称"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="æ¯å¦ä½ä¸ºå¯¹æ¯åæ°" prop="contrastParameterFlag">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.contrastParameterFlag"--> |
| | | <!-- placeholder="请è¾å
¥æ¯å¦ä½ä¸ºå¯¹æ¯åæ°"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="ééåæ°ç±»å" prop="collectParameterType">--> |
| | | <!-- <el-select v-model="queryParams.collectParameterType" placeholder="请éæ©ééåæ°ç±»å" clearable>--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="产åç¼ç " prop="productCode"> |
| | | <el-input |
| | | v-model="queryParams.productCode" |
| | | placeholder="请è¾å
¥äº§åç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <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-card> |
| | | |
| | | <el-card style="margin-top: 10px" class="box-card"> |
| | | <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="['da:collectionParamConf: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="['da:collectionParamConf: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="['da:collectionParamConf: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="['da:collectionParamConf:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="collectionParamConfList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="主é®id" align="center" prop="id" />--> |
| | | <el-table-column label="å·¥åºç¼å·" align="center" width="130" prop="processesCode"> |
| | | </el-table-column> |
| | | <el-table-column label="åæ°éç¼ç " align="center" width="130" prop="parameterSetCode"> |
| | | </el-table-column> |
| | | <el-table-column label="åæ°éå称" align="center" width="160" prop="parameterSetName"> |
| | | </el-table-column> |
| | | <el-table-column label="ééåæ°ID" align="center" width="130" prop="collectParameterId"> |
| | | </el-table-column> |
| | | <el-table-column label="ééåæ°å称" align="center" width="160" prop="collectParameterName"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="æ¯å¦ä½ä¸ºå¯¹æ¯åæ°" align="center" prop="contrastParameterFlag">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="ééåæ°ç±»å" align="center" width="130" prop="collectParameterType"> |
| | | </el-table-column> |
| | | <el-table-column label="ééåæ°åä½" align="center" width="130" prop="collectParameterUnit"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°æ®æè¿°" align="center" width="160" prop="Descriptives"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸éå¼" align="center" prop="paramUpper"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸éå¼" align="center" prop="paramLower"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å¿å¼" align="center" prop="paramCentral"> |
| | | </el-table-column> |
| | | <el-table-column label="产åç¼ç " align="center" width="150" prop="productCode"> |
| | | </el-table-column> |
| | | <el-table-column label="ééå°å" align="center" width="130" prop="gatherAddress"> |
| | | </el-table-column> |
| | | <el-table-column label="éé顺åº" align="center" width="130" prop="gatherSequence"> |
| | | </el-table-column> |
| | | <el-table-column label="å¤æ³¨" align="center" width="160" prop="remarks"> |
| | | </el-table-column> |
| | | <el-table-column label="å建ç¨æ·" align="center" prop="createUser"> |
| | | </el-table-column> |
| | | <el-table-column label="å建æ¶é´" align="center" width="160" prop="createTime"> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ¹ç¨æ·" align="center" prop="updateUser"> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ¹æ¶é´" align="center" width="160" prop="updateTime"> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" width="200" label="æä½" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="success" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['da:collectionParamConf:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['da:collectionParamConf:remove']" |
| | | >å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | |
| | | <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> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="å·¥åºç¼å·" prop="processesCode"> |
| | | <el-input v-model="form.processesCode" placeholder="请è¾å
¥å·¥åºç¼å·" /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éç¼ç " prop="parameterSetCode"> |
| | | <el-input v-model="form.parameterSetCode" placeholder="请è¾å
¥åæ°éç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éå称" prop="parameterSetName"> |
| | | <el-input v-model="form.parameterSetName" placeholder="请è¾å
¥åæ°éå称" /> |
| | | </el-form-item> |
| | | <el-form-item label="ééåæ°ID" prop="collectParameterId"> |
| | | <el-input v-model="form.collectParameterId" placeholder="请è¾å
¥ééåæ°ID" /> |
| | | </el-form-item> |
| | | <el-form-item label="ééåæ°å称" prop="collectParameterName"> |
| | | <el-input v-model="form.collectParameterName" placeholder="请è¾å
¥ééåæ°å称" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦ä½ä¸ºå¯¹æ¯åæ°" prop="contrastParameterFlag"> |
| | | <el-input v-model="form.contrastParameterFlag" placeholder="请è¾å
¥æ¯å¦ä½ä¸ºå¯¹æ¯åæ°" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="ééåæ°ç±»å" prop="collectParameterType">--> |
| | | <!-- <el-select v-model="form.collectParameterType" placeholder="请éæ©ééåæ°ç±»å">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="ééåæ°åä½" prop="collectParameterUnit"> |
| | | <el-input v-model="form.collectParameterUnit" placeholder="请è¾å
¥ééåæ°åä½" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°æ®æè¿°" prop="Descriptives"> |
| | | <el-input v-model="form.Descriptives" placeholder="请è¾å
¥æ°æ®æè¿°" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸éå¼" prop="paramUpper"> |
| | | <el-input v-model="form.paramUpper" placeholder="请è¾å
¥ä¸éå¼" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸éå¼" prop="paramLower"> |
| | | <el-input v-model="form.paramLower" placeholder="请è¾å
¥ä¸éå¼" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å¿å¼" prop="paramCentral"> |
| | | <el-input v-model="form.paramCentral" placeholder="请è¾å
¥ä¸å¿å¼" /> |
| | | </el-form-item> |
| | | <el-form-item label="产åç¼ç " prop="productCode"> |
| | | <el-input v-model="form.productCode" placeholder="请è¾å
¥äº§åç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="ééå°å" prop="gatherAddress"> |
| | | <el-input v-model="form.gatherAddress" placeholder="请è¾å
¥ééå°å" /> |
| | | </el-form-item> |
| | | <el-form-item label="éé顺åº" prop="gatherSequence"> |
| | | <el-input v-model="form.gatherSequence" placeholder="请è¾å
¥éé顺åº" /> |
| | | </el-form-item> |
| | | <el-form-item label="å¤æ³¨" prop="remarks"> |
| | | <el-input v-model="form.remarks" 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 { listCollectionParamConf, getCollectionParamConf, delCollectionParamConf, addCollectionParamConf, updateCollectionParamConf } from "@/api/main/da/collectionParamConf/collectionParamConf"; |
| | | |
| | | export default { |
| | | name: "CollectionParamConf", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // éä¸æ°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // ééåæ°é
ç½®è¡¨æ ¼æ°æ® |
| | | collectionParamConfList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | processesCode: null, |
| | | parameterSetCode: null, |
| | | parameterSetName: null, |
| | | collectParameterId: null, |
| | | collectParameterName: null, |
| | | contrastParameterFlag: null, |
| | | collectParameterType: null, |
| | | productCode: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // 表åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢ééåæ°é
ç½®å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listCollectionParamConf(this.queryParams).then(response => { |
| | | this.collectionParamConfList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | processesCode: null, |
| | | parameterSetCode: null, |
| | | parameterSetName: null, |
| | | collectParameterId: null, |
| | | collectParameterName: null, |
| | | contrastParameterFlag: null, |
| | | collectParameterType: null, |
| | | collectParameterUnit: null, |
| | | Descriptives: null, |
| | | paramUpper: null, |
| | | paramLower: null, |
| | | paramCentral: null, |
| | | productCode: null, |
| | | gatherAddress: null, |
| | | gatherSequence: null, |
| | | remarks: null, |
| | | createUser: null, |
| | | createTime: null, |
| | | updateUser: null, |
| | | updateTime: null, |
| | | spareField1: null, |
| | | spareField2: null, |
| | | spareField3: null, |
| | | spareField4: 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.titleName = "æ·»å ééåæ°é
ç½®"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getCollectionParamConf(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.titleName = "ä¿®æ¹ééåæ°é
ç½®"; |
| | | }); |
| | | }, |
| | | /** æ交æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateCollectionParamConf(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addCollectionParamConf(this.form).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å é¤ééåæ°é
ç½®ç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delCollectionParamConf(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å é¤æå"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('da/collectionParamConf/export', { |
| | | ...this.queryParams |
| | | }, `collectionParamConf_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |