项目分类统计:增加【环保“一塔三图”】导出

This commit is contained in:
cwchen 2025-05-23 13:58:44 +08:00
parent 1f3c4b17ee
commit 3656601b2c
4 changed files with 9 additions and 3 deletions

View File

@ -324,7 +324,7 @@
<!--项目分类统计-查看列表-->
<select id="getListData" resultType="com.bonus.imgTool.backstage.entity.ProClassifyStatisticDetailVo">
SELECT tcq.id AS id,
tcq.vio_date AS vioDate,
IFNULL(tcq.vio_date,tcq.create_time) AS vioDate,
tcq.vio_place AS vioPlace,
tcq.vio_desc AS vioDesc,
tcq.rect_desc AS rectDesc,

View File

@ -14,6 +14,12 @@ function setParams(obj) {
return '请输入有效的数字';
}
},
isInteger: function (value, item) {
const regex = /^[1-9]\d*$/;
if (!regex.test(value)) {
return '请输入有效的整数';
}
},
});
form.on('submit(formData)', function (data) {
saveData(data);

View File

@ -143,7 +143,7 @@ function initTable(dataList, limit, page) {
dropdown.render({ // 使用dropdown插件渲染下拉菜单
elem: tr.find('.layui-btn-group').find('a[lay-event="more"]'), // 绑定元素,即触发按钮
data: [{
title: '导出环保“一塔三图”',
title: '下载环保“一塔三图”',
id: 'btn1'
}],
click: function (menudata) {

View File

@ -34,7 +34,7 @@
<div class="layui-form-item" style="margin-top: 2%;">
<label class="layui-form-label">塔基数</label>
<div class="layui-input-block">
<input type="text" lay-verify="required|number" name="num" class="layui-input" autocomplete="off"
<input type="text" lay-verify="required|isInteger" name="num" class="layui-input" autocomplete="off"
maxlength="6">
</div>
</div>