细节优化
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -156,7 +156,7 @@
|
|||||||
{
|
{
|
||||||
title: '图标', field: 'icon', width: 100, formatter: function (value, row) {
|
title: '图标', field: 'icon', width: 100, formatter: function (value, row) {
|
||||||
if (value != null) {
|
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("");
|
$("#searchParentName").val("");
|
||||||
$("#searchParentId").val("");
|
$("#searchParentId").val("");
|
||||||
$("#searchName").val("");
|
$("#searchName").val("");
|
||||||
|
$("#searchModel").val("");
|
||||||
types = ""; //清空类别
|
types = ""; //清空类别
|
||||||
//加载完以后重新初始化
|
//加载完以后重新初始化
|
||||||
$("#searchBtn").click();
|
$("#searchBtn").click();
|
||||||
|
|||||||
@@ -82,55 +82,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var depotList = null;
|
|
||||||
var depotID = null;
|
|
||||||
//初始化界面
|
//初始化界面
|
||||||
$(function () {
|
$(function () {
|
||||||
//初始化系统基础信息
|
|
||||||
initSystemData();
|
|
||||||
initSelectInfo();
|
|
||||||
initTableData();
|
initTableData();
|
||||||
ininPager();
|
ininPager();
|
||||||
initForm();
|
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() {
|
function initForm() {
|
||||||
$('#personFM').form({
|
$('#personFM').form({
|
||||||
@@ -480,9 +438,8 @@
|
|||||||
//重置按钮
|
//重置按钮
|
||||||
$("#searchResetBtn").unbind().bind({
|
$("#searchResetBtn").unbind().bind({
|
||||||
click: function () {
|
click: function () {
|
||||||
$("#searchProjectId").val("");
|
$("#searchName").val("");
|
||||||
$("#searchType").val("");
|
$("#searchType").val("");
|
||||||
|
|
||||||
//加载完以后重新初始化
|
//加载完以后重新初始化
|
||||||
$("#searchBtn").click();
|
$("#searchBtn").click();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user