细节优化
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
{
|
||||
title: '图标', field: 'icon', width: 100, formatter: function (value, row) {
|
||||
if (value != null) {
|
||||
return "<img alt='图标' style='width:32px;height:32px;' src=\"../../upload/images/deskIcon/" + value + "\" />";
|
||||
return "<img alt='图标' style='width:28px;height:28px;' src=\"../../upload/images/deskIcon/" + value + "\" />";
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1460,6 +1460,7 @@
|
||||
$("#searchParentName").val("");
|
||||
$("#searchParentId").val("");
|
||||
$("#searchName").val("");
|
||||
$("#searchModel").val("");
|
||||
types = ""; //清空类别
|
||||
//加载完以后重新初始化
|
||||
$("#searchBtn").click();
|
||||
|
||||
@@ -82,55 +82,13 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var depotList = null;
|
||||
var depotID = null;
|
||||
//初始化界面
|
||||
$(function () {
|
||||
//初始化系统基础信息
|
||||
initSystemData();
|
||||
initSelectInfo();
|
||||
initTableData();
|
||||
ininPager();
|
||||
initForm();
|
||||
});
|
||||
|
||||
//初始化系统基础信息
|
||||
function initSystemData() {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/depot/getAllList",
|
||||
//设置为同步
|
||||
async: false,
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
if(res && res.code === 200){
|
||||
depotList = res.data;
|
||||
} else {
|
||||
$.messager.alert('提示', '查找系统基础信息异常,请与管理员联系!', 'error');
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//初始化页面选项卡
|
||||
function initSelectInfo() {
|
||||
var options = "";
|
||||
|
||||
if (depotList != null) {
|
||||
options = "";
|
||||
for (var i = 0; i < depotList.length; i++) {
|
||||
var depot = depotList[i];
|
||||
if (0 == i) {
|
||||
depotID = depot.id;
|
||||
}
|
||||
options += '<option value="' + depot.id + '">' + depot.name + '</option>';
|
||||
}
|
||||
$("#ProjectId").empty().append(options);
|
||||
$("#searchProjectId").empty().append('<option value="">全部</option>').append(options);
|
||||
}
|
||||
}
|
||||
|
||||
//防止表单提交重复
|
||||
function initForm() {
|
||||
$('#personFM').form({
|
||||
@@ -480,9 +438,8 @@
|
||||
//重置按钮
|
||||
$("#searchResetBtn").unbind().bind({
|
||||
click: function () {
|
||||
$("#searchProjectId").val("");
|
||||
$("#searchName").val("");
|
||||
$("#searchType").val("");
|
||||
|
||||
//加载完以后重新初始化
|
||||
$("#searchBtn").click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user