This commit is contained in:
parent
5199d99e01
commit
e360663fcf
|
|
@ -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>');
|
$('#codeValue').html(obj.code + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
||||||
$('#type').html(obj.type === '0' ? '设备' : '工器具');
|
$('#type').html(obj.type === '0' ? '设备' : '工器具');
|
||||||
$('#applyNum').html(obj.applyNum);
|
$('#applyNum').html(obj.applyNum);
|
||||||
$('#lyUrl').html('<img src="' + (fileUrl + obj.lyUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
if(obj.lyUrl){
|
||||||
$('#zdUrl').html('<img src="' + (fileUrl + obj.zdUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
$('#lyUrl').html('<img src="' + (signFileUrl + obj.lyUrl + '?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.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);
|
setFileTable(obj.fileList);
|
||||||
if (objParam.type === '0') { // 设备
|
if (objParam.type === '0') { // 设备
|
||||||
let html = '';
|
let html = '';
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径
|
const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径
|
||||||
const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径
|
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服务器预览文件
|
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue