fix: 修复轮胎类型字典显示问题

master
zch 6 days ago
parent d05fb29660
commit 26b2e1bbcc

@ -76,6 +76,7 @@
<script th:inline="javascript"> <script th:inline="javascript">
var prefix = ctx + "tyre/tyre"; var prefix = ctx + "tyre/tyre";
var stockType = [[${stockType}]]; var stockType = [[${stockType}]];
var datas = [[${@dict.getType('tyre_type')}]];
$(function() { $(function() {
var options = { var options = {
@ -131,8 +132,8 @@
}, { }, {
field: 'tyreType', field: 'tyreType',
title: '轮胎类型', title: '轮胎类型',
formatter: function(value) { formatter: function(value, row, index) {
return $.common.isEmpty(value) ? stockType : value; return $.table.selectDictLabel(datas, value);
} }
}, { }, {
field: 'tyreBrand', field: 'tyreBrand',

Loading…
Cancel
Save