style(webapp): 注释和调整前端页面部分元素及代码
This commit is contained in:
@ -174,7 +174,7 @@
|
|||||||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||||||
sort: params.sort, // 要排序的字段
|
sort: params.sort, // 要排序的字段
|
||||||
order: params.order,
|
order: params.order,
|
||||||
search_name: $('#search_name').val(),
|
// search_name: $('#search_name').val(),
|
||||||
search_code: $('#search_code').val()
|
search_code: $('#search_code').val()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -301,14 +301,14 @@
|
|||||||
<label class="form-label" id="companylabel">公司</label>
|
<label class="form-label" id="companylabel">公司</label>
|
||||||
<select class="form-control select2 " id="search_code" name ="search_code" style="width: 220px;"></select>
|
<select class="form-control select2 " id="search_code" name ="search_code" style="width: 220px;"></select>
|
||||||
<span class="select2-selection select2-selection--single" id="company" style="width:220px;border: none;background: transparent;" ></span>
|
<span class="select2-selection select2-selection--single" id="company" style="width:220px;border: none;background: transparent;" ></span>
|
||||||
<div class="form-group pull-right" >
|
<!-- <div class="form-group pull-right" >
|
||||||
<div class="input-group input-group-sm" style="width: 250px;">
|
<div class="input-group input-group-sm" style="width: 250px;">
|
||||||
<input type="text" id="search_name" name="search_name" class="form-control pull-right" placeholder="名称">
|
<input type="text" id="search_name" name="search_name" class="form-control pull-right" placeholder="名称">
|
||||||
<div class="input-group-btn">
|
<div class="input-group-btn">
|
||||||
<button class="btn btn-default" onclick="dosearch();"><i class="fa fa-search"></i></button>
|
<button class="btn btn-default" onclick="dosearch();"><i class="fa fa-search"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<table id="table"></table>
|
<table id="table"></table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -115,7 +115,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
|
|||||||
var fileinput = function () {
|
var fileinput = function () {
|
||||||
$('#file').click();
|
$('#file').click();
|
||||||
};
|
};
|
||||||
var filedel = function () {
|
var filedel = function (index) {
|
||||||
fileList.splice(index,1)
|
fileList.splice(index,1)
|
||||||
$('#test').html(initFileInputView())
|
$('#test').html(initFileInputView())
|
||||||
};
|
};
|
||||||
|
|||||||
@ -233,12 +233,12 @@ pageEncoding="UTF-8"%>
|
|||||||
class="drawer-nav-icon"
|
class="drawer-nav-icon"
|
||||||
/>企业
|
/>企业
|
||||||
</div>
|
</div>
|
||||||
<div class="drawer-nav-item" onclick="switchTab('tab-pipeline', this)">
|
<!-- <div class="drawer-nav-item" onclick="switchTab('tab-pipeline', this)">
|
||||||
<img
|
<img
|
||||||
src="<%=request.getContextPath()%>/IMG/icon_gd.png"
|
src="<%=request.getContextPath()%>/IMG/icon_gd.png"
|
||||||
class="drawer-nav-icon"
|
class="drawer-nav-icon"
|
||||||
/>管道
|
/>管道
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <div class="drawer-nav-item" onclick="switchTab('tab-well', this)">
|
<!-- <div class="drawer-nav-item" onclick="switchTab('tab-well', this)">
|
||||||
<img
|
<img
|
||||||
src="<%=request.getContextPath()%>/IMG/icon_gj.png"
|
src="<%=request.getContextPath()%>/IMG/icon_gj.png"
|
||||||
@ -548,15 +548,6 @@ pageEncoding="UTF-8"%>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="max-height: 400px; overflow-y: auto" id="company-table-container">
|
<div style="max-height: 400px; overflow-y: auto" id="company-table-container">
|
||||||
<div id="company-loading" style="display: none; text-align: center; padding: 20px;">
|
|
||||||
<i class="glyphicon glyphicon-refresh" style="font-size: 24px; color: #007bff; animation: spin 1s infinite linear;"></i>
|
|
||||||
<p style="margin-top: 10px; color: #666; font-size: 12px">数据加载中...</p>
|
|
||||||
<style>
|
|
||||||
@keyframes spin {
|
|
||||||
100% { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</div>
|
|
||||||
<table
|
<table
|
||||||
class="table table-bordered table-hover table-condensed table-custom"
|
class="table table-bordered table-hover table-condensed table-custom"
|
||||||
style="font-size: 12px; white-space: nowrap"
|
style="font-size: 12px; white-space: nowrap"
|
||||||
@ -578,6 +569,10 @@ pageEncoding="UTF-8"%>
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id="company-table-body"></tbody>
|
<tbody id="company-table-body"></tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div id="company-loading" style="display: none; text-align: center; padding: 20px;">
|
||||||
|
<i class="glyphicon glyphicon-refresh" style="font-size: 24px; color: #007bff; animation: spin 1s infinite linear;"></i>
|
||||||
|
<p style="margin-top: 10px; color: #666; font-size: 12px">数据加载中...</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1330,7 +1325,9 @@ pageEncoding="UTF-8"%>
|
|||||||
// 直接返回数组
|
// 直接返回数组
|
||||||
list = res;
|
list = res;
|
||||||
}
|
}
|
||||||
config.data = list.map(config.transform);
|
config.data = list.map(function(item, idx) {
|
||||||
|
return config.transform(item, idx);
|
||||||
|
});
|
||||||
config.loaded = true;
|
config.loaded = true;
|
||||||
console.log('[' + type + '] 加载完成:', config.data.length, '条');
|
console.log('[' + type + '] 加载完成:', config.data.length, '条');
|
||||||
return config.data;
|
return config.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user