Commit 5f8f3a39 by 张超军

墨奇设备启动

parent 0902f2e5
...@@ -5,22 +5,23 @@ var relUrlIp = window.location.host.substring( ...@@ -5,22 +5,23 @@ var relUrlIp = window.location.host.substring(
let base = { let base = {
BaseURL:'', BaseURL:'',
}; };
if (relUrlIp == "133.8.5.1"|| // if (relUrlIp == "133.8.5.1"||
relUrlIp == "68.174.69.46" || // relUrlIp == "68.174.69.46" ||
relUrlIp == "68.175.7.118" || // relUrlIp == "68.175.7.118" ||
relUrlIp == "65.65.100.205" || // relUrlIp == "65.65.100.205" ||
relUrlIp == "68.175.7.150" || // relUrlIp == "68.175.7.150" ||
relUrlIp == "68.175.7.95" || // relUrlIp == "68.175.7.95" ||
relUrlIp == "68.174.25.98" || // relUrlIp == "68.174.25.98" ||
relUrlIp == "26.8.175.240" || // relUrlIp == "26.8.175.240" ||
relUrlIp == "133.8.5.67" || // relUrlIp == "133.8.5.67" ||
relUrlIp == "26.3.13.120") { // relUrlIp == "26.3.13.120") {
//------------------------------刑侦字典服务路径**公安网**-------------------------------- // //------------------------------刑侦字典服务路径**公安网**--------------------------------
base.BaseURL="/apiZwxtGaw" // base.BaseURL="/apiZwxtGaw"
} else{ // } else{
//------------------------------刑侦字典服务路径**阿里云**-------------------------------- // //------------------------------刑侦字典服务路径**阿里云**--------------------------------
base.BaseURL="/apiZwxt" // base.BaseURL="/apiZwxt"
} // }
base.BaseURL = 'http://localhost:8080'
export default base; export default base;
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div> </div>
</div> </div>
<!-- 对比度 --> <!-- 对比度 -->
<div class="light contrast"> <div class="light contrast" :style="{opacity: 1-playFnOpacity}">
<div class="light-text"> <div class="light-text">
对比度:<span>{{ contrastvalue }}</span> 对比度:<span>{{ contrastvalue }}</span>
</div> </div>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
</div> </div>
<!-- 视频 --> <!-- 视频 -->
<div class="movie" @click="playFn" style="opacity: 0;"> <div class="movie" @click="playFn" :style="{opacity: playFnOpacity}">
<span class="iconfont icon-bofang" v-show="!isPlay"></span> <span class="iconfont icon-bofang" v-show="!isPlay"></span>
<video v-show="isPlay" ref="video" :src="videoSrc" controls muted></video> <video v-show="isPlay" ref="video" :src="videoSrc" controls muted></video>
</div> </div>
...@@ -756,8 +756,8 @@ export default { ...@@ -756,8 +756,8 @@ export default {
}], }],
value: '干燥指纹', value: '干燥指纹',
checkList: ['指纹交叉验证', '随时中止采集'], checkList: ['指纹交叉验证', '随时中止采集'],
lightvalue: 10, lightvalue: 80,
contrastvalue: 20, contrastvalue: -1,
// 是否显示视频播放 // 是否显示视频播放
isPlay: false, isPlay: false,
// 视频路径 // 视频路径
...@@ -994,7 +994,7 @@ export default { ...@@ -994,7 +994,7 @@ export default {
score: 0 score: 0
}, },
{ {
lightvalue: 0 lightvalue: 80
}, },
{ {
contrastvalue: 0 contrastvalue: 0
...@@ -1156,7 +1156,9 @@ export default { ...@@ -1156,7 +1156,9 @@ export default {
SupportNbis: false, SupportNbis: false,
SupportNfiq2: false, SupportNfiq2: false,
// 设备,调节音量需要使用 // 设备,调节音量需要使用
GrpcCameraService: null GrpcCameraService: null,
// 视频透明度
playFnOpacity: 0
} }
}, },
components: { components: {
...@@ -1341,7 +1343,7 @@ export default { ...@@ -1341,7 +1343,7 @@ export default {
try { try {
this.GrpcCameraService = new GrpcCameraService(url.BaseURL, this.sessionId); this.GrpcCameraService = new GrpcCameraService(url.BaseURL, this.sessionId);
this.version = await this.GrpcCameraService.getCameraVersion() this.version = await this.GrpcCameraService.getCameraVersion()
//console.log(this.version); console.log(this.version);
this.SupportNbis = this.version.SupportNbis this.SupportNbis = this.version.SupportNbis
this.SupportNfiq2 = this.version.SupportNfiq2 this.SupportNfiq2 = this.version.SupportNfiq2
this.GrpcCameraService.setAudioVolumeAndMayTryPlay(this.lightvalue, () => { this.GrpcCameraService.setAudioVolumeAndMayTryPlay(this.lightvalue, () => {
...@@ -1353,18 +1355,22 @@ export default { ...@@ -1353,18 +1355,22 @@ export default {
//console.log(error); //console.log(error);
} }
// ib采集器相关的初始化 console.log(this.version.DeviceSn);
try { if (!this.version.DeviceSn) {
// 获取小指纹采集器信息 // ib采集器相关的初始化
let result = await this.getIBVersion() try {
this.deviceModel = result.productName // 获取小指纹采集器信息
this.deviceSn = result.serialNumber let result = await this.getIBVersion()
this.iBversion.deviceSN = result.serialNumber this.deviceModel = result.productName
this.pop = false this.deviceSn = result.serialNumber
this.isAlter = false this.iBversion.deviceSN = result.serialNumber
} catch (error) { this.pop = false
//console.log(error); this.isAlter = false
} catch (error) {
//console.log(error);
}
} }
// canvas // canvas
if (this.iBversion.deviceSN) { if (this.iBversion.deviceSN) {
this.canvas = document.getElementById("frameImage"); this.canvas = document.getElementById("frameImage");
...@@ -1375,6 +1381,7 @@ export default { ...@@ -1375,6 +1381,7 @@ export default {
if (this.version.DeviceSn) { if (this.version.DeviceSn) {
// 墨奇 // 墨奇
this.playFnOpacity = 1
// 去掉采集下方的提示性文字 // 去掉采集下方的提示性文字
this.tipP = "" this.tipP = ""
this.pop = false this.pop = false
...@@ -1421,6 +1428,7 @@ export default { ...@@ -1421,6 +1428,7 @@ export default {
} }
} else if (this.iBversion.deviceSN) { } else if (this.iBversion.deviceSN) {
// iB // iB
this.playFnOpacity = 0
this.pop = false this.pop = false
this.isAlter = false this.isAlter = false
// 获取到SN序列号,ip地址,发送到服务器 // 获取到SN序列号,ip地址,发送到服务器
...@@ -8438,10 +8446,10 @@ export default { ...@@ -8438,10 +8446,10 @@ export default {
<package><packageHead><version>${this.packageHeader.version}</version><createTime>${this.packageHeader.createTime}</createTime><originSystem>${this.packageHeader.originSystem}</originSystem><fsdw_gajgjgdm>${this.packageHeader.fsdw_gajgjgdm}</fsdw_gajgjgdm><fsdw_gajgmc>${this.packageHeader.fsdw_gajgmc}</fsdw_gajgmc><fsdw_xtlx>${this.packageHeader.fsdw_xtlx}</fsdw_xtlx><fsr_xm>${this.packageHeader.fsr_xm}</fsr_xm><fsr_gmsfhm>${this.packageHeader.fsr_gmsfhm}</fsr_gmsfhm><fsr_lxdh>${this.packageHeader.fsr_lxdh}</fsr_lxdh></packageHead><fingerprintPackage><descriptiveMsg><collectingReasonSet><cjxxyydm>${this.descriptiveMsg.cjxxyydm}</cjxxyydm></collectingReasonSet><ysxt_asjxgrybh>${this.descriptiveMsg.ysxt_asjxgrybh}</ysxt_asjxgrybh><jzrybh>${this.descriptiveMsg.jzrybh}</jzrybh><asjxgrybh>${this.descriptiveMsg.asjxgrybh}</asjxgrybh><zzhwkbh>${this.descriptiveMsg.zzhwkbh}</zzhwkbh><hjdz_xzqhdm>${this.descriptiveMsg.hjdz_xzqhdm}</hjdz_xzqhdm><hjdz_dzmc>${this.descriptiveMsg.hjdz_dzmc}</hjdz_dzmc><xzz_xzqhdm>${this.descriptiveMsg.xzz_xzqhdm}</xzz_xzqhdm><xzz_dzmc>${this.descriptiveMsg.xzz_dzmc}</xzz_dzmc><xm>${this.descriptiveMsg.xm}</xm><bmch>${this.descriptiveMsg.bmch}</bmch><xbdm>${this.descriptiveMsg.xbdm}</xbdm><csrq>${this.descriptiveMsg.csrq}</csrq><gjdm>${this.descriptiveMsg.gjdm}</gjdm><mzdm>${this.descriptiveMsg.mzdm}</mzdm><cyzjdm>${this.descriptiveMsg.cyzjdm}</cyzjdm><zjhm>${this.descriptiveMsg.zjhm}</zjhm><bz>${this.descriptiveMsg.bz}</bz></descriptiveMsg><collectInfoMsg><zwbdxtlxms>${this.collectInfoMsg.zwbdxtlxms}</zwbdxtlxms><nydw_gajgjgdm>${this.collectInfoMsg.nydw_gajgjgdm}</nydw_gajgjgdm><nydw_gajgmc>${this.collectInfoMsg.nydw_gajgmc}</nydw_gajgmc><nyry_xm>${this.collectInfoMsg.nyry_xm}</nyry_xm><nyry_gmsfhm>${this.collectInfoMsg.nyry_gmsfhm}</nyry_gmsfhm><nyry_lxdh>${this.collectInfoMsg.nyry_lxdh}</nyry_lxdh><nysj>${this.collectInfoMsg.nysj}</nysj></collectInfoMsg><fingers>${self.str}</fingers></fingerprintPackage></package>` <package><packageHead><version>${this.packageHeader.version}</version><createTime>${this.packageHeader.createTime}</createTime><originSystem>${this.packageHeader.originSystem}</originSystem><fsdw_gajgjgdm>${this.packageHeader.fsdw_gajgjgdm}</fsdw_gajgjgdm><fsdw_gajgmc>${this.packageHeader.fsdw_gajgmc}</fsdw_gajgmc><fsdw_xtlx>${this.packageHeader.fsdw_xtlx}</fsdw_xtlx><fsr_xm>${this.packageHeader.fsr_xm}</fsr_xm><fsr_gmsfhm>${this.packageHeader.fsr_gmsfhm}</fsr_gmsfhm><fsr_lxdh>${this.packageHeader.fsr_lxdh}</fsr_lxdh></packageHead><fingerprintPackage><descriptiveMsg><collectingReasonSet><cjxxyydm>${this.descriptiveMsg.cjxxyydm}</cjxxyydm></collectingReasonSet><ysxt_asjxgrybh>${this.descriptiveMsg.ysxt_asjxgrybh}</ysxt_asjxgrybh><jzrybh>${this.descriptiveMsg.jzrybh}</jzrybh><asjxgrybh>${this.descriptiveMsg.asjxgrybh}</asjxgrybh><zzhwkbh>${this.descriptiveMsg.zzhwkbh}</zzhwkbh><hjdz_xzqhdm>${this.descriptiveMsg.hjdz_xzqhdm}</hjdz_xzqhdm><hjdz_dzmc>${this.descriptiveMsg.hjdz_dzmc}</hjdz_dzmc><xzz_xzqhdm>${this.descriptiveMsg.xzz_xzqhdm}</xzz_xzqhdm><xzz_dzmc>${this.descriptiveMsg.xzz_dzmc}</xzz_dzmc><xm>${this.descriptiveMsg.xm}</xm><bmch>${this.descriptiveMsg.bmch}</bmch><xbdm>${this.descriptiveMsg.xbdm}</xbdm><csrq>${this.descriptiveMsg.csrq}</csrq><gjdm>${this.descriptiveMsg.gjdm}</gjdm><mzdm>${this.descriptiveMsg.mzdm}</mzdm><cyzjdm>${this.descriptiveMsg.cyzjdm}</cyzjdm><zjhm>${this.descriptiveMsg.zjhm}</zjhm><bz>${this.descriptiveMsg.bz}</bz></descriptiveMsg><collectInfoMsg><zwbdxtlxms>${this.collectInfoMsg.zwbdxtlxms}</zwbdxtlxms><nydw_gajgjgdm>${this.collectInfoMsg.nydw_gajgjgdm}</nydw_gajgjgdm><nydw_gajgmc>${this.collectInfoMsg.nydw_gajgmc}</nydw_gajgmc><nyry_xm>${this.collectInfoMsg.nyry_xm}</nyry_xm><nyry_gmsfhm>${this.collectInfoMsg.nyry_gmsfhm}</nyry_gmsfhm><nyry_lxdh>${this.collectInfoMsg.nyry_lxdh}</nyry_lxdh><nysj>${this.collectInfoMsg.nysj}</nysj></collectInfoMsg><fingers>${self.str}</fingers></fingerprintPackage></package>`
} }
// // 导出文件到本地 // 导出文件到本地
// let filenameexport = self.$route.params.rybh let filenameexport = self.$route.params.rybh
// this.exportRaw(`${filenameexport}.fptx`, this.xmlStr) this.exportRaw(`${filenameexport}.fptx`, this.xmlStr)
// NProgress.done(); NProgress.done();
let fingerImageMsgStr = [] let fingerImageMsgStr = []
let fingerMd5 = this.checkMd5(this.xmlStr) let fingerMd5 = this.checkMd5(this.xmlStr)
...@@ -8528,9 +8536,9 @@ export default { ...@@ -8528,9 +8536,9 @@ export default {
} }
}, 1000); }, 1000);
// 导出文件到本地 // // 导出文件到本地
let filenameexport = self.$route.params.rybh // let filenameexport = self.$route.params.rybh
self.exportRaw(`${filenameexport}.fptx`, self.xmlStr) // self.exportRaw(`${filenameexport}.fptx`, self.xmlStr)
var params = new URLSearchParams(); var params = new URLSearchParams();
params.append('rybh', self.rybh); params.append('rybh', self.rybh);
...@@ -8638,8 +8646,8 @@ export default { ...@@ -8638,8 +8646,8 @@ export default {
} }
}).then(res => { }).then(res => {
// 导出文件到本地 // 导出文件到本地
let filenameexport = self.$route.params.rybh // let filenameexport = self.$route.params.rybh
self.exportRaw(`${filenameexport}.fptx`, self.xmlStr) // self.exportRaw(`${filenameexport}.fptx`, self.xmlStr)
// console.log(res); // console.log(res);
// 上传完成 // 上传完成
// self.percentage = 100 // self.percentage = 100
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment