提交 ef8dd067 编写于 作者: W weizhiqiang

部分功能查询员工姓名的方式修改

上级 a65a47bd
...@@ -11,7 +11,6 @@ layui.config({ ...@@ -11,7 +11,6 @@ layui.config({
echartsTheme: '../echarts/echartsTheme' echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate', 'echarts'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate', 'echarts'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
table = layui.table, table = layui.table,
...@@ -37,13 +36,12 @@ layui.config({ ...@@ -37,13 +36,12 @@ layui.config({
initTable(); initTable();
function initTable(){ function initTable(){
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: flowableBasePath + 'sealseservicestatisforms002', url: flowableBasePath + 'sealseservicestatisforms002',
where: {userName: $("#userName").val(), startTime: startTime, endTime: endTime}, where: {startTime: startTime, endTime: endTime},
even: true, even: true,
page: true, page: true,
limits: [8, 16, 24, 32, 40, 48, 56], limits: [8, 16, 24, 32, 40, 48, 56],
...@@ -81,7 +79,6 @@ layui.config({ ...@@ -81,7 +79,6 @@ layui.config({
} }
form.render(); form.render();
$("body").on("click", "#formSearch", function() { $("body").on("click", "#formSearch", function() {
refreshTable(); refreshTable();
}); });
...@@ -94,7 +91,7 @@ layui.config({ ...@@ -94,7 +91,7 @@ layui.config({
startTime = $("#timeRange").val().split('~')[0].trim(); startTime = $("#timeRange").val().split('~')[0].trim();
endTime = $("#timeRange").val().split('~')[1].trim(); endTime = $("#timeRange").val().split('~')[1].trim();
} }
table.reloadData("messageTable", {page: {curr: 1}, where: {userName: $("#userName").val(), startTime: startTime, endTime: endTime}}); table.reloadData("messageTable", {page: {curr: 1}, where: {startTime: startTime, endTime: endTime}});
} }
$("body").on("click", ".plan-type-btn", function (e) { $("body").on("click", ".plan-type-btn", function (e) {
...@@ -310,5 +307,5 @@ layui.config({ ...@@ -310,5 +307,5 @@ layui.config({
myChart.resize(); myChart.resize();
} }
exports('customorder', {}); exports('workerorder', {});
}); });
\ No newline at end of file
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" id="timeRange" name="timeRange" placeholder="请选择时间范围" class="layui-input" /> <input type="text" id="timeRange" name="timeRange" placeholder="请选择时间范围" class="layui-input" />
</div> </div>
<label class="layui-form-label">工人名称</label>
<div class="layui-input-inline">
<input type="text" id="userName" name="userName" placeholder="请输入工人名称" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button> <button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" type="button" id="formSearch"><language showName="com.skyeye.search2"></language></button> <button class="layui-btn list-form-search" type="button" id="formSearch"><language showName="com.skyeye.search2"></language></button>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册