|
@@ -231,9 +231,9 @@
|
|
|
|
|
|
<div class="modal fade" id="loadingModal" backdrop="static" keyboard="false">
|
|
|
<div style="width: 200px;height:100px; z-index: 20000; position: absolute; text-align: center; left: 50%; top: 50%;margin-left:-100px;margin-top:-10px">
|
|
|
- <div class="progress progress-striped active"
|
|
|
+ <div id="loadText" class="progress progress-striped active"
|
|
|
style="margin-bottom: 0;height:50px; text-align:center;line-height: 50px;font-size:large;padding-left: 10px">
|
|
|
- 数据加载中,请稍候......
|
|
|
+ loading......
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -248,7 +248,10 @@
|
|
|
let existName = false
|
|
|
|
|
|
//展示loading框
|
|
|
- showLoading = function (){
|
|
|
+ showLoading = function (text){
|
|
|
+ if(text){
|
|
|
+ $("#loadText").html(text)
|
|
|
+ }
|
|
|
$('#loadingModal').modal({backdrop: 'static', keyboard: false});
|
|
|
}
|
|
|
//隐藏掉loading框
|
|
@@ -327,10 +330,10 @@
|
|
|
}
|
|
|
],
|
|
|
"columnDefs": [{
|
|
|
- "targets": [2],
|
|
|
+ "targets": [4],
|
|
|
"render": function (data, type, full, meta) {
|
|
|
- if (data && data.length > 24) {
|
|
|
- return "<a title='" + data + "' href='#' style='text-decoration: none;'>" + data.trim().substr(0, 24) + "..." + "</a>";
|
|
|
+ if (data && data.length > 44) {
|
|
|
+ return "<a title='" + data + "' href='#' style='text-decoration: none;color: black'>" + data.trim().substr(0, 44) + "..." + "</a>";
|
|
|
}else {
|
|
|
return data
|
|
|
}
|
|
@@ -421,7 +424,7 @@
|
|
|
return;
|
|
|
}
|
|
|
projectmap["s_type"] = stype
|
|
|
- showLoading()
|
|
|
+ showLoading("正在加载数据,请稍候...")
|
|
|
$.ajax({
|
|
|
url: "/front/project/save",
|
|
|
type: 'POST',
|
|
@@ -449,7 +452,7 @@
|
|
|
let file = $('#uploadfile')[0].files[0]
|
|
|
if (file) {
|
|
|
formData.append("xlsx", file)
|
|
|
- showLoading()
|
|
|
+ showLoading("正在加载数据,请稍候...")
|
|
|
$.ajax({
|
|
|
url: "/front/project/save",
|
|
|
type: 'POST',
|
|
@@ -541,7 +544,7 @@
|
|
|
if (tmp["v_fields"] === undefined || Object.keys(tmp["v_fields"]).length === 0) {
|
|
|
showTip("请设置标注字段")
|
|
|
}else {
|
|
|
- showLoading()
|
|
|
+ showLoading("数据清洗中,请稍候...")
|
|
|
$.ajax({
|
|
|
url: "/front/project/qualityAssessment",
|
|
|
type: 'POST',
|