Commit 2bd8fcbb by wangxing

Merge branch 'dev_xzeq' of http://47.92.108.28/changchao/founder_vue into dev_xzeq

parents 58ce9b04 83b6d27d
......@@ -23,6 +23,36 @@
"children":[]
},
{
"ids":"10027374",
"label":"扫黑办成员单位移交",
"codeType":"CODE_XSLY",
"text":"扫黑办成员单位移交",
"pId":null,
"id":"0202",
"isParent":false,
"children":[]
},
{
"ids":"10027375",
"label":"公安机关内部移交",
"codeType":"CODE_XSLY",
"text":"公安机关内部移交",
"pId":null,
"id":"0203",
"isParent":false,
"children":[]
},
{
"ids":"10027376",
"label":"上级部门下发",
"codeType":"CODE_XSLY",
"text":"上级部门下发",
"pId":null,
"id":"0204",
"isParent":false,
"children":[]
},
{
"ids":"1002734",
"label":"群众举报",
"codeType":"CODE_XSLY",
......@@ -33,6 +63,36 @@
"children":[]
},
{
"ids":"10027371",
"label":"群众来信",
"codeType":"CODE_XSLY",
"text":"群众来信",
"pId":null,
"id":"0301",
"isParent":false,
"children":[]
},
{
"ids":"10027372",
"label":"网络举报",
"codeType":"CODE_XSLY",
"text":"网络举报",
"pId":null,
"id":"0302",
"isParent":false,
"children":[]
},
{
"ids":"10027373",
"label":"群众来电",
"codeType":"CODE_XSLY",
"text":"群众来电",
"pId":null,
"id":"0303",
"isParent":false,
"children":[]
},
{
"ids":"1002735",
"label":"日常警情串并",
"codeType":"CODE_XSLY",
......@@ -61,6 +121,16 @@
"id":"0600",
"isParent":false,
"children":[]
},
{
"ids":"10027377",
"label":"人力情报反映",
"codeType":"CODE_XSLY",
"text":"人力情报反映",
"pId":null,
"id":"0700",
"isParent":false,
"children":[]
}
]
},
......
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
// 61.1.2新增案件关注
export const insertGxzz = params =>
post(`${base.alyIP}/shseaj/insertGxzz`, params);
// 61.新建团伙
export const insertThxx = params =>
postform(`${base.alyIP}/insertThxx`, params);
// 61.修改团伙
export const updateThxxjt = params =>
postform(`${base.alyIP}/updateThxxjt`, params);
// 1.4.2新增线索
export const insertShseXs = params =>
postform(`${base.alyIP}/insertShseXs`, params);
// 1.4.3删除线索
export const deleteShseXs = params =>
post(`${base.alyIP}/deleteShseXs`, params);
// 1.4.3回显线索
export const getShseXsXq = params =>
post(`${base.alyIP}/getShseXsXq`, params);
// 1.4.3修改线索
export const updateShseXs = params =>
postform(`${base.alyIP}/updateShseXs`, params);
// 11.4.2上报
export const updateXsSbxf = params =>
postform(`${base.alyIP}/updateXsSbxf`, params);
// 1.4.2新增线索反馈
export const insertXsFkxx = params =>
post(`${base.alyIP}/insertXsFkxx`, params);
// 1.4.2新增线索反馈
export const hbThajxyr = params =>
postform(`${base.alyIP}/hbThajxyr`, params);
// 1.3.1回显团伙
export const selectHxThAsjbh = params =>
post(`${base.alyIP}/selectHxThAsjbh`, params);
// 1.3.1 删除嫌疑人案件
export const deleteThxyrxx = params =>
post(`${base.alyIP}/deleteThxyrxx`, params);
// 1.3.1删除团伙相关案件
export const deleteThajxx = params =>
post(`${base.alyIP}/deleteThajxx`, params);
// 1.3.1删除团伙相关案件
export const cfThajxyr = params =>
postform(`${base.alyIP}/cfThajxyr`, params);
// 1.3.1删除团伙相关案件
export const deleteShseXsXyr = params =>
post(`${base.alyIP}/deleteShseXsXyr`, params);
// 1.5 团伙智能研判报告
export const getThZnypbg = params =>
post(`${base.alyIP}/getThZnypbg`, params);
\ No newline at end of file
......@@ -407,7 +407,6 @@
pageBs != 'zcssjdc' &&
pageBs != 'zcssdy' &&
pageBs != 'queryShserhfx' &&
pageBs != 'queryXshb' &&
pageBs != 'queryQzlb' &&
pageBs != 'qyeryrlqbxsBJ' &&
pageBs != 'djajzb' &&
......@@ -680,6 +679,7 @@
v-if="
pageBs == 'queryUser' ||
pageBs == 'queryRole' ||
pageBs == 'queryFzth' ||
pageBs == 'queryZdjyhd' ||
pageBs == 'zdxxgl' ||
pageBs == 'zdryGl' ||
......@@ -1060,6 +1060,7 @@
pageBs == 'queryXcystrCase' ||
pageBs == 'queryXcystrPeople' ||
pageBs == 'queryXcrx' ||
pageBs == 'queryFzth' ||
pageBs == 'queryXczj' ||
pageBs == 'shrzList' ||
pageBs == 'gnsyrzList' ||
......@@ -1557,7 +1558,7 @@
</template>
</el-table-column>
<el-table-column
v-if="pageASs == 'queryZj'"
v-if="pageASs == 'queryZj' || pageBs == 'queryFzth'"
:width="
pageBs == 'zdxxgl' || pageBs == 'gzrygl'
? '460'
......
......@@ -36,6 +36,7 @@ import ajzbRoutes from "./modules/ajzb";
import dswtzxxRoutes from "./modules/dswtzxx";
import qgccjRoutes from "./modules/qgccj";
import ztypRoutes from "./modules/ztyp";
import shseRoutes from "./modules/shse";
import rlxnpgRoutes from "./modules/rlxnpg";
import zdxnpgRoutes from "./modules/zdxnpg";
import mxglRoutes from "./modules/mxgl";
......@@ -80,6 +81,7 @@ const mainRouters = [
zjclRoutes,
userAuthRoutes,
hbyprwRoutes,
shseRoutes,
ajxscxbdRoutes,
bjzycxRoutes,
ywgzxnpgRoutes,
......
......@@ -506,7 +506,30 @@ const menuLayouts = [
},
component: () => import("@/views/xshb/xshb/gzjlxz/xsxxbc.vue")
},
{
path: "/fzthxz",
name: "fzthxz",
meta: {
title: '犯罪团伙信息'
},
component: () => import("@/views/shse/fzth/fzthxz.vue")
},
{
path: "/cf",
name: "cf",
meta: {
title: '犯罪团伙信息'
},
component: () => import("@/views/shse/fzth/cf.vue")
},
{
path: "/xsxxxz",
name: "xsxxxz",
meta: {
title: '线索信息'
},
component: () => import("@/views/shse/shsexs/xsxxxz.vue")
},
]
export default menuLayouts
\ No newline at end of file
import menuLayout from "@/layout/menuLayout.vue";
const menuLayouts = [
{
path: "/queryShseaj",
name: "queryShseaj",
meta: {
title: '涉黑涉恶案件信息管理'
},
component: () => import("@/views/shse/shseaj/queryShseaj.vue")
},
{
path: "/queryShsery",
name: "queryShsery",
meta: {
title: '涉黑涉恶人员信息管理'
},
component: () => import("@/views/shse/shsery/queryShsery.vue")
},
{
path: "/queryFzth",
name: "queryFzth",
meta: {
title: '犯罪团伙信息管理'
},
component: () => import("@/views/shse/fzth/queryFzth.vue")
},
{
path: "/xq",
name: "xq",
meta: {
title: '犯罪团伙信息详情'
},
component: () => import("@/views/shse/fzth/xq.vue")
},
{
path: "/queryXsxx",
name: "queryXsxx",
meta: {
title: '涉黑涉恶线索信息管理'
},
component: () => import("@/views/shse/shsexs/queryXsxx.vue")
},
];
export default {
path: "/right",
component: menuLayout,
children: [...menuLayouts]
};
\ No newline at end of file
<template>
<div
ref="zlXq"
class="xsfk"
element-loading-text="正在加载......"
v-loading="loadingFk"
>
<div
style="
position: fixed;
width: 100%;
z-index: 99;
height: 48px;
background: #0061f7;
font-size: 18px;
font-weight: bold;
line-height: 48px;
color: #ffffff;
padding: 0 17px;
"
>
<img
style="width: 36px; margin-left: 10px"
src="~@/assets/img/login/jinhui.png"
alt=""
/>
{{ headerTitle }}
</div>
<div class="form">
<div id="ccontrnt">
<div class="cont">
<div>
<span class="z">团伙信息</span>
</div>
<el-form
:model="ruleForm"
:rules="rules"
ref="ruleForm"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="团伙头目:" prop="thtm">
<el-input v-model="ruleForm.thtm"></el-input>
</el-form-item>
<el-form-item label="团伙名称:" prop="thmc">
<el-input v-model="ruleForm.thmc"></el-input>
</el-form-item>
</el-form>
<div>
<div style="margin-bottom: 20px">
<span class="z"> 案件列表 </span>
</div>
<div>
<el-table
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column
align="center"
v-for="(item, index) in tableDataList"
:key="index"
:label="item.label"
:prop="item.prop"
>
</el-table-column>
</el-table>
</div>
<div style="margin: 20px 0px 30px">
<span class="z"> 嫌疑人列表 </span>
</div>
<div>
<el-table
ref="multipleTable"
:data="tableData1"
tooltip-effect="dark"
style="width: 100%"
border
@selection-change="handleSelectionChange1"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column
align="center"
v-for="(item, index) in tableDataList1"
:key="index"
:label="item.label"
:prop="item.prop"
>
</el-table-column>
</el-table>
</div>
<div class="qrcf">
<el-button
type="info"
icon="el-icon-document-remove"
@click="submit"
style="background: #fe9200; border: #fe9200"
id="caiji"
>确认拆分</el-button
>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { selectHxThAsjbh, cfThajxyr } from "@/api/shse/shse.js";
import queryRwbdjsVue from "../../xsjsdb/queryRwbdjs.vue";
export default {
name: "xshc",
components: {},
data() {
return {
aj: [],
xyr: [],
headerTitle: "团伙拆分",
loadingFk: false,
ruleForm: {
thtm: "",
thmc: "",
},
rules: {
thtm: [{ required: true, message: "请输入团伙头目", trigger: "blur" }],
thmc: [{ required: true, message: "请输入团伙名称", trigger: "blur" }],
},
tableData: [],
tableDataList: [
{
label: "案事件编号",
prop: "asjbh",
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "立案单位",
prop: "ladwdm",
},
{
label: "案件类别",
prop: "ajlbdm",
},
{
label: "立案日期",
prop: "larq",
},
],
tableData1: [],
tableDataList1: [
{
label: "姓名",
prop: "xm",
},
{
label: "证件号码",
prop: "zjhm",
},
{
label: "户籍地",
prop: "hjddm",
},
],
};
},
created() {
this.getselectHxThAsjbh();
},
methods: {
getselectHxThAsjbh() {
this.loadingFk = true;
selectHxThAsjbh({
asjbh: this.$route.query.asjbh,
}).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows.tjaj;
this.tableData1 = res.data.rows.tjxyr;
this.loadingFk = false;
}
});
},
handleSelectionChange(row) {
this.aj = row;
},
handleSelectionChange1(row) {
this.xyr = row;
},
submit() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
if (this.aj.length > 0 && this.xyr.length > 0) {
let params = new FormData();
params.append("th.thtm", this.ruleForm.thtm);
params.append("th.thmc", this.ruleForm.thmc);
this.loadingFk = true;
this.aj.forEach((item, index) => {
this.tableDataList.forEach((items) => {
params.append(
"aj" + "[" + index + "]" + "." + items.prop,
item[items.prop]
);
});
});
this.xyr.forEach((item, index) => {
this.tableDataList1.forEach((items) => {
params.append(
"xyr" + "[" + index + "]" + "." + items.prop,
item[items.prop]
);
});
});
cfThajxyr(params).then((res) => {
if (res.code == 200) {
this.$alert("拆分成功!", "提示!", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.loadingFk = false;
this.$router.push({
path: "/queryShseaj",
});
},
});
}
});
} else {
this.$alert("请选择一条嫌疑人和案件!", "提示", {
confirmButtonText: "确定",
type: "warning",
});
}
} else {
setTimeout(() => {
this.$alert("请填写必填字段!", "提示", {
confirmButtonText: "确定",
type: "warning",
});
return false;
}, 100);
}
});
},
},
watch: {},
};
</script>
<style lang="scss" scoped>
.xsfk {
/deep/.el-loading-spinner {
// top: 72%;
// margin-top: -21px;
// width: 100%;
// text-align: center;
// position: absolute;
position: fixed;
top: 50%;
}
// background-image: url(../../assets/img/bj.png);
background-repeat: no-repeat;
background-attachment: scroll;
max-height: 100%;
overflow-y: scroll;
/deep/.el-loading-mask {
height: 249%;
position: absolute;
z-index: 2000;
background-color: rgba(255, 255, 255, 0.9);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: opacity 0.3s;
}
}
.form {
margin-top: 85px;
/deep/ .formContent .allForm {
margin: 0 !important;
}
/deep/ .itemtextarea .el-textarea__inner {
width: 800px;
}
/deep/ #formCommonPage .formContent .childrenAsAdd .addContent {
width: 1000px;
margin-left: 140px;
margin-top: 0px;
margin-bottom: 16px !important;
padding-top: 10px;
}
/deep/ #formCommonPage .formContent .addChildBtn .el-button {
width: 1000px;
}
/deep/ #formCommonPage .formContent .addChildBtn {
margin-top: 0 !important;
}
/deep/ #formCommonPage .formContent {
padding-left: 15px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap .xs_xq_contents {
&:nth-child(5) {
width: 600px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq {
padding-left: 35px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_content {
width: 250px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_name {
width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap {
width: 1280px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_form .name {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_fj .fj_title {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content {
margin-left: 7px;
}
.hcfksh {
width: 1400px;
margin: 10px auto;
box-shadow: 0px 1px 2px rgba($color: #000000, $alpha: 0.2);
padding: 20px;
background: #fff;
color: #8c97a0;
.content_item {
.name {
color: $base-color;
}
.ba_radio {
display: flex;
}
}
}
</style>
<style lang="scss" scoped>
// .xshc /deep/ #xsDet .xs_main {
// margin-left: 7px;
// }
.form /deep/ .childrenAsAdd {
.addName {
width: 110px !important;
}
}
/deep/.el-button {
margin-right: -19px !important;
}
/deep/.el-dialog__header {
background: #0081f7 !important;
}
/deep/.el-dialog {
position: relative;
margin: 0 auto 50px;
border-radius: 2px;
box-sizing: border-box;
width: 50%;
}
.cf {
float: right;
/* right: 20%; */
margin-right: 17%;
margin-top: 0.5%;
border: 1px solid #0061f7;
width: 40px;
text-align: center;
color: #0061f7;
}
#ccontrnt {
width: 1268px;
// height: 500px;
margin: 50px auto 0;
background: #fff;
.cont {
padding: 20px 30px;
}
.z {
color: #0061f7;
font-size: 14px;
font-weight: bold;
}
.el-form-item {
width: 500px;
}
form.el-form.demo-ruleForm {
display: flex;
}
.qrcf {
margin: 20px 0 0 50px;
}
}
</style>
<template>
<div
ref="zlXq"
class="xsfk"
element-loading-text="正在加载......"
v-loading="loadingFk"
>
<div
style="
position: fixed;
width: 100%;
z-index: 99;
height: 48px;
background: #0061f7;
font-size: 18px;
font-weight: bold;
line-height: 48px;
color: #ffffff;
padding: 0 17px;
"
>
<img
style="width: 36px; margin-left: 10px"
src="~@/assets/img/login/jinhui.png"
alt=""
/>
{{ headerTitle }}
</div>
<div class="form">
<div @click="cf" class="cf">
<span>拆分</span>
</div>
<fj-sc
:xxzjbh="xxzjbh"
:shsexsbh="shsexsbh"
:jshcxxzjbh="jshcxxzjbh"
:formField="formField"
:formLabelAlign="formLabelAlign"
:propSt="st"
:rule="rules"
:propxsTitle="title"
:propBottonType="bottonType"
:url="url"
@hxShuju="ajHx(arguments)"
@xyrIdentity="xyrIdentity(arguments)"
@ajbhHx="ajbhHx"
@deleteObj="deleteObj"
@submit="callSubmit"
:autowidth="autowidth"
>
</fj-sc>
<el-dialog
title="推荐团伙"
:visible.sync="dialogVisible"
width="60%"
center
>
<div style="margin-top: 20px">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="案件列表" name="first">
<div>
<el-table
center
@selection-change="handleSelectionChange"
:data="ajList"
stripe
border
>
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column
v-for="(columnTitle, index) in ajTableList"
:key="index"
:label="columnTitle.label"
:width="columnTitle.width"
:prop="columnTitle.prop"
align="center"
>
</el-table-column>
</el-table>
</div>
</el-tab-pane>
<el-tab-pane label="嫌疑人列表" name="second">
<div>
<el-table
center
@selection-change="handleSelectionChange1"
:data="xyrList"
stripe
border
>
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column
v-for="(columnTitle, index) in xyrTableList"
:key="index"
:label="columnTitle.label"
:width="columnTitle.width"
:prop="columnTitle.prop"
align="center"
>
</el-table-column>
</el-table>
</div>
</el-tab-pane>
</el-tabs>
</div>
<div style="padding: 20px 0">
<el-button type="primary" class="hbbtn" @click="handleHb"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div>
</template>
<script>
import {
insertThxx,
selectHxThAsjbh,
updateThxxjt,
deleteThajxx,
deleteThxyrxx,
} from "@/api/shse/shse.js";
import FjSc from "@/views/xshb/xshb/gzjlxz/fksc.vue";
export default {
name: "xshc",
components: {
FjSc,
},
data() {
return {
aj: [],
xyr: [],
ajList: [],
xyrList: [],
ajTableList: [
{
label: "案事件编号",
prop: "asjbh",
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "立案单位",
prop: "ladwdm",
},
{
label: "案件类别",
prop: "ajlbdm",
},
{
label: "立案日期",
prop: "larq",
},
],
xyrTableList: [
{
label: "姓名",
prop: "xm",
},
{
label: "证件号码",
prop: "zjhm",
},
{
label: "户籍地",
prop: "hjddm",
},
],
activeName: "first",
dialogVisible: false,
url: this.$route.query.fkid,
loadingFk: false,
headerTitle: "犯罪团伙新增",
title: "犯罪团伙信息",
autowidth: "1268px",
xsly: "",
codeData: [],
xmDetail: {},
xxzjbh: "",
shsexsbh: "",
ajXxzjbh: "",
result: {
xyrResult: [],
jbrResult: [],
gzryResult: [],
xdzl: [],
bjbrResult: [],
tgrResult: [],
tbrResult: [],
},
xsly: "",
xslyCode: "",
rules: {},
formField: [
{
name: "团伙头目:",
id: "thtm",
prop: "checkEmpty",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "团伙名称:",
id: "thmc",
prop: "checkEmpty",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
childrenAsAdd: [
{
name: "案件信息:",
id: "aj",
list: [
{
name: [
{
name: "案事件编号:",
id: "asjbh",
type: "text",
value: "",
prop: "checkEmpty",
placeholder: "请输入",
col: "2",
},
{
name: "案件名称:",
id: "ajmc",
type: "text",
value: "",
// prop: "checkEmpty",
placeholder: "请输入",
col: "2",
},
{
name: "立案单位:",
id: "ladwdm",
type: "codeTree",
codeOptions: [],
codeTree: "QGCODE_UNIT",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "案件类别:",
id: "ajlbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_AJLB",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "立案日期:",
id: "larq",
type: "date",
value: "",
placeholder: "请选择",
col: "2",
},
],
},
],
iconClass: "el-icon-delete",
},
],
},
{
childrenAsAdd: [
{
name: "嫌疑人信息:",
id: "xyr",
list: [
{
name: [
{
name: "姓名:",
id: "xm",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入姓名",
col: "2",
},
{
name: "证件号码:",
id: "zjhm",
type: "text",
// prop: "checkEmpty",
value: "",
placeholder: "请输入姓名",
col: "2",
},
{
name: "户籍地:",
id: "hjddm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
placeholder: "请选择",
col: "2",
},
],
},
],
iconClass: "el-icon-delete",
},
],
},
// {
// name: '核查报告电子文档:',
// id: 'hcbgDzwd',
// fileId: 'hcbgDzwd',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: '四长签字扫描件:',
// id: 'szqzySmj',
// fileId: 'szqzySmj',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: "附件上传:",
// id: "qtFj",
// fileId: "qtFj",
// type: "file",
// value: "",
// placeholder: "",
// col: "1",
// requestUrl: "/flwsFj/tbstasjflwsCj/save",
// fileList: [],
// },
],
formLabelAlign: {},
st: "th",
bottonType: "fk",
loading: true,
xszxx: [],
isParent: "",
jshcxxzjbh: this.$route.query.jshcxxzjbh,
sftj: "",
thbh: "",
};
},
created() {
// if (this.$route.query.xsbh) {
// this.getTqHxFksj();
// }
this.getselectHxThAsjbh1();
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
cf() {
this.$router.push({
path: "/cf",
query: {
asjbh: this.$route.query.asjbh,
},
});
},
deleteObj(obj) {
var self = this;
debugger;
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
if (val2.id == "aj") {
deleteThajxx({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
}
});
} else if (val2.id == "xyr") {
deleteThxyrxx({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
}
});
}
});
}
});
},
handleSelectionChange(row) {
this.aj = row;
},
handleSelectionChange1(row) {
this.xyr = row;
},
getselectHxThAsjbh1() {
selectHxThAsjbh({
asjbh: this.$route.query.asjbh,
}).then((res) => {
this.sftj = res.data.rows.sftj;
if (res.data.rows.sftj == "0") {
this.getselectHxThAsjbh();
} else {
this.dialogVisible = true;
this.ajList = res.data.rows.tjaj;
this.xyrList = res.data.rows.tjxyr;
}
});
},
handleHb() {
this.$confirm("是否进行新增, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.dialogVisible = false;
})
.catch(() => {
this.$router.push({
path: "/queryShseaj",
});
});
},
// 提取反馈的回显
getselectHxThAsjbh() {
this.loadingFk = true;
var self = this;
selectHxThAsjbh({
asjbh: this.$route.query.asjbh,
}).then((res) => {
this.thbh = res.data.rows.th.thbh;
debugger;
// 线索反馈
this.loadingFk = false;
var result = res.data.rows.th;
self.formField.forEach((item, i) => {
var fieldVale = result[item.id];
debugger;
if (item.type == "codeTree") {
debugger;
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(self.formLabelAlign, item.id, fieldVale);
} else if (item.type == "date") {
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
self.$set(self.formLabelAlign, item.id, new Date(fieldVale));
} else {
self.$set(self.formLabelAlign, item.id, fieldVale);
}
});
// 嫌疑人信息1:
debugger;
var result1 = res.data.rows;
self.formField[2].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["tjaj"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
});
// 涉及案件
debugger;
var result1 = res.data.rows;
self.formField[3].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["tjxyr"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
});
// self.formLabelAlign["qtFj"] = [];
// res.data.xsxq.fjList.forEach((item, index) => {
// self.formLabelAlign["qtFj"][index] = {
// name: item.xsfjDzwjmc,
// url: item.xsfjDzwjnr,
// xxzjbh: item.xxzjbh,
// };
// });
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
},
//案件回显
ajHx(content) {
var self = this;
debugger;
getAjxxByAsjbh({
asjbh: content[0],
}).then((res) => {
var result = res.data.asj;
self.formField[2].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
});
var result = res.data.asj;
self.formField[2].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
if (item.type == "codeTree") {
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
} else if (item.type == "date") {
debugger;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.asjList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
new Date(fieldVale)
);
}
} else {
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.asjList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
}
}
});
});
},
// 嫌疑人提取回显
xyrIdentity(content) {
debugger;
this.loadingFk = true;
var self = this;
this.loading = true;
getXyrxxByZjhm({
gmsfzh: content[0],
}).then((res) => {
// 嫌疑人信息1
var result = res.data.xyr;
self.formField[5].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
});
var result = res.data.xyr;
self.formField[5].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
if (item.type == "codeTree") {
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
} else if (item.type == "date") {
debugger;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.xyrList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
new Date(fieldVale)
);
}
} else {
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.xyrList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
}
}
});
this.loadingFk = false;
this.loading = false;
});
},
// 案件编号回显
ajbhHx(content) {
var self = this;
this.loadingFk = true;
this.loading = true;
debugger;
getAjAndXyrByAsjbh({
asjbh: content,
}).then((res) => {
debugger;
var result1 = res.data;
self.formField[5].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["laList"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
this.loadingFk = false;
this.loading = false;
});
// 嫌疑人信息1:
debugger;
var result1 = res.data;
self.formField[6].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["xyrList"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
});
});
},
// 搜索树状数据中的 ID
queryTree(tree, id) {
debugger;
const tmp = []; // 路径数组
const FindPos = (sourceTree, sourceId) => {
if (sourceTree.id == sourceId) {
tmp.push(sourceTree.label);
return;
} else {
if (sourceTree.children && sourceTree.children.length != 0) {
sourceTree.children.forEach((item) => {
if (item.id === sourceId) {
// 寻找到指定的元素节点
tmp.push(item.label);
FindPos(tree, sourceTree.id); // 继续寻找上层元素的位置
} else {
// 当前继续寻找别的子项
FindPos(item, sourceId);
}
});
}
}
};
tree.forEach((item2) => {
FindPos(item2, id);
});
return tmp.reverse();
},
//获取子线索信息
getXsJbxxs() {
getXsJbxxsByPid({
pid: this.shsexsbh,
}).then((res) => {
var obj = {};
res.data.xsxxList.forEach((item) => {
obj.xsname = item.shsexsmc;
obj.lrrname = item.xxdjryXm;
obj.lrsj = item.djsj;
obj.shsexsbh = item.shsexsbh;
this.xszxx.push(obj);
obj = {};
});
});
},
//初始化表单
initFields() {
var self = this;
for (var i = 0; i < this.formField.length; i++) {
//遍历可配置化数组
if (this.formField[i].prop) {
this.rules[this.formField[i].id] =
this.$rules[this.formField[i].prop];
//如果有规则的话 拿到全局的规则 规则是一个数组,数组里是对象 将规则复制到所绑定的对象那个中去,然后每一项绑定对象
}
}
},
getCode() {
axios
.get(`JsonData/CODE_SHCE_SJHYLYDM.json`)
.then((res) => {
this.codeData = res.data.data.rows;
})
.catch((err) => {
console.log(err);
});
},
//提交
callSubmit(params, fileLists) {
debugger;
this.loadingFk = true;
this.loading = true;
if (this.sftj == "0") {
this.updateThxxjt(params);
} else {
this.insertThxx(params);
}
},
insertThxx(params) {
if (this.aj.length > 0) {
this.aj.forEach((item, index) => {
this.ajTableList.forEach((items) => {
let indexaj = index + 1;
params.append(
"aj" + "[" + indexaj + "]" + "." + items.prop,
item[items.prop]
);
});
});
}
if (this.xyr.length > 0) {
this.xyr.forEach((item, index) => {
this.xyrTableList.forEach((items) => {
let indexxyr = index + 1;
params.append(
"xyr" + "[" + indexxyr + "]" + "." + items.prop,
item[items.prop]
);
});
});
}
insertThxx(params).then((res) => {
if (res.code == "200") {
this.$alert("提交成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
debugger;
this.loading = false;
this.loadingFk = false;
this.$router.push({
path: "/queryShseaj",
});
},
});
}
});
},
updateThxxjt(params) {
debugger;
params.append("th.thbh", this.thbh);
updateThxxjt(params).then((res) => {
if (res.code == "200") {
this.$alert("提交成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
debugger;
this.loading = false;
this.loadingFk = false;
this.$router.push({
path: "/queryShseaj",
});
},
});
}
});
},
//指令详情信息查询
getZlxx() {
var self = this;
getZlxqAllByBh({
xxzjbh: this.xxzjbh,
}).then((res) => {
self.xsList[0].xstz = res.data.zlxq;
});
},
//获取线索信息
getAjDetail() {
var self = this;
getShsexsXq({
shsexsbh: self.shsexsbh,
page: 1,
rows: 5,
}).then((res) => {
// if (res.data.xs.sfbjPdbz == '是') {
// self.xsList[1].vShow = true
// self.getXsbjFj()
// self.xsList[1].xsxx.forEach(item => {
// item.content = res.data.xs[item.id]
// })
// }
self.xsList[0].xsxx.forEach((item) => {
item.content = res.data.xs[item.id];
});
self.xsly = res.data.xs.shsexslydm;
self.isParent = res.data.xs.isparent;
if (self.xsly == "群众来信" || self.xsly == "群众来电") {
self.xslyCode == "1";
}
setTimeout(() => {
self.loading = false;
}, 100);
});
},
getDetails(res, i) {
var self = this;
self.xsList[0].xsss[i].page.total = res.data.total;
var obj = {};
var key = "";
var value = "";
res.data.rows.forEach((item) => {
self.xsList[0].xsss[i].tableList.forEach((subItem) => {
obj[subItem.prop] = item[subItem.prop];
});
self.xsList[0].xsss[i].shuju.push(obj);
obj = {};
});
},
//嫌疑人信息
getXyrDetail() {
var self = this;
getXsglxyrList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[0].page.currentPage,
rows: self.xsList[0].xsss[0].page.pageSize,
}).then((res) => {
if (self.xslyCode == "1") {
self.getDetails(res, 5);
self.result.bjbrResult = res.data.rows;
self.xsList[0].xsss[5].type = "show";
self.xsList[0].xsss[0].type = "";
} else {
self.getDetails(res, 0);
self.result.xyrResult = res.data.rows;
self.xsList[0].xsss[0].type = "show";
self.xsList[0].xsss[5].type = "";
}
});
self.xsList[0].xsss[0].shuju = [];
},
//举报人信息
getJbrDetail() {
var self = this;
getXsgljbrList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[1].page.currentPage,
rows: self.xsList[0].xsss[1].page.pageSize,
}).then((res) => {
if (res.data.rows[0].jbrxm) {
self.getDetails(res, 1);
self.result.jbrResult = res.data.rows;
self.xsList[0].xsss[1].type = "show";
self.xsList[0].xsss[3].type = "";
self.xsList[0].xsss[4].type = "";
} else if (res.data.rows[0].tbrxm) {
self.getDetails(res, 3);
self.result.jbrResult = res.data.rows;
self.xsList[0].xsss[3].type = "show";
self.xsList[0].xsss[4].type = "";
self.xsList[0].xsss[1].type = "";
} else if (res.data.rows[0].xstgrbm) {
self.getDetails(res, 4);
self.result.tgrResult = res.data.rows;
self.xsList[0].xsss[4].type = "show";
self.xsList[0].xsss[1].type = "";
self.xsList[0].xsss[3].type = "";
}
});
self.xsList[0].xsss[1].shuju = [];
},
//公职人员信息
getGzryDetail() {
var self = this;
getSjgzryList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[2].page.currentPage,
rows: 5,
}).then((res) => {
self.getDetails(res, 2);
self.result.gzryResult = res.data.rows;
if (res.data.rows[0].gzryXm) {
self.xsList[0].xsss[2].type = "show";
} else {
self.xsList[0].xsss[2].type = "";
}
});
self.xsList[0].xsss[2].shuju = [];
},
getXsFj() {
var self = this;
getXsfjByXsbh({
shsexsbh: self.shsexsbh,
}).then((res) => {
var obj = {};
var key = "";
var value = "";
res.data.rows.forEach((item) => {
obj.fjName = item.xsfjDzwjmc;
obj.xxzjbh = item.xxzjbh;
obj.type = "no";
self.xsList[0].xsFj.default.push(obj);
obj = {};
});
});
},
},
watch: {
// 'formLabelAlign.hcjgdm': {
// handler: function (val, oldval) {
// debugger
// console.log(val)
// if (val == '02' || val == '03') {
// this.rules['hcfkglxyr.xm'] = this.$rules.checkEmpty
// this.rules['hcfkglxyr.gmsfzh'] = this.$rules.checkEmpty
// this.rules['asjbh'] = this.$rules.checkEmpty
// // this.$set(this.rules, 'hcfkglxyr.xm', this.$rules.checkEmpty)
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', this.$rules.checkEmpty)
// // this.rules.hcfkglxyr.xm = this.$rules.checkEmpty
// // this.rules.hcfkglxyr.gmsfzh = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcfkglxyr.xm'] = null
// this.rules['asjbh'] = null
// this.rules['hcfkglxyr.gmsfzh'] = null
// // this.$set(this.rules, 'hcfkglxyr.xm', '')
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', '')
// this.$forceUpdate()
// }
// },
// deep: true
// },
// formLabelAlign: {
// handler: function (val, oldval) {
// console.log(val)
// if (this.$route.query.fkid) {
// this.rules['hcjgdm'] = this.$rules.checkEmpty
// this.rules['sjhyly'] = this.$rules.checkEmpty
// this.rules['fknrJyqk'] = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcjgdm'] = null
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// this.$forceUpdate()
// }
// if (val.hcjgdm == '04') {
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// }
// },
// deep: true
// }
},
};
</script>
<style lang="scss" scoped>
.xsfk {
/deep/.el-loading-spinner {
// top: 72%;
// margin-top: -21px;
// width: 100%;
// text-align: center;
// position: absolute;
position: fixed;
top: 50%;
}
// background-image: url(../../assets/img/bj.png);
background-repeat: no-repeat;
background-attachment: scroll;
max-height: 100%;
overflow-y: scroll;
/deep/.el-loading-mask {
height: 249%;
position: absolute;
z-index: 2000;
background-color: rgba(255, 255, 255, 0.9);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: opacity 0.3s;
}
}
.form {
margin-top: 85px;
/deep/ .formContent .allForm {
margin: 0 !important;
}
/deep/ .itemtextarea .el-textarea__inner {
width: 800px;
}
/deep/ #formCommonPage .formContent .childrenAsAdd .addContent {
width: 1000px;
margin-left: 140px;
margin-top: 0px;
margin-bottom: 16px !important;
padding-top: 10px;
}
/deep/ #formCommonPage .formContent .addChildBtn .el-button {
width: 1000px;
}
/deep/ #formCommonPage .formContent .addChildBtn {
margin-top: 0 !important;
}
/deep/ #formCommonPage .formContent {
padding-left: 15px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap .xs_xq_contents {
&:nth-child(5) {
width: 600px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq {
padding-left: 35px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_content {
width: 250px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_name {
width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap {
width: 1280px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_form .name {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_fj .fj_title {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content {
margin-left: 7px;
}
.hcfksh {
width: 1400px;
margin: 10px auto;
box-shadow: 0px 1px 2px rgba($color: #000000, $alpha: 0.2);
padding: 20px;
background: #fff;
color: #8c97a0;
.content_item {
.name {
color: $base-color;
}
.ba_radio {
display: flex;
}
}
}
</style>
<style lang="scss" scoped>
// .xshc /deep/ #xsDet .xs_main {
// margin-left: 7px;
// }
.form /deep/ .childrenAsAdd {
.addName {
width: 110px !important;
}
}
/deep/.el-button {
margin-right: -19px !important;
}
/deep/.el-dialog__header {
background: #ffffff !important;
}
/deep/.el-dialog {
position: relative;
margin: 0 auto 50px;
border-radius: 2px;
box-sizing: border-box;
width: 50%;
}
.cf {
float: right;
/* right: 20%; */
margin-right: 17%;
margin-top: 0.5%;
border: 1px solid #0061f7;
width: 40px;
text-align: center;
color: #0061f7;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@selectionChange="selectionChange"
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="toHb(scope.scope)">合并</span>
</template>
<template #btnGroup="scope">
<span class="hbyp" @click="thxq(scope.scope)">团伙详情</span>
</template>
</right-content>
<el-dialog
title="待合并团伙"
:visible.sync="dialogVisible"
width="40%"
center
>
<div>
<el-table center :data="xsShuju" stripe border max-height="400">
<!-- <el-table-column
v-for="(columnTitle, index) in xsTableList.filter(
(itemsss, index) => {
return index < xsTableList.length - 4;
}
)"
:key="columnTitle.label"
:label="columnTitle.label"
> -->
<el-table-column
v-for="(columnTitle, index) in xsTableList"
:key="index"
:label="columnTitle.label"
:width="columnTitle.width"
:prop="columnTitle.prop"
>
<template scope="scope" v-if="columnTitle.prop == 'sfzth'">
<el-radio-group v-model="scope.row.sfzth">
<!-- :disabled="scope.row.disabled" -->
<el-radio :label="1"></el-radio>
<el-radio :label="0"></el-radio>
</el-radio-group>
<!-- <i
v-show="!scope.row.disabled"
@click="removerow(scope.row)"
class="el-icon-remove-outline"
style="
color: red;
font-size: 16px;
margin-left: 10px;
cursor: pointer;
"
></i> -->
</template>
</el-table-column>
</el-table>
<el-button
style="float: right; margin: 10px"
type="primary"
class="hbbtn"
@click="handleHb"
>确认合并</el-button
>
</div>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { hbThajxyr } from "@/api/shse/shse.js";
export default {
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
xsTableList: [
{
label: "团伙编号",
prop: "thbh",
width: "200",
},
{
label: "团伙名称",
width: "200",
prop: "thmc",
},
{
label: "团伙头目",
width: "145",
prop: "thtm",
},
{
label: "是否主团伙",
prop: "sfzth",
width: "200",
},
],
sfzth: "",
dialogVisible: false,
xsShuju: [],
header: "涉黑涉恶案件侦查",
pageBs: "queryFzth",
cxFormData: {
limit: 10,
page: 1,
thbh: "",
thmc: "",
thtm: "",
},
cxQueryField: [
{
name: "团伙编号",
id: "thbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "团伙名称",
id: "thmc",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "团伙头目",
id: "thtm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "团伙编号",
// toInfor: true,
prop: "thbh",
// width: "250",
},
{
label: "团伙名称",
prop: "thmc",
// width: "200",
},
{
label: "团伙头目",
prop: "thtm",
// width: "200",
},
],
cxUrl: "/selectThzhxx",
Menu: [
// zylx:"asj",
{
id: "queryFzth",
label: "犯罪团伙信息管理",
index: "queryFzth",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toCf(scope) {
debugger
},
selectionChange(row) {
debugger;
this.xsShuju = row;
},
// add() {
// this.$router.push({
// path: '/fzthxz'
// })
// },
toHb(scope) {
if (this.xsShuju.length > 1) {
this.dialogVisible = true;
} else {
this.$alert("请选择两条合并的线索", "提示!", {
confirmButtonText: "确定",
type: "warning",
callback: () => {},
});
}
},
// 确认合并
handleHb() {
let params = new FormData();
this.xsShuju.forEach((item, index) => {
params.append("th" + "[" + index + "]" + ".thbh", item.thbh);
params.append("th" + "[" + index + "]" + ".sfzth", item.sfzth);
});
hbThajxyr(params).then((res) => {
if (res.code == 200) {
this.dialogVisible = false;
this.$message.success("合并成功");
this.$refs.rightContent.doQuery("yes");
this.xsShuju = [];
} else {
this.$message.error("合并失败");
}
});
},
thxq(scope) {
debugger
this.$router.push({
path: '/xq',
query: {
thbh: scope.row.thbh
}
})
},
},
};
</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 {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
display: inline-block;
width: 60px;
border: 1px solid;
line-height: 28px;
text-align: center;
}
</style>
<!--
* @Author: your name
* @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-10-13 10:30:23
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
-->
<template>
<div class="Content" id="hmxsDetail">
<right-content
:cxQueryField="cxQueryField"
:pageObject="pageObject"
labelWidth="140px"
title="犯罪团伙详情"
>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/PersonInfor.vue";
import {getThZnypbg} from '@/api/shse/shse.js'
import axios from "@/utils/http.js";
export default {
name: "queryAj",
components: {
rightContent,
},
data() {
return {
cxQueryField: [
{
title: "团伙信息", //如果不分小模块就删除title
id: 1,
objStr: "th", //对象中的对应字段
data: [
{
label: "团伙头目:",
prop: "thtm",
col: "3",
},
{
label: "团伙名称:",
prop: "thmc",
col: "3",
},
],
},
{
title: "案件信息",
id: 2,
objStr: "aj",
applyType: "list", //如果是集合加上这个
data: [
{
label: "案事件编号:",
prop: "asjbh",
col: "3",
},
{
label: "案件名称:",
prop: "ajmc",
col: "3",
},
{
label: "立案单位:",
prop: "ladwdm",
col: "3",
},
{
label: "案件类别:",
prop: "ajlbdm",
col: "3",
},
{
label: "立案日期:",
prop: "larq",
col: "3",
},
],
},
{
title: "嫌疑人信息",
id: 3,
objStr: "xyr",
applyType: "list", //如果是集合加上这个
data: [
{
label: "姓名:",
prop: "xm",
col: "3",
},
{
label: "证件号码:",
prop: "zjhm",
col: "3",
},
{
label: "户籍地:",
prop: "hjddm",
col: "3",
},
],
},
],
defaultProps: {
parent: "parentId", // 父级唯一标识
value: "id", // 唯一标识
label: "label", // 标签显示
children: "children", // 子级
},
breadcrumbList: [
{
name: "刑嫌列控管理",
to: "/queryGzry",
isActive: false,
},
{
name: "人员涉案",
to: "/queryCase",
isActive: false,
},
{
name: "人员涉案详情",
to: "/detailCase",
isActive: true,
},
],
pageObject: {},
xxzjbh: "",
};
},
mounted() {},
methods: {
getInfor() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let _this = this;
getThZnypbg({
thbh: _this.xxzjbh,
}).then((res) => {
loading.close();
var result = res.data.rows;
this.pageObject = result;
});
},
},
created() {
// this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
this.xxzjbh = this.$route.query.thbh;
this.getInfor();
},
};
</script>
<style scoped lang="scss">
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="getAjlb(scope.scope)">案件列表</span>
<span class="hbyps" @click="getWdgzlb(scope.scope)">我的关注列表</span>
</template>
<template #btnGroup="scope">
<span class="hbyp" @click="toGz(scope.scope)">
<i class="el-icon-plus"></i> 关注</span
>
<span class="hbyp" @click="toNt(scope.scope)">
<i class="el-icon-plus"></i> 脑图</span
>
</template>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { insertGxzz } from "@/api/shse/shse.js";
export default {
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
header: "涉黑涉恶案件侦查",
pageBs: "queryShseaj",
cxFormData: {
limit: 10,
page: 1,
asjbh: "",
ajlbdm: "",
larqkssj: "",
larqjssj: "",
},
cxQueryField: [
{
name: "案事件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "案件类别",
id: "ajlbdm",
type: "codeTreeDialog",
codeTree: "CODE_AJLB_MIS",
codeOptions: [],
value: "",
placeholder: "请选择",
col: "3",
},
{
name: "立案时间",
id: "larqkssj",
id2: "larqjssj",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "案事件编号",
// toInfor: true,
prop: "asjbh",
width: "250",
},
{
label: "案件名称",
prop: "ajmc",
width: "200",
},
{
label: "接警编号",
prop: "jjbh",
width: "200",
},
{
label: "发现时间",
prop: "fxasjsj",
width: "200",
},
{
label: "现场勘验编号",
prop: "xckybh",
width: "200",
},
{
label: "案事件来源",
prop: "asjlydmStr",
width: "200",
},
],
cxUrl: "/shseaj/selectAjxx",
Menu: [
// zylx:"asj",
{
id: "queryShseaj",
label: "案事件信息管理",
index: "queryShseaj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "queryShseaj",
label: "案件信息管理",
newAuth: "M01",
index: "queryShseaj",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "queryShsery",
label: "人员信息管理",
newAuth: "M02",
index: "queryShsery",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "queryFzth",
label: "犯罪团伙信息管理",
newAuth: "M03",
index: "queryFzth",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "queryXsxx",
label: "线索信息管理",
newAuth: "M04",
index: "queryXsxx",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
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: {
getAjlb() {
var self = this;
self.cxUrl = "/shseaj/selectAjxx";
// this.$refs.rightContent.doQuery("yes");
},
getWdgzlb() {
var self = this;
self.cxUrl = "/shseaj/selectWgzKyxs";
// this.$refs.rightContent.doQuery("yes");
},
toGz(scope) {
this.$confirm("是否关注此案件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
insertGxzz({
asjbh: scope.row.asjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "关注成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消关注",
});
});
},
toNt(scope) {
debugger
let cook = JSON.parse(sessionStorage.getItem("userInfo"));
let paths = `http://39.99.155.173:8003/doLogin?zjhm=${cook.identitycard}`;
window.open(paths, "_blank");
let path = `http://39.99.155.173:8003/queryAjdaxxs?asjbh=${scope.row.asjbh}`;
window.open(path, "_blank");
},
},
};
</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 {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
display: inline-block;
width: 87px;
border: 1px solid;
line-height: 28px;
text-align: center;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
header: "涉黑涉恶案件侦查",
pageBs: "queryShsery",
cxFormData: {
limit: 10,
page: 1,
asjbh: "",
zhfzxyrXm: "",
zhfzxyrCyzjZjhm: "",
},
cxQueryField: [
{
name: "案事件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "姓名",
id: "zhfzxyrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "证件号码",
id: "zhfzxyrCyzjZjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "案事件编号",
// toInfor: true,
prop: "asjbh",
width: "250",
},
{
label: "姓名",
prop: "zhfzxyrXm",
width: "200",
},
{
label: "证件号码",
prop: "zhfzxyrCyzjZjhm",
width: "200",
},
{
label: "抓捕日期",
prop: "zhrq",
width: "200",
},
{
label: "性别",
prop: "zhfzxyrXbdm",
width: "200",
},
{
label: "国籍",
prop: "zhfzxyrGjdm",
width: "200",
},
{
label: "民族",
prop: "zhfzxyrMzdm",
width: "200",
},
],
cxUrl: "/selectAjxyr",
Menu: [
// zylx:"asj",
{
id: "queryShsery",
label: "人员信息管理",
index: "queryShsery",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {},
};
</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;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
@selectionChange="selectionChange"
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="toSb(scope.scope)">上报</span>
</template>
<template #btnGroup="scope">
<span class="hbyp" @click="xsFk(scope.scope)">线索反馈</span>
<span class="hbyp" @click="toXg(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template>
</right-content>
<el-dialog
title="线索反馈"
:visible.sync="dialogVisible"
width="40%"
center
>
<el-form :inline="true" :model="examineInfo" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2">
<el-form-item label="反馈详情:" style="width:100%">
<el-input
type="textarea"
v-model="examineInfo.fkxy"
:autosize="{ minRows: 3 }"
style="width: 300px"
placeholder="反馈意见"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="addFkxq">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { deleteShseXs, updateXsSbxf, insertXsFkxx } from "@/api/shse/shse.js";
export default {
name: "queryHbyp",
components: {
rightContent,
},
data() {
return {
dialogVisible: false,
examineInfo: {
fkxy: "",
},
slect: [],
header: "涉黑涉恶案件侦查",
pageBs: "queryXsxx",
cxFormData: {
limit: 10,
page: 1,
shsexsbh: "",
shsexsmc: "",
sfsb: "",
},
cxQueryField: [
{
name: "线索编号",
id: "shsexsbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "线索名称",
id: "shsexsmc",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "是否上报",
id: "sfsb",
type: "radio",
value: "1",
placeholder: "",
col: "3",
radioData: [
{ label: "否", val: "0" },
{ label: "是", val: "1" },
],
},
],
cxDefaultFormThead: [
// {
// label: "信息主键编号",
// toInfor: true,
// prop: "xxzjbh",
// width: "250",
// },
{
label: "线索编号",
prop: "shsexsbh",
},
{
label: "线索名称",
prop: "shsexsmc",
},
{
label: "关联案事件",
prop: "gzyqJyqk",
},
{
label: "涉及地区",
prop: "shsesjdq",
},
{
label: "涉及行业领域名称",
prop: "shsexssjhylymc",
},
],
cxUrl: "//selectXsList",
Menu: [
// zylx:"asj",
{
id: "queryXsxx",
label: "线索信息管理",
index: "queryXsxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
xsFk(csope) {
this.$set(this.examineInfo, "shsexsbh", csope.row.shsexsbh);
this.dialogVisible = true;
},
addFkxq() {
insertXsFkxx(this.examineInfo).then((res) => {
if (res.success && res.code == 200) {
this.$message.success("保存成功");
this.dialogVisible = false;
this.$refs.rightContent.doQuery("yes");
} else {
this.$message.error("保存失败");
}
});
},
add() {
this.$router.push({
path: "/xsxxxz",
});
},
toDelete(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteShseXs({
shsexsbh: scope.row.shsexsbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toXg(scope) {
this.$router.push({
path: "/xsxxxz",
query: {
shsexsbh: scope.row.shsexsbh,
},
});
},
selectionChange(row) {
debugger;
this.slect = row;
},
toSb(scope) {
let params = new FormData();
params.append("sbxfbz", "sb");
this.slect.forEach((item, index) => {
params.append("shsexsbhlist" + "[" + index + "]", item.shsexsbh);
});
this.$confirm("是否确定上报, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
updateXsSbxf(params).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "上报成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消上报",
});
});
},
},
};
</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 {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
color: #007aff;
margin-right: 16px;
cursor: pointer;
display: inline-block;
border-radius: 4px;
width: 59px;
border: 1px solid;
line-height: 25px;
text-align: center;
}
</style>
<template>
<div
ref="zlXq"
class="xsfk"
element-loading-text="正在加载......"
v-loading="loadingFk"
>
<div
style="
position: fixed;
width: 100%;
z-index: 99;
height: 48px;
background: #0061f7;
font-size: 18px;
font-weight: bold;
line-height: 48px;
color: #ffffff;
padding: 0 17px;
"
>
<img
style="width: 36px; margin-left: 10px"
src="~@/assets/img/login/jinhui.png"
alt=""
/>
{{ headerTitle }}
</div>
<div class="form">
<fj-sc
:xxzjbh="xxzjbh"
:shsexsbh="shsexsbh"
:jshcxxzjbh="jshcxxzjbh"
:formField="formField"
:formLabelAlign="formLabelAlign"
:propSt="st"
:rule="rules"
:propxsTitle="title"
:propBottonType="bottonType"
:url="url"
@hxShuju="ajHx(arguments)"
@xyrIdentity="xyrIdentity(arguments)"
@ajbhHx="ajbhHx"
@deleteObj="deleteObj"
@submit="callSubmit"
:autowidth="autowidth"
></fj-sc>
</div>
</div>
</template>
<script>
import {
insertShseXs,
getShseXsXq,
updateShseXs,
deleteShseXsXyr,
} from "@/api/shse/shse.js";
import FjSc from "@/views/xshb/xshb/gzjlxz/fksc.vue";
export default {
name: "xshc",
components: {
FjSc,
},
data() {
return {
url: this.$route.query.fkid,
loadingFk: false,
headerTitle: "线索新增",
title: "线索信息",
autowidth: "1268px",
xsly: "",
codeData: [],
xmDetail: {},
xxzjbh: "",
shsexsbh: "",
ajXxzjbh: "",
result: {
xyrResult: [],
jbrResult: [],
gzryResult: [],
xdzl: [],
bjbrResult: [],
tgrResult: [],
tbrResult: [],
},
xsly: "",
xslyCode: "",
rules: {},
formField: [
{
name: "线索名称:",
id: "shsexsmc",
// prop: "checkEmpty",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "线索来源:",
id: "shsexslydm",
// prop: "xbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XSLY",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "涉及地区:",
id: "shsesjdq",
// prop: "xbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "是否公职人员:",
id: "shsegzryPdbz",
// prop: "xbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_IF",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "涉及行业领域:",
id: "shsexssjhylydm",
// prop: "xbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_SJHYLY",
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "线索详情:",
id: "shsexsxq",
// prop: "checkEmpty",
type: "textarea",
value: "",
placeholder: "请输入案件编号",
col: "textarea",
},
{
name: "案事件编号:",
id: "asjbh",
// prop: "checkEmpty",
type: "text",
value: "",
placeholder: "请输入案件编号",
col: "2",
},
{
childrenAsAdd: [
{
name: "嫌疑人信息:",
id: "xyr",
list: [
{
name: [
{
name: "姓名:",
id: "xm",
prop: "checkEmpty",
type: "text",
value: "",
placeholder: "请输入姓名",
col: "2",
},
{
name: "性别:",
id: "xbdm",
// prop: "xbdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XB",
value: "",
placeholder: "请选择性别",
col: "2",
},
{
name: "身份证号:",
id: "gmsfzh",
// prop: 'emptyAbleIdentity',
type: "textxx",
value: "",
placeholder: "请输入身份证号",
col: "2",
// append: true
},
{
name: "出生日期:",
id: "csrq",
// prop: "csrq",
type: "date",
value: "",
placeholder: "请选择出生日期",
col: "2",
},
{
name: "联系电话:",
id: "lxdh",
// prop: 'emptyAbleIphone',
// prop: "lxdh",
type: "text",
value: "",
placeholder: "请输入联系电话",
col: "2",
},
{
name: "民族:",
id: "mzdm",
// prop: "mzdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_MZ",
value: "",
placeholder: "请选择民族",
col: "2",
},
{
name: "通讯地址:",
id: "txdz",
// prop: "txdz",
type: "text",
value: "",
placeholder: "请输入通讯地址",
col: "2",
},
{
name: "国籍:",
id: "gjdm",
// prop: "gjdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_GJ",
value: "",
placeholder: "请选择国籍",
col: "2",
},
{
name: "户籍地详址:",
id: "hjdzDzmc",
// prop: "hjdzDzmc",
type: "text",
value: "",
placeholder: "请输入户籍地详址",
col: "2",
},
{
name: "户籍地区划:",
id: "hjdzXzqhdm",
// prop: "hjdzXzqhdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
placeholder: "请选择户籍地区划",
col: "2",
},
{
name: "现住址详址:",
id: "xzzDzmc",
// prop: "xzzDzmc",
type: "text",
value: "",
placeholder: "请输入现住址详址",
col: "2",
},
{
name: "现住址区划:",
id: "xzzXzqhdm",
// prop: "xzzXzqhdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
placeholder: "请输入现住址区划",
col: "2",
},
{
name: "境外住址详址:",
id: "jwzzDzmc",
// prop: "jwzzDzmc",
type: "text",
value: "",
placeholder: "请输入境外住址详址",
col: "2",
},
{
name: "境外住址区划:",
id: "jwzzGjhdqdm",
// prop: "jwzzGjhdqdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_GJ",
value: "",
placeholder: "请选择境外住址区划",
col: "2",
},
{
name: "政治面貌:",
id: "zzmmdm",
// prop: "zzmmdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_ZZMM",
value: "",
placeholder: "请选择政治面貌",
col: "2",
},
{
name: "政治身份:",
id: "zzsfdm",
// prop: "zzsfdm",
type: "codeTree",
codeOptions: [],
codeTree: "CODE_SHCE_ZZSFDM",
value: "",
placeholder: "请选择政治身份",
col: "2",
},
],
},
],
iconClass: "el-icon-delete",
},
],
},
// {
// childrenAsAdd: [
// {
// name: "嫌疑人信息:",
// id: "xyr",
// list: [
// {
// name: [
// {
// name: "姓名:",
// id: "xm",
// type: "text",
// // prop: "checkEmpty",
// value: "",
// placeholder: "请输入姓名",
// col: "2",
// },
// {
// name: "证件号码:",
// id: "zjhm",
// type: "text",
// // prop: "checkEmpty",
// value: "",
// placeholder: "请输入姓名",
// col: "2",
// },
// {
// name: "户籍地:",
// id: "hjddm",
// type: "codeTree",
// codeOptions: [],
// codeTree: "CODE_XZQH",
// value: "",
// placeholder: "请选择",
// col: "2",
// },
// ],
// },
// ],
// iconClass: "el-icon-delete",
// },
// ],
// },
// {
// name: '核查报告电子文档:',
// id: 'hcbgDzwd',
// fileId: 'hcbgDzwd',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: '四长签字扫描件:',
// id: 'szqzySmj',
// fileId: 'szqzySmj',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: "附件上传:",
// id: "qtFj",
// fileId: "qtFj",
// type: "file",
// value: "",
// placeholder: "",
// col: "1",
// requestUrl: "/flwsFj/tbstasjflwsCj/save",
// fileList: [],
// },
],
formLabelAlign: {},
st: "xs",
bottonType: "fk",
loading: true,
xszxx: [],
isParent: "",
jshcxxzjbh: this.$route.query.jshcxxzjbh,
};
},
created() {
if (this.$route.query.shsexsbh) {
this.headerTitle = "线索修改";
this.getTqHxFksj();
}
},
methods: {
deleteObj(obj) {
var self = this
deleteShseXsXyr({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
}
});
},
// 提取反馈的回显
getTqHxFksj() {
this.loadingFk = true;
var self = this;
getShseXsXq({
shsexsbh: this.$route.query.shsexsbh,
}).then((res) => {
debugger;
// 线索反馈
this.loadingFk = false;
var result = res.data.rows.xs;
self.formField.forEach((item, i) => {
var fieldVale = result[item.id];
debugger;
if (item.type == "codeTree") {
debugger;
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(self.formLabelAlign, item.id, fieldVale);
} else if (item.type == "date") {
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
self.$set(self.formLabelAlign, item.id, new Date(fieldVale));
} else {
self.$set(self.formLabelAlign, item.id, fieldVale);
}
});
// 嫌疑人信息1:
debugger;
var result1 = res.data.rows;
self.formField[7].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["xyr"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
});
// 涉及案件
// debugger;
// var result1 = res.data.xsxq;
// self.formField[5].childrenAsAdd.forEach((childrenIdem) => {
// //有可添加子集的情况
// //遍历可配置化列表的子集
// self.$set(self.formLabelAlign, childrenIdem.id, []);
// var realChildrenData = result1["xyrList"];
// if (realChildrenData && realChildrenData.length > 0) {
// realChildrenData.forEach((realChildrenItem, childrenIndex) => {
// var singleObject = {};
// var dateFields = [];
// var lazyLoadCodeFields = [];
// if (
// childrenIdem.list &&
// childrenIdem.list.length > 0 &&
// childrenIdem.list[0].name
// ) {
// dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
// return fieldItem.type == "date";
// });
// dateFields = dateFields.map((fieldItem) => {
// return fieldItem.id;
// });
// lazyLoadCodeFields = childrenIdem.list[0].name.filter(
// (fieldItem) => {
// return fieldItem.type == "lazyCodeTree";
// }
// );
// lazyLoadCodeFields = dateFields.map((fieldItem) => {
// return fieldItem.id;
// });
// }
// for (var key in realChildrenItem) {
// if (dateFields.indexOf(key) >= 0) {
// //过滤时间
// if (realChildrenItem[key]) {
// singleObject[key] = new Date(realChildrenItem[key]);
// }
// } else if (lazyLoadCodeFields.indexOf(key) >= 0) {
// } else {
// singleObject[key] = realChildrenItem[key];
// }
// }
// childrenIdem.list[0].name.forEach((currentField) => {
// if (currentField.type == "lazyCodeTree") {
// queryCodeByType({
// type: currentField.codeTree,
// id: realChildrenItem[currentField.id],
// grade: "prev",
// })
// .then((codRes) => {
// var codeArry = [];
// var realCodeResult = [];
// for (var j = 0; j < codRes.data.length; j++) {
// var singleRow = codRes.data[j];
// if (singleRow.children) {
// codeArry.push(singleRow.id);
// self.getChildrenCode(codeArry, singleRow);
// }
// }
// codeArry.push(realChildrenItem[currentField.id]);
// self.$set(
// self.formLabelAlign[childrenIdem.id][childrenIndex],
// currentField.id,
// codeArry
// );
// //改变类型使级联控件重新加载
// self.$set(currentField, "type", "lazyCodeTree2");
// setTimeout(() => {
// self.$set(currentField, "type", "lazyCodeTree");
// self.$set(
// self.formLabelAlign[childrenIdem.id][childrenIndex],
// currentField.id,
// codeArry
// );
// }, 5);
// })
// .catch((err) => {
// // console.log(err);
// });
// } else if (currentField.type == "codeTree") {
// //self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
// if (realChildrenItem[currentField.id]) {
// axios
// .get(`JsonData/${currentField.codeTree}.json`)
// .then((codRes) => {
// let value = this.queryTree(
// codRes.data.data.rows,
// realChildrenItem[currentField.id]
// )[0];
// currentField.codeOptions = [
// {
// id: realChildrenItem[currentField.id],
// name: value,
// },
// ];
// })
// .catch((err) => {});
// self.$set(
// self.formLabelAlign,
// currentField.id,
// realChildrenItem[currentField.id]
// );
// }
// }
// });
// self.$set(
// self.formLabelAlign[childrenIdem.id],
// childrenIndex,
// singleObject
// );
// debugger;
// });
// } else {
// var singleObject = {};
// childrenIdem.list[0].name.forEach((val4) => {
// if (
// (val4.multiple == true && val4.type == "code") ||
// val4.type == "lazyCodeTree"
// ) {
// singleObject[val4.id] = [];
// } else {
// singleObject[val4.id] = "";
// }
// });
// self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
// }
// });
// self.formLabelAlign["qtFj"] = [];
// res.data.xsxq.fjList.forEach((item, index) => {
// self.formLabelAlign["qtFj"][index] = {
// name: item.xsfjDzwjmc,
// url: item.xsfjDzwjnr,
// xxzjbh: item.xxzjbh,
// };
// });
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
},
//案件回显
ajHx(content) {
var self = this;
debugger;
getAjxxByAsjbh({
asjbh: content[0],
}).then((res) => {
var result = res.data.asj;
self.formField[2].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
});
var result = res.data.asj;
self.formField[2].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
if (item.type == "codeTree") {
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
} else if (item.type == "date") {
debugger;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.asjList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
new Date(fieldVale)
);
}
} else {
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.asjList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.asjList[content[1]],
item.id,
fieldVale
);
}
}
});
});
},
// 嫌疑人提取回显
xyrIdentity(content) {
debugger;
this.loadingFk = true;
var self = this;
this.loading = true;
getXyrxxByZjhm({
gmsfzh: content[0],
}).then((res) => {
// 嫌疑人信息1
var result = res.data.xyr;
self.formField[5].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
});
var result = res.data.xyr;
self.formField[5].childrenAsAdd[0].list[0].name.forEach((item) => {
var fieldVale = result[item.id];
if (item.type == "codeTree") {
axios.get(`JsonData/${item.codeTree}.json`).then((codRes) => {
let value = self.queryTree(codRes.data.data.rows, fieldVale)[0];
item.codeOptions = [{ id: fieldVale, name: value }];
});
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
} else if (item.type == "date") {
debugger;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.xyrList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
new Date(fieldVale)
);
}
} else {
// singleObject[key] = new Date(realChildrenItem[key]);
if (fieldVale == null) {
self.$set(self.formLabelAlign.xyrList[content[1]], item.id, "");
} else {
self.$set(
self.formLabelAlign.xyrList[content[1]],
item.id,
fieldVale
);
}
}
});
this.loadingFk = false;
this.loading = false;
});
},
// 案件编号回显
ajbhHx(content) {
var self = this;
this.loadingFk = true;
this.loading = true;
debugger;
getAjAndXyrByAsjbh({
asjbh: content,
}).then((res) => {
debugger;
var result1 = res.data;
self.formField[5].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["laList"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
this.loadingFk = false;
this.loading = false;
});
// 嫌疑人信息1:
debugger;
var result1 = res.data;
self.formField[6].childrenAsAdd.forEach((childrenIdem) => {
//有可添加子集的情况
//遍历可配置化列表的子集
self.$set(self.formLabelAlign, childrenIdem.id, []);
var realChildrenData = result1["xyrList"];
if (realChildrenData && realChildrenData.length > 0) {
realChildrenData.forEach((realChildrenItem, childrenIndex) => {
var singleObject = {};
var dateFields = [];
var lazyLoadCodeFields = [];
if (
childrenIdem.list &&
childrenIdem.list.length > 0 &&
childrenIdem.list[0].name
) {
dateFields = childrenIdem.list[0].name.filter((fieldItem) => {
return fieldItem.type == "date";
});
dateFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
lazyLoadCodeFields = childrenIdem.list[0].name.filter(
(fieldItem) => {
return fieldItem.type == "lazyCodeTree";
}
);
lazyLoadCodeFields = dateFields.map((fieldItem) => {
return fieldItem.id;
});
}
for (var key in realChildrenItem) {
if (dateFields.indexOf(key) >= 0) {
//过滤时间
if (realChildrenItem[key]) {
singleObject[key] = new Date(realChildrenItem[key]);
}
} else if (lazyLoadCodeFields.indexOf(key) >= 0) {
} else {
singleObject[key] = realChildrenItem[key];
}
}
childrenIdem.list[0].name.forEach((currentField) => {
if (currentField.type == "lazyCodeTree") {
queryCodeByType({
type: currentField.codeTree,
id: realChildrenItem[currentField.id],
grade: "prev",
})
.then((codRes) => {
var codeArry = [];
var realCodeResult = [];
for (var j = 0; j < codRes.data.length; j++) {
var singleRow = codRes.data[j];
if (singleRow.children) {
codeArry.push(singleRow.id);
self.getChildrenCode(codeArry, singleRow);
}
}
codeArry.push(realChildrenItem[currentField.id]);
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
//改变类型使级联控件重新加载
self.$set(currentField, "type", "lazyCodeTree2");
setTimeout(() => {
self.$set(currentField, "type", "lazyCodeTree");
self.$set(
self.formLabelAlign[childrenIdem.id][childrenIndex],
currentField.id,
codeArry
);
}, 5);
})
.catch((err) => {
// console.log(err);
});
} else if (currentField.type == "codeTree") {
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if (realChildrenItem[currentField.id]) {
axios
.get(`JsonData/${currentField.codeTree}.json`)
.then((codRes) => {
let value = this.queryTree(
codRes.data.data.rows,
realChildrenItem[currentField.id]
)[0];
currentField.codeOptions = [
{
id: realChildrenItem[currentField.id],
name: value,
},
];
})
.catch((err) => {});
self.$set(
self.formLabelAlign,
currentField.id,
realChildrenItem[currentField.id]
);
}
}
});
self.$set(
self.formLabelAlign[childrenIdem.id],
childrenIndex,
singleObject
);
debugger;
});
} else {
var singleObject = {};
childrenIdem.list[0].name.forEach((val4) => {
if (
(val4.multiple == true && val4.type == "code") ||
val4.type == "lazyCodeTree"
) {
singleObject[val4.id] = [];
} else {
singleObject[val4.id] = "";
}
});
self.$set(self.formLabelAlign[childrenIdem.id], 0, singleObject);
}
});
});
},
// 搜索树状数据中的 ID
queryTree(tree, id) {
debugger;
const tmp = []; // 路径数组
const FindPos = (sourceTree, sourceId) => {
if (sourceTree.id == sourceId) {
tmp.push(sourceTree.label);
return;
} else {
if (sourceTree.children && sourceTree.children.length != 0) {
sourceTree.children.forEach((item) => {
if (item.id === sourceId) {
// 寻找到指定的元素节点
tmp.push(item.label);
FindPos(tree, sourceTree.id); // 继续寻找上层元素的位置
} else {
// 当前继续寻找别的子项
FindPos(item, sourceId);
}
});
}
}
};
tree.forEach((item2) => {
FindPos(item2, id);
});
return tmp.reverse();
},
//获取子线索信息
getXsJbxxs() {
getXsJbxxsByPid({
pid: this.shsexsbh,
}).then((res) => {
var obj = {};
res.data.xsxxList.forEach((item) => {
obj.xsname = item.shsexsmc;
obj.lrrname = item.xxdjryXm;
obj.lrsj = item.djsj;
obj.shsexsbh = item.shsexsbh;
this.xszxx.push(obj);
obj = {};
});
});
},
//初始化表单
initFields() {
var self = this;
for (var i = 0; i < this.formField.length; i++) {
//遍历可配置化数组
if (this.formField[i].prop) {
this.rules[this.formField[i].id] =
this.$rules[this.formField[i].prop];
//如果有规则的话 拿到全局的规则 规则是一个数组,数组里是对象 将规则复制到所绑定的对象那个中去,然后每一项绑定对象
}
}
},
getCode() {
axios
.get(`JsonData/CODE_SHCE_SJHYLYDM.json`)
.then((res) => {
this.codeData = res.data.data.rows;
})
.catch((err) => {
console.log(err);
});
},
//提交
callSubmit(params, fileLists) {
debugger;
this.loadingFk = true;
this.loading = true;
if (this.$route.query.shsexsbh) {
this.updateShseXs(params);
} else {
this.insertShseXs(params);
}
// params.append("xs.xsbh", this.$route.query.xsbh);
// updateXs(params).then((res) => {
// if (res.code == "200") {
// this.$alert("提交成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// debugger
// this.loading = false;
// this.loadingFk = false;
// this.$router.go(-1)
// // window.opener.location.reload();
// // window.close();
// },
// });
// }
// });
},
insertShseXs(params) {
insertShseXs(params).then((res) => {
if (res.code == "200") {
this.$alert("提交成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
debugger;
this.loading = false;
this.loadingFk = false;
this.$router.go(-1);
},
});
}
});
},
updateShseXs(params) {
params.append("xs.shsexsbh", this.$route.query.shsexsbh);
updateShseXs(params).then((res) => {
if (res.code == "200") {
this.$alert("提交成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
debugger;
this.loading = false;
this.loadingFk = false;
this.$router.go(-1);
},
});
}
});
},
//指令详情信息查询
getZlxx() {
var self = this;
getZlxqAllByBh({
xxzjbh: this.xxzjbh,
}).then((res) => {
self.xsList[0].xstz = res.data.zlxq;
});
},
//获取线索信息
getAjDetail() {
var self = this;
getShsexsXq({
shsexsbh: self.shsexsbh,
page: 1,
rows: 5,
}).then((res) => {
// if (res.data.xs.sfbjPdbz == '是') {
// self.xsList[1].vShow = true
// self.getXsbjFj()
// self.xsList[1].xsxx.forEach(item => {
// item.content = res.data.xs[item.id]
// })
// }
self.xsList[0].xsxx.forEach((item) => {
item.content = res.data.xs[item.id];
});
self.xsly = res.data.xs.shsexslydm;
self.isParent = res.data.xs.isparent;
if (self.xsly == "群众来信" || self.xsly == "群众来电") {
self.xslyCode == "1";
}
setTimeout(() => {
self.loading = false;
}, 100);
});
},
getDetails(res, i) {
var self = this;
self.xsList[0].xsss[i].page.total = res.data.total;
var obj = {};
var key = "";
var value = "";
res.data.rows.forEach((item) => {
self.xsList[0].xsss[i].tableList.forEach((subItem) => {
obj[subItem.prop] = item[subItem.prop];
});
self.xsList[0].xsss[i].shuju.push(obj);
obj = {};
});
},
//嫌疑人信息
getXyrDetail() {
var self = this;
getXsglxyrList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[0].page.currentPage,
rows: self.xsList[0].xsss[0].page.pageSize,
}).then((res) => {
if (self.xslyCode == "1") {
self.getDetails(res, 5);
self.result.bjbrResult = res.data.rows;
self.xsList[0].xsss[5].type = "show";
self.xsList[0].xsss[0].type = "";
} else {
self.getDetails(res, 0);
self.result.xyrResult = res.data.rows;
self.xsList[0].xsss[0].type = "show";
self.xsList[0].xsss[5].type = "";
}
});
self.xsList[0].xsss[0].shuju = [];
},
//举报人信息
getJbrDetail() {
var self = this;
getXsgljbrList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[1].page.currentPage,
rows: self.xsList[0].xsss[1].page.pageSize,
}).then((res) => {
if (res.data.rows[0].jbrxm) {
self.getDetails(res, 1);
self.result.jbrResult = res.data.rows;
self.xsList[0].xsss[1].type = "show";
self.xsList[0].xsss[3].type = "";
self.xsList[0].xsss[4].type = "";
} else if (res.data.rows[0].tbrxm) {
self.getDetails(res, 3);
self.result.jbrResult = res.data.rows;
self.xsList[0].xsss[3].type = "show";
self.xsList[0].xsss[4].type = "";
self.xsList[0].xsss[1].type = "";
} else if (res.data.rows[0].xstgrbm) {
self.getDetails(res, 4);
self.result.tgrResult = res.data.rows;
self.xsList[0].xsss[4].type = "show";
self.xsList[0].xsss[1].type = "";
self.xsList[0].xsss[3].type = "";
}
});
self.xsList[0].xsss[1].shuju = [];
},
//公职人员信息
getGzryDetail() {
var self = this;
getSjgzryList({
shsexsbh: this.shsexsbh,
page: self.xsList[0].xsss[2].page.currentPage,
rows: 5,
}).then((res) => {
self.getDetails(res, 2);
self.result.gzryResult = res.data.rows;
if (res.data.rows[0].gzryXm) {
self.xsList[0].xsss[2].type = "show";
} else {
self.xsList[0].xsss[2].type = "";
}
});
self.xsList[0].xsss[2].shuju = [];
},
getXsFj() {
var self = this;
getXsfjByXsbh({
shsexsbh: self.shsexsbh,
}).then((res) => {
var obj = {};
var key = "";
var value = "";
res.data.rows.forEach((item) => {
obj.fjName = item.xsfjDzwjmc;
obj.xxzjbh = item.xxzjbh;
obj.type = "no";
self.xsList[0].xsFj.default.push(obj);
obj = {};
});
});
},
},
watch: {
// 'formLabelAlign.hcjgdm': {
// handler: function (val, oldval) {
// debugger
// console.log(val)
// if (val == '02' || val == '03') {
// this.rules['hcfkglxyr.xm'] = this.$rules.checkEmpty
// this.rules['hcfkglxyr.gmsfzh'] = this.$rules.checkEmpty
// this.rules['asjbh'] = this.$rules.checkEmpty
// // this.$set(this.rules, 'hcfkglxyr.xm', this.$rules.checkEmpty)
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', this.$rules.checkEmpty)
// // this.rules.hcfkglxyr.xm = this.$rules.checkEmpty
// // this.rules.hcfkglxyr.gmsfzh = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcfkglxyr.xm'] = null
// this.rules['asjbh'] = null
// this.rules['hcfkglxyr.gmsfzh'] = null
// // this.$set(this.rules, 'hcfkglxyr.xm', '')
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', '')
// this.$forceUpdate()
// }
// },
// deep: true
// },
// formLabelAlign: {
// handler: function (val, oldval) {
// console.log(val)
// if (this.$route.query.fkid) {
// this.rules['hcjgdm'] = this.$rules.checkEmpty
// this.rules['sjhyly'] = this.$rules.checkEmpty
// this.rules['fknrJyqk'] = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcjgdm'] = null
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// this.$forceUpdate()
// }
// if (val.hcjgdm == '04') {
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// }
// },
// deep: true
// }
},
};
</script>
<style lang="scss" scoped>
.xsfk {
/deep/.el-loading-spinner {
// top: 72%;
// margin-top: -21px;
// width: 100%;
// text-align: center;
// position: absolute;
position: fixed;
top: 50%;
}
// background-image: url(../../assets/img/bj.png);
background-repeat: no-repeat;
background-attachment: scroll;
max-height: 100%;
overflow-y: scroll;
/deep/.el-loading-mask {
height: 249%;
position: absolute;
z-index: 2000;
background-color: rgba(255, 255, 255, 0.9);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: opacity 0.3s;
}
}
.form {
margin-top: 85px;
/deep/ .formContent .allForm {
margin: 0 !important;
}
/deep/ .itemtextarea .el-textarea__inner {
width: 800px;
}
/deep/ #formCommonPage .formContent .childrenAsAdd .addContent {
width: 1000px;
margin-left: 140px;
margin-top: 0px;
margin-bottom: 16px !important;
padding-top: 10px;
}
/deep/ #formCommonPage .formContent .addChildBtn .el-button {
width: 1000px;
}
/deep/ #formCommonPage .formContent .addChildBtn {
margin-top: 0 !important;
}
/deep/ #formCommonPage .formContent {
padding-left: 15px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap .xs_xq_contents {
&:nth-child(5) {
width: 600px;
}
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq {
padding-left: 35px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_content {
width: 250px;
}
.det
/deep/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_name {
width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_xq .xs_xq_wrap {
width: 1280px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_form .name {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content .xs .xs_fj .fj_title {
width: 118px;
min-width: 118px;
}
.det /deep/ #xsDet .xs_main .content {
margin-left: 7px;
}
.hcfksh {
width: 1400px;
margin: 10px auto;
box-shadow: 0px 1px 2px rgba($color: #000000, $alpha: 0.2);
padding: 20px;
background: #fff;
color: #8c97a0;
.content_item {
.name {
color: $base-color;
}
.ba_radio {
display: flex;
}
}
}
</style>
<style lang="scss" scoped>
// .xshc /deep/ #xsDet .xs_main {
// margin-left: 7px;
// }
.form /deep/ .childrenAsAdd {
.addName {
width: 110px !important;
}
}
/deep/.el-button {
margin-right: -19px !important;
}
/deep/.el-dialog__header {
background: #0081f7 !important;
}
/deep/.el-dialog {
position: relative;
margin: 0 auto 50px;
border-radius: 2px;
box-sizing: border-box;
width: 50%;
}
</style>
......@@ -7,14 +7,11 @@
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
ref="rightContent"
>
<template #btnGroup="scope">
<span
class="hbyp"
@click="toInfor(scope.scope)"
>线索侦办</span
>
<template #btnGroup="scope">
<span class="hbyp" @click="toInfor(scope.scope)">线索侦办</span>
</template>
</right-content>
</div>
......@@ -189,33 +186,7 @@ export default {
disabled: false,
},
],
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "queryXshb",
label: "线索信息汇集整合",
newAuth: "M01",
index: "queryXshb",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
// {
// id: "djgzxs",
// label: "线索核办",
// newAuth: "M01",
// index: "djgzxs",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
{
id: "xsbk",
label: "线索布控",
index: "xsbk",
auth: "M01",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
],
selectArr: [],
revokeVisiable: false,
ckForm: {
......@@ -227,10 +198,15 @@ export default {
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
// this.$store.commit("user/SET_LeftMenu", this.leftMenus);
// this.$store.commit("user/SET_Header", this.header);
},
methods: {
add() {
this.$router.push({
path: "/djgz",
});
},
toInfor(scope) {
this.$router.push({
path: "/djgzxs",
......@@ -239,7 +215,6 @@ export default {
},
});
},
},
watch: {},
};
......
......@@ -787,6 +787,7 @@
<i
:class="'zdyicon ' + item2.iconClass"
@click="deleteObj(reakData)"
v-if="realIndex != 0"
></i>
<el-form-item
v-for="item4 in item3.name"
......
......@@ -386,91 +386,89 @@ export default {
},
methods: {
deleteObj(obj) {
debugger
var self = this
self.formField[4].childrenAsAdd.forEach((item) => {
console.log(item);
self.scId = item.id;
});
self.formField[5].childrenAsAdd.forEach((item) => {
console.log(item);
self.scId = item.id;
});
if (self.scId == "jbrList") {
delXsgljbr({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
debugger;
var self = this;
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
if (val2.id == "jbrList") {
delXsgljbr({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
});
}
});
}
});
} else if (self.scId == "xyrList") {
delXsglxyr({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
}
});
} else if (val2.id == "xyrList") {
delXsglxyr({
xxzjbh: obj.xxzjbh,
}).then((res) => {
if (res.code == "200") {
self.formField.forEach((val) => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
console.log(index);
if (val3 == obj) {
debugger;
self.formLabelAlign[val2.id].splice(
// val2.list.indexOf(val3),
index,
1
);
// this.$message.success("删除成功");
this.$alert("删除成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
});
}
});
}
});
}
}
});
}
});
}
});
},
// 提取反馈的回显
getTqHxFksj() {
......@@ -1254,10 +1252,10 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
debugger
debugger;
this.loading = false;
this.loadingFk = false;
this.$router.go(-1)
this.$router.go(-1);
// window.opener.location.reload();
// window.close();
......
......@@ -156,7 +156,7 @@ export default {
},
],
leftMenus: [
{
{
id: "queryThxs",
label: "有组织犯罪线索研判",
newAuth: "M01",
......@@ -165,14 +165,14 @@ export default {
hasChildren: false,
},
{
id: "queryThxs",
id: "queryXshb",
label: "有组织犯罪线索管理",
newAuth: "M01",
index: "queryThxs",
index: "queryXshb",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
{
id: "thxsTj",
label: "有组织犯罪线索工作统计",
newAuth: "M01",
......@@ -206,6 +206,14 @@ export default {
},
],
},
{
id: "xsbk",
label: "线索布控",
index: "xsbk",
auth: "M01",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
],
};
},
......
......@@ -100,9 +100,8 @@ export default {
ywlx: "",
fbsj_s: "",
fbsj_e: "",
ywbh: "",
zljsdwdm: "",
spsftg: "",
ywmc: "",
zlsfqs: "",
zlsffp: "",
zlsfhb: "",
limit: 10,
......@@ -156,14 +155,14 @@ export default {
col: "3",
},
{
name: "业务编号",
id: "ywbh",
name: "业务名称",
id: "ywmc",
placeholder: "请输入",
type: "text",
value: "",
col: "3",
},
{
/*{
name: "指令接收单位",
id: "zljsdwdm",
type: "codeTreeDialog",
......@@ -173,10 +172,10 @@ export default {
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
},*/
{
name: "审批是否通过",
id: "spsftg",
name: "签收状态",
id: "zlsfqs",
type: "select",
selectData: [
{
......@@ -184,17 +183,13 @@ export default {
value: "",
},
{
name: "待审批",
value: "2",
name: "未签收",
value: "0",
},
{
name: "通过",
name: "已签收",
value: "1",
},
{
name: "未通过",
value: "0",
},
}
],
props: "checkEmpty",
value: "",
......@@ -202,7 +197,7 @@ export default {
col: "3",
},
{
name: "指令是否分派",
name: "指令分派状态",
id: "zlsffp",
type: "select",
selectData: [
......@@ -211,13 +206,13 @@ export default {
value: "",
},
{
name: "已分派",
value: "1",
},
{
name: "未分派",
value: "0",
},
{
name: "已分派",
value: "1",
},
],
props: "checkEmpty",
value: "",
......@@ -225,22 +220,22 @@ export default {
col: "3",
},
{
name: "指令是否回报",
name: "回报状态回报",
id: "zlsfhb",
type: "select",
selectData: [
{
name: "全部",
value: "",
},
{
name: "已回报",
value: "1",
value: "99",
},
{
name: "未回报",
value: "0",
},
{
name: "已回报",
value: "1",
},
],
props: "checkEmpty",
value: "",
......@@ -249,43 +244,47 @@ export default {
},
],
cxDefaultFormThead: [
{
/*{
label: "能否回报",
prop: "nfhb",
},
{
/*table默认得表头*/
},*/
/*{
/!*table默认得表头*!/
label: "业务名称",
prop: "ywmc",
},
{
label: "指令回报个数",
prop: "zlhbcs",
},
},*/
{
label: "回报期限",
prop: "hbqx",
label: "指令文号",
prop: "zlwh",
},
{
/*{
label: "能否续报",
prop: "nfxb",
},
{
label: "指令签收个数",
prop: "zlqsgs",
},
},*/
{
label: "指令签收状态",
prop: "zlqszt",
},
{
label: "指令回报状态",
prop: "zlhbzt",
},
{
label: "业务类型",
prop: "ywlxStr",
},
/* {
label: "分派编号",
prop: "fpbh",
},*/
},
{
label: "能否回报修改",
prop: "nfhbxg",
......@@ -301,27 +300,28 @@ export default {
{
label: "能否分派",
prop: "nffp",
},
},*/
{
label: "指令类型",
prop: "zllxStr",
},
{
/*{
label: "续报评价等级",
prop: "xbpjdj",
},*/
{
label: "回报期限",
prop: "hbqx",
},
{
label: "指令回报状态",
prop: "zlhbzt",
label: "发布时间",
prop: "fbsj",
},
{
label: "指令分派个数",
prop: "zlfpgs",
},
{
label: "指令文号",
prop: "zlwh",
},
{
label: "工作指令编号",
prop: "zczlbh",
......@@ -330,16 +330,16 @@ export default {
label: "工作要求",
prop: "gzyq",
},
{
/*{
label: "是否存在回报信息",
prop: "sfczhbxx",
},
},*/
{
label: "指令分派单位",
prop: "zlfpdwHtml",
},
],
cxUrl: "/zczl/getMyResponsibleInstructions",
cxUrl: "/zczl/getZczlList",
Menu: [
{
id: "wfzdzczl",
......
......@@ -59,8 +59,6 @@ module.exports = {
proxy: {
"/apialy": {
target: "http://39.99.155.173:9022/", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// target: "http://192.168.1.104:8762/",
// ws: true,
changeOrigin: true,
// secure: false,
......@@ -84,6 +82,14 @@ module.exports = {
"^/apiAjzbXzGaw": "/"
}
},
"/apiAjzb": {
target: "http://39.99.224.27:8001/", //统一的请求头部每次修改都要重启才会生效西藏:()
ws: true,
changeOrigin: true,
pathRewrite: {
"^/apiAjzb": "/"
}
},
},
},
css: {
......
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