Browse Source

[fix]工程管理:修改产品管理模块,构建字段

dev
zhangsiqi 7 months ago
parent
commit
3b3571fb25
  1. 1
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java
  2. 6
      ruoyi-admin/src/main/resources/templates/system/model/add.html
  3. 31
      ruoyi-admin/src/main/resources/templates/system/model/edit.html

1
ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java

@ -47,6 +47,7 @@ public class SysProductModel extends BaseEntity
@Excel(name = "图片地址")
private String photoUrl;
public void setPid(Long pid)
{
this.pid = pid;

6
ruoyi-admin/src/main/resources/templates/system/model/add.html

@ -6,12 +6,6 @@
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-model-add">
<div class="form-group">
<label class="col-sm-3 control-label">产品型号ID:</label>
<div class="col-sm-8">
<input name="pcode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备型号:</label>
<div class="col-sm-8">

31
ruoyi-admin/src/main/resources/templates/system/model/edit.html

@ -7,12 +7,6 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-model-edit" th:object="${sysProductModel}">
<input name="pid" th:field="*{pid}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">产品型号ID:</label>
<div class="col-sm-8">
<input name="pcode" th:field="*{pcode}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备型号:</label>
<div class="col-sm-8">
@ -43,17 +37,24 @@
<input name="remark" th:field="*{remark}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新人:</label>
<div class="col-sm-8">
<input name="udpateBy" th:field="*{udpateBy}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图片地址:</label>
<div class="form-group">
<label class="col-sm-3 control-label">照片:</label>
<div class="col-sm-8">
<input name="photoUrl" th:field="*{photoUrl}" class="form-control" type="text">
<el-upload
:action="fileUploadUrl"
:on-success="uploadSuccess"
:on-remove="uploadRemove"
:file-list="fileList"
list-type="picture"
accept=".jpg,.png"
multiple>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,第一张图片为主图</div>
</el-upload>
</div>
<input id="photoAttachId" name = "photoAttachId" hidden th:field="*{photoAttachId}">
<input id="fileIdStr" type="text" name="fileIdStr" th:field="*{fileIdStr}" hidden>
<input id="removeFileIdStr" type="text" name="removeFileIdStr" hidden>
</div>
</form>
</div>

Loading…
Cancel
Save