Commit 6c83aee0 by 米嘉伟

新增人员逻辑库

parent 767412f5
......@@ -704,7 +704,6 @@ export default {
isShowDcftpx: false, // 导出FPTX
isShowDcfptx1: false,// 导出FPTX
isSelected: false, // 是否批量操作
isShowTjddl: false, // 添加到队列
isShowFztm: false, //复制条码
isShowFcx: false, //发查询
......@@ -912,7 +911,7 @@ export default {
//console.log("添加到队列");
if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要添加到队列的数据!");
this.isSelected = true;
this.selectBoo = true;
} else {
if (this.showType == 1) {
this.type = "ry"
......@@ -1020,7 +1019,7 @@ export default {
isShowFcxBtn () {
if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要发查询的数据!");
this.isSelected = true;
this.selectBoo = true;
} else {
if (this.showType == 1) {
this.type = "ry"
......@@ -1077,7 +1076,6 @@ export default {
*/
batch () {
this.selectBoo = !this.selectBoo;
// this.isSelected = !this.isSelected;
this.isShowTip = !this.isShowTip;
this.toggleSelection();
},
......
......@@ -435,16 +435,7 @@
<script>
import Cascader from "@/components/Cascader.vue";
import SelectCode from "@/components/SelectCode.vue";
const targetOptions = [
"本地案件库",
"比中案件库",
"已破案件库",
"重大案件库",
"B类案件库",
"C类案件库",
"勘查案件库",
"协查案件库",
];
const targetOptions = ['基本人员库', '高危人员库', '非法人员库', '在逃人员库', '布控人员库', '前科人员库', '协查人员库'];
export default {
name: "xzry",
components: {
......@@ -487,9 +478,6 @@ export default {
xzzDzmc: "", // 现住址
bz: "", // 备注
// logicDatabaseCode: [],// 逻辑库代码
// logicDatabaseName: [],//逻辑库名称
nydwGajgmc: "", // 捺印单位
nyryXm: "", // 捺印人姓名
nysj: "", // 捺印时间
......@@ -500,6 +488,7 @@ export default {
zwbdxtlxms: "1", // 指纹比对描述
nydwGajgjgdm: "1", // 捺印单位代码
},
logicList: [],// 逻辑库代码
rules: {
ysxtAsjxgrybh: [
{ required: true, message: "请输入人员条码号", trigger: "blur" },
......@@ -594,42 +583,42 @@ export default {
if (this.checkedTargets.length == 0) {
this.$message.error('请选择逻辑库')
} else {
// for (var i = 0; i <= this.checkedTargets.length; i++) {
// 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] == '布控人员库') {
// this.logicDatabaseCode.push('5')
// } else if (this.checkedTargets[i] == '前科人员库') {
// this.logicDatabaseCode.push('6')
// } else if (this.checkedTargets[i] == '协查人员库') {
// this.logicDatabaseCode.push('7')
// }
// }
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)
}
}
// console.log(this.logicDatabaseCode)
let reqParam = {
personDo: "",
logicList: []
};
reqParam.personDo = this.ruleForm;
reqParam.personDo.ysxtAsjxgrybh = 'R' + this.ruleForm.ysxtAsjxgrybh
// reqParam.personDo.logicDatabaseCode = this.logicDatabaseCode
// reqParam.personDo.logicDatabaseName = this.checkedTargets
// this.$axios
// .post("/api/personstore/personadd", reqParam)
// .then((response) => {
// if (response.data.code === 0) {
// this.$message.success("新增成功");
// this.dialogVisible = false;
reqParam.logicList = this.logicList
this.$axios
.post("/api/personstore/personadd", reqParam)
.then((response) => {
if (response.data.code === 0) {
this.$message.success("新增成功");
this.dialogVisible = false;
// } else {
// this.$message.error("新增失败");
// }
// });
} else {
this.$message.error("新增失败");
}
});
}
} else {
return false;
......
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