Commit 2e20f7e1 by yuhao

Merge branch 'dev_xzeq' of http://39.99.224.27:9022/changchao/founder_vue into dev_xzeq

parents c9cc4a3e 49be05b5
<template> <template>
<div class="Content"> <div class="Content">
<right-content <right-content
:tableOperation="true" :pageBs="pageBs"
pageBs="zbfzxyrlist"
:header="header" :header="header"
:cxFormData="cxFormData" :cxFormData="cxFormData"
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
@toInfor="toInfor"
:cxUrl="cxUrl" :cxUrl="cxUrl"
ref="rightContent" ref="rightContent"
> >
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span
>
</template>
<template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="setYJ(scope.scope)" type="text">列控预警</el-button> <span class="hbyp" @click="edit(scope.scope)">修改</span>
<span class="hbyp" @click="dele(scope.scope)">删除</span>
</template> </template>
</right-content> </right-content>
</div> </div>
...@@ -19,90 +25,96 @@ ...@@ -19,90 +25,96 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { insertLkyj } from "@/api/jcyjzxt/hmd.js"; import { getAllMxxxType, deleteMx } from "@/api/xshb/xsbk.js";
export default { export default {
name: "rlqbxsxx", name: "xsbk",
components: { components: {
rightContent, rightContent,
}, },
data() { data() {
return { return {
header: "抓捕犯罪嫌疑人列表", header: "监测预警",
pageBs: "kyfwbshlist", pageBs: "xsbkMxgl",
cxFormData: { cxFormData: {
limit: 10, limit: 10,
page: 1, page: 1,
bkmxName: "",
bkmxMxCode: [],
bkmxSyfw: [],
}, },
cxQueryField: [ cxQueryField: [
{ {
name: "服务标识号类型", name: "布控模型名称",
id: "bshlx", id: "bkmxName",
placeholder: "请选择", type: "text",
type: "select",
selectData: [
{
name: "IMSI",
value: "01",
},
{
name: "IMEI",
value: "02",
},
{
name: "QQ号码",
value: "03",
},
{
name: "微信ID",
value: "04",
},
{
name: "邮箱",
value: "05",
},
],
value: "", value: "",
placeholder: "请输入",
col: "3", col: "3",
}, },
// { {
// name: "案事件编号", name: "基本模型",
// id: "asjbh", id: "bkmxMxCode",
// placeholder: "请输入", type: "codeTreeDialog",
// type: "text",
// value: "",
// col: "3",
// },
// {
// name: "发现时间",
// id: "fxkyfwbzhFxsj",
// placeholder: "请输入",
// type: "date",
// value: "",
// col: "3",
// },
{
name: "服务标识号",
id: "bsh",
placeholder: "请输入",
type: "text",
value: "", value: "",
placeholder: "请选择",
col: "3", col: "3",
codeOptions: [],
multiple: true,
},
{
name: "适用范围",
id: "bkmxSyfw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_BKLXDM",
multiple: true,
}, },
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ label: "信息主键编号", prop: "xxzjbh" }, {
{ label: "可疑服务标识号类型", prop: "kyxsfwbshBshlxMc" }, label: "信息主键编号",
{ label: "服务标识号", prop: "kyxsfwbshBsh" }, toInfor: true,
{ label: "依据", prop: "kyxsfwbshKyyj" }, prop: "xxzjbh",
{ label: "登记时间", prop: "djsj" }, width: "250",
{ label: "录入单位", prop: "xxdjdwGajgmc" }, },
{ label: "录入人", prop: "xxdjryXm" },
{
label: "布控模型名称",
prop: "bkmxName",
},
{
label: "布控模型描述",
prop: "bkmxMs",
},
{
label: "基本模型名称",
prop: "bkmxMxTxt",
},
{
label: "监测周期(分)",
prop: "jczq",
},
{
label: "预警方式",
prop: "yjfsStr",
},
{
label: "预警处置要求",
prop: "yjczyq",
},
{
label: "预警对象",
prop: "bkmxSyfwTxt",
},
], ],
cxUrl: "/jcyj/pageTbXwFxkyfwbzh", cxUrl: "/xsbkmx/list",
Menu: [ Menu: [
{ {
id: "kyfwbshlist", id: "kyfwbshlist",
label: "可疑服务标识号列表", label: "监测预警信息汇集管理",
index: "kyfwbshlist", index: "kyfwbshlist",
auth: "M0101", auth: "M0101",
className: "iconfont iconrizhi", className: "iconfont iconrizhi",
...@@ -113,25 +125,9 @@ export default { ...@@ -113,25 +125,9 @@ export default {
//左侧导航(模块第一个页面需要) //左侧导航(模块第一个页面需要)
{ {
id: "kyfwbshlist", 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: "xsbkMxgl",
label: "监测预警信息汇集管理", label: "监测预警信息汇集管理",
newAuth: "M01", newAuth: "M01",
index: "xsbks", index: "kyfwbshlist",
className: "iconfont icongongnengfuwu", className: "iconfont icongongnengfuwu",
hasChildren: false, hasChildren: false,
}, },
...@@ -155,7 +151,7 @@ export default { ...@@ -155,7 +151,7 @@ export default {
id: "yjmxgl", id: "yjmxgl",
label: "预警模型管理", label: "预警模型管理",
newAuth: "M01", newAuth: "M01",
index: "xsbkMxgl", index: "yjmxgl",
className: "iconfont icongongnengfuwu", className: "iconfont icongongnengfuwu",
hasChildren: false, hasChildren: false,
}, },
...@@ -168,7 +164,6 @@ export default { ...@@ -168,7 +164,6 @@ export default {
hasChildren: false, hasChildren: false,
}, },
], ],
header: "监测预警",
}; };
}, },
created() { created() {
...@@ -177,33 +172,176 @@ export default { ...@@ -177,33 +172,176 @@ export default {
this.$store.commit("user/SET_Header", this.header); this.$store.commit("user/SET_Header", this.header);
}, },
methods: { methods: {
setYJ(scope) { // 获取列表查询条件 模型的code
let row = scope.row; getAllMxxxTypeList() {
let params = new FormData(); getAllMxxxType().then((res) => {
params.append("glxxXxzjbh", row.xxzjbh); if (res.code == 200) {
params.append("sjly", "02"); let selectlist = [];
params.append("yjxx", row.kyfwbzhFwbzh); res.data.rows.forEach((item) => {
this.$confirm("是否确认添加为列控预警对象?", "提示", { selectlist.push({
label: item.name,
id: item.code,
});
});
this.cxQueryField.forEach((itemType) => {
if (
itemType.type == "codeTreeDialog" &&
itemType.id == "bkmxMxCode"
) {
this.$set(itemType, "codeOptions", selectlist);
}
});
}
});
},
/**
* @description 新增
*/
add() {
this.$router.pushToTab("addBkmx");
},
/**
* @description 详情
*/
toInfor(row) {
this.$router.pushToTab({
path: "/detailBkmx",
query: {
xxzjbh: row.xxzjbh,
},
});
},
/**
* @description 修改
*/
edit(scope) {
debugger;
this.$router.pushToTab({
path: "/addBkmx",
query: {
xxzjbh: scope.row.xxzjbh,
},
});
},
// 删除
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
insertLkyj(params).then((res) => { deleteMx({
if (res.code === 200) { xxzjbh: scope.row.xxzjbh,
this.$message.success("提交成功"); }).then((res) => {
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
} else { } else {
this.$message.warning(res.message); this.$message({
type: "error",
message: res.message,
});
} }
}); });
}) })
.catch(() => { .catch(() => {
this.$message({ type: "info", message: "已取消" }); this.$message({
type: "info",
message: "已取消删除",
});
}); });
}, },
}, },
watch: {},
mounted() {
this.getAllMxxxTypeList(); // 获取查询条件的 模型code
},
}; };
</script> </script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss"> <style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss"; @import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style> </style>
...@@ -189,9 +189,9 @@ export default { ...@@ -189,9 +189,9 @@ export default {
cxUrl: "/xsbk/getYbkBkxxList", cxUrl: "/xsbk/getYbkBkxxList",
Menu: [ Menu: [
{ {
id: "xsbk", id: "mxyjgl",
label: "监测预警信息汇集管理", label: "监测预警模型运行管理",
index: "xsbk", index: "mxyjgl",
auth: "M0101", auth: "M0101",
className: "iconfont iconrizhi", className: "iconfont iconrizhi",
disabled: false, disabled: 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