This commit is contained in:
parent
8edeb170a6
commit
7e5774ef8c
|
|
@ -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>');
|
||||
$('#type').html(obj.type === '0' ? '设备' : '工器具');
|
||||
$('#applyNum').html(obj.applyNum);
|
||||
let suffix = "data:image/jpeg;base64,"
|
||||
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){
|
||||
$('#zdUrl').html('<img src="' + (signFileUrl + obj.zdUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
||||
$('#zdUrl').html('<img src="' + (suffix + obj.zdUrl) + '">');
|
||||
}
|
||||
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){
|
||||
$('#shUrl').html('<img src="' + (signFileUrl + obj.shUrl + '?token=' + sessionStorage.getItem('gz-token')) + '">');
|
||||
$('#shUrl').html('<img src="' + (suffix + obj.shUrl) + '">');
|
||||
}
|
||||
setFileTable(obj.fileList);
|
||||
if (objParam.type === '0') { // 设备
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ function queryTable(type) {
|
|||
// 刷新页面数据
|
||||
function reloadData() {
|
||||
reloadTable(1);
|
||||
getStatistics();
|
||||
}
|
||||
|
||||
// 重载表格
|
||||
|
|
|
|||
11
js/public.js
11
js/public.js
|
|
@ -1,10 +1,13 @@
|
|||
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 signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径
|
||||
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 */
|
||||
|
||||
const dataUrl = 'http://192.168.0.14:21999/'; // 数据请求路径
|
||||
const fileUrl = 'http://192.168.0.14:21999/statics'; // 文件路径
|
||||
const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径
|
||||
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件
|
||||
|
||||
|
||||
|
||||
/* 请求 */
|
||||
function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, contentType) {
|
||||
$.ajax({
|
||||
|
|
@ -178,7 +181,7 @@ function getUrlParam(key) {
|
|||
|
||||
// 预览文件
|
||||
function commonViewFile(params) {
|
||||
let path = fileUrl + params;
|
||||
let path = fileUrl + params + "&auth=" + sessionStorage.getItem("gz-token");
|
||||
let time = encrypt(Math.floor(Date.now()).toString())
|
||||
window.open(viewFileUrl + path + '&token=' + encrypt(time));
|
||||
}
|
||||
Loading…
Reference in New Issue