Commit 16fdab58 by 米嘉伟

导出,队列

parent 478898aa
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="qxgz(scope.row.id)" @confirm="qxgz(scope.row.id)"
class="icon del" class="icon del"
title="确认取消关注该数据吗?该操作无法撤消!" title="确认取消关注该数据吗?该操作无法撤消!"
> >
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="delOne(scope.row.id)" @confirm="delOne(scope.row.id)"
class="icon del" class="icon del"
title="确认要删除该数据吗?该操作无法撤消!" title="确认要删除该数据吗?该操作无法撤消!"
> >
...@@ -731,12 +731,13 @@ export default { ...@@ -731,12 +731,13 @@ export default {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要导出FPTX的数据!"); this.$message.error("请选择需要导出FPTX的数据!");
this.selectBoo = true; this.selectBoo = true;
} else if (this.multipleSelection.length === 1) { } else {
this.rowData = this.multipleSelection; this.rowData = this.multipleSelection;
this.isShowDcftpx = true; this.isShowDcftpx = true;
} else {
this.$message.error("只能导出单条数据的FPTX!");
} }
// else {
// this.$message.error("只能导出单条数据的FPTX!");
// }
// if (this.multipleSelection.length === 0) { // if (this.multipleSelection.length === 0) {
// this.$message.error("请选择需要导出的数据!"); // this.$message.error("请选择需要导出的数据!");
// this.selectBoo = true // this.selectBoo = true
......
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="qxgz(scope.row.followPerson.personId)" @confirm="qxgz(scope.row.followPerson.personId)"
class="icon del" class="icon del"
title="确认要取消关注吗?该操作无法撤消!" title="确认要取消关注吗?该操作无法撤消!"
> >
...@@ -531,7 +531,7 @@ ...@@ -531,7 +531,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="qxgzAj(scope.row.followCase.caseId)" @confirm="qxgzAj(scope.row.followCase.caseId)"
class="icon del" class="icon del"
title="确认要取消关注该数据吗?该操作无法撤消!" title="确认要取消关注该数据吗?该操作无法撤消!"
> >
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<el-form-item <el-form-item
label="指掌纹序号:" label="指掌纹序号:"
class='zzwxh' class='zzwxh'
v-if='rowData.length<=1'
> >
<el-checkbox <el-checkbox
:indeterminate="isIndeterminate" :indeterminate="isIndeterminate"
...@@ -164,38 +165,43 @@ export default { ...@@ -164,38 +165,43 @@ export default {
}, },
methods: { methods: {
focus () { focus () {
let barcode = [];
if (this.rowData[0].ysxtAsjbh) {
for (let i = 0; i < this.rowData.length; i++) {
barcode.push(this.rowData[i].ysxtAsjbh)
}
} else {
for (let i = 0; i < this.rowData.length; i++) {
barcode.push(this.rowData[i].followCase.barcode)
}
}
let reqParam = { let reqParam = {
barcode: '', //条码号 barcode: '', //条码号
imgNo: '',// 指纹序号 seqNo: '',// 指纹序号
dataType: '',// 数据类型(原图) imageType: '',// 数据类型(原图)
baseMsg: null, // 基本信息 1导出 0不导出 baseMsg: null, // 基本信息 1导出 0不导出
isFeatures: null // 导出特征 1导出 0不导出 isFeatures: null // 导出特征 1导出 0不导出
} }
reqParam.barcode = this.rowData[0].ysxtAsjbh || this.rowData[i].followCase.barcode reqParam.barcode = barcode
reqParam.imgNo = this.checkedTargets.toString() reqParam.seqNo = this.checkedTargets
reqParam.dataType = this.sjlx reqParam.imageType = this.sjlx
reqParam.baseMsg = this.wzChecked == true ? 1 : 0; reqParam.baseMsg = this.wzChecked == true ? 1 : 0;
reqParam.isFeatures = this.tz == true ? 1 : 0 reqParam.isFeatures = this.tz == true ? 1 : 0
this.$axios this.$axios
.get("/api/export/case", { params: reqParam }) .post("/api/export/case", reqParam, {
responseType: "blob",
})
.then((response) => { .then((response) => {
//console.log(response.data)
// var elink = document.createElement('a');
// elink.download = "案件.fptx";
// elink.style.display = 'none';
// var blob = new Blob([response.data], { type: 'application/vnd.ms-excel' });
// elink.href = URL.createObjectURL(blob);
// document.body.appendChild(elink);
// elink.click();
// document.body.removeChild(elink);
if (response.status === 200) { if (response.status === 200) {
if (response.data.code) { if (response.data.code) {
this.$message.error(response.data.message); this.$message.error(response.data.message);
} else { } else {
var elink = document.createElement('a'); var elink = document.createElement('a');
elink.download = "案件.fptx"; elink.download = "案件.zip";
elink.style.display = 'none'; elink.style.display = 'none';
var blob = new Blob([response.data], { type: 'application/vnd.ms-excel' }); var blob = new Blob([response.data], { type: 'application/vnd.ms-excel' });
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob);
...@@ -204,6 +210,7 @@ export default { ...@@ -204,6 +210,7 @@ export default {
document.body.removeChild(elink); document.body.removeChild(elink);
this.dialogVisible = false; this.dialogVisible = false;
// this.$router.push('/dclb') // this.$router.push('/dclb')
this.$store.commit('layout/delcachePageName', 'dclb');
this.$router.push({ this.$router.push({
path: '/dclb', path: '/dclb',
query: { query: {
......
...@@ -550,16 +550,20 @@ export default { ...@@ -550,16 +550,20 @@ export default {
}, },
methods: { methods: {
focus () { focus () {
let barcode = null; let barcode = [];
if (this.rowData[0].ysxtAsjxgrybh) { if (this.rowData[0].ysxtAsjxgrybh) {
barcode = this.rowData[0].ysxtAsjxgrybh for (let i = 0; i < this.rowData.length; i++) {
barcode.push(this.rowData[i].ysxtAsjxgrybh)
}
} else { } else {
barcode = this.rowData[0].followPerson.barcode for (let i = 0; i < this.rowData.length; i++) {
barcode.push(this.rowData[i].followPerson.barcode)
}
} }
let reqParam = { let reqParam = {
barcode: '', //条码号 barcode: '', //条码号
imgNo: '',// 指纹序号 seqNo: '',// 指纹序号
dataType: '',// 数据类型(原图) imageType: '',// 数据类型(原图)
baseMsg: null, // 基本信息 1导出 0不导出 baseMsg: null, // 基本信息 1导出 0不导出
isFeatures: null // 导出特征 1导出 0不导出 isFeatures: null // 导出特征 1导出 0不导出
} }
...@@ -624,23 +628,22 @@ export default { ...@@ -624,23 +628,22 @@ export default {
//console.log('导出序号', arr) //console.log('导出序号', arr)
reqParam.barcode = barcode reqParam.barcode = barcode
reqParam.imgNo = arr.toString() reqParam.seqNo = arr
reqParam.dataType = this.sjlx reqParam.imageType = this.sjlx
reqParam.baseMsg = this.wzChecked == true ? 1 : 0; reqParam.baseMsg = this.wzChecked == true ? 1 : 0;
reqParam.isFeatures = this.tz == true ? 1 : 0 reqParam.isFeatures = this.tz == true ? 1 : 0
this.$axios this.$axios
.get("/api/export/person/", { params: reqParam }) .post("/api/export/person/", reqParam, {
responseType: "blob",
})
.then((response) => { .then((response) => {
//console.log(response)
if (response.status === 200) { if (response.status === 200) {
if (response.data.code) { if (response.data.code) {
this.$message.error(response.data.message); this.$message.error(response.data.message);
} else { } else {
var elink = document.createElement('a'); var elink = document.createElement('a');
elink.download = "人员.fptx"; elink.download = "人员.zip";
elink.style.display = 'none'; elink.style.display = 'none';
var blob = new Blob([response.data], { type: 'application/vnd.ms-excel' }); var blob = new Blob([response.data], { type: 'application/vnd.ms-excel' });
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob);
...@@ -648,7 +651,7 @@ export default { ...@@ -648,7 +651,7 @@ export default {
elink.click(); elink.click();
document.body.removeChild(elink); document.body.removeChild(elink);
this.dialogVisible = false; this.dialogVisible = false;
// this.$router.push('/dclb') this.$store.commit('layout/delcachePageName', 'dclb');
this.$router.push({ this.$router.push({
path: '/dclb', path: '/dclb',
query: { query: {
......
...@@ -15,7 +15,29 @@ ...@@ -15,7 +15,29 @@
label-width="6rem" label-width="6rem"
ref="ruleForm" ref="ruleForm"
> >
<el-form-item <el-form-item label="选择队列:">
<el-select
v-model="ruleForm.checkQue"
placeholder="请选择队列"
>
<el-option
label="质量检查队列"
value="personque"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="指定用户:">
<el-select
v-model="ruleForm.zdyh"
placeholder="请选择指定用户"
>
<el-option
label="用户1"
value="1"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item
label="选择队列:" label="选择队列:"
prop='checkQue' prop='checkQue'
v-if="type== 'ry'" v-if="type== 'ry'"
...@@ -88,7 +110,7 @@ ...@@ -88,7 +110,7 @@
<el-radio :label="0">处理原图</el-radio> <el-radio :label="0">处理原图</el-radio>
<el-radio :label="1">处理压缩图</el-radio> <el-radio :label="1">处理压缩图</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
<span <span
slot="footer" slot="footer"
...@@ -131,6 +153,8 @@ export default { ...@@ -131,6 +153,8 @@ export default {
replacecpr: '0',// 覆盖原图 replacecpr: '0',// 覆盖原图
managetype: '',// 处理模式 managetype: '',// 处理模式
manageorgCpr: '',//处理对象 manageorgCpr: '',//处理对象
zdyh: '',// 指定用户
}, },
title: '', title: '',
labelPosition: 'left', // 标签对齐方式 labelPosition: 'left', // 标签对齐方式
...@@ -166,7 +190,7 @@ export default { ...@@ -166,7 +190,7 @@ export default {
isShowTjddl (newVal, oldVal) { isShowTjddl (newVal, oldVal) {
this.dialogVisible = newVal; this.dialogVisible = newVal;
// //console.log('添加到队列类型', this.type) // //console.log('添加到队列类型', this.type)
this.type == 'ry' ? this.title = '添加到人员队列' : this.title = '添加到案件队列' this.type == 'ry' ? this.title = '添加到队列' : this.title = '添加到队列'
//console.log('数据数据', this.rowData) //console.log('数据数据', this.rowData)
}, },
dialogVisible (val) { dialogVisible (val) {
...@@ -176,82 +200,106 @@ export default { ...@@ -176,82 +200,106 @@ export default {
}, },
methods: { methods: {
addList (formName) { addList (formName) {
this.$refs[formName].validate((valid) => { let reqUrl = 'api/zljc/insertBeach';
if (valid) { let reqParam = []
// alert('submit!'); for (let i = 0; i < this.rowData.length; i++) {
let reqUrl = ''; console.log(this.rowData[i].id, '人员id')
let newReqParams = {} reqParam.push(this.rowData[i].id)
if (this.type == 'ry') { // reqParam.id = this.rowData[i].id
reqUrl = "/api/psn/handleque/add" }
newReqParams = {
checkQue: '', //选择队列
delbmp: '', // 删除原图 this.$axios
replacecpr: '',// 覆盖原图 .post(reqUrl, reqParam)
managetype: '',// 处理模式 .then(response => {
manageorgCpr: '',//处理对象 if (response.data.code === 0) {
personDoList: [] this.$message.success("添加成功");
} this.dialogVisible = false;
for (let i = 0; i < this.rowData.length; i++) { this.$store.commit('layout/delcachePageName', 'zljc');
let arr = { this.$router.push('/zljc')
ysxtAsjxgrybh: '',
id: '' } else {
} this.$message.error("添加失败");
arr.ysxtAsjxgrybh = this.rowData[i].ysxtAsjxgrybh || this.rowData[i].barcode || this.rowData[i].followPerson.barcode; }
arr.id = this.rowData[i].id || this.rowData[i].followPerson.personId; });
newReqParams.personDoList.push(arr)
this.reqParam = newReqParams
} // this.$refs[formName].validate((valid) => {
newReqParams.checkQue = this.ruleForm.checkQue // if (valid) {
newReqParams.delbmp = this.ruleForm.delbmp // // alert('submit!');
newReqParams.replacecpr = this.ruleForm.replacecpr // let reqUrl = '';
newReqParams.managetype = this.ruleForm.managetype // let newReqParams = {}
newReqParams.manageorgCpr = this.ruleForm.manageorgCpr // if (this.type == 'ry') {
//console.log(this.reqParam, '人员添加到队列') // reqUrl = "/api/psn/handleque/add"
} else if (this.type == 'aj') { // newReqParams = {
reqUrl = "api/case/handlecaseque/add" // checkQue: '', //选择队列
newReqParams = { // delbmp: '', // 删除原图
checkQue: '', //选择队列 // replacecpr: '',// 覆盖原图
delbmp: '', // 删除原图 // managetype: '',// 处理模式
replacecpr: '',// 覆盖原图 // manageorgCpr: '',//处理对象
managetype: '',// 处理模式 // personDoList: []
manageorgCpr: '',//处理对象 // }
caseBaseList: [] // for (let i = 0; i < this.rowData.length; i++) {
} // let arr = {
for (let i = 0; i < this.rowData.length; i++) { // ysxtAsjxgrybh: '',
let arr = { // id: ''
ysxtAsjbh: '', // }
id: '' // arr.ysxtAsjxgrybh = this.rowData[i].ysxtAsjxgrybh || this.rowData[i].barcode || this.rowData[i].followPerson.barcode;
} // arr.id = this.rowData[i].id || this.rowData[i].followPerson.personId;
arr.ysxtAsjbh = this.rowData[i].ysxtAsjbh || this.rowData[i].barcode || this.rowData[i].followCase.barcode; // newReqParams.personDoList.push(arr)
arr.id = this.rowData[i].id || this.rowData[i].followCase.caseId; // this.reqParam = newReqParams
newReqParams.caseBaseList.push(arr) // }
this.reqParam = newReqParams // newReqParams.checkQue = this.ruleForm.checkQue
} // newReqParams.delbmp = this.ruleForm.delbmp
newReqParams.checkQue = this.ruleForm.checkQue // newReqParams.replacecpr = this.ruleForm.replacecpr
newReqParams.delbmp = this.ruleForm.delbmp // newReqParams.managetype = this.ruleForm.managetype
newReqParams.replacecpr = this.ruleForm.replacecpr // newReqParams.manageorgCpr = this.ruleForm.manageorgCpr
newReqParams.managetype = this.ruleForm.managetype // //console.log(this.reqParam, '人员添加到队列')
newReqParams.manageorgCpr = this.ruleForm.manageorgCpr // } else if (this.type == 'aj') {
//console.log(this.reqParam, '案件添加到队列') // reqUrl = "api/case/handlecaseque/add"
}; // newReqParams = {
// checkQue: '', //选择队列
// delbmp: '', // 删除原图
// replacecpr: '',// 覆盖原图
// managetype: '',// 处理模式
// manageorgCpr: '',//处理对象
// caseBaseList: []
// }
// for (let i = 0; i < this.rowData.length; i++) {
// let arr = {
// ysxtAsjbh: '',
// id: ''
// }
// arr.ysxtAsjbh = this.rowData[i].ysxtAsjbh || this.rowData[i].barcode || this.rowData[i].followCase.barcode;
// arr.id = this.rowData[i].id || this.rowData[i].followCase.caseId;
// newReqParams.caseBaseList.push(arr)
// this.reqParam = newReqParams
// }
// newReqParams.checkQue = this.ruleForm.checkQue
// newReqParams.delbmp = this.ruleForm.delbmp
// newReqParams.replacecpr = this.ruleForm.replacecpr
// newReqParams.managetype = this.ruleForm.managetype
// newReqParams.manageorgCpr = this.ruleForm.manageorgCpr
// //console.log(this.reqParam, '案件添加到队列')
// };
this.$axios // this.$axios
.post(reqUrl, this.reqParam) // .post(reqUrl, this.reqParam)
.then(response => { // .then(response => {
if (response.data.code === 0) { // if (response.data.code === 0) {
this.$message.success("添加成功"); // this.$message.success("添加成功");
this.params // this.params
this.dialogVisible = false; // this.dialogVisible = false;
} else { // } else {
this.$message.error("添加失败"); // this.$message.error("添加失败");
} // }
}); // });
} else { // } else {
//console.log('error submit!!'); // //console.log('error submit!!');
return false; // return false;
} // }
}); // });
}, },
handleClose () { handleClose () {
this.resetForm('ruleForm'); this.resetForm('ruleForm');
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="qxgz(scope.row.id)" @confirm="qxgz(scope.row.id)"
class="icon del" class="icon del"
title="确认取消关注该数据吗?该操作无法撤消!" title="确认取消关注该数据吗?该操作无法撤消!"
> >
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="delOne(scope.row.id)" @confirm="delOne(scope.row.id)"
class="icon del" class="icon del"
title="确认要删除该数据吗?该操作无法撤消!" title="确认要删除该数据吗?该操作无法撤消!"
> >
...@@ -618,12 +618,13 @@ export default { ...@@ -618,12 +618,13 @@ export default {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要导出FPTX的数据!"); this.$message.error("请选择需要导出FPTX的数据!");
this.selectBoo = true this.selectBoo = true
} else if (this.multipleSelection.length === 1) { } else {
this.rowData = this.multipleSelection; this.rowData = this.multipleSelection;
this.isShowDcfptx1 = true; this.isShowDcfptx1 = true;
} else {
this.$message.error("只能导出单条数据的FPTX!");
} }
// else {
// this.$message.error("只能导出单条数据的FPTX!");
// }
}, },
closeDcfptx1 (val) { closeDcfptx1 (val) {
this.$bus.emit('isBlur', val) this.$bus.emit('isBlur', val)
...@@ -649,13 +650,13 @@ export default { ...@@ -649,13 +650,13 @@ export default {
// 添加到队列 // 添加到队列
isShowTjddlBtn () { isShowTjddlBtn () {
console.log('添加到队列') console.log('添加到队列')
if (this.multipleSelection.length === 0) { // if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要添加到队列的数据!"); // this.$message.error("请选择需要添加到队列的数据!");
this.selectBoo = true // this.selectBoo = true
} else { // } else {
this.rowData = this.multipleSelection // this.rowData = this.multipleSelection
this.isShowTjddl = true; // this.isShowTjddl = true;
} // }
}, },
closeTjddl (val) { closeTjddl (val) {
this.$bus.emit('isBlur', val) this.$bus.emit('isBlur', val)
......
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
inspectionFlag: null, // 检查结果选择 inspectionFlag: null, // 检查结果选择
codeDwCode: '', // 捺印单位 codeDwCode: '', // 捺印单位
nysj: null,// 捺印时间 nysj: null,// 捺印时间
type: 1,// 1 升序 0 降序 type: 0,// 1 升序 0 降序
}, },
isShowTip: false,//批量操作提示 isShowTip: false,//批量操作提示
selectBoo: false,// 是否批量操作 selectBoo: false,// 是否批量操作
......
...@@ -28,32 +28,7 @@ ...@@ -28,32 +28,7 @@
class="imgbox" class="imgbox"
@dblclick="showDetail(item)" @dblclick="showDetail(item)"
> >
<!-- <div
class="wutu"
v-if="sonSouceDel == true"
>
<img
class="img"
src="@/assets/img/TT/tuxiangdel.png"
/>
<span>图像已删除</span>
</div> -->
<div class="wutu">
<img
class="img"
src="@/assets/img/TT/zwtp.png"
/>
<span>暂无图像</span>
</div>
<!-- <img
v-else-if="item.list && item.list.scouce"
:class="{
screen: item.id == 31 || item.id == 32,
cezhang: item.id == 33 || item.id == 34,
}"
:src="'data:image/jpeg;base64,' + item.list.scouce.image"
alt=""
/> -->
</div> </div>
</div> </div>
...@@ -63,35 +38,7 @@ ...@@ -63,35 +38,7 @@
class="imgbox" class="imgbox"
@dblclick="showDetail(item)" @dblclick="showDetail(item)"
> >
<div
class="wutu"
v-if="sonTargetDel == true"
>
<img
class="img"
src="@/assets/img/TT/tuxiangdel.png"
/>
<span>图像已删除</span>
</div>
<div
class="wutu"
v-else-if="!item.list.target && loadingIndex == 0"
>
<img
class="img"
src="@/assets/img/TT/zwtp.png"
/>
<span>暂无图像</span>
</div>
<img
v-else-if="item.list && item.list.target"
:class="{
screen: item.id == 31 || item.id == 32,
cezhang: item.id == 33 || item.id == 34,
}"
:src="'data:image/jpeg;base64,' + item.list.target.image"
alt=""
/>
</div> </div>
</div> </div>
......
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