优化完善

master
wangjiuyun 2025-05-20 15:16:27 +08:00
parent b4d8520b82
commit 156beb031d
5 changed files with 20 additions and 20 deletions

View File

@ -38,7 +38,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">版本号:</label>
<div class="col-sm-8">
<input name="versionCode" class="form-control" type="number" required>
<input name="versionCode" class="form-control" type="number" max="100" required>
</div>
</div>
</div>
@ -253,7 +253,7 @@
field: 'discount',
align: 'center',
title: '折扣',
width: 60,
width: 70,
formatter: function (value, row, index) {
var html = $.common.sprintf("<input class='form-control discount' type='number' name='orderListList[%s].discount' value='%s' step='0.1' max='1' min='0'>", index, value);
return html;

View File

@ -38,7 +38,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">版本号:</label>
<div class="col-sm-8">
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text" required>
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text" max="100" required>
</div>
</div>
</div>

View File

@ -150,7 +150,10 @@
},
{
field: 'industryType',
title: '所属行业'
title: '所属行业',
formatter:(value,row)=>{
return [[${@dict.getType('industry_code')}]].find((ele)=>ele.dictValue==value)?.dictLabel
}
},
{
field: 'remark',
@ -160,14 +163,14 @@
field: 'createAt',
title: '创建时间'
},
{
field: 'updateAt',
title: '更新时间'
},
{
field: 'deleteAt',
title: '删除时间'
},
// {
// field: 'updateAt',
// title: '更新时间'
// },
// {
// field: 'deleteAt',
// title: '删除时间'
// },
{
title: '操作',
align: 'center',

View File

@ -52,7 +52,7 @@
<label class="col-sm-3 control-label is-required">产品类型:</label>
<div class="col-sm-8">
<select name="type" class="form-control" th:with="type=${@dict.getType('product_type')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
@ -61,9 +61,8 @@
<div class="form-group">
<label class="col-sm-3 control-label is-required">产品类型值:</label>
<div class="col-sm-8">
<select name="value" class="form-control" th:with="type=${@dict.getType('product_type')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictValue}" th:value="${dict.dictValue}"></option>
</select>
<input name="value" class="form-control" type="number" required>
</div>
</div>
</div>

View File

@ -52,7 +52,7 @@
<label class="col-sm-3 control-label is-required">产品类型:</label>
<div class="col-sm-8">
<select th:field="*{type}" name="type" class="form-control" th:with="type=${@dict.getType('product_type')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
@ -61,9 +61,7 @@
<div class="form-group">
<label class="col-sm-3 control-label is-required">产品类型值:</label>
<div class="col-sm-8">
<select th:field="*{value}" name="value" class="form-control" th:with="type=${@dict.getType('product_type')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictValue}" th:value="${dict.dictValue}"></option>
</select>
<input name="value" th:field="*{value}" class="form-control" type="number" required>
</div>
</div>
</div>