Commit af58f32f by 米嘉伟

发查询 逻辑库 取消上传

parent c41b77ae
...@@ -168,18 +168,16 @@ ...@@ -168,18 +168,16 @@
<el-checkbox-group <el-checkbox-group
v-show="ruleForm.cxlx.querytype==0" v-show="ruleForm.cxlx.querytype==0"
v-model="dataRy" v-model="dataRy"
@change="handledataChangeRy"
> >
<el-checkbox <el-checkbox
v-for="(value,key) in targets_ry" v-for="value in targets_ry"
:key="key" :key="value.id"
:label="value.code" :label="value.code"
>{{ value.name }}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<el-checkbox-group <el-checkbox-group
v-show="ruleForm.cxlx.querytype==1" v-show="ruleForm.cxlx.querytype==1"
v-model="dataAj" v-model="dataAj"
@change="handledataChangeAj"
> >
<el-checkbox <el-checkbox
v-for="(value,key) in targets_aj" v-for="(value,key) in targets_aj"
...@@ -398,22 +396,20 @@ ...@@ -398,22 +396,20 @@
<el-checkbox-group <el-checkbox-group
v-show="ruleForm.cxlx.querytype==2" v-show="ruleForm.cxlx.querytype==2"
v-model="dataRy" v-model="dataRy"
@change="handledataChangeRy"
> >
<el-checkbox <el-checkbox
v-for="(value,key) in targets_ry" v-for="value in targets_ry"
:key="key" :key="value.id"
:label="value.code" :label="value.code"
>{{ value.name }}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<el-checkbox-group <el-checkbox-group
v-show="ruleForm.cxlx.querytype==3" v-show="ruleForm.cxlx.querytype==3"
v-model="dataAj" v-model="dataAj"
@change="handledataChangeAj"
> >
<el-checkbox <el-checkbox
v-for="(value,key) in targets_aj" v-for="value in targets_aj"
:key="key" :key="value.id"
:label="value.code" :label="value.code"
>{{ value.name }}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
...@@ -604,8 +600,9 @@ export default { ...@@ -604,8 +600,9 @@ export default {
this.searchsytsArr() this.searchsytsArr()
this.bcxh = this.rowData.length; this.bcxh = this.rowData.length;
if (this.type == 'aj') { if (this.type == 'aj') {
this.getHpseqno() this.getHpseqno() // 现场指位
this.fingerscountArr() this.fingerscountArr() // 多条现场指位个数
this.getPalmHpseqno() // 现场掌位
} }
} }
}, },
...@@ -615,6 +612,14 @@ export default { ...@@ -615,6 +612,14 @@ export default {
'ruleForm.cxlx.querytype' (val) { 'ruleForm.cxlx.querytype' (val) {
this.ruleForm.srcDataType = [] // 查询类型切换清空数据类型 this.ruleForm.srcDataType = [] // 查询类型切换清空数据类型
this.ruleForm.srcDataTypeAj = ['7'] //源数据类型案件 this.ruleForm.srcDataTypeAj = ['7'] //源数据类型案件
this.dxcx = { // 定向查询
domains: [],
barcodeFilter: ''
}
this.pccx = { // 排除查询
domains: [],
barcodeFilter: ''
}
if (val == 0) { if (val == 0) {
this.radio = false; this.radio = false;
} else { } else {
...@@ -711,32 +716,6 @@ export default { ...@@ -711,32 +716,6 @@ export default {
} }
}, },
methods: { methods: {
// 发查询指位信息
getHpseqno () {
let reqParam = {
ysxtAsjbhs: '', // 条码号
};
let barcodeArr = []
for (let i = 0; i < this.rowData.length; i++) {
barcodeArr.push(this.rowData[i].ysxtAsjbh || this.rowData[i].barcode || this.rowData[i].followCase.barcode)
}
reqParam.ysxtAsjbhs = barcodeArr
this.$axios
.post("/api/casestore/getHpseqno", reqParam)
.then(response => {
if (response.data.code === 0) {
let arr = response.data.ret
for (let i = 0; i < arr.length; i++) {
cityOptions.push(arr[i].hpseqno)
this.checkedCities = cityOptions
this.checkAll = true
}
//console.info("指位返回列表===>", arr);
} else {
this.$message.error(response.data.message);
}
});
},
// 动态添加条码段(定向查询) // 动态添加条码段(定向查询)
addDxcx () { addDxcx () {
if (this.dxcx.domains.length > 0) { if (this.dxcx.domains.length > 0) {
...@@ -773,14 +752,6 @@ export default { ...@@ -773,14 +752,6 @@ export default {
this.pccx.domains.splice(index, 1) this.pccx.domains.splice(index, 1)
} }
}, },
// 目标逻辑库(人员)
handledataChangeRy (value) {
console.log(value)
},
// 目标逻辑库(案件)
handledataChangeAj (value) {
console.log(value)
},
// 指位单选 // 指位单选
handleCheckAllChange (val) { handleCheckAllChange (val) {
//console.log(val, 11111) //console.log(val, 11111)
...@@ -817,9 +788,6 @@ export default { ...@@ -817,9 +788,6 @@ export default {
// alert('submit!'); // alert('submit!');
// //console.log(this.ruleForm.srcDataType) // //console.log(this.ruleForm.srcDataType)
// console.log(this.$store.state.ljk.targetOptions_aj, 'this.$store.state') // console.log(this.$store.state.ljk.targetOptions_aj, 'this.$store.state')
console.log(this.targets_ry, 'targets_ry')
console.log(this.targets_aj, 'targets_aj')
this.search() this.search()
} else { } else {
return false; return false;
...@@ -874,15 +842,15 @@ export default { ...@@ -874,15 +842,15 @@ export default {
queryRequest['destPsnDataType'] = this.ruleForm.srcDataType queryRequest['destPsnDataType'] = this.ruleForm.srcDataType
} }
} }
queryRequest.srcDataType = this.ruleForm.srcDataType // 源数据类型 queryRequest.srcDataType = this.ruleForm.srcDataType.map(Number) // 源数据类型
queryRequest.matchCount = this.ruleForm.matchCount queryRequest.matchCount = this.ruleForm.matchCount
queryRequest.queryClass = this.ruleForm.queryClass queryRequest.queryClass = this.ruleForm.queryClass
// 根据发查询类型 目标逻辑库 // 根据发查询类型 目标逻辑库
if (this.ruleForm.cxlx.querytype == '1') { // 案件目标逻辑库 if (this.ruleForm.cxlx.querytype == '1') { // 案件目标逻辑库
queryRequest['targetCaseLogic'] = this.dataAj.map(Number) queryRequest['targetCaseLogic'] = this.dataAj
} else if (this.ruleForm.cxlx.querytype == '0') { // 人员目标逻辑库 } else if (this.ruleForm.cxlx.querytype == '0') { // 人员目标逻辑库
queryRequest['targetPsnLogic'] = this.dataRy.map(Number) queryRequest['targetPsnLogic'] = this.dataRy
} }
// 定向查询 // 定向查询
...@@ -927,11 +895,11 @@ export default { ...@@ -927,11 +895,11 @@ export default {
if (this.ruleForm.cxlx.querytype == '2') { if (this.ruleForm.cxlx.querytype == '2') {
let arr = this.ruleForm.srcDataTypeAj let arr = this.ruleForm.srcDataTypeAj
if (arr.includes('7') && arr.includes('8')) { if (arr.includes('7') && arr.includes('8')) {
queryRequest['destCaseDataType'] = [1, 2, 3] queryRequest['destPsnDataType'] = [1, 2, 3]
} else if (arr.includes('7')) { } else if (arr.includes('7')) {
queryRequest['destCaseDataType'] = [1, 2] queryRequest['destPsnDataType'] = [1, 2]
} else if (arr.includes('8') && arr.includes('3')) { } else if (arr.includes('8') && arr.includes('3')) {
queryRequest['destCaseDataType'] = [3] queryRequest['destPsnDataType'] = [3]
} }
} else if (this.ruleForm.cxlx.querytype == '3') { } else if (this.ruleForm.cxlx.querytype == '3') {
queryRequest['destCaseDataType'] = [7] queryRequest['destCaseDataType'] = [7]
...@@ -942,9 +910,9 @@ export default { ...@@ -942,9 +910,9 @@ export default {
queryRequest.queryClass = this.ruleForm.queryClass queryRequest.queryClass = this.ruleForm.queryClass
// 根据发查询类型 目标逻辑库 // 根据发查询类型 目标逻辑库
if (this.ruleForm.cxlx.querytype == '2') { // 人员目标逻辑库 if (this.ruleForm.cxlx.querytype == '2') { // 人员目标逻辑库
queryRequest['targetPsnLogic'] = this.dataRy.map(Number) queryRequest['targetPsnLogic'] = this.dataRy
} else if (this.ruleForm.cxlx.querytype == '3') { // 案件目标逻辑库 } else if (this.ruleForm.cxlx.querytype == '3') { // 案件目标逻辑库
queryRequest['targetCaseLogic'] = this.dataAj.map(Number) queryRequest['targetCaseLogic'] = this.dataAj
} }
// 定向查询 // 定向查询
queryRequest.directionalBarcode.push(this.dxcx.barcodeFilter) queryRequest.directionalBarcode.push(this.dxcx.barcodeFilter)
...@@ -974,35 +942,43 @@ export default { ...@@ -974,35 +942,43 @@ export default {
this.reqParam = queryRequest this.reqParam = queryRequest
} }
console.log('发请求', this.reqParam) 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({ // this.$message({
// // message: '发查询成功', // message: '发查询成功',
// // type: 'success' // type: 'success'
// // }); // });
// let successBarcode = response.data.ret.successBarcode let successBarcode = response.data.ret.successBarcode
// let failInfo = response.data.ret.failInfo let failInfo = response.data.ret.failInfo
// this.$message({ this.$message({
// dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
// message: `发查询成功<div>本次发送成功${successBarcode.length}条,<span style='color:red'>发送失败${failInfo.length}</span></div> `, // <div style='color:red'>${failInfo}</div> message: `发查询成功<div>本次发送成功${successBarcode.length}条,<span style='color:red'>发送失败${failInfo.length}条</span></div> `, // <div style='color:red'>${failInfo}</div>
// type: 'success' type: 'success'
// }); });
// if (successBarcode.length > 0) { if (successBarcode.length > 0) {
// cityOptions = [] cityOptions = []
// this.dialogVisible = false; this.dxcx = { // 定向查询
// this.$store.commit('layout/delcachePageName', 'cxyrd'); domains: [],
// setTimeout(() => { barcodeFilter: ''
// this.$router.push('/cxyrd') }
// }, 20); this.pccx = { // 排除查询
// } else { domains: [],
barcodeFilter: ''
}
this.dialogVisible = false;
this.$store.commit('layout/delcachePageName', 'cxyrd');
setTimeout(() => {
this.$router.push('/cxyrd')
}, 20);
} else {
// } }
// } else { } else {
// this.$message.error(response.data.message); this.$message.error(response.data.message);
// } }
// }); });
}, },
...@@ -1052,14 +1028,66 @@ export default { ...@@ -1052,14 +1028,66 @@ export default {
this.bcxh = response.data.ret; this.bcxh = response.data.ret;
// this.sytsArr = response.data.ret // this.sytsArr = response.data.ret
// this.syts = this.sytsArr[0].level1 // this.syts = this.sytsArr[0].level1
//console.info("555发查询剩余条数返回列表===>", response); console.log("555发查询剩余条数返回列表===>", response);
} else { } else {
// this.$message.error(response.data.message); // this.$message.error(response.data.message);
this.$message.error('555获取发查询剩余条数失败'); // this.$message.error('555获取发查询剩余条数失败');
} }
}); });
}, },
// 案件发查询指位信息
getHpseqno () {
let reqParam = {
ysxtAsjbhs: '', // 条码号
};
let barcodeArr = []
for (let i = 0; i < this.rowData.length; i++) {
barcodeArr.push(this.rowData[i].ysxtAsjbh || this.rowData[i].barcode || this.rowData[i].followCase.barcode)
}
reqParam.ysxtAsjbhs = barcodeArr
this.$axios
.post("/api/casestore/getHpseqno", reqParam)
.then(response => {
if (response.data.code === 0) {
let arr = response.data.ret
for (let i = 0; i < arr.length; i++) {
cityOptions.push(arr[i].hpseqno)
this.checkedCities = cityOptions
this.checkAll = true
}
console.info("指位返回列表===>", arr);
} else {
this.$message.error(response.data.message);
}
});
},
// 案件发查询掌位信息
getPalmHpseqno () {
let reqParam = {
ysxtAsjbhs: '', // 条码号
};
let barcodeArr = []
for (let i = 0; i < this.rowData.length; i++) {
barcodeArr.push(this.rowData[i].ysxtAsjbh || this.rowData[i].barcode || this.rowData[i].followCase.barcode)
}
reqParam.ysxtAsjbhs = barcodeArr
this.$axios
.post("/api/casestore/getPalmHpseqno", reqParam)
.then(response => {
if (response.data.code === 0) {
let arr = response.data.ret
for (let i = 0; i < arr.length; i++) {
cityOptions.push(arr[i].hpseqno)
// this.checkedCities = cityOptions
// this.checkAll = true
}
console.log("掌位位返回列表===>", arr);
} else {
this.$message.error(response.data.message);
}
});
},
} }
}; };
</script> </script>
......
...@@ -188,23 +188,13 @@ ...@@ -188,23 +188,13 @@
<div>案件逻辑分库</div> <div>案件逻辑分库</div>
</el-row> </el-row>
<el-row class="flexBox"> <el-row class="flexBox">
<!-- <el-checkbox
:indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange"
>全选</el-checkbox> -->
<div style="margin: 15px 0"></div> <div style="margin: 15px 0"></div>
<el-checkbox-group <el-checkbox-group v-model="checkedTargets">
v-model="checkedTargets"
@change="handleCheckedTargetsChange"
>
<el-checkbox <el-checkbox
v-for="city in targets" v-for="(value,key) in targets"
:label="city" :key="key"
:key="city" :label="value.code"
>{{ >{{ value.name }}</el-checkbox>
city
}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -224,15 +214,6 @@ ...@@ -224,15 +214,6 @@
:form="ruleForm" :form="ruleForm"
id="tqdwGajgjgdm" id="tqdwGajgjgdm"
></Cascader> ></Cascader>
<!-- <el-input
v-model.trim="ruleForm.tqdwGajgjgdm"
placeholder="请输入提取单位代码"
maxlength="12"
show-word-limit
clearable
>
</el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -321,16 +302,6 @@ ...@@ -321,16 +302,6 @@
<script> <script>
import Cascader from "@/components/Cascader.vue"; import Cascader from "@/components/Cascader.vue";
const targetOptions = [
"本地案件库",
"比中案件库",
"已破案件库",
"重大案件库",
"B类案件库",
"C类案件库",
"勘查案件库",
"协查案件库",
];
export default { export default {
name: "xzaj", name: "xzaj",
components: { components: {
...@@ -346,10 +317,8 @@ export default { ...@@ -346,10 +317,8 @@ export default {
return { return {
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
labelPosition: "left", // 数据项对齐方式 labelPosition: "left", // 数据项对齐方式
checkAll: false, // 目标逻辑库 checkedTargets: ['1'], // 选定的目标逻辑库
checkedTargets: [], // 选定的目标逻辑库 targets: this.$store.state.ljk.targetOptions_aj, // 目标逻辑库
targets: targetOptions, // 目标逻辑库
isIndeterminate: false, // 目标逻辑库不确定状态
logicDatabaseCode: [],// 逻辑库代码 logicDatabaseCode: [],// 逻辑库代码
ruleForm: { ruleForm: {
ysxtAsjbh: "", // 案事件编号 ysxtAsjbh: "", // 案事件编号
...@@ -438,25 +407,7 @@ export default { ...@@ -438,25 +407,7 @@ export default {
if (this.checkedTargets.length == 0) { if (this.checkedTargets.length == 0) {
this.$message.error('请选择逻辑库') this.$message.error('请选择逻辑库')
} else { } else {
for (var i = 0; i <= this.checkedTargets.length; i++) { this.logicDatabaseCode = this.checkedTargets
if (this.checkedTargets[i] == '本地案件库') {
this.logicDatabaseCode.push('1')
} else if (this.checkedTargets[i] == '比中案件库') {
this.logicDatabaseCode.push('2')
} else if (this.checkedTargets[i] == '已破案件库') {
this.logicDatabaseCode.push('3')
} else if (this.checkedTargets[i] == '重大案件库') {
this.logicDatabaseCode.push('4')
} else if (this.checkedTargets[i] == 'B类案件库') {
this.logicDatabaseCode.push('5')
} else if (this.checkedTargets[i] == 'C类案件库') {
this.logicDatabaseCode.push('6')
} else if (this.checkedTargets[i] == '勘查案件库') {
this.logicDatabaseCode.push('7')
} else if (this.checkedTargets[i] == '协查案件库') {
this.logicDatabaseCode.push('8')
}
}
let reqParam = { let reqParam = {
caseBase: "", caseBase: "",
logicList: [] // 逻辑库 logicList: [] // 逻辑库
...@@ -464,8 +415,6 @@ export default { ...@@ -464,8 +415,6 @@ export default {
reqParam.caseBase = this.ruleForm; reqParam.caseBase = this.ruleForm;
reqParam.caseBase.ysxtAsjbh = "A" + this.ruleForm.ysxtAsjbh; reqParam.caseBase.ysxtAsjbh = "A" + this.ruleForm.ysxtAsjbh;
reqParam.caseBase.xckybh = "K" + this.ruleForm.xckybh; reqParam.caseBase.xckybh = "K" + this.ruleForm.xckybh;
// reqParam.caseBase.logicDatabaseCode = this.logicDatabaseCode;
// reqParam.caseBase.logicDatabaseName = this.checkedTargets;
reqParam.logicList = this.logicDatabaseCode; reqParam.logicList = this.logicDatabaseCode;
this.$axios this.$axios
.post("/api/casestore/caseadd", reqParam) .post("/api/casestore/caseadd", reqParam)
...@@ -497,16 +446,6 @@ export default { ...@@ -497,16 +446,6 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
handleCheckAllChange (val) {
this.checkedTargets = val ? targetOptions : [];
this.isIndeterminate = false;
},
handleCheckedTargetsChange (value) {
let checkedCount = value.length;
this.checkAll = checkedCount === this.targets.length;
this.isIndeterminate =
checkedCount > 0 && checkedCount < this.targets.length;
},
}, },
}; };
</script> </script>
......
...@@ -312,23 +312,13 @@ ...@@ -312,23 +312,13 @@
<div>人员逻辑分库</div> <div>人员逻辑分库</div>
</el-row> </el-row>
<el-row class="flexBox"> <el-row class="flexBox">
<!-- <el-checkbox
:indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange"
>全选</el-checkbox> -->
<div style="margin: 15px 0"></div> <div style="margin: 15px 0"></div>
<el-checkbox-group <el-checkbox-group v-model="checkedTargets">
v-model="checkedTargets"
@change="handleCheckedTargetsChange"
>
<el-checkbox <el-checkbox
v-for="city in targets" v-for="(value,key) in targets"
:label="city" :key="key"
:key="city" :label="value.code"
>{{ >{{ value.name }}</el-checkbox>
city
}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -437,7 +427,6 @@ ...@@ -437,7 +427,6 @@
<script> <script>
import Cascader from "@/components/Cascader.vue"; import Cascader from "@/components/Cascader.vue";
import SelectCode from "@/components/SelectCode.vue"; import SelectCode from "@/components/SelectCode.vue";
const targetOptions = ['基本人员库', '高危人员库', '非法人员库', '在逃人员库', '布控人员库', '前科人员库', '协查人员库'];
export default { export default {
name: "xzry", name: "xzry",
components: { components: {
...@@ -454,10 +443,8 @@ export default { ...@@ -454,10 +443,8 @@ export default {
return { return {
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
labelPosition: "left", // 数据项对齐方式 labelPosition: "left", // 数据项对齐方式
checkAll: false, // 目标逻辑库
checkedTargets: [], // 选定的目标逻辑库 checkedTargets: [], // 选定的目标逻辑库
targets: targetOptions, // 目标逻辑库 targets: this.$store.state.ljk.targetOptions_ry, // 目标逻辑库
isIndeterminate: false, // 目标逻辑库不确定状态
logicDatabaseCode: [],// 逻辑库代码 logicDatabaseCode: [],// 逻辑库代码
ruleForm: { ruleForm: {
ysxtAsjxgrybh: "", // 人员编号 ysxtAsjxgrybh: "", // 人员编号
...@@ -588,24 +575,7 @@ export default { ...@@ -588,24 +575,7 @@ export default {
if (this.checkedTargets.length == 0) { if (this.checkedTargets.length == 0) {
this.$message.error('请选择逻辑库') this.$message.error('请选择逻辑库')
} else { } else {
for (var i = 0; i <= this.checkedTargets.length; i++) { this.logicList = this.checkedTargets
if (this.checkedTargets[i] == '基本人员库') {
this.logicList.push(1)
} else if (this.checkedTargets[i] == '高危人员库') {
this.logicList.push(2)
} else if (this.checkedTargets[i] == '非法人员库') {
this.logicList.push(3)
} else if (this.checkedTargets[i] == '在逃人员库') {
this.logicList.push(4)
} else if (this.checkedTargets[i] == '布控人员库') {
this.logicList.push(5)
} else if (this.checkedTargets[i] == '前科人员库') {
this.logicList.push(6)
} else if (this.checkedTargets[i] == '协查人员库') {
this.logicList.push(7)
}
}
// console.log(this.logicDatabaseCode)
let reqParam = { let reqParam = {
personDo: "", personDo: "",
logicList: [], logicList: [],
...@@ -640,16 +610,6 @@ export default { ...@@ -640,16 +610,6 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
handleCheckAllChange (val) {
this.checkedTargets = val ? targetOptions : [];
this.isIndeterminate = false;
},
handleCheckedTargetsChange (value) {
let checkedCount = value.length;
this.checkAll = checkedCount === this.targets.length;
this.isIndeterminate =
checkedCount > 0 && checkedCount < this.targets.length;
},
}, },
}; };
</script> </script>
......
<template> <template>
<el-drawer size="50%" class="rydaxx-drawer ajdaxx-drawer" :modal="false" :append-to-body="true" :modal-append-to-body="false" @close="closeDrawer" :visible.sync="drawer" :with-header="false"> <el-drawer
size="50%"
class="rydaxx-drawer ajdaxx-drawer"
:modal="false"
:append-to-body="true"
:modal-append-to-body="false"
@close="closeDrawer"
:visible.sync="drawer"
:with-header="false"
>
<div class="header"> <div class="header">
<div class="header-title">案件档案信息</div> <div class="header-title">案件档案信息</div>
<div class="header-close" @click="closeDrawer"> <div
<svg class="icon" aria-hidden="true"> class="header-close"
@click="closeDrawer"
>
<svg
class="icon"
aria-hidden="true"
>
<use xlink:href="#icon-fanhui"></use> <use xlink:href="#icon-fanhui"></use>
</svg> </svg>
</div> </div>
</div> </div>
<div class="content drawer-content"> <div class="content drawer-content">
<el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="10.125rem" class="demo-ruleForm" :status-icon="true"> <el-form
:model="ruleForm"
label-position="left"
:rules="rules"
ref="ruleForm"
label-width="10.125rem"
class="demo-ruleForm"
:status-icon="true"
>
<div class="ayzzwjbxx"> <div class="ayzzwjbxx">
<div class="title"> <div class="title">
<div class="line"></div> <div class="line"></div>
...@@ -17,44 +40,119 @@ ...@@ -17,44 +40,119 @@
</div> </div>
<div class="ayzzwjbxx-items"> <div class="ayzzwjbxx-items">
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="案事件编号:" prop="ysxtAsjbh"> <el-form-item
<el-input placeholder="请输入案事件编号" v-model="ruleForm.ysxtAsjbh" maxlength="23" show-word-limit disabled></el-input> label="案事件编号:"
prop="ysxtAsjbh"
>
<el-input
placeholder="请输入案事件编号"
v-model="ruleForm.ysxtAsjbh"
maxlength="23"
show-word-limit
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="警综案事件编号:" prop="asjbh"> <el-form-item
<el-input placeholder="请输入警综案事件编号" v-model="ruleForm.asjbh" maxlength="23" show-word-limit></el-input> label="警综案事件编号:"
prop="asjbh"
>
<el-input
placeholder="请输入警综案事件编号"
v-model="ruleForm.asjbh"
maxlength="23"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="案事件发生行政区:" prop="asjfsddXzqhdm"> <el-form-item
<Cascader :form="ruleForm" id="asjfsddXzqhdm" codeName="CODE_XZQH"></Cascader> label="案事件发生行政区:"
prop="asjfsddXzqhdm"
>
<Cascader
:form="ruleForm"
id="asjfsddXzqhdm"
codeName="CODE_XZQH"
></Cascader>
</el-form-item> </el-form-item>
<el-form-item label="现场勘验编号:" prop="xckybh"> <el-form-item
<el-input placeholder="请输入现场勘验编号" v-model="ruleForm.xckybh" maxlength="23" show-word-limit></el-input> label="现场勘验编号:"
prop="xckybh"
>
<el-input
placeholder="请输入现场勘验编号"
v-model="ruleForm.xckybh"
maxlength="23"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="案事件发生地点:" prop="asjfsddDzmc"> <el-form-item
<el-input placeholder="请输入案事件发生地点" v-model="ruleForm.asjfsddDzmc" maxlength="100" show-word-limit></el-input> label="案事件发生地点:"
prop="asjfsddDzmc"
>
<el-input
placeholder="请输入案事件发生地点"
v-model="ruleForm.asjfsddDzmc"
maxlength="100"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="现场掌指纹卡编号:" prop="xczzhwkbh"> <el-form-item
<el-input placeholder="请输入现场掌指纹卡编号" v-model="ruleForm.xczzhwkbh" maxlength="23" show-word-limit></el-input> label="现场掌指纹卡编号:"
prop="xczzhwkbh"
>
<el-input
placeholder="请输入现场掌指纹卡编号"
v-model="ruleForm.xczzhwkbh"
maxlength="23"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="发案日期:" prop="occurdate"> <el-form-item
<el-date-picker type="date" placeholder="请输入发案日期" v-model="ruleForm.occurdate" :picker-options="{ label="发案日期:"
prop="occurdate"
>
<el-date-picker
type="date"
placeholder="请输入发案日期"
v-model="ruleForm.occurdate"
:picker-options="{
disabledDate: disabledDate, disabledDate: disabledDate,
}"></el-date-picker> }"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="案件类别:" prop="ajlbdm"> <el-form-item
<Cascader :form="ruleForm" id="ajlbdm" codeName="CODE_AJLB"></Cascader> label="案件类别:"
prop="ajlbdm"
>
<Cascader
:form="ruleForm"
id="ajlbdm"
codeName="CODE_AJLB"
></Cascader>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="损失价值(人民币元):" prop="ssjzrmby"> <el-form-item
<el-input placeholder="根据代码自动匹配" v-model="ruleForm.ssjzrmby" maxlength="11" show-word-limit></el-input> label="损失价值(人民币元):"
prop="ssjzrmby"
>
<el-input
placeholder="根据代码自动匹配"
v-model="ruleForm.ssjzrmby"
maxlength="11"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="命案" prop="sfmaPdbz" class="ma-item"> <el-form-item
label="命案"
prop="sfmaPdbz"
class="ma-item"
>
<el-radio-group v-model="ruleForm.sfmaPdbz"> <el-radio-group v-model="ruleForm.sfmaPdbz">
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
<el-radio label="0"></el-radio> <el-radio label="0"></el-radio>
...@@ -62,8 +160,19 @@ ...@@ -62,8 +160,19 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item ayzzwjbxx-item2"> <div class="ayzzwjbxx-item ayzzwjbxx-item2">
<el-form-item label="简要案情:" prop="jyaq" class="input3"> <el-form-item
<el-input type="textarea" :rows="2" placeholder="请输入简要案情" v-model="ruleForm.jyaq" maxlength="4000" show-word-limit></el-input> label="简要案情:"
prop="jyaq"
class="input3"
>
<el-input
type="textarea"
:rows="2"
placeholder="请输入简要案情"
v-model="ruleForm.jyaq"
maxlength="4000"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
...@@ -73,9 +182,23 @@ ...@@ -73,9 +182,23 @@
<span class="name">案件逻辑分库</span> <span class="name">案件逻辑分库</span>
</div> </div>
<div class="ryljfk"> <div class="ryljfk">
<el-form-item prop="logicList" class="fk"> <el-form-item
prop="logicList"
class="fk"
>
<!-- <el-checkbox-group v-model="ruleForm.logicList">
<el-checkbox
v-for="(item,index) in ryljfkArr"
:label="item.value"
:key="index"
>{{item.label}}</el-checkbox>
</el-checkbox-group> -->
<el-checkbox-group v-model="ruleForm.logicList"> <el-checkbox-group v-model="ruleForm.logicList">
<el-checkbox v-for="(item,index) in ryljfkArr" :label="item.value" :key="index">{{item.label}}</el-checkbox> <el-checkbox
v-for="(value,key) in ryljfkArr"
:key="key"
:label="value.code"
>{{ value.name }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
</div> </div>
...@@ -86,27 +209,65 @@ ...@@ -86,27 +209,65 @@
</div> </div>
<div class="ayzzwjbxx-items"> <div class="ayzzwjbxx-items">
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="提取单位代码:" prop="tqdwGajgjgdm"> <el-form-item
<Cascader :form="ruleForm" id="tqdwGajgjgdm"></Cascader> label="提取单位代码:"
prop="tqdwGajgjgdm"
>
<Cascader
:form="ruleForm"
id="tqdwGajgjgdm"
></Cascader>
</el-form-item> </el-form-item>
<el-form-item label="提取人姓名:" prop="tqryXm"> <el-form-item
<el-input placeholder="请输入提取人姓名" v-model="ruleForm.tqryXm" maxlength="50" show-word-limit></el-input> label="提取人姓名:"
prop="tqryXm"
>
<el-input
placeholder="请输入提取人姓名"
v-model="ruleForm.tqryXm"
maxlength="50"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<el-form-item label="提取时间:" prop="tqsj"> <el-form-item
<el-date-picker type="date" placeholder="请输入提取时间" v-model="ruleForm.tqsj" :picker-options="{ label="提取时间:"
prop="tqsj"
>
<el-date-picker
type="date"
placeholder="请输入提取时间"
v-model="ruleForm.tqsj"
:picker-options="{
disabledDate: disabledDate, disabledDate: disabledDate,
}"></el-date-picker> }"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="提取人身份证号:" prop="tqryGmsfhm"> <el-form-item
<el-input placeholder="请输入提取人身份证号" v-model="ruleForm.tqryGmsfhm" maxlength="18" show-word-limit></el-input> label="提取人身份证号:"
prop="tqryGmsfhm"
>
<el-input
placeholder="请输入提取人身份证号"
v-model="ruleForm.tqryGmsfhm"
maxlength="18"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="ayzzwjbxx-item"> <div class="ayzzwjbxx-item">
<div></div> <div></div>
<el-form-item label="提取人联系电话:" prop="tqryLxdh"> <el-form-item
<el-input placeholder="请输入提取人联系电话" v-model="ruleForm.tqryLxdh" maxlength="18" show-word-limit></el-input> label="提取人联系电话:"
prop="tqryLxdh"
>
<el-input
placeholder="请输入提取人联系电话"
v-model="ruleForm.tqryLxdh"
maxlength="18"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
...@@ -116,31 +277,75 @@ ...@@ -116,31 +277,75 @@
<span class="name">操作记录列表</span> <span class="name">操作记录列表</span>
</div> </div>
<div class="czjl-table"> <div class="czjl-table">
<el-table :header-cell-style="{background: '#F6F8FA',color:'#282F3C'}" :data="tableData" border style="width: 100%"> <el-table
<el-table-column align="center" :width="width1" type="index"> :header-cell-style="{background: '#F6F8FA',color:'#282F3C'}"
:data="tableData"
border
style="width: 100%"
>
<el-table-column
align="center"
:width="width1"
type="index"
>
</el-table-column> </el-table-column>
<el-table-column prop="czr" align="center" label="操作人" width="auto"> <el-table-column
prop="czr"
align="center"
label="操作人"
width="auto"
>
</el-table-column> </el-table-column>
<el-table-column prop="czrq" align="center" label="操作日期" width="auto"> <el-table-column
prop="czrq"
align="center"
label="操作日期"
width="auto"
>
</el-table-column> </el-table-column>
<el-table-column prop="czsj" align="center" label="操作事件" width="auto"> <el-table-column
prop="czsj"
align="center"
label="操作事件"
width="auto"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
<div class="horizontal-line"></div> <div class="horizontal-line"></div>
<div class="form-footer"> <div class="form-footer">
<div class="save" @click="submitForm('ruleForm')">保存</div> <div
<div class="cancel" @click="closeDrawer('ruleForm')">取消</div> class="save"
<div class="export" @click="isShowDcftpxBtn">FPTX导出</div> @click="submitForm('ruleForm')"
>保存</div>
<div
class="cancel"
@click="closeDrawer('ruleForm')"
>取消</div>
<div
class="export"
@click="isShowDcftpxBtn"
>FPTX导出</div>
</div> </div>
</el-form> </el-form>
</div> </div>
<div class="arrow-down" @click="goBottom"> <div
<img class="arrow-down-img" src="@/assets/img/jiantou.gif" alt=""> class="arrow-down"
@click="goBottom"
>
<img
class="arrow-down-img"
src="@/assets/img/jiantou.gif"
alt=""
>
</div> </div>
<!-- 导出FPTX弹窗 --> <!-- 导出FPTX弹窗 -->
<dcfptxAj :isShowDcfptx1="isShowDcfptx1" :rowData="rowData" @closeDcfptx1="closeDcfptx1"></dcfptxAj> <dcfptxAj
:isShowDcfptx1="isShowDcfptx1"
:rowData="rowData"
@closeDcfptx1="closeDcfptx1"
></dcfptxAj>
</el-drawer> </el-drawer>
</template> </template>
...@@ -158,17 +363,7 @@ export default { ...@@ -158,17 +363,7 @@ export default {
arrow: 'bottom', arrow: 'bottom',
width1: 80, width1: 80,
drawer: false, drawer: false,
// ryljfkArr: ['本地案件库', '比中案件库', '已破案件库', '重大案件库', 'B类案件库', 'C类案件库', '勘查案件库', '协查案件库'], ryljfkArr: this.$store.state.ljk.targetOptions_aj,
ryljfkArr: [
{ label: '本地案件库', value: '1' },
{ label: '比中案件库', value: '2' },
{ label: '已破案件库', value: '3' },
{ label: '重大案件库', value: '4' },
{ label: 'B类案件库', value: '5' },
{ label: 'C类案件库', value: '6' },
{ label: '勘查案件库', value: '7' },
{ label: '协查案件库', value: '8' },
],
ruleForm: { ruleForm: {
id: '', id: '',
ysxtAsjbh: '', ysxtAsjbh: '',
...@@ -326,7 +521,7 @@ export default { ...@@ -326,7 +521,7 @@ export default {
this.ruleForm.ajlbdm = this.ajInfo.ajlbdm this.ruleForm.ajlbdm = this.ajInfo.ajlbdm
this.ruleForm.jyaq = this.ajInfo.jyaq this.ruleForm.jyaq = this.ajInfo.jyaq
// this.ruleForm.logicdbtype = this.ajInfo.logicdbtype // this.ruleForm.logicdbtype = this.ajInfo.logicdbtype
if(this.ajInfo.logicDatabaseCode && this.ajInfo.logicDatabaseCode.length > 0) { if (this.ajInfo.logicDatabaseCode && this.ajInfo.logicDatabaseCode.length > 0) {
this.ruleForm.logicList = this.ajInfo.logicDatabaseCode.split(',') this.ruleForm.logicList = this.ajInfo.logicDatabaseCode.split(',')
} else { } else {
this.ruleForm.logicList = [] this.ruleForm.logicList = []
......
...@@ -305,10 +305,10 @@ ...@@ -305,10 +305,10 @@
> >
<el-checkbox-group v-model="ruleForm.logicdbtype2"> <el-checkbox-group v-model="ruleForm.logicdbtype2">
<el-checkbox <el-checkbox
v-for="(item,index) in ryljfkArr" v-for="(value,key) in ryljfkArr"
:label="item.value" :key="key"
:key="index" :label="value.code"
>{{item.label}}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
</div> </div>
...@@ -474,16 +474,7 @@ export default { ...@@ -474,16 +474,7 @@ export default {
arrow: 'bottom', arrow: 'bottom',
width1: 80, width1: 80,
drawer: false, drawer: false,
// ryljfkArr: ['基本人员库', '高危人员库', '非违人员库', '在逃人员库', '布控人员库', '前科人员库', '协查人员库'], ryljfkArr: this.$store.state.ljk.targetOptions_ry,
ryljfkArr: [
{ label: '基本人员库', value: '1' },
{ label: '高危人员库', value: '2' },
{ label: '非违人员库', value: '3' },
{ label: '在逃人员库', value: '4' },
{ label: '布控人员库', value: '5' },
{ label: '前科人员库', value: '6' },
{ label: '协查人员库', value: '7' },
],
ruleForm: { ruleForm: {
id: '', id: '',
rybh: '', rybh: '',
......
...@@ -137,11 +137,6 @@ ...@@ -137,11 +137,6 @@
:width="fptxWidth3" :width="fptxWidth3"
> >
</el-table-column> </el-table-column>
<!-- <el-table-column label="条码号">
<template slot-scope="scope">
{{getCode(scope.row)}}
</template>
</el-table-column> -->
<el-table-column <el-table-column
prop="barcode" prop="barcode"
label="条码号" label="条码号"
...@@ -255,21 +250,6 @@ ...@@ -255,21 +250,6 @@
{{targetHead}} {{targetHead}}
</div> </div>
<div class="targetBody"> <div class="targetBody">
<!-- <el-checkbox
:indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange"
>全选</el-checkbox> -->
<!-- <el-checkbox-group
v-model="checkedTargets"
@change="handleCheckedTargetsChange"
>
<el-checkbox
v-for="target in targets"
:label="target"
:key="target"
>{{target}}</el-checkbox>
</el-checkbox-group> -->
<el-checkbox-group v-model="checkedTargets"> <el-checkbox-group v-model="checkedTargets">
<el-checkbox <el-checkbox
v-for="(value,key) in targets" v-for="(value,key) in targets"
...@@ -432,51 +412,27 @@ ...@@ -432,51 +412,27 @@
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="targetLeft"> <div class="targetLeft">
<!-- <el-checkbox <el-checkbox-group v-model="checkedTargetsLeft">
:indeterminate="isIndeterminateLeft"
v-model="checkAllLeft"
@change="handleCheckAllChangeLeft"
>全选</el-checkbox> -->
<!-- <el-checkbox-group
v-model="checkedTargetsLeft"
@change="handleCheckedTargetsChangeLeft"
>
<el-checkbox <el-checkbox
v-for="target in targetsLeft" v-for="(value,key) in targetsLeft"
:label="target" :key="key"
:key="target" :label="value.code"
>{{target}}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> --> </el-checkbox-group>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class="targetRight"> <div class="targetRight">
<!-- <el-checkbox <el-checkbox-group v-model="checkedTargetsRight">
:indeterminate="isIndeterminateRight"
v-model="checkAllRight"
@change="handleCheckAllChangeRight"
>全选</el-checkbox> -->
<!-- <el-checkbox-group
v-model="checkedTargetsRight"
@change="handleCheckedTargetsChangeRight"
>
<el-checkbox <el-checkbox
v-for="target in targetsRight" v-for="(value,key) in targetsRight"
:label="target" :key="key"
:key="target" :label="value.code"
>{{target}}</el-checkbox> >{{ value.name }}</el-checkbox>
</el-checkbox-group> --> </el-checkbox-group>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 进度条弹窗 -->
<!-- <div
class
v-if="Flag == true"
>
</div> -->
<el-dialog <el-dialog
style=" margin-top:10vh" style=" margin-top:10vh"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
...@@ -488,8 +444,22 @@ ...@@ -488,8 +444,22 @@
type="circle" type="circle"
:percentage="UploadPercent" :percentage="UploadPercent"
></el-progress> ></el-progress>
<div style="margin-top:.9375rem; margin-bottom:.9375rem;font-size: .875rem;font-family: MicrosoftYaHei;color: #909090;">正在解析指纹文件,点击“取消”可终止处理</div> <div
<el-button @click="abort"><span style="color:#333;font-size: 14px;">取消</span></el-button> v-show="UploadPercent<100"
style="margin-top:.9375rem; margin-bottom:.9375rem;font-size: .875rem;font-family: MicrosoftYaHei;color: #909090;"
>正在上传指纹文件,点击“取消”可终止处理</div>
<div
v-show="UploadPercent==100"
style="margin-top:.9375rem; margin-bottom:.9375rem;font-size: .875rem;font-family: MicrosoftYaHei;color: #909090;"
>正在解析指纹文件,请稍等。。。</div>
<el-button
@click="abort"
v-show="UploadPercent<100"
><span style="color:#333;font-size: 14px;">取消</span></el-button>
<el-button
v-show="UploadPercent==100"
disabled
><span style="color:#333;font-size: 14px;">正在入库</span></el-button>
</div> </div>
<div v-else> <div v-else>
<div> <div>
...@@ -515,8 +485,7 @@ ...@@ -515,8 +485,7 @@
<script> <script>
import "@/icons/tree_f.svg"; import "@/icons/tree_f.svg";
import "@/icons/tree_c.svg"; import "@/icons/tree_c.svg";
const targetOptions_ry = ['基本人员库', '高危人员库', '非法人员库', '在逃人员库', '布控人员库', '前科人员库', '协查人员库']; import axios from "axios"
const targetOptions_aj = ['本地案件库', '比中案件库', '已破案件库', '重大案件库', 'B类案件库', 'C类案件库', '勘查案件库', '协查案件库'];
export default { export default {
name: 'drFPTX', name: 'drFPTX',
components: { components: {
...@@ -557,18 +526,17 @@ export default { ...@@ -557,18 +526,17 @@ export default {
nowSelectRightData: [], // 右边选中列表数据 nowSelectRightData: [], // 右边选中列表数据
// 比中关系 // 比中关系
checkedTargetsLeft: [], // 选定逻辑库 checkedTargetsLeft: ['1'], // 选定逻辑库
targetsLeft: this.$store.state.ljk.targetOptions_ry, // 逻辑库列表 targetsLeft: this.$store.state.ljk.targetOptions_ry, // 逻辑库列表
checkedTargetsRight: [], // 选定逻辑库 checkedTargetsRight: ['1'], // 选定逻辑库
targetsRight: this.$store.state.ljk.targetOptions_aj, // 逻辑库列表 targetsRight: this.$store.state.ljk.targetOptions_aj, // 逻辑库列表
newArr: [],
logicList: [], // 目标逻辑库数组 logicList: [], // 目标逻辑库数组
logicPsnList: [],// 比中关系人员逻辑库数组 logicPsnList: [],// 比中关系人员逻辑库数组
logicCaseList: [], //比中关系案件逻辑库数组 logicCaseList: [], //比中关系案件逻辑库数组
cancel: null // 取消请求
}; };
}, },
created () { created () {
...@@ -585,8 +553,6 @@ export default { ...@@ -585,8 +553,6 @@ export default {
this.targetHead = '人员逻辑分库' this.targetHead = '人员逻辑分库'
this.targets = this.$store.state.ljk.targetOptions_ry this.targets = this.$store.state.ljk.targetOptions_ry
this.action = '/api/upload/person' this.action = '/api/upload/person'
this.isIndeterminate = false
this.checkAll = false
this.datas = [] this.datas = []
this.nowSelectData = [] this.nowSelectData = []
this.selectArr = [] this.selectArr = []
...@@ -601,8 +567,6 @@ export default { ...@@ -601,8 +567,6 @@ export default {
this.targetHead = '案件逻辑分库' this.targetHead = '案件逻辑分库'
this.targets = this.$store.state.ljk.targetOptions_aj this.targets = this.$store.state.ljk.targetOptions_aj
this.action = '/api/upload/case' this.action = '/api/upload/case'
this.isIndeterminate = false
this.checkAll = false
this.datas = [] this.datas = []
this.nowSelectData = [] this.nowSelectData = []
this.selectArr = [] this.selectArr = []
...@@ -693,9 +657,10 @@ export default { ...@@ -693,9 +657,10 @@ export default {
abort () { abort () {
this.nowSelectRightData = [] this.nowSelectRightData = []
this.dialogVisible = false; this.dialogVisible = false;
this.$refs.upload.abort() this.cancel()
this.$refs.upload.clearFiles(); // this.$refs.upload.clearFiles(); // 清空上传列表
location.reload(); // location.reload(); // 刷新页面
}, },
// 上传进度 // 上传进度
uploadProcess (event, file, fileList) { uploadProcess (event, file, fileList) {
...@@ -929,14 +894,6 @@ export default { ...@@ -929,14 +894,6 @@ export default {
beforeUpload () { beforeUpload () {
// //console.log('数据liebiao', this.$refs.upload.uploadFiles) // //console.log('数据liebiao', this.$refs.upload.uploadFiles)
}, },
// 上传
// submitUpload () {
// console.log('逻辑库', this.checkedTargets)
// let logicList = []
// for (var i = 0; i < this.checkedTargets.length; i++) {
// }
// },
submitUpload () { submitUpload () {
if (this.nowSelectRightData.length == 0) { if (this.nowSelectRightData.length == 0) {
this.$message.error('请选择要上传的文件') this.$message.error('请选择要上传的文件')
...@@ -945,87 +902,15 @@ export default { ...@@ -945,87 +902,15 @@ export default {
if (this.checkedTargets == 0) { if (this.checkedTargets == 0) {
this.$message.error('请选择逻辑分库') this.$message.error('请选择逻辑分库')
} else { } else {
if (this.drlx == 3) { this.logicList = this.checkedTargets
for (var i = 0; i <= this.checkedTargets.length; i++) {
if (this.checkedTargets[i] == '基本人员库') {
this.logicList.push('1')
} else if (this.checkedTargets[i] == '高危人员库') {
this.logicList.push('2')
} else if (this.checkedTargets[i] == '非法人员库') {
this.logicList.push('3')
} else if (this.checkedTargets[i] == '在逃人员库') {
this.logicList.push('4')
} else if (this.checkedTargets[i] == '布控人员库') {
this.logicList.push('5')
} else if (this.checkedTargets[i] == '前科人员库') {
this.logicList.push('6')
} else if (this.checkedTargets[i] == '协查人员库') {
this.logicList.push('7')
}
}
} else if (this.drlx == 6) { // ['本地案件库', '比中案件库', '已破案件库', '重大案件库', 'B类案件库', 'C类案件库', '', '协查案件库'];
for (var i = 0; i <= this.checkedTargets.length; i++) {
if (this.checkedTargets[i] == '本地案件库') {
this.logicList.push('1')
} else if (this.checkedTargets[i] == '比中案件库') {
this.logicList.push('2')
} else if (this.checkedTargets[i] == '已破案件库') {
this.logicList.push('3')
} else if (this.checkedTargets[i] == '重大案件库') {
this.logicList.push('4')
} else if (this.checkedTargets[i] == 'B类案件库') {
this.logicList.push('5')
} else if (this.checkedTargets[i] == 'C类案件库') {
this.logicList.push('6')
} else if (this.checkedTargets[i] == '勘查案件库') {
this.logicList.push('7')
} else if (this.checkedTargets[i] == '协查案件库') {
this.logicList.push('8')
}
}
}
this.upload() this.upload()
} }
} else if (this.drlx == 9) { } else if (this.drlx == 9) {
if (this.checkedTargetsLeft.length == 0 || this.checkedTargetsRight.length == 0) { if (this.checkedTargetsLeft.length == 0 || this.checkedTargetsRight.length == 0) {
this.$message.error('请选择逻辑分库') this.$message.error('请选择逻辑分库')
} else { } else {
for (var i = 0; i <= this.checkedTargetsLeft.length; i++) { this.logicPsnList = this.checkedTargetsLeft
if (this.checkedTargetsLeft[i] == '基本人员库') { this.logicCaseList = this.checkedTargetsRight
this.logicPsnList.push('1')
} else if (this.checkedTargetsLeft[i] == '高危人员库') {
this.logicPsnList.push('2')
} else if (this.checkedTargetsLeft[i] == '非法人员库') {
this.logicPsnList.push('3')
} else if (this.checkedTargetsLeft[i] == '在逃人员库') {
this.logicPsnList.push('4')
} else if (this.checkedTargetsLeft[i] == '布控人员库') {
this.logicPsnList.push('5')
} else if (this.checkedTargetsLeft[i] == '前科人员库') {
this.logicPsnList.push('6')
} else if (this.checkedTargetsLeft[i] == '协查人员库') {
this.logicPsnList.push('7')
}
}
for (var i = 0; i <= this.checkedTargetsRight.length; i++) {
if (this.checkedTargetsRight[i] == '本地案件库') {
this.logicCaseList.push('1')
} else if (this.checkedTargetsRight[i] == '比中案件库') {
this.logicCaseList.push('2')
} else if (this.checkedTargetsRight[i] == '已破案件库') {
this.logicCaseList.push('3')
} else if (this.checkedTargetsRight[i] == '重大案件库') {
this.logicCaseList.push('4')
} else if (this.checkedTargetsRight[i] == 'B类案件库') {
this.logicCaseList.push('5')
} else if (this.checkedTargetsRight[i] == 'C类案件库') {
this.logicCaseList.push('6')
} else if (this.checkedTargetsRight[i] == '勘查案件库') {
this.logicCaseList.push('7')
} else if (this.checkedTargetsRight[i] == '协查案件库') {
this.logicCaseList.push('8')
}
}
this.upload() this.upload()
} }
} }
...@@ -1050,45 +935,94 @@ export default { ...@@ -1050,45 +935,94 @@ export default {
formData.append('logicPsnList', this.logicPsnList) formData.append('logicPsnList', this.logicPsnList)
formData.append('logicCaseList', this.logicCaseList) formData.append('logicCaseList', this.logicCaseList)
} }
//console.log('formData', formData)
// //console.log('this.selectArr', this.selectArr)
// //console.log('this.nowSelectRightData', this.nowSelectRightData)
// this.$refs.upload.uploadFiles = formData
// //console.log('this.$refs.upload.uploadFiles', this.$refs.upload.uploadFiles)
// this.$refs.upload.submit();
this.dialogVisible = true; this.dialogVisible = true;
this.$axios({ // this.$axios({
// method: 'post',
// url: this.action,
// data: formData,
// loading: false,
// onUploadProgress: function (progressEvent) {
// // this.dialogVisible = true;
// //console.log(progressEvent, 1);
// that.UploadPercent = Number((((progressEvent.loaded / 10 * 9.9) / progressEvent.total) * 100).toFixed(2))
// //console.log(that.UploadPercent, 123)
// // Number(event.percent.toFixed())
// },
// }).then(res => {
// if (res.data.code === 0) {
// if (this.drlx == 3 || this.drlx == 6) {
// this.successCount = res.data.ret.successCount
// this.failCount = res.data.ret.failCount
// this.showProgress = false;
// this.selectArr = [] // 右边列表
// this.datas = []// 左边表格数据项
// this.nowSelectData = [] // 左边选中列表数据
// this.nowSelectRightData = [] // 右边选中列表数据
// this.logicList = [] // 目标逻辑库
// this.UploadPercent = 0
// } else if (this.drlx == 9) {
// this.successCount = res.data.ret.successCount
// this.failCount = res.data.ret.failCount
// this.showProgress = false;
// this.selectArr = [] // 右边列表
// this.datas = []// 左边表格数据项
// this.nowSelectData = [] // 左边选中列表数据
// this.nowSelectRightData = [] // 右边选中列表数据
// this.UploadPercent = 0
// }
// // this.$refs.upload.clearFiles()
// this.showProgress = false;
// } else {
// this.$message.error(res.data.message);
// this.dialogVisible = false// 进度条弹窗
// this.UploadPercent = 0
// }
// });
let CancelToken = axios.CancelToken
let self = this
axios({
method: 'post', method: 'post',
url: this.action, url: this.action,
data: formData, data: formData,
loading: false, loading: false,
cancelToken: new CancelToken(function executor (c) {
self.cancel = c
console.log(c)
// 这个参数 c 就是CancelToken构造函数里面自带的取消请求的函数,这里把该函数当参数用
}),
headers: {
Authorization: localStorage.getItem("token"),
BrowserHeader: 'H5'
},
onUploadProgress: function (progressEvent) { onUploadProgress: function (progressEvent) {
// this.dialogVisible = true; // this.dialogVisible = true;
//console.log(progressEvent, 1); //console.log(progressEvent, 1);
that.UploadPercent = Number((((progressEvent.loaded / 10 * 9.9) / progressEvent.total) * 100).toFixed(2)) that.UploadPercent = Number((((progressEvent.loaded / 10 * 10) / progressEvent.total) * 100).toFixed(2))
//console.log(that.UploadPercent, 123) // console.log(that.UploadPercent, 123)
// Number(event.percent.toFixed()) // Number(event.percent.toFixed())
}, },
}).then(res => { }).then(res => {
if (res.data.code === 0) { if (res.code === 0) {
// this.tableDate = response.data.ret.list;
// this.reqParam.page.total = response.data.ret.total;
if (this.drlx == 3 || this.drlx == 6) { if (this.drlx == 3 || this.drlx == 6) {
this.successCount = res.data.ret.successCount this.successCount = res.ret.successCount
this.failCount = res.data.ret.failCount this.failCount = res.ret.failCount
this.showProgress = false; this.showProgress = false;
this.checkedTargets = ['1']
this.selectArr = [] // 右边列表 this.selectArr = [] // 右边列表
this.datas = []// 左边表格数据项 this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据 this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据 this.nowSelectRightData = [] // 右边选中列表数据
this.logicList = [] // 目标逻辑库
this.UploadPercent = 0 this.UploadPercent = 0
} else if (this.drlx == 9) { } else if (this.drlx == 9) {
this.successCount = res.data.ret.successCount this.successCount = res.ret.successCount
this.failCount = res.data.ret.failCount this.failCount = res.ret.failCount
this.showProgress = false; this.showProgress = false;
...@@ -1096,23 +1030,25 @@ export default { ...@@ -1096,23 +1030,25 @@ export default {
this.datas = []// 左边表格数据项 this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据 this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据 this.nowSelectRightData = [] // 右边选中列表数据
this.checkedTargetsLeft = ['1'] // 选定逻辑库
this.checkedTargetsRight = ['1'] // 选定逻辑库
this.UploadPercent = 0 this.UploadPercent = 0
} }
// this.$refs.upload.clearFiles() // this.$refs.upload.clearFiles()
this.showProgress = false; this.showProgress = false;
//console.info("查询结果===>", res);
// this.userInfo = this.getUserInfo(this.tableDate);
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
this.dialogVisible = false// 进度条弹窗 this.dialogVisible = false// 进度条弹窗
this.UploadPercent = 0 this.UploadPercent = 0
} }
}); });
//手速够快就不用写这个定时器了,点击取消获取就可以看到效果了
// setTimeout(function () {
// //只要我们去调用了这个cancel()方法,没有完成请求的接口便会停止请求
// self.cancel()
// }, 1000)
}, },
// 删除文件 // 删除文件
handleRemove (file, fileList) { handleRemove (file, fileList) {
//console.log(file, fileList); //console.log(file, fileList);
...@@ -1154,40 +1090,6 @@ export default { ...@@ -1154,40 +1090,6 @@ export default {
var fileDic = this.$refs['upload'].$children[0].$refs.input var fileDic = this.$refs['upload'].$children[0].$refs.input
//console.log(fileDic, 111222) //console.log(fileDic, 111222)
}, },
// // 人员/案件逻辑分库
// handleCheckAllChange (val) {
// if (this.drlx == 3) {
// this.checkedTargets = val ? targetOptions_ry : [];
// } else if (this.drlx == 6) {
// this.checkedTargets = val ? targetOptions_aj : [];
// }
// this.isIndeterminate = false;
// },
// handleCheckedTargetsChange (value) {
// let checkedCount = value.length;
// this.checkAll = checkedCount === this.targets.length;
// this.isIndeterminate = checkedCount > 0 && checkedCount < this.targets.length;
// },
// // 比中关系逻辑分库
// handleCheckAllChangeLeft (val) {
// this.checkedTargetsLeft = val ? targetOptions_ry : [];
// this.isIndeterminateLeft = false;
// },
// handleCheckedTargetsChangeLeft (value) {
// let checkedCount = value.length;
// this.checkAllLeft = checkedCount === this.targetsLeft.length;
// this.isIndeterminateLeft = checkedCount > 0 && checkedCount < this.targetsLeft.length;
// },
// handleCheckAllChangeRight (val) {
// this.checkedTargetsRight = val ? targetOptions_aj : [];
// this.isIndeterminateRight = false;
// },
// handleCheckedTargetsChangeRight (value) {
// let checkedCount = value.length;
// this.checkAllRight = checkedCount === this.targetsRight.length;
// this.isIndeterminateRight = checkedCount > 0 && checkedCount < this.targetsRight.length;
// },
// 表格穿梭框 // 表格穿梭框
checkAll1 (val) { checkAll1 (val) {
this.nowSelectData = val; this.nowSelectData = val;
......
...@@ -93,12 +93,12 @@ module.exports = { ...@@ -93,12 +93,12 @@ module.exports = {
// target: "http://192.168.128.166:8099/", // 张 认定 // target: "http://192.168.128.166:8099/", // 张 认定
// target: "http://192.168.128.114:8099", // 湖南-马 // target: "http://192.168.128.114:8099", // 湖南-马
// target: "http://192.168.128.116:8099", // 湖南-王 // target: "http://192.168.128.116:8099", // 湖南-王
// target: "http://192.168.128.118:8764", // 湖南-张呈光 target: "http://192.168.128.112:8099", // 湖南-张呈光
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma // target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
// target: "http://127.0.0.1:8099", // target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602", // target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上 // target: "http://www.meetfood.cn:2390", // 湖南-线上
target:"http://zwpt.xzclub.top:9333/", // target:"http://zwpt.xzclub.top:9333/",
// target: "http://192.168.128.100:8099", // 江 // target: "http://192.168.128.100:8099", // 江
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
......
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