From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 28 三月 2025 19:57:56 +0800 Subject: [PATCH] 修改bug --- ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js | 28 +++++++++++++++++++++++----- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js index 178d026..9215e90 100644 --- a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js +++ b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js @@ -25,11 +25,29 @@ return btn; } }, - {title: '车型名称', field: 'name', visible: true, align: 'center', valign: 'middle', + {title: '车型名称(中文)', field: 'chineseName', visible: true, align: 'center', valign: 'middle', formatter: function (value, row) { var btn = ""; - if(row.name != '' && row.name != null) { - btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.name + '" onfocus="TUser.tooltip()">' + row.name + '</p>'] + if(row.chineseName != '' && row.chineseName != null) { + btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.chineseName + '" onfocus="TUser.tooltip()">' + row.chineseName + '</p>'] + } + return btn; + } + }, + {title: '车型名称(英文)', field: 'englishName', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row) { + var btn = ""; + if(row.englishName != '' && row.englishName != null) { + btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.englishName + '" onfocus="TUser.tooltip()">' + row.englishName + '</p>'] + } + return btn; + } + }, + {title: '车型名称(法文)', field: 'frenchName', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row) { + var btn = ""; + if(row.frenchName != '' && row.frenchName != null) { + btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.frenchName + '" onfocus="TUser.tooltip()">' + row.frenchName + '</p>'] } return btn; } @@ -80,7 +98,7 @@ TServerCarmodel.openAddTServerCarmodel = function () { var index = layer.open({ type: 2, - title: '添加专车车型设置', + title: '添加车型设置', area: ['800px', '420px'], //宽高 fix: false, //不固定 maxmin: true, @@ -93,7 +111,7 @@ if (this.check()) { var index = layer.open({ type: 2, - title: '修改专车车型设置', + title: '修改车型设置', area: ['800px', '420px'], //宽高 fix: false, //不固定 maxmin: true, -- Gitblit v1.7.1