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>
<div class="Content">
<right-content
:tableOperation="true"
pageBs="zbfzxyrlist"
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
@toInfor="toInfor"
:cxUrl="cxUrl"
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span
>
</template>
<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>
</right-content>
</div>
......@@ -19,90 +25,96 @@
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { insertLkyj } from "@/api/jcyjzxt/hmd.js";
import { getAllMxxxType, deleteMx } from "@/api/xshb/xsbk.js";
export default {
name: "rlqbxsxx",
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "抓捕犯罪嫌疑人列表",
pageBs: "kyfwbshlist",
header: "监测预警",
pageBs: "xsbkMxgl",
cxFormData: {
limit: 10,
page: 1,
bkmxName: "",
bkmxMxCode: [],
bkmxSyfw: [],
},
cxQueryField: [
{
name: "服务标识号类型",
id: "bshlx",
placeholder: "请选择",
type: "select",
selectData: [
{
name: "IMSI",
value: "01",
},
{
name: "IMEI",
value: "02",
},
{
name: "QQ号码",
value: "03",
},
{
name: "微信ID",
value: "04",
},
{
name: "邮箱",
value: "05",
},
],
name: "布控模型名称",
id: "bkmxName",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
// {
// name: "案事件编号",
// id: "asjbh",
// placeholder: "请输入",
// type: "text",
// value: "",
// col: "3",
// },
// {
// name: "发现时间",
// id: "fxkyfwbzhFxsj",
// placeholder: "请输入",
// type: "date",
// value: "",
// col: "3",
// },
{
name: "服务标识号",
id: "bsh",
placeholder: "请输入",
type: "text",
{
name: "基本模型",
id: "bkmxMxCode",
type: "codeTreeDialog",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
multiple: true,
},
{
name: "适用范围",
id: "bkmxSyfw",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_BKLXDM",
multiple: true,
},
],
cxDefaultFormThead: [
{ label: "信息主键编号", prop: "xxzjbh" },
{ label: "可疑服务标识号类型", prop: "kyxsfwbshBshlxMc" },
{ label: "服务标识号", prop: "kyxsfwbshBsh" },
{ label: "依据", prop: "kyxsfwbshKyyj" },
{ label: "登记时间", prop: "djsj" },
{ label: "录入单位", prop: "xxdjdwGajgmc" },
{ label: "录入人", prop: "xxdjryXm" },
{
label: "信息主键编号",
toInfor: true,
prop: "xxzjbh",
width: "250",
},
{
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: [
{
id: "kyfwbshlist",
label: "可疑服务标识号列表",
label: "监测预警信息汇集管理",
index: "kyfwbshlist",
auth: "M0101",
className: "iconfont iconrizhi",
......@@ -113,25 +125,9 @@ export default {
//左侧导航(模块第一个页面需要)
{
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: "监测预警信息汇集管理",
newAuth: "M01",
index: "xsbks",
index: "kyfwbshlist",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
......@@ -155,7 +151,7 @@ export default {
id: "yjmxgl",
label: "预警模型管理",
newAuth: "M01",
index: "xsbkMxgl",
index: "yjmxgl",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
......@@ -168,7 +164,6 @@ export default {
hasChildren: false,
},
],
header: "监测预警",
};
},
created() {
......@@ -177,33 +172,176 @@ export default {
this.$store.commit("user/SET_Header", this.header);
},
methods: {
setYJ(scope) {
let row = scope.row;
let params = new FormData();
params.append("glxxXxzjbh", row.xxzjbh);
params.append("sjly", "02");
params.append("yjxx", row.kyfwbzhFwbzh);
this.$confirm("是否确认添加为列控预警对象?", "提示", {
// 获取列表查询条件 模型的code
getAllMxxxTypeList() {
getAllMxxxType().then((res) => {
if (res.code == 200) {
let selectlist = [];
res.data.rows.forEach((item) => {
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: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
insertLkyj(params).then((res) => {
if (res.code === 200) {
this.$message.success("提交成功");
deleteMx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
} else {
this.$message.warning(res.message);
this.$message({
type: "error",
message: res.message,
});
}
});
})
.catch(() => {
this.$message({ type: "info", message: "已取消" });
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},
watch: {},
mounted() {
this.getAllMxxxTypeList(); // 获取查询条件的 模型code
},
};
</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">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@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>
......@@ -189,9 +189,9 @@ export default {
cxUrl: "/xsbk/getYbkBkxxList",
Menu: [
{
id: "xsbk",
label: "监测预警信息汇集管理",
index: "xsbk",
id: "mxyjgl",
label: "监测预警模型运行管理",
index: "mxyjgl",
auth: "M0101",
className: "iconfont iconrizhi",
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