|
|
|
@ -111,7 +111,7 @@ |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
<div class="col-sm-12 select-table table-bordered"> |
|
|
|
<div id="detail" class="detail-list"> |
|
|
|
<div id="detail" class="detail-list" style="width: 85%;"> |
|
|
|
<span id="closeButton" class="detail-close" onclick="closeC()">×</span> |
|
|
|
<table id="bootstrap-table"></table> |
|
|
|
</div> |
|
|
|
@ -229,7 +229,7 @@ |
|
|
|
field : 'complaintDepartment', |
|
|
|
title : '被投诉对象' |
|
|
|
}, |
|
|
|
{ |
|
|
|
/*{ |
|
|
|
field : 'complaintType', |
|
|
|
title : '投诉类型', |
|
|
|
formatter:function (value,row,index) { |
|
|
|
@ -258,10 +258,13 @@ |
|
|
|
return '<span style="cursor: pointer;color: blue;" ONCLICK="sComplaint(\'' + row.complaintDepartment + '\')">'+cName+'</span>'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
},*/ |
|
|
|
{ |
|
|
|
field : 'total', |
|
|
|
title : '投诉数量' |
|
|
|
title : '投诉数量', |
|
|
|
formatter:function (value,row,index) { |
|
|
|
return '<span style="cursor: pointer;color: blue;" ONCLICK="sComplaint(\'' + row.complaintDepartmentId + '\')">'+value+'</span>'; |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
}; |
|
|
|
@ -308,7 +311,13 @@ |
|
|
|
$(function() { |
|
|
|
var options3 = { |
|
|
|
modalName: "类型显示", |
|
|
|
pagination: true, |
|
|
|
pageSize: 10, |
|
|
|
columns: [ |
|
|
|
{ |
|
|
|
field : 'complaintDepartment', |
|
|
|
title : '被投诉对象' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'complaintType', |
|
|
|
title : '投诉类型', |
|
|
|
@ -322,9 +331,49 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'total', |
|
|
|
title : '投诉数量' |
|
|
|
} |
|
|
|
field : 'problemDescription', |
|
|
|
title : '投诉内容' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'fileList', |
|
|
|
title : '附件', |
|
|
|
formatter:function (value,row,index) { |
|
|
|
if(value!=null) { |
|
|
|
let string=''; |
|
|
|
if (value.length > 0) { |
|
|
|
for (let i = 0; i < list.length; i++) { |
|
|
|
string = string + '<img style="cursor: pointer;" src="' + list[i] + '" @click="openPicture(\''+list[i]+'\')"></img>'; |
|
|
|
} |
|
|
|
} |
|
|
|
return string; |
|
|
|
}else{ |
|
|
|
/*let list=["http://localhost:8080/","D:/code/zdxt/zdxtLawEnforcementCode/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/template/a6c39541059498889daec9d3acd601a.png","/profile//2024/01/11/35082e876f84a21f40f075adf4f0da30.png"]; |
|
|
|
let string=''; |
|
|
|
if (list.length > 0) { |
|
|
|
for (let i = 0; i < list.length; i++) { |
|
|
|
string = string + '<img style="cursor: pointer;" src="' + list[i] + '" @click="openPicture(\''+list[i]+'\')"></img>'; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'enterpriseAddress', |
|
|
|
title : '涉事地址', |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'linkman', |
|
|
|
title : '联系人' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'linkmanTel', |
|
|
|
title : '联系电话' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'complaintTime', |
|
|
|
title : '投诉时间' |
|
|
|
}, |
|
|
|
] |
|
|
|
} |
|
|
|
$("#bootstrap-table").bootstrapTable(options3); |
|
|
|
@ -508,7 +557,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
function sComplaint(eName){ |
|
|
|
console.log(eName); |
|
|
|
/*console.log(eName); |
|
|
|
var currentId=$('form').eq(0).attr('id') |
|
|
|
var params = $.common.formToJSON(currentId); |
|
|
|
if(eName!='空'){ |
|
|
|
@ -527,8 +576,30 @@ |
|
|
|
},error:function (xhr,status,error){ |
|
|
|
console.error("请求失败:",status,error); |
|
|
|
} |
|
|
|
})*/ |
|
|
|
var currentId=$('form').eq(0).attr('id') |
|
|
|
var params = $.common.formToJSON(currentId); |
|
|
|
params.name=eName; |
|
|
|
$.ajax({ |
|
|
|
url: prefix + "/list", |
|
|
|
method: 'post', |
|
|
|
data:params, |
|
|
|
success:function (response){ |
|
|
|
$('#closeButton').show(); |
|
|
|
$('#detail').show(); |
|
|
|
$('#bootstrap-table').bootstrapTable('load', response); |
|
|
|
},error:function (xhr,status,error){ |
|
|
|
console.error("请求失败:",status,error); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
function openPicture(url){ |
|
|
|
if(url!=null&&url!=''){ |
|
|
|
this.$message.warning('图片不存在'); |
|
|
|
}else{ |
|
|
|
window.open(url); |
|
|
|
} |
|
|
|
} |
|
|
|
function closeC(){ |
|
|
|
$('#closeButton').hide(); |
|
|
|
$('#detail').hide(); |
|
|
|
|