列表字段修改

This commit is contained in:
dy 2021-03-25 16:10:30 +08:00
parent 3309c42e50
commit a027af29cc
1 changed files with 14 additions and 7 deletions

View File

@ -20,9 +20,9 @@
</li> </li>
<li> <li>
<label>奖品类型:</label> <label>奖品类型:</label>
<select name="PRIZETYPE"> <select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}">
<option value="">所有</option> <option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
@ -39,9 +39,9 @@
<!-- </li>--> <!-- </li>-->
<li> <li>
<label>状态:</label> <label>状态:</label>
<select name="STATUS"> <select name="STATUS" th:with="type=${@dict.getType('status')}">
<option value="">所有</option> <option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
@ -81,7 +81,8 @@
var editFlag = [[${@permission.hasPermi('activity:info:edit')}]]; var editFlag = [[${@permission.hasPermi('activity:info:edit')}]];
var removeFlag = [[${@permission.hasPermi('activity:info:remove')}]]; var removeFlag = [[${@permission.hasPermi('activity:info:remove')}]];
var prefix = ctx + "activity/prize"; var prefix = ctx + "activity/prize";
var datas = [[${@dict.getType('prizeType')}]];
var statusList = [[${@dict.getType('status')}]];
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
@ -108,7 +109,10 @@
}, },
{ {
field: 'prizetype', field: 'prizetype',
title: '奖品类型' title: '奖品类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(datas, value);
}
}, },
{ {
field: 'prizevalue', field: 'prizevalue',
@ -128,8 +132,11 @@
// }, // },
{ {
field: 'status', field: 'status',
title: '状态' title: '状态',
// 0 未启用1 启用 // 0 未启用1 启用
formatter: function(value, row, index) {
return $.table.selectDictLabel(statusList, value);
}
}, },
{ {
field: 'integralprojectcode', field: 'integralprojectcode',