27 lines
868 B
JavaScript
27 lines
868 B
JavaScript
// 获取图片数量
|
|
function initImgNum() {
|
|
let url = dataUrl + "/backstage/synthesisQuery/getImgNum"
|
|
let obj = {}
|
|
let params = {
|
|
encryptedData: encryptCBC(JSON.stringify(obj))
|
|
}
|
|
ajaxRequest(url, "POST", params, true, function () {
|
|
}, function (result) {
|
|
if (result.status === 200) {
|
|
setImgNum(result.data);
|
|
} else {
|
|
layer.msg(result.msg, {icon: 2})
|
|
}
|
|
}, function (xhr) {
|
|
error(xhr)
|
|
});
|
|
|
|
function setImgNum(obj){
|
|
$('#totalNum').html(obj.totalNum);
|
|
$('#safetyVioNum').html(obj.safetyVioNum);
|
|
$('#qualityInsNum').html(obj.qualityInsNum);
|
|
$('#safetyMeasNum').html(obj.safetyMeasNum);
|
|
$('#coordinatedPhotoNum').html(obj.coordinatedPhotoNum);
|
|
$('#importIssuesAndPublicityNum').html(obj.importIssuesAndPublicityNum);
|
|
}
|
|
} |