Merge branch 'main' of http://192.168.0.56:3000/cwchen/gz_gqj_web
# Conflicts: # js/public.js
This commit is contained in:
commit
73b98d2d22
|
|
@ -148,17 +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);
|
||||||
|
let suffix = "data:image/jpeg;base64,"
|
||||||
if(obj.lyUrl){
|
if(obj.lyUrl){
|
||||||
$('#lyUrl').html('<img src="' + (signFileUrl + obj.lyUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
$('#lyUrl').html('<img src="' + (suffix + obj.lyUrl) + '">');
|
||||||
}
|
}
|
||||||
if(obj.zdUrl){
|
if(obj.zdUrl){
|
||||||
$('#zdUrl').html('<img src="' + (signFileUrl + obj.zdUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
$('#zdUrl').html('<img src="' + (suffix + obj.zdUrl) + '">');
|
||||||
}
|
}
|
||||||
if(obj.ckUrl){
|
if(obj.ckUrl){
|
||||||
$('#lyUrl').html('<img src="' + (signFileUrl + obj.ckUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
$('#lyUrl').html('<img src="' + (suffix + obj.ckUrl) + '">');
|
||||||
}
|
}
|
||||||
if(obj.shUrl){
|
if(obj.shUrl){
|
||||||
$('#shUrl').html('<img src="' + (signFileUrl + obj.shUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
$('#shUrl').html('<img src="' + (suffix + obj.shUrl) + '">');
|
||||||
}
|
}
|
||||||
setFileTable(obj.fileList);
|
setFileTable(obj.fileList);
|
||||||
if (objParam.type === '0') { // 设备
|
if (objParam.type === '0') { // 设备
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ function queryTable(type) {
|
||||||
// 刷新页面数据
|
// 刷新页面数据
|
||||||
function reloadData() {
|
function reloadData() {
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
|
getStatistics();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重载表格
|
// 重载表格
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ function getUrlParam(key) {
|
||||||
|
|
||||||
// 预览文件
|
// 预览文件
|
||||||
function commonViewFile(params) {
|
function commonViewFile(params) {
|
||||||
let path = fileUrl + params;
|
let path = fileUrl + params + "&auth=" + sessionStorage.getItem("gz-token");
|
||||||
let time = encrypt(Math.floor(Date.now()).toString())
|
let time = encrypt(Math.floor(Date.now()).toString())
|
||||||
window.open(viewFileUrl + path + '&token=' + encrypt(time));
|
window.open(viewFileUrl + path + '&token=' + encrypt(time));
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue