初始版本
This commit is contained in:
170
src/main/webapp/WEB-INF/template/bidArea/list.html
Normal file
170
src/main/webapp/WEB-INF/template/bidArea/list.html
Normal file
@@ -0,0 +1,170 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
|
||||
<!--module="bidArea" moduleName="工序"-->
|
||||
<div class="appPage listPage">
|
||||
<!-- <h1 class="page-title" th:text="|供应商${supplierName}产品列表|"></h1>-->
|
||||
<h1 class="page-title" >评标范围列表</h1>
|
||||
<h1 class="page-sub-title" th:text="|共${page.total}条记录|"></h1>
|
||||
<!-- <form id="listForm" th:action="|bidArea/list.html?supplierId=${supplierId}|" method="post">-->
|
||||
<form id="listForm" action="bidArea/list.html" method="post">
|
||||
<input hidden name="supplierId" th:value="${supplierId}"/>
|
||||
<div class="toolBar">
|
||||
<shiro:hasPermission name="bidArea:add">
|
||||
<!-- <a data-permission="bidArea:add" class="btn activeBtn"-->
|
||||
<!-- th:href="|javascript:Nav.go('bidArea/add.html?supplierId=${supplierId}')|">添加产品-->
|
||||
<!-- </a>-->
|
||||
<a data-permission="bidArea:add" class="btn activeBtn"
|
||||
href="javascript:Nav.go('bidArea/add.html')">添加评标范围
|
||||
</a>
|
||||
<a data-permission="bidArea:add" class="btn activeBtn "
|
||||
th:href="|javascript:Dialog.functionDialog(null,null,'bidArea/dialog/addFile.html')|">导入评标范围
|
||||
</a>
|
||||
</shiro:hasPermission>
|
||||
<a class="btn refresh">刷新</a>
|
||||
<shiro:hasPermission name="bidArea:remove">
|
||||
<a data-permission="bidArea:remove" class="btn batch-delete">批量删除</a>
|
||||
</shiro:hasPermission>
|
||||
<div class="filter-wrapper" data-columns="bidArea-table">
|
||||
<div class="filter-item" data-column="bigType">
|
||||
<label>大类</label>
|
||||
<input class="filter-input" type="text" name="bigType" th:value="${bigType}">
|
||||
</div>
|
||||
<div class="filter-item" data-column="smallType">
|
||||
<label>小类</label>
|
||||
<input class="filter-input" type="text" name="smallType" th:value="${smallType}">
|
||||
</div>
|
||||
<!-- <div class="filter-item" data-column="createDate">-->
|
||||
<!-- <label>创建日期:</label>-->
|
||||
<!-- <input class="filter-date" type="text" name="createDateStart"-->
|
||||
<!-- th:value="${#dates.format(createDateStart, 'yyyy-MM-dd')}" readonly> - -->
|
||||
<!-- <input class="filter-date" type="text" name="createDateEnd"-->
|
||||
<!-- th:value="${#dates.format(createDateEnd, 'yyyy-MM-dd')}" readonly>-->
|
||||
<!-- </div>-->
|
||||
<a class="confirm-button">搜索</a>
|
||||
<a class="clear-filter">清除搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableWrap">
|
||||
<table data-columns="bidArea-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="checkbox-col" data-column="#"><input class="checkbox" type="checkbox">
|
||||
</th>
|
||||
<th data-column="bigType">大类</th>
|
||||
<th class="sort-bar" data-column="bigDes">大类描述</th>
|
||||
<th data-column="smallType">小类</th>
|
||||
<th class="sort-bar" data-column="smallDes">小类描述</th>
|
||||
<th class="sort-bar" data-column="makeCode">制造形式代号</th>
|
||||
<th class="sort-bar" data-column="makeName">制造形式描述</th>
|
||||
<th class="sort-bar" data-column="diameterL">公称直径L</th>
|
||||
<th class="sort-bar" data-column="diameterS">公称直径S</th>
|
||||
<th class="sort-bar" data-column="wallThicknessL">壁厚L</th>
|
||||
<th class="sort-bar" data-column="wallThicknessS">壁厚S</th>
|
||||
<th class="sort-bar" data-column="pressureLevel">压力等级</th>
|
||||
<th class="sort-bar" data-column="material">材质</th>
|
||||
<th class="sort-bar" data-column="materialType">材质类型</th>
|
||||
<th class="sort-bar" data-column="size">尺寸标准</th>
|
||||
<th class="sort-bar" data-column="endFace">端面</th>
|
||||
<th data-column="##" class="options fixed">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr th:each="bidArea : ${page.content}" th:id="${bidArea.id}" url="bidArea/delete.html">
|
||||
<td class="checkbox-col"><input class="checkbox" type="checkbox" th:data-id="${bidArea.id}">
|
||||
</td>
|
||||
<!-- <td th:text="${typeChan.get(bidArea.id)}"></td>-->
|
||||
<td th:text="${bidArea.bigTypeName}"></td>
|
||||
<td th:text="${bidArea.bigTypeDes}"></td>
|
||||
<td th:text="${bidArea.smallTypeName}"></td>
|
||||
<td th:text="${bidArea.smallTypeDes}"></td>
|
||||
<td th:text="${bidArea.makeCode}"></td>
|
||||
<td th:text="${bidArea.makeName}"></td>
|
||||
<td th:text="${bidArea.diameterLName}"></td>
|
||||
<td th:text="${bidArea.diameterSName}"></td>
|
||||
<td th:text="${bidArea.wallThicknessLName}"></td>
|
||||
<td th:text="${bidArea.wallThicknessSName}"></td>
|
||||
<td th:text="${bidArea.pressureLevel}"></td>
|
||||
<td th:text="${bidArea.material}"></td>
|
||||
<td th:text="${bidArea.materialType}"></td>
|
||||
<td th:text="${bidArea.size}"></td>
|
||||
<td th:text="${bidArea.endFace}"></td>
|
||||
<td class="fixed">
|
||||
<shiro:hasPermission name="bidArea:edit">
|
||||
<a data-permission="bidArea:edit"
|
||||
th:href="|javascript:Nav.go('bidArea/edit.html?id=${bidArea.id}');|"> 编辑</a>
|
||||
</shiro:hasPermission>
|
||||
<shiro:hasPermission name="bidArea:remove">
|
||||
<a data-permission="bidArea:remove"
|
||||
th:href="|javascript:deleteConfirm('${bidArea.id}','/admin/bidArea/delete.html')|"> 删除</a>
|
||||
</shiro:hasPermission>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div th:replace="common/pagination"></div>
|
||||
</form>
|
||||
<script>
|
||||
initFilterWrapper();
|
||||
|
||||
var $table = $(".tableWrap table");
|
||||
$table.selectField({
|
||||
multiSelect: true,
|
||||
resizable: true,
|
||||
resizeMode: 'overflow',
|
||||
success: function () {
|
||||
initSortBar('${page.orderProperty}', '${page.orderDirection}');
|
||||
}
|
||||
});
|
||||
|
||||
var $filterWrapper = $(".toolBar .filter-wrapper");
|
||||
$filterWrapper.selectFilter()
|
||||
|
||||
$(".batch-delete").on('click', function () {
|
||||
var selectedIds = $table.selectedIds();
|
||||
if (selectedIds.length > 0) {
|
||||
var queryStr = '';
|
||||
for (var i in selectedIds) {
|
||||
if (queryStr === '') {
|
||||
queryStr += '?';
|
||||
} else {
|
||||
queryStr += '&';
|
||||
}
|
||||
queryStr += ('ids=' + selectedIds[i]);
|
||||
}
|
||||
layui.use('layer', function () {
|
||||
layer.open({
|
||||
type: 0,
|
||||
title: '提示',
|
||||
content: '确认删除' + selectedIds.length + '记录',
|
||||
btn: ['确认', '取消'],
|
||||
btn1: function (index, layero) {
|
||||
$.ajax({
|
||||
url: 'bidArea/delete.html' + queryStr,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: function (res) {
|
||||
if (res.type === 'success') {
|
||||
layer.msg('删除成功', {icon: 1});
|
||||
layer.close(index);
|
||||
Nav.refresh();
|
||||
} else {
|
||||
layer.msg(res.content, {icon: 2});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
btn2: function (index, layero) {
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
</div>
|
||||
</html>
|
||||
Reference in New Issue
Block a user