diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcBatteryCategoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcBatteryCategoryController.java new file mode 100644 index 0000000..511594b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcBatteryCategoryController.java @@ -0,0 +1,127 @@ +package com.ruoyi.operation.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.operation.domain.ZcBatteryCategory; +import com.ruoyi.operation.service.IZcBatteryCategoryService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 电池类别Controller + * + * @author ruoyi + * @date 2025-09-26 + */ +@Controller +@RequestMapping("/operation/batteryCategory") +public class ZcBatteryCategoryController extends BaseController +{ + private String prefix = "operation/batteryCategory"; + + @Autowired + private IZcBatteryCategoryService zcBatteryCategoryService; + + @RequiresPermissions("operation:batteryCategory:view") + @GetMapping() + public String batteryCategory() + { + return prefix + "/batteryCategory"; + } + + /** + * 查询电池类别列表 + */ + @RequiresPermissions("operation:batteryCategory:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ZcBatteryCategory zcBatteryCategory) + { + startPage(); + List list = zcBatteryCategoryService.selectZcBatteryCategoryList(zcBatteryCategory); + return getDataTable(list); + } + + /** + * 导出电池类别列表 + */ + @RequiresPermissions("operation:batteryCategory:export") + @Log(title = "电池类别", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ZcBatteryCategory zcBatteryCategory) + { + List list = zcBatteryCategoryService.selectZcBatteryCategoryList(zcBatteryCategory); + ExcelUtil util = new ExcelUtil(ZcBatteryCategory.class); + return util.exportExcel(list, "电池类别数据"); + } + + /** + * 新增电池类别 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存电池类别 + */ + @RequiresPermissions("operation:batteryCategory:add") + @Log(title = "电池类别", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ZcBatteryCategory zcBatteryCategory) + { + return toAjax(zcBatteryCategoryService.insertZcBatteryCategory(zcBatteryCategory)); + } + + /** + * 修改电池类别 + */ + @RequiresPermissions("operation:batteryCategory:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + ZcBatteryCategory zcBatteryCategory = zcBatteryCategoryService.selectZcBatteryCategoryById(id); + mmap.put("zcBatteryCategory", zcBatteryCategory); + return prefix + "/edit"; + } + + /** + * 修改保存电池类别 + */ + @RequiresPermissions("operation:batteryCategory:edit") + @Log(title = "电池类别", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ZcBatteryCategory zcBatteryCategory) + { + return toAjax(zcBatteryCategoryService.updateZcBatteryCategory(zcBatteryCategory)); + } + + /** + * 删除电池类别 + */ + @RequiresPermissions("operation:batteryCategory:remove") + @Log(title = "电池类别", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(zcBatteryCategoryService.deleteZcBatteryCategoryByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcCarModelController.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcCarModelController.java index b3a8cf1..6866709 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcCarModelController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/controller/ZcCarModelController.java @@ -6,9 +6,7 @@ import java.util.List; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.operation.domain.*; -import com.ruoyi.operation.service.IZcCarBrandService; -import com.ruoyi.operation.service.IZcCarModelPackageService; -import com.ruoyi.operation.service.IZcRentCarRuleService; +import com.ruoyi.operation.service.*; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -16,7 +14,6 @@ import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.operation.service.IZcCarModelService; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.utils.poi.ExcelUtil; @@ -42,6 +39,9 @@ public class ZcCarModelController extends BaseController private IZcCarModelPackageService zcCarModelPackageService; @Autowired private IZcCarBrandService zcCarBrandService; + @Autowired + private IZcBatteryCategoryService batteryCategoryService; + @RequiresPermissions("operation:carModel:view") @GetMapping() public String carModel(ModelMap mmap) @@ -90,7 +90,8 @@ public class ZcCarModelController extends BaseController zcRentCarRule.setStatus("0"); List rentCarRuleList = zcRentCarRuleService.selectZcRentCarRuleList(zcRentCarRule); mmap.put("rentCarRuleList", rentCarRuleList); - + List batteryCategoryList = batteryCategoryService.selectZcBatteryCategoryList(new ZcBatteryCategory()); + mmap.put("batteryCategoryList", batteryCategoryList); return prefix + "/add"; } @@ -126,6 +127,8 @@ public class ZcCarModelController extends BaseController mmap.put("rentCarRuleList", rentCarRuleList); ZcCarModel zcCarModel = zcCarModelService.selectZcCarModelById(id); mmap.put("zcCarModel", zcCarModel); + List batteryCategoryList = batteryCategoryService.selectZcBatteryCategoryList(new ZcBatteryCategory()); + mmap.put("batteryCategoryList", batteryCategoryList); return prefix + "/edit"; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/ZcBatteryCategory.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/ZcBatteryCategory.java new file mode 100644 index 0000000..86e55af --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/ZcBatteryCategory.java @@ -0,0 +1,289 @@ +package com.ruoyi.operation.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 电池类别对象 zc_battery_category + * + * @author ruoyi + * @date 2025-09-26 + */ +public class ZcBatteryCategory extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 电池类别名称 */ + @Excel(name = "电池类别名称") + private String categoryName; + + /** 产品名称 */ + @Excel(name = "产品名称") + private String product; + + /** 图标路径 */ + @Excel(name = "图标路径") + private String icon; + + /** 是否删除(0:否,1:是) */ + @Excel(name = "是否删除(0:否,1:是)") + private Integer isDelete; + + /** 电压 */ + @Excel(name = "电压") + private String voltage; + + /** 安时(Ah) */ + @Excel(name = "安时(Ah)") + private String ah; + + /** 最大电压 */ + @Excel(name = "最大电压") + private String maxVoltage; + + /** 最大充电电流 */ + @Excel(name = "最大充电电流") + private String maxCharge; + + /** 批次 */ + @Excel(name = "批次") + private Long batch; + + /** 说明 */ + @Excel(name = "说明") + private String explain; + + /** 电芯ID */ + @Excel(name = "电芯ID") + private Long cellId; + + /** 充电器ID */ + @Excel(name = "充电器ID") + private Long chargeId; + + /** 操作员ID */ + @Excel(name = "操作员ID") + private Long operatorId; + + /** 保护板ID */ + @Excel(name = "保护板ID") + private Long protectId; + + /** 供应商ID */ + @Excel(name = "供应商ID") + private Long supplierId; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date createdAt; + + /** 更新时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date updatedAt; + + private String remarks; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCategoryName(String categoryName) + { + this.categoryName = categoryName; + } + + public String getCategoryName() + { + return categoryName; + } + public void setProduct(String product) + { + this.product = product; + } + + public String getProduct() + { + return product; + } + public void setIcon(String icon) + { + this.icon = icon; + } + + public String getIcon() + { + return icon; + } + public void setIsDelete(Integer isDelete) + { + this.isDelete = isDelete; + } + + public Integer getIsDelete() + { + return isDelete; + } + public void setVoltage(String voltage) + { + this.voltage = voltage; + } + + public String getVoltage() + { + return voltage; + } + public void setAh(String ah) + { + this.ah = ah; + } + + public String getAh() + { + return ah; + } + public void setMaxVoltage(String maxVoltage) + { + this.maxVoltage = maxVoltage; + } + + public String getMaxVoltage() + { + return maxVoltage; + } + public void setMaxCharge(String maxCharge) + { + this.maxCharge = maxCharge; + } + + public String getMaxCharge() + { + return maxCharge; + } + public void setBatch(Long batch) + { + this.batch = batch; + } + + public Long getBatch() + { + return batch; + } + public void setExplain(String explain) + { + this.explain = explain; + } + + public String getExplain() + { + return explain; + } + public void setCellId(Long cellId) + { + this.cellId = cellId; + } + + public Long getCellId() + { + return cellId; + } + public void setChargeId(Long chargeId) + { + this.chargeId = chargeId; + } + + public Long getChargeId() + { + return chargeId; + } + public void setOperatorId(Long operatorId) + { + this.operatorId = operatorId; + } + + public Long getOperatorId() + { + return operatorId; + } + public void setProtectId(Long protectId) + { + this.protectId = protectId; + } + + public Long getProtectId() + { + return protectId; + } + public void setSupplierId(Long supplierId) + { + this.supplierId = supplierId; + } + + public Long getSupplierId() + { + return supplierId; + } + public void setCreatedAt(Date createdAt) + { + this.createdAt = createdAt; + } + + public Date getCreatedAt() + { + return createdAt; + } + public void setUpdatedAt(Date updatedAt) + { + this.updatedAt = updatedAt; + } + + public Date getUpdatedAt() + { + return updatedAt; + } + + public String getRemarks() { + return remarks; + } + + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("categoryName", getCategoryName()) + .append("product", getProduct()) + .append("icon", getIcon()) + .append("isDelete", getIsDelete()) + .append("voltage", getVoltage()) + .append("ah", getAh()) + .append("maxVoltage", getMaxVoltage()) + .append("maxCharge", getMaxCharge()) + .append("batch", getBatch()) + .append("explain", getExplain()) + .append("cellId", getCellId()) + .append("chargeId", getChargeId()) + .append("operatorId", getOperatorId()) + .append("protectId", getProtectId()) + .append("supplierId", getSupplierId()) + .append("createdAt", getCreatedAt()) + .append("updatedAt", getUpdatedAt()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/mapper/ZcBatteryCategoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/mapper/ZcBatteryCategoryMapper.java new file mode 100644 index 0000000..dc6ab1e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/mapper/ZcBatteryCategoryMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.operation.mapper; + +import java.util.List; +import com.ruoyi.operation.domain.ZcBatteryCategory; + +/** + * 电池类别Mapper接口 + * + * @author ruoyi + * @date 2025-09-26 + */ +public interface ZcBatteryCategoryMapper +{ + /** + * 查询电池类别 + * + * @param id 电池类别主键 + * @return 电池类别 + */ + public ZcBatteryCategory selectZcBatteryCategoryById(Long id); + + /** + * 查询电池类别列表 + * + * @param zcBatteryCategory 电池类别 + * @return 电池类别集合 + */ + public List selectZcBatteryCategoryList(ZcBatteryCategory zcBatteryCategory); + + /** + * 新增电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + public int insertZcBatteryCategory(ZcBatteryCategory zcBatteryCategory); + + /** + * 修改电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + public int updateZcBatteryCategory(ZcBatteryCategory zcBatteryCategory); + + /** + * 删除电池类别 + * + * @param id 电池类别主键 + * @return 结果 + */ + public int deleteZcBatteryCategoryById(Long id); + + /** + * 批量删除电池类别 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteZcBatteryCategoryByIds(String[] ids); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/service/IZcBatteryCategoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/IZcBatteryCategoryService.java new file mode 100644 index 0000000..c7c1e40 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/IZcBatteryCategoryService.java @@ -0,0 +1,61 @@ +package com.ruoyi.operation.service; + +import java.util.List; +import com.ruoyi.operation.domain.ZcBatteryCategory; + +/** + * 电池类别Service接口 + * + * @author ruoyi + * @date 2025-09-26 + */ +public interface IZcBatteryCategoryService +{ + /** + * 查询电池类别 + * + * @param id 电池类别主键 + * @return 电池类别 + */ + public ZcBatteryCategory selectZcBatteryCategoryById(Long id); + + /** + * 查询电池类别列表 + * + * @param zcBatteryCategory 电池类别 + * @return 电池类别集合 + */ + public List selectZcBatteryCategoryList(ZcBatteryCategory zcBatteryCategory); + + /** + * 新增电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + public int insertZcBatteryCategory(ZcBatteryCategory zcBatteryCategory); + + /** + * 修改电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + public int updateZcBatteryCategory(ZcBatteryCategory zcBatteryCategory); + + /** + * 批量删除电池类别 + * + * @param ids 需要删除的电池类别主键集合 + * @return 结果 + */ + public int deleteZcBatteryCategoryByIds(String ids); + + /** + * 删除电池类别信息 + * + * @param id 电池类别主键 + * @return 结果 + */ + public int deleteZcBatteryCategoryById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/ZcBatteryCategoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/ZcBatteryCategoryServiceImpl.java new file mode 100644 index 0000000..0e1b926 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/ZcBatteryCategoryServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.operation.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.operation.mapper.ZcBatteryCategoryMapper; +import com.ruoyi.operation.domain.ZcBatteryCategory; +import com.ruoyi.operation.service.IZcBatteryCategoryService; +import com.ruoyi.common.core.text.Convert; + +/** + * 电池类别Service业务层处理 + * + * @author ruoyi + * @date 2025-09-26 + */ +@Service +public class ZcBatteryCategoryServiceImpl implements IZcBatteryCategoryService +{ + @Autowired + private ZcBatteryCategoryMapper zcBatteryCategoryMapper; + + /** + * 查询电池类别 + * + * @param id 电池类别主键 + * @return 电池类别 + */ + @Override + public ZcBatteryCategory selectZcBatteryCategoryById(Long id) + { + return zcBatteryCategoryMapper.selectZcBatteryCategoryById(id); + } + + /** + * 查询电池类别列表 + * + * @param zcBatteryCategory 电池类别 + * @return 电池类别 + */ + @Override + public List selectZcBatteryCategoryList(ZcBatteryCategory zcBatteryCategory) + { + return zcBatteryCategoryMapper.selectZcBatteryCategoryList(zcBatteryCategory); + } + + /** + * 新增电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + @Override + public int insertZcBatteryCategory(ZcBatteryCategory zcBatteryCategory) + { + return zcBatteryCategoryMapper.insertZcBatteryCategory(zcBatteryCategory); + } + + /** + * 修改电池类别 + * + * @param zcBatteryCategory 电池类别 + * @return 结果 + */ + @Override + public int updateZcBatteryCategory(ZcBatteryCategory zcBatteryCategory) + { + return zcBatteryCategoryMapper.updateZcBatteryCategory(zcBatteryCategory); + } + + /** + * 批量删除电池类别 + * + * @param ids 需要删除的电池类别主键 + * @return 结果 + */ + @Override + public int deleteZcBatteryCategoryByIds(String ids) + { + return zcBatteryCategoryMapper.deleteZcBatteryCategoryByIds(Convert.toStrArray(ids)); + } + + /** + * 删除电池类别信息 + * + * @param id 电池类别主键 + * @return 结果 + */ + @Override + public int deleteZcBatteryCategoryById(Long id) + { + return zcBatteryCategoryMapper.deleteZcBatteryCategoryById(id); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/operation/ZcBatteryCategoryMapper.xml b/ruoyi-admin/src/main/resources/mapper/operation/ZcBatteryCategoryMapper.xml new file mode 100644 index 0000000..7c2e7e2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/operation/ZcBatteryCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, category_name, product, icon, is_delete, voltage, ah, max_voltage, max_charge, batch, cell_id, charge_id, operator_id, protect_id, supplier_id , + CONCAT(category_name,'/',product) as remarks + from zc_battery_category + + + + + + + + insert into zc_battery_category + + category_name, + product, + icon, + is_delete, + voltage, + ah, + max_voltage, + max_charge, + batch, + cell_id, + charge_id, + operator_id, + protect_id, + supplier_id, + created_at, + updated_at, + + + #{categoryName}, + #{product}, + #{icon}, + #{isDelete}, + #{voltage}, + #{ah}, + #{maxVoltage}, + #{maxCharge}, + #{batch}, + #{cellId}, + #{chargeId}, + #{operatorId}, + #{protectId}, + #{supplierId}, + #{createdAt}, + #{updatedAt}, + + + + + update zc_battery_category + + category_name = #{categoryName}, + product = #{product}, + icon = #{icon}, + is_delete = #{isDelete}, + voltage = #{voltage}, + ah = #{ah}, + max_voltage = #{maxVoltage}, + max_charge = #{maxCharge}, + batch = #{batch}, + cell_id = #{cellId}, + charge_id = #{chargeId}, + operator_id = #{operatorId}, + protect_id = #{protectId}, + supplier_id = #{supplierId}, + created_at = #{createdAt}, + updated_at = #{updatedAt}, + + where id = #{id} + + + + delete from zc_battery_category where id = #{id} + + + + delete from zc_battery_category where id in + + #{id} + + + + diff --git a/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/add.html b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/add.html new file mode 100644 index 0000000..25f49f3 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/add.html @@ -0,0 +1,147 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/batteryCategory.html b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/batteryCategory.html new file mode 100644 index 0000000..e61c823 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/batteryCategory.html @@ -0,0 +1,210 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/edit.html b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/edit.html new file mode 100644 index 0000000..28ac14b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/operation/batteryCategory/edit.html @@ -0,0 +1,148 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/operation/carModel/add.html b/ruoyi-admin/src/main/resources/templates/operation/carModel/add.html index e827277..ab02380 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/carModel/add.html +++ b/ruoyi-admin/src/main/resources/templates/operation/carModel/add.html @@ -32,8 +32,8 @@
- +
@@ -54,7 +54,7 @@
- +
@@ -247,4 +247,4 @@ } - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/operation/carModel/edit.html b/ruoyi-admin/src/main/resources/templates/operation/carModel/edit.html index f25899c..f25654e 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/carModel/edit.html +++ b/ruoyi-admin/src/main/resources/templates/operation/carModel/edit.html @@ -35,8 +35,8 @@
- +
@@ -264,4 +264,4 @@ }); - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/operation/rentCarRule/edit.html b/ruoyi-admin/src/main/resources/templates/operation/rentCarRule/edit.html index 76c2958..efa4551 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/rentCarRule/edit.html +++ b/ruoyi-admin/src/main/resources/templates/operation/rentCarRule/edit.html @@ -142,10 +142,7 @@ }, { field: 'batteryType', - title: '支持电池类型', - formatter: function(value, row, index) { - return $.table.selectDictLabel(batteryTypeDatas, value); - } + title: '支持电池类型' }, { field: 'weight', @@ -179,4 +176,4 @@ } - \ No newline at end of file +