Commit 16fdab58 by 米嘉伟

导出,队列

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