提交 cf098d76 编写于 作者: Skyeye云's avatar Skyeye云

我名下的资产列表重构完成

上级 178080a3
...@@ -15,7 +15,7 @@ layui.config({ ...@@ -15,7 +15,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: flowableBasePath + 'myhasmation001', url: sysMainMation.admBasePath + 'myhasmation001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -23,14 +23,17 @@ layui.config({ ...@@ -23,14 +23,17 @@ layui.config({
limit: getLimit(), limit: getLimit(),
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'assetName', title: '资产名称', align: 'left', width: 120 }, { field: 'name', title: '资产名称', align: 'left', width: 120 },
{ field: 'assetImg', title: '图片', align: 'center', width: 60, templet: function (d) { { field: 'assetImg', title: '图片', align: 'center', width: 60, templet: function (d) {
return '<img src="' + systemCommonUtil.getFilePath(d.assetImg) + '" class="photo-img" lay-event="assetImg">'; return '<img src="' + systemCommonUtil.getFilePath(d.assetImg) + '" class="photo-img" lay-event="assetImg">';
}}, }},
{ field: 'typeName', title: '类型', align: 'left', width: 100 }, { field: 'typeId', title: '资产类型', width: 120, templet: function(d) {
return sysDictDataUtil.getDictDataNameByCodeAndKey("ADM_ASSET_TYPE", d.typeId);
}},
{ field: 'assetNum', title: '资产编号', align: 'left', width: 150 }, { field: 'assetNum', title: '资产编号', align: 'left', width: 150 },
{ field: 'specifications', title: '资产规格', align: 'left', width: 120 }, { field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
{ field: 'assetAdmin', title: '管理员', align: 'left', width: 120 }, return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
}},
{ field: 'createTime', title: '申领时间', align: 'center', width: 150 }, { field: 'createTime', title: '申领时间', align: 'center', width: 150 },
]], ]],
done: function(json) { done: function(json) {
...@@ -50,7 +53,7 @@ layui.config({ ...@@ -50,7 +53,7 @@ layui.config({
}); });
form.render(); form.render();
$("body").on("click", "#reloadmessageTable", function() { $("body").on("click", "#reloadTable", function() {
loadTable(); loadTable();
}); });
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</head> </head>
<body> <body>
<div class="winui-toolbar"> <div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;"> <div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button> <button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1596957289917"><i class="fa fa-plus" aria-hidden="true"></i>用品领用申请</button> <button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1596957289917"><i class="fa fa-plus" aria-hidden="true"></i>用品领用申请</button>
</div> </div>
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
</head> </head>
<body> <body>
<div class="winui-toolbar"> <div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;"> <div class="winui-tool">
<button id="reloadmessageTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button> <button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div> </div>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册