原来的状态
<div class="form-group">
<label class="col-sm-3 control-label">物料ID:</label>
<div class="col-sm-8">
<input name="goodsId" th:field="*{goodsId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">供应商ID:</label>
<div class="col-sm-8">
<input name="supplierId" th:field="*{supplierId}" class="form-control" type="text">
</div>
</div>
修改后的状态
<div class="form-group">
<label class="col-sm-3 control-label">名称:</label>
<div class="col-sm-8">
<p class="form-control-static" th:text="*{goodsName}"></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">规格:</label>
<div class="col-sm-8">
<p class="form-control-static" th:text="*{goodsSpec}"></p>
</div>
</div>
主要是把 < input name=“goodsId” th:field=“*{goodsId}” class=“form-control” type=“text”> 改成 < p class=“form-control-static” th:text=“*{goodsSpec}”>
|