Commit 68e7dda2 by 叶富雄

调整

parent 32afd199
......@@ -4,17 +4,26 @@ import base from "@/api/base";
//黑名单添加
export const insterTbStHmdry = params =>
postform(`${base.alyIP}/jcyj/insterTbStHmdry`, params);
postform(`${base.alyIP2}/jcyj/insterTbStHmdry`, params);
//黑名单删除
export const deleteTbStHmdry = params =>
post(`${base.alyIP}/jcyj/deleteTbStHmdry`, params);
post(`${base.alyIP2}/jcyj/deleteTbStHmdry`, params);
//黑名单详情
export const selectTbStHmdry = params =>
postform(`${base.alyIP}/jcyj/selectTbStHmdry`, params);
postform(`${base.alyIP2}/jcyj/selectTbStHmdry`, params);
//黑名单更新
export const updateTbStHmdry = params =>
postform(`${base.alyIP}/jcyj/updateTbStHmdry`, params);
postform(`${base.alyIP2}/jcyj/updateTbStHmdry`, params);
//列控预警删除
export const deleteTbStJcyjgk = params =>
postform(`${base.alyIP}/jcyj/deleteTbStJcyjgk`, params);
postform(`${base.alyIP2}/jcyj/deleteTbStJcyjgk`, params);
//列控预警添加
export const insertLkyj = params =>
postform(`${base.alyIP2}/jcyj/insertLkyj`, params);
//列控预警详情
export const selectTbStJcyjgk = params =>
postform(`${base.alyIP2}/jcyj/selectTbStJcyjgk`, params);
//列控预警更新
export const updateTbStJcyjgk = params =>
postform(`${base.alyIP2}/jcyj/updateTbStJcyjgk`, params);
......@@ -48,6 +48,14 @@ const menuLayouts = [
},
component: () => import("@/views/jcyjzxt/lkyj.vue")
},
{
path: "/lkyjAdd",
name: "lkyjAdd",
meta: {
title: '添加列控预警'
},
component: () => import("@/views/jcyjzxt/lkyj/add.vue")
},
];
......
......@@ -42,8 +42,24 @@
},
cxQueryField: [
{
name: "业务编号",
id: "ywbh",
name: "案事件相关人员编号",
id: "asjxgrybh",
placeholder: "请输入",
type: "text",
value: "",
col: "3",
},
{
name: "姓名",
id: "xm",
placeholder: "请输入",
type: "text",
value: "",
col: "3",
},
{
name: "人员身份证",
id: "cyzjZjhm",
placeholder: "请输入",
type: "text",
value: "",
......
......@@ -38,13 +38,52 @@
},
cxQueryField: [
{
name: "业务编号",
id: "ywbh",
name: "案事件编号",
id: "asjbh",
placeholder: "请输入",
type: "text",
value: "",
col: "3",
},
{
name: "发现时间",
id: "fxkyfwbzhFxsj",
placeholder: "请输入",
type: "date",
value: "",
col: "3",
},
{
name: "服务标识号",
id: "kyfwbzhFwbzh",
type: "select",
selectData: [
{
name: "全部",
value: "01",
},
{
name: "草稿",
value: "3",
},
{
name: "待审批",
value: "2",
},
{
name: "通过",
value: "1",
},
{
name: "未通过",
value: "0",
},
],
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
},
],
cxDefaultFormThead: [
......@@ -53,7 +92,7 @@
{label: "服务标识号", prop: "kyfwbzhFwbzh"},
],
cxUrl: "/jcyj/selectKyfwbshlist",
cxUrl: "/jcyj/pageTbXwFxkyfwbzh",
Menu: [
{
id: "kyfwbshlist",
......
......@@ -42,8 +42,8 @@
},
cxQueryField: [
{
name: "业务编号",
id: "ywbh",
name: "关联信息主键编号",
id: "glxxXxzjbh",
placeholder: "请输入",
type: "text",
value: "",
......
<template>
<div>
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
@handleRemove="handleRemove"
pageBs="addsqfbzl"
ref="formCompontent"
>
</form-compontent>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import {
doAddZczlxx,
doEditZczlxx
} from "@/api/zczl/zczl.js";
import {insertLkyj,updateTbStJcyjgk,selectTbStJcyjgk} from "@/api/jcyjzxt/hmd.js";
export default {
name: "addGzry",
components: {
formCompontent,
},
data() {
return {
title: "新增列控预警",
xsbh: "",
xsType: "",
propFormField: [
//基本信息
{
title: "",
id: 1,
objStr: "",
index: 0,
data: [
{
name: "信息主键:",
id: "glxxXxzjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "数据来源:",
id: "sjly",
type: "setValue",
value: "",
placeholder: "请输入",
codeOptions:[
{label:'嫌疑人', value:'01'},
{label:'服务标识号', value:'02'},
{label:'黑名单', value:'03'},
],
col: "2",
},
{
name: "预警信息:",
id: "yjxx",
type: "text",
value: "",
placeholder: "请输入",
col: "11",
},
],
},
],
formLabelAlign: {},
breadcrumbList: [
{
name: "刑嫌列控管理",
to: "/queryGzry",
isActive: false,
},
{
name: "房产信息列表",
to: "/queryFcxx",
isActive: false,
},
{
name: this.$route.query.xxzjbh ? "修改房产信息" : "新增房产信息",
to: "/addFcxx",
isActive: true,
},
],
type: "",
xxzjbh: "",
result: "",
removeFileXxzjbh: [],
flag: '3'
};
},
methods: {
changeFlge() {
this.flag = '2'
},
submit(params) {
if(this.$route.query.xxzjbh){
params.append('xxzjbh',this.xxzjbh)
updateTbStJcyjgk(params).then(res=>{
if(res.code===200){
this.$message.success('保存成功');
this.$router.go(-1)
}
else {
this.$message.warning(res.message)
}
})
}
else {
insertLkyj(params).then(res=>{
if(res.code===200){
this.$message.success('保存成功');
this.$router.go(-1)
}
else {
this.$message.warning(res.message)
}
});
}
},
handleRemove(val) {
this.removeFileXxzjbh.push(val.xxzjbh);
},
zczlSubmit(params) {
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if (!this.xxzjbh) {
this.addSubmit(params, loading);
} else {
this.editSubmit(params, loading);
}
},
addSubmit(params, loading) {
params.append("spsftg", this.flag);
if (this.type == "fqzl") {
params.append("sfqqzl", "1");
}
params.append("xsbh", this.xsbh);
params.append("xsType", this.xsType);
doAddZczlxx(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
if (this.type == "fqzl") {
this.$router.push("wsqfbdzczl");
} else {
this.$router.push("wfqdzczl");
}
},
});
} else {
loading.close();
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
editSubmit(params, loading) {
params.append("zczlbh", this.xxzjbh);
params.append("delFjXxzjbh", this.removeFileXxzjbh.join(","));
params.append("spsftg", "3");
if (this.type == "fqzl") {
params.append("sfqqzl", "1");
}
doEditZczlxx(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
if (this.type == "fqzl") {
this.$router.push("wsqfbdzczl");
} else {
this.$router.push("wfqdzczl");
}
},
});
} else {
loading.close();
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
getshuju() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
var self = this;
let params = new FormData();
params.append("asjxgrybh", this.asjxgrybh);
selectTbStJcyjgk(params).then((res) => {
var result = res.data.result;
this.result = result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
});
},
},
mounted() {
if (this.$router.currentRoute.query.xsType != null && this.$router.currentRoute.query.xsType != '') {
this.xsType = this.$router.currentRoute.query.xsType
}
if (this.$router.currentRoute.query.xsbh != null && this.$router.currentRoute.query.xsbh != '') {
this.xsbh = this.$router.currentRoute.query.xsbh
}
},
created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
if (this.$route.query.type) {
this.type = this.$route.query.type;
}
if (this.$route.query.xxzjbh) {
this.title = "修改列控预警";
this.asjxgrybh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
......@@ -35,7 +35,7 @@
import rightContent from "@c/ptCxForm_components.vue";
import {zlToDelete, zlTqsp} from "@/api/zczl/zczl.js";
import zczl from '@p/zczl/zczl/detailZczl.vue'
import { loginByZjhm } from "@/api/index";
export default {
name: "rlqbxsxx",
components: {
......@@ -75,7 +75,42 @@
{label: "户籍地址_地址名称", prop: "zhfzxyrHjdzDzmc"},
],
cxUrl: "/jcyj/selectZbfzxyrlist",
cxUrl: "/jcyj/pageTbXwjcZbfzxyr",
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "zbfzxyrlist",
label: "抓捕犯罪嫌疑人列表",
newAuth: "M01",
index: "zbfzxyrlist",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "kyfwbshlist",
label: "可疑服务标识号列表",
newAuth: "M01",
index: "kyfwbshlist",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "hmdrylist",
label: "黑名单列表",
newAuth: "M01",
index: "hmdrylist",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "lkyj",
label: "列控预警信息列表",
newAuth: "M01",
index: "lkyj",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
],
Menu: [
{
id: "zbfzxyrlist",
......@@ -89,10 +124,19 @@
};
},
created() {
this.login()
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
},
methods: {
login() {
var self = this;
loginByZjhm({
zjhm:'142302198901012417'
}).then((res) => {});
},
examine(scope) {
console.log(scope);
this.$confirm("此操作将该指令提请审批, 是否继续?", "提示", {
......
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