From 84426e58952b2601a975db1ff07a23a82661696d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93=E8=BF=AA?= <2596750866@qq.com> Date: Thu, 10 Oct 2024 09:13:26 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E5=AE=A2=E6=88=B7=E6=8A=A5=E4=BB=B7=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=A7=E5=88=B6=E6=93=8D=E4=BD=9C=E5=88=97=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8C=89=E9=92=AE=E5=8F=8A=E5=85=B6=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/customerQuote/customerQuote.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html index 67d83223..7c309ba6 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html @@ -277,6 +277,7 @@ {title: '备注',field: 'remark'}, { title: '操作', + field: 'operations', align: 'center', formatter: function(value, row, index) { var actions = []; @@ -323,8 +324,22 @@ } }; $.table.init(options); - }); + $(".pull-right").append("\n" + + " \n" + + " "); + }); + function operateShow(){ + var $operationsTh = $("#bootstrap-table").find('thead th:contains("操作")'); + // console.log($operationsTh.length); + if ($operationsTh.length === 0) { + // 如果“操作”列是隐藏的,则显示它 + $("#bootstrap-table").bootstrapTable('showColumn', 'operations'); + } else { + // 如果“操作”列是显示的,则隐藏它 + $("#bootstrap-table").bootstrapTable('hideColumn', 'operations'); + } + } // 作废 function cancel(id) {