This commit is contained in:
cwchen 2024-11-16 16:48:32 +08:00
parent 5199d99e01
commit e360663fcf
2 changed files with 13 additions and 4 deletions

View File

@ -148,10 +148,18 @@ function getPartDetails() {
$('#codeValue').html(obj.code + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs(' + JSON.stringify(obj) + ')\'>查看概述</a>');
$('#type').html(obj.type === '0' ? '设备' : '工器具');
$('#applyNum').html(obj.applyNum);
$('#lyUrl').html('<img src="' + (fileUrl + obj.lyUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
$('#zdUrl').html('<img src="' + (fileUrl + obj.zdUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
$('#ckUrl').html('<img src="' + (fileUrl + obj.ckUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
$('#shUrl').html('<img src="' + (fileUrl + obj.shUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
if(obj.lyUrl){
$('#lyUrl').html('<img src="' + (signFileUrl + obj.lyUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
}
if(obj.zdUrl){
$('#zdUrl').html('<img src="' + (signFileUrl + obj.zdUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
}
if(obj.ckUrl){
$('#lyUrl').html('<img src="' + (signFileUrl + obj.ckUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
}
if(obj.shUrl){
$('#shUrl').html('<img src="' + (signFileUrl + obj.shUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
}
setFileTable(obj.fileList);
if (objParam.type === '0') { // 设备
let html = '';

View File

@ -1,5 +1,6 @@
const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径
const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径
const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件