You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.7 KiB

layui.use(['table', 'laydate'], function () {
var table = layui.table
, laydate = layui.laydate;
table.render({
elem: '#projectListTableView'
, cols: [[
{ field: '', title: '序号', align: 'center', type: 'numbers', width: "5%" }
, { field: 'xmbh', width: "10%", title: '项目编号' }
, { field: 'ysnd', width: "8%", title: '预算年度' }
, { field: 'xmmc', title: '项目名称' }
, { field: 'xmlx', width: "10%", title: '项目类型' }
, { field: 'xmdw', width: "15%", title: '项目单位' }
, { field: 'sbsj', width: "10%", title: '申报时间' }
, { field: 'dqjd', width: "10%", title: '当前节点' }
, { width: "5%", title: '操作', toolbar: '#tableOperate', align: 'center' }
]]
, url: "/FengHuang/global/getTestAAA"
, where: {
id: "1",
name: "abc"
}
, height: "full-191"
// ,skin: 'line' //表格风格
, even: true
, page: {
layout: ['count', 'prev', 'page', 'next', 'skip']
, prev: "上一页"
, next: "下一页"
// , theme: '#2C6DCF'
// , count: 100
}
});
table.on('tool(tableFilter)', function (obj) {
if (obj.event == "view") {
window.location.href = "../projectDetails/projectDetails.html";
}
});
laydate.render({
elem: '#sbsj'
, range: ['#startDate', '#endDate']
});
//年选择器
laydate.render({
elem: '#ysnd'
, type: 'year'
});
});