let idParam, layer;
function setParams(id) {
layui.use(['layer'], function () {
layer = layui.layer;
idParam = id;
getNoticeVoiDetailById(idParam)
});
}
function getNoticeVoiDetailById() {
let loadingMsg = layer.msg("数据加载中,请稍候...", {icon: 16, scrollbar: false, time: 0,});
$.ajax({
headers: {
"encrypt": sm3(JSON.stringify({
id: idParam
}))
},
url: dataUrl + 'proteam/pot/superStatistics/getNoticeVoiRectById?token=' + token,
data: {
id: idParam
},
type: 'POST',
async: false,
success: function (result) {
layer.close(loadingMsg);
if (result.code === 200) {
setData(result.data);
} else if (result.code === 500) {
layer.alert(result.msg, {icon: 2})
} else if (result.code === 401) {
logout(1)
}
}, error: function () {
layer.close(loadingMsg);
setData(null);
}
});
}
/*页面赋值*/
function setData(data) {
$('#status').html(data.status)
$('#createTime').html(data.createTime)
$('#voiType').html(data.voiType)
$('#levelId').html(data.levelId)
$('#type').html(data.type)
$('#org').html(data.org)
$('#vioUsers').html(data.vioUsers)
$('#voiYj').html(data.voiYj)
$('#content').html(data.content)
$('#recRequirement').html(data.recRequirement)
let imgPath = data.imgPath, imgPathArr = imgPath.split(','), html = ''
$.each(imgPathArr, function (index, item) {
let path = photoUrl + item + '?token=' + token
html += ''
})
$('.supervision-img').append(html)
if (data.list) {
let html = '';
$.each(data.list, function (index, item) {
let cent = '整改照片', cent2 = '整改说明';
if (!item.dutyUnit) {
cent = '申诉照片', cent2 = '申诉说明';
}
html += '
' + (index + 1) + '
' + '' + cent + ':
' + '' + cent2 + ':
' + '' + item.rectExplain + '
' + '审核意见:
' + '' + setValue2(item.checkOpinion) + '
' + '责任单位:' + item.dutyUnit + '
' + '责任人:' + item.dutyUser + '
' + '整改完成时间:' + item.rectFinshTime + '
' + '联系人及电话:' + item.contactPhone + '
' + '
" +
"整改附件
" + "