32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
|
|
// var idNumber=localStorage.getItem("idNumber");
|
||
|
|
// var id=localStorage.getItem("contractId");
|
||
|
|
let idNumber,id;
|
||
|
|
function setParam(idParam,idNumberParam){
|
||
|
|
id = idParam;
|
||
|
|
idNumber = idNumberParam;
|
||
|
|
findContractDetails();
|
||
|
|
}
|
||
|
|
$(function(){
|
||
|
|
findContractDetails();
|
||
|
|
});
|
||
|
|
|
||
|
|
function findContractDetails(){
|
||
|
|
var videoUrl=dataPath+"/"+localStorage.getItem("recordvideourl");;//视频路径
|
||
|
|
console.log(videoUrl,"视频路径")
|
||
|
|
document.getElementById("videoUrl").src = videoUrl;
|
||
|
|
document.getElementById('shortMessage').readOnly=true;
|
||
|
|
document.getElementById('message').readOnly=true;
|
||
|
|
document.getElementById('messageTime').readOnly=true;
|
||
|
|
}
|
||
|
|
//zip下载
|
||
|
|
function expDownload(){
|
||
|
|
var videourl = localStorage.getItem("recordvideourl");
|
||
|
|
var token = localStorage.getItem("token");
|
||
|
|
window.open(dataPath+"/"+videourl);
|
||
|
|
//window.location.href=ctxPath + '/contract/exportZip?idNumber='+idNumber+'&id='+id+'&token='+token;
|
||
|
|
}
|
||
|
|
// 关闭
|
||
|
|
function closePage() {
|
||
|
|
let index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||
|
|
parent.layer.close(index); //再执行关闭
|
||
|
|
}
|