Commit fbefd802 by 刘玉帅

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

parents 3ae1e3b2 ffd4807d
{
"success": true,
"code": 200,
"message": "成功",
"data": {
"total": 12,
"rows": [
{
"id": "01",
"label": "标识号串并[01]",
"parentId": "",
"children": []
},
{
"id": "03",
"label": "现勘串并[03]",
"parentId": "",
"children": [
{
"id": "0301",
"label": "指纹串并[0301]",
"parentId": "03",
"children": []
},
{
"id": "0302",
"label": "DNA串并[0302]",
"parentId": "03",
"children": []
},
{
"id": "0303",
"label": "足迹串并[0303]",
"parentId": "03",
"children": []
},
{
"id": "0304",
"label": "声纹串并[0304]",
"parentId": "03",
"children": []
},
{
"id": "0305",
"label": "虹膜串并[0305]",
"parentId": "03",
"children": []
}
]
},
{
"id": "0301",
"label": "指纹串并[0301]",
"parentId": "03",
"children": []
},
{
"id": "0302",
"label": "DNA串并[0302]",
"parentId": "03",
"children": []
},
{
"id": "0303",
"label": "足迹串并[0303]",
"parentId": "03",
"children": []
},
{
"id": "0304",
"label": "声纹串并[0304]",
"parentId": "03",
"children": []
},
{
"id": "0305",
"label": "虹膜串并[0305]",
"parentId": "03",
"children": []
},
{
"id": "09",
"label": "人工串并[09]",
"parentId": "",
"children": [
{
"id": "0901",
"label": "手段串并[0901]",
"parentId": "09",
"children": []
},
{
"id": "0902",
"label": "人像串并[0902]",
"parentId": "09",
"children": []
},
{
"id": "0903",
"label": "视频串并[0903]",
"parentId": "09",
"children": []
},
{
"id": "0904",
"label": "综合串并[0904]",
"parentId": "09",
"children": []
}
]
},
{
"id": "0901",
"label": "手段串并[0901]",
"parentId": "09",
"children": []
},
{
"id": "0902",
"label": "人像串并[0902]",
"parentId": "09",
"children": []
},
{
"id": "0903",
"label": "视频串并[0903]",
"parentId": "09",
"children": []
},
{
"id": "0904",
"label": "综合串并[0904]",
"parentId": "09",
"children": []
}
]
}
}
\ No newline at end of file
...@@ -9,4 +9,13 @@ export const queryTreeDataByType = params => ...@@ -9,4 +9,13 @@ export const queryTreeDataByType = params =>
export const updateCbxsz = params => export const updateCbxsz = params =>
post("/api/cbxsz/updateCbxsz", params); post("/api/cbxsz/updateCbxsz", params);
//合并线索组列表(其他线索组)
export const toHbxsz = params =>
post("/api/cbxsz/toHbxsz", params);
//合并线索
export const insertHbXszxx = params =>
post("/api/xlaj/insertHbXszxx", params);
\ No newline at end of file
...@@ -9,7 +9,7 @@ export const queryTreeDataByType = params => ...@@ -9,7 +9,7 @@ export const queryTreeDataByType = params =>
get("/api/queryTreeDataByType", params); get("/api/queryTreeDataByType", params);
export const saveTableTitleRedis = params => export const saveTableTitleRedis = params =>
post("/api/saveTableTitleRedis", params); postJson("/api/saveTableTitleRedis", params);
export const EsAsjQuery = params => export const EsAsjQuery = params =>
postJson("/api/dwcx/EsAsjQuery", params); postJson("/api/dwcx/EsAsjQuery", params);
...@@ -20,13 +20,13 @@ export const EsXyrQuery = params => ...@@ -20,13 +20,13 @@ export const EsXyrQuery = params =>
export const EsShrQuery = params => export const EsShrQuery = params =>
postJson("/api/dwcx/EsShrQuery", params); postJson("/api/dwcx/EsShrQuery", params);
export const queryDictItem = params => export const queryDictItem = params =>
post("/api/dic/queryDictItem", params); post("/api/dic/queryDictItem", params);
export const getDictitemByCode = params => export const getDictitemByCode = params =>
post("/api/dic/getDictitemByCode", params); post("/api/dic/getDictitemByCode", params);
export const getTableTitleRedis = params => export const getTableTitleRedis = params =>
post("/api/getTableTitleRedis", params); get("/api/getTableTitleRedis", params);
...@@ -15,4 +15,22 @@ export const EsdyxgwrqTopTenQuery = params => ...@@ -15,4 +15,22 @@ export const EsdyxgwrqTopTenQuery = params =>
//发破案态势统计 //发破案态势统计
export const EsFpaTsfxQuery = params => export const EsFpaTsfxQuery = params =>
post("/api/latsfx/EsFpaTsfxQuery", params) post("/api/latsfx/EsFpaTsfxQuery", params)
\ No newline at end of file //嫌疑人年龄段性别分布
export const EsXyrNldXbQuery = params =>
post("/api/latsfx/EsXyrNldXbQuery", params)
//类案TOP10嫌疑人数
export const EslaXyrTopTenQuery = params =>
post("/api/latsfx/EslaXyrTopTenQuery", params)
//前科人员职业数据分布
export const EsqkryzyQuery = params =>
post("/api/latsfx/EsqkryzyQuery", params)
//学历数据分布
export const EsxlsjfbQuery = params =>
post("/api/latsfx/EsxlsjfbQuery", params)
import { get, post, postJson } from "@/utils/http.js";
//类案件嫌疑人年龄段性别分布
export const EsNldQuery = params =>
post("/api/latsfx/EsNldQuery", params)
//类案件嫌疑人户籍分布
export const EshjfbQuery = params =>
post("/api/latsfx/EshjfbQuery", params)
//类案件嫌疑人抓获情况
export const EszhqkQuery = params =>
post("/api/latsfx/EszhqkQuery", params)
//发破案
export const getGdAjQk = params =>
post("/api/latsfx/getGdAjQk", params)
//主要类别发破案
export const getZalbFpaTj = params =>
post("/api/latsfx/getZalbFpaTj", params)
//警情综述
export const getJqzsQk = params =>
post("/api/latsfx/getJqzsQk", params)
//标注统计
export const getAjBzTj = params =>
post("/api/latsfx/getAjBzTj", params)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="formWrap"> <div class="formWrap">
<div> <div>
<span class="flTtitle">查询条件</span> <span class="flTtitle">查询条件</span>
<span class="pageGuide">页面引导</span> <!-- <span class="pageGuide">页面引导</span> -->
<span class="settingField" @click="centerDialogVisible = true" <span class="settingField" @click="centerDialogVisible = true"
><i class="iconfont icontiaojie"></i>配置查询条件</span ><i class="iconfont icontiaojie"></i>配置查询条件</span
> >
......
...@@ -243,18 +243,20 @@ export default { ...@@ -243,18 +243,20 @@ export default {
item => !self.ajxxDefaultField.data.some(ele => ele.name === item.name) item => !self.ajxxDefaultField.data.some(ele => ele.name === item.name)
); );
self.initNum++; self.initNum++;
self.waitShrxxField = self.shrxxField.data.filter( // console.log(self.shrxxField);
item => !self.shrxxDefaultField.data.some(ele => ele.name === item.name) // self.waitShrxxField = self.shrxxField.data.filter(
); // item => !self.shrxxDefaultField.data.some(ele => ele.name === item.name)
self.initNum++; // );
// self.initNum++;
console.log(self.xyrxxField);
self.waitXyrxxField = self.xyrxxField.data.filter( self.waitXyrxxField = self.xyrxxField.data.filter(
item => !self.xyrxxDefaultField.data.some(ele => ele.name === item.name) item => !self.xyrxxDefaultField.data.some(ele => ele.name === item.name)
); );
self.initNum++; self.initNum++;
self.waitFlxxField = self.flxxField.data.filter( // self.waitFlxxField = self.flxxField.data.filter(
item => !self.flxxDefaultField.data.some(ele => ele.name === item.name) // item => !self.flxxDefaultField.data.some(ele => ele.name === item.name)
); // );
self.initNum++; // self.initNum++;
}, },
initCode() { initCode() {
let self = this; let self = this;
...@@ -286,20 +288,21 @@ export default { ...@@ -286,20 +288,21 @@ export default {
self.initNum++; self.initNum++;
} }
}); });
self.shrxxDefaultField.data.forEach((val,index3) => {
if (val.type == "code"||val.type == "codeTreeDialog") { // self.shrxxDefaultField.data.forEach((val,index3) => {
if (val.codeOptions.length == 0) { // if (val.type == "code"||val.type == "codeTreeDialog") {
axios.get(`JsonData/${val.codeTree}.json`).then(response => { // if (val.codeOptions.length == 0) {
if (response.success === true) { // axios.get(`JsonData/${val.codeTree}.json`).then(response => {
self.$set(val, "codeOptions", response.data.rows); // if (response.success === true) {
} // self.$set(val, "codeOptions", response.data.rows);
}); // }
} // });
} // }
if(index3==self.shrxxDefaultField.data.length-1){ // }
self.initNum++; // if(index3==self.shrxxDefaultField.data.length-1){
} // self.initNum++;
}); // }
// });
} }
}, },
mounted() { mounted() {
......
...@@ -86,6 +86,37 @@ Vue.directive("nsLoading", { ...@@ -86,6 +86,37 @@ Vue.directive("nsLoading", {
} }
}); });
Vue.directive('drag', {
//1.指令绑定到元素上回立刻执行bind函数,只执行一次
//2.每个函数中第一个参数永远是el,表示绑定指令的元素,el参数是原生js对象
bind: function (el, elementObj) {
let dragBox = el; //获取当前元素
dragBox.style.position = 'absolute'; // 拖拽元素使用定位,脱离文档流
dragBox.onmousedown = e => {
//鼠标相对元素的位置
let disX = e.clientX - dragBox.offsetLeft;
let disY = e.clientY - dragBox.offsetTop;
document.onmousemove = e => {
//鼠标的位置减去鼠标相对元素的位置,得到元素的位置
let left = e.clientX - disX;
let top = e.clientY - disY;
//移动当前元素
dragBox.style.left = left + 'px';
dragBox.style.top = top + 'px';
};
document.onmouseup = e => {
//鼠标弹起来的时候不再移动
document.onmousemove = null;
//预防鼠标弹起来后还会循环(即预防鼠标放上去的时候还会移动)
document.onmouseup = null;
// 对外暴露元素相对于父级位置
elementObj.value.left = dragBox.style.left;
elementObj.value.top = dragBox.style.top;
};
};
}
});
new Vue({ new Vue({
router, router,
store, store,
......
/*
* @Author: your name
* @Date: 2021-08-25 15:59:14
* @LastEditTime: 2021-08-25 15:59:14
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\utils\Bus.js
*/
import Vue from 'vue'
const bus = new Vue()
export default bus
\ No newline at end of file
...@@ -517,8 +517,9 @@ ...@@ -517,8 +517,9 @@
<el-dialog <el-dialog
title="标识号新增" title="标识号新增"
:visible.sync="centerDialogVisibles1" :visible.sync="centerDialogVisibles1"
width="50%" width="800px"
center center
v-drag="elementPos"
> >
<table class="bshTable"> <table class="bshTable">
<thead> <thead>
...@@ -618,6 +619,10 @@ export default { ...@@ -618,6 +619,10 @@ export default {
}, },
data() { data() {
return { return {
elementPos: {
left: null,
top: null,
},
bshList: [ bshList: [
{ {
bshle: "", bshle: "",
...@@ -810,7 +815,6 @@ export default { ...@@ -810,7 +815,6 @@ export default {
}).then((res) => { }).then((res) => {
self.bzztMs = res.data.rows == null ? "未标注" : "已标注"; self.bzztMs = res.data.rows == null ? "未标注" : "已标注";
self.selectIndex1 = parseInt(res.data.rows.asjflzt); self.selectIndex1 = parseInt(res.data.rows.asjflzt);
;
if (res.data.rows != null) { if (res.data.rows != null) {
self.ajzlbStr = res.data.rows.ajzlbStr; self.ajzlbStr = res.data.rows.ajzlbStr;
self.ajxzlbStr = res.data.rows.ajxzlbStr; self.ajxzlbStr = res.data.rows.ajxzlbStr;
...@@ -963,7 +967,6 @@ export default { ...@@ -963,7 +967,6 @@ export default {
getFwbzhList({ getFwbzhList({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.fwbzhList = res.data.rows; this.fwbzhList = res.data.rows;
this.shrList = res.data.rows.filter((item) => item.rylx == "01"); this.shrList = res.data.rows.filter((item) => item.rylx == "01");
this.xyrList = res.data.rows.filter((item) => item.rylx == "02"); this.xyrList = res.data.rows.filter((item) => item.rylx == "02");
...@@ -1013,7 +1016,7 @@ export default { ...@@ -1013,7 +1016,7 @@ export default {
startId: "", startId: "",
}).then((res) => { }).then((res) => {
console.log(res); console.log(res);
debugger debugger;
this.data1 = this.sxdata1 = res.rows.filter((val) => { this.data1 = this.sxdata1 = res.rows.filter((val) => {
return val.parentId != ""; return val.parentId != "";
}); });
...@@ -1023,7 +1026,7 @@ export default { ...@@ -1023,7 +1026,7 @@ export default {
startId: "", startId: "",
}).then((res) => { }).then((res) => {
// console.log(res) // console.log(res)
debugger debugger;
this.data = this.sxdata = res.rows; this.data = this.sxdata = res.rows;
}); });
}, },
...@@ -1078,7 +1081,7 @@ export default { ...@@ -1078,7 +1081,7 @@ export default {
hanldTableBar(val) { hanldTableBar(val) {
if (this.selectIndex1 == val) { if (this.selectIndex1 == val) {
this.selectIndex1 = 0; this.selectIndex1 = 0;
debugger debugger;
this.data1 = this.sxdata1; this.data1 = this.sxdata1;
} else { } else {
this.selectIndex1 = val; this.selectIndex1 = val;
...@@ -1122,7 +1125,7 @@ export default { ...@@ -1122,7 +1125,7 @@ export default {
let newData = this.sxdata1.filter((val) => { let newData = this.sxdata1.filter((val) => {
return val.id == parentId; return val.id == parentId;
}); });
debugger debugger;
this.data1 = newData; this.data1 = newData;
console.log(this.data1); console.log(this.data1);
}, },
......
<!--
* @Author: your name
* @Date: 2021-08-25 09:47:35
* @LastEditTime: 2021-08-25 18:46:37
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\cba\djwzba.vue
-->
<template>
<div class="djwzba" id="djwzba">
<div class="header">
<i class="el-icon-edit"></i>
<span>填写案件</span>
</div>
<div class="content-search" v-if="$route.path==='/djwzba/xgaj'">
<right-content @saveAj="saveAj" @addmc="createMc" class="input-txt" :cxFormData="cxFormData" :cxQueryField="cxQueryField"></right-content>
</div>
<div class="tabs">
<div :class="{tabItem: true, active: $route.path===item.path}" v-for="(item, index) in routerList" :key="index" @click="switchTab(item.path)">
<span>{{item.title}}</span>
</div>
</div>
<router-view></router-view>
</div>
</template>
<script>
import Bus from '@/utils/Bus'
import rightContent from "@c/bshChildrenQuery_cba.vue";
import { addxszglasj } from "@/api/cbyp.js";
export default {
components: {
rightContent,
},
data () {
return {
xszajbh: this.$route.query.xszajbh,
routerList: [
{ path: '/djwzba/xgaj', title: '相关案件' },
{ path: '/djwzba/tjaj', title: '添加案件' },
// { path: '/djwzba/', title: '我的收藏案件' }
],
cxFormData: {
typeFlag: "all",
unitcode: sessionStorage.getItem("unitcode"),
grade: sessionStorage.getItem("grade"),
typeFlag: "bshcb",
cbmc: '',
cblx: [],
cbxxms: ''
},
cxQueryField: [
{
name: "串并名称",
id: "cbmc",
type: "text-btn",
value: "11",
placeholder: "请输入",
col: "3",
},
{
name: "串并类型",
id: "cblx",
type: "codeTreeDialog",
// type: "lazyCodeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_CBYP_CBLX",
// multiple: true
},
{
name: "串并依据描述",
id: "cbxxms",
type: "textarea",
value: "",
placeholder: "请输入",
col: "3",
},
],
};
},
mounted () {
this.cxQueryField[0]
Bus.$on('addCbmc', (cbmcList) => {
console.log(cbmcList)
let arr = []
cbmcList.forEach(element => {
arr.push(element.ajmc)
});
this.str = arr.join(',')
})
Bus.$on('reset', () => {
this.createMc()
})
},
methods: {
async saveAj() {
let obj = {
cbmc: this.cxFormData.cbmc,
cblx: this.cxFormData.cblx,
cbxxms: this.cxFormData.cbxxms,
glxxXszajbh: this.$route.query.xszajbh
}
let res = await addxszglasj(obj)
console.log(res);
Bus.$emit('updataTable')
this.cxFormData.cbmc = ''
this.cxFormData.cblx = []
this.cxFormData.cbxxms = ''
},
switchTab (path) {
this.$router.push(
{
path: path,
query: {
xszajbh: this.xszajbh
}
}
)
},
createMc() {
this.$set(this.cxFormData, 'cbmc', this.str)
console.log(this.cxQueryField);
}
},
}
</script>
<style lang="scss" scoped>
.djwzba {
.header {
padding: 8px;
border-bottom: 1px dashed #000;
font-weight: 800;
}
.tabs {
height: 40px;
display: flex;
align-items: center;
font-size: 16px;
background: #fff;
border-bottom: 1px dashed #ccc;
padding: 0 8px;
margin-bottom: 5px;
.tabItem {
height: 100%;
line-height: 40px;
padding: 0 10px;
cursor: pointer;
&.active {
border: 1px solid #ccc;
border-top: 2px solid orangered;
border-bottom: none;
}
}
}
}
</style>
<!--
* @Author: your name
* @Date: 2021-08-25 09:47:52
* @LastEditTime: 2021-08-25 18:03:06
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\cba\xgaj.vue
-->
<template>
<div class="xgal">
<el-button type="danger" class="btn" @click="delAj">删除案件</el-button>
<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center">
</el-table-column>
<el-table-column label="案件编号" width="265" align="center">
<template slot-scope="scope">{{ scope.row.asjbh }}</template>
</el-table-column>
<el-table-column label="案件名称" width="160" align="center">
<template slot-scope="scope">{{ scope.row.ajmc }}</template>
</el-table-column>
<el-table-column label="案件类别" width="100" align="center">
<template slot-scope="scope">{{ scope.row.ajlbdmStr }}</template>
</el-table-column>
<el-table-column label="比中号码" width="180" align="center">
<template slot-scope="scope">{{ scope.row.cbxgfwbzh }}</template>
</el-table-column>
<el-table-column label="案件状态" width="160" align="center">
<template slot-scope="scope">{{ scope.row.zcjddmStr }}</template>
</el-table-column>
<el-table-column label="发案时间" width="160" align="center">
<template slot-scope="scope">{{ scope.row.asjfssjKssj }}</template>
</el-table-column>
<el-table-column label="发案地点" width="100" align="center">
<template slot-scope="scope">{{ scope.row.asjfsddXzqhdm }}</template>
</el-table-column>
<el-table-column label="受理单位" width="160" align="center">
<template slot-scope="scope">{{ scope.row.sldw }}</template>
</el-table-column>
<el-table-column label="立案单位" width="160" align="center">
<template slot-scope="scope">{{ scope.row.ladwGajgjgdm }}</template>
</el-table-column>
<el-table-column label="简要案情" width="420" align="center">
<template slot-scope="scope">{{ scope.row.jyaq }}</template>
</el-table-column>
</el-table>
<el-pagination background layout="prev, pager, next" @current-change="changePage" :total="total">
</el-pagination>
</div>
</template>
<script>
import Bus from '@/utils/Bus'
import { queryxszglasj, delxszglasj } from "@/api/cbyp.js";
export default {
data () {
return {
tableData: [],
multipleSelection: [],
total: 10
}
},
mounted () {
console.log(this.$route);
this.getData(1, 10);
Bus.$on('reset', () => {
this.$refs.multipleTable.clearSelection();
})
Bus.$on('updataTable', () => {
this.getData(1, 10);
})
},
methods: {
async delAj() {
let arr = []
this.multipleSelection.forEach(item => {
arr.push(item.asjbh)
})
let str = arr.join(',')
console.log(str);
let sfscxsz = 0
if(this.multipleSelection.length == this.total) {
sfscxsz = 1
} else {
sfscxsz = 0
}
let obj = {
asjbhs: str,
xszajbh: this.$route.query.xszajbh,
sfscxsz: sfscxsz
}
let res = await delxszglasj(obj)
console.log(res);
if(res == 200) {
this.$message.success('删除成功!')
this.getData(1, 10)
} else {
this.$message.error('删除失败!')
}
},
async getData (start, length) {
let fromData = {
start,
length,
xszajbh: this.$route.query.xszajbh
}
let res = await queryxszglasj(fromData)
console.log(res);
if (res.code == 200) {
this.tableData = res.data.data
this.total = res.data.recordsTotal
} else {
this.$message.error('请求数据失败!')
}
},
toggleSelection (rows) {
if (rows) {
rows.forEach(row => {
this.$refs.multipleTable.toggleRowSelection(row);
});
} else {
this.$refs.multipleTable.clearSelection();
}
},
handleSelectionChange (val) {
this.multipleSelection = val;
Bus.$emit('addCbmc', this.multipleSelection)
},
changePage (page) {
console.log(page);
this.getData(page, 10)
}
}
}
</script>
<style lang="scss" scoped>
.xgal {
button {
margin: 5px;
}
}
</style>
\ No newline at end of file
<template>
<div class="qgxxxx">
<div class="title">
<img src="../../assets/img/login/jinhui.png" alt="" />
<div class="name">全国案件</div>
</div>
<div class="buttonSquare">
<el-button
class="provinceButton"
v-for="item in buttonList"
:key="item.value"
@click="searchCaseByProvince(item.value)"
>{{ item.name }}</el-button
>
</div>
<div class="listSquare">
<el-table
id="ajzbQuery"
v-loading="tableLoading"
element-loading-text="拼命加载中"
:data="tableData"
tooltip-effect="dark"
max-height="600"
style="width: 99%; margin: 0 auto"
width="100%"
size="small"
border
>
<el-table-column
align="center"
v-for="columnTitle in propdefaultFormThead"
:prop="columnTitle.prop"
:key="columnTitle.label"
:label="columnTitle.label"
:width="columnTitle.width"
>
<template slot-scope="scope">
<div v-if="columnTitle.prop == 'jyaq'">
<div class="ajxq_s">
<span class="none" v-html="scope.row[columnTitle.prop]"></span
><a
href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"'
style="
display: inline-block;
width: 100%;
text-align: right;
color: #3692c6;
font-weight: 600;
"
id="open"
v-show="
scope.row[columnTitle.prop] != '' &&
scope.row[columnTitle.prop] != null
"
>展开</a
>
</div>
<div class="ajxq_n" style="display: none">
<span
style="display: block"
v-html="scope.row[columnTitle.prop]"
></span
><a
href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.previousSibling.style.display="block"'
style="float: right; color: #3692c6; font-weight: 600"
id="stop"
v-show="
scope.row[columnTitle.prop] != '' &&
scope.row[columnTitle.prop] != null
"
>收起</a
>
</div>
</div>
<div v-else v-html="scope.row[columnTitle.prop]"></div>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
:page-size="100"
layout="total, prev, pager, next, jumper"
:total="1000"
>
</el-pagination>
</div>
</div>
</template>
<script>
import { getQgAsjxxByXszajbh } from "@/api/cbyp.js";
export default {
data() {
return {
xszajbh: "",
cbxgfwbzh: "",
tableLoading: false,
tableData: [],
currentPage: 1,
propdefaultFormThead: [
{
label: "案发地点",
prop: "fxasjddXzqhdm",
},
{
label: "案件编号",
prop: "xszajbh",
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案件类别",
prop: "ajlbdm",
},
{
label: "案件状态",
prop: "zcjddm",
},
{
label: "立案单位",
prop: "ladwGajgjgdm",
},
{
label: "案发时间",
prop: "asjfssjAsjfskssj",
},
{
label: "简要案情",
prop: "jyaq",
},
],
buttonList: [
{
name: "云南省 1",
value: "yunnan1",
},
{
name: "内蒙古自治区 1",
value: "neimenggu1",
},
{
name: "北京市 1",
value: "beijing1",
},
{
name: "安徽省 4",
value: "anhui4",
},
{
name: "广东省 2",
value: "guangdong2",
},
{
name: "广西壮族自治区 1",
value: "guanxi1",
},
{
name: "江苏省 1",
value: "jiangsu1",
},
{
name: "河南省 1",
value: "henan1",
},
{
name: "湖北省 1",
value: "hubei1",
},
{
name: "贵州省 1",
value: "guizhou1",
},
],
};
},
created() {
this.xszajbh = this.$route.query.xszajbh;
this.cbxgfwbzh = this.$route.query.cbxgfwbzh;
this.getShuju();
},
methods: {
getShuju() {
var params = new FormData();
params.append("xszajbh", this.xszajbh);
params.append("cbxgfwbzh", this.cbxgfwbzh);
getQgAsjxxByXszajbh(params).then((res) => {
this.tableData = res.data.qucsj;
console.log(res);
});
},
searchCaseByProvince(value) {
var params = new FormData();
params.append("xszajbh", this.xszajbh);
params.append("cbxgfwbzh", this.cbxgfwbzh);
getQgAsjxxByXszajbh(params).then((res) => {
console.log(res);
this.tableData = res.data.qucsj;
});
},
handleSizeChange() {},
handleCurrentChange() {},
},
};
</script>
<style lang="scss" scoped>
.qgxxxx {
.title {
height: 52px;
background: #1f212c;
padding-left: 32px;
display: flex;
align-items: center;
}
img {
width: 36px;
height: 36px;
}
.name {
font-size: 18px;
font-family: Microsoft YaHei;
font-weight: bold;
line-height: 24px;
color: #ffffff;
}
}
.qgxxxx {
margin: 0;
padding: 0;
height: 100%;
background-color: #efefef;
}
.buttonSquare {
// width: 90%;
height: 20%;
margin: 8px 20px;
border-radius: 10px;
background-color: #fff;
border: 1px solid #eaeaea;
}
.provinceButton {
}
.listSquare {
// width: 90%;
height: 70%;
margin: 8px 20px;
border-radius: 8px;
background-color: #fff;
border: 1px solid #eaeaea;
}
</style>
\ No newline at end of file
<template>
<div class="Content">
<div class="topTitle">
<span>人工串并</span>
<div class="subTitle">
<div class="ajTitle">新增串并</div>
<div class="bottom"></div>
</div>
</div>
<right-content
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
:tableBtns="tableBtns"
header="xzrgcb"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/rgcb_wdxl/ptCxForm_components.vue";
import {
EsAsjQuery,
getTableTitleRedis,
EsShrQuery,
EsXyrQuery,
} from "@/api/dictionaryCode.js";
export default {
name: "xzrgcb",
components: {
rightContent,
},
data() {
return {
cxFormData: {
page: 1,
rows: 10,
asjbh: "",
jjbh: "",
sldwGajgjgdm: "",
slsjStart: "",
slsjEnd: "",
larqStart: "",
larqEnd: "",
asjfssjAsjfskssjStart: "",
asjfssjAsjfskssjEnd: "",
ajzlb: "",
ajxzlb: "",
xalbdmbcms: "",
asjfsddXzqhdm: "",
zhfzxyrFzxyrdaztdm: "",
ajmc: "",
ladwGajgjgdm: "",
ssjzrmbyMin: "",
ssjzrmbyMax: "",
bzzt: "",
jyaq: "",
asjfsddDzmc: "",
},
cxQueryField: [
/*立案信息 侦查终结信息 立案信息审批 侦查终结审批通用开始*/
{
name: "案(事)件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "接警编号",
id: "jjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "受理单位",
id: "sldwGajgjgdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_UNIT",
value: "",
col: "3",
},
{
name: "受理时间",
id: "slsjStart",
id2: "slsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "立案时间",
id: "larqStart",
id2: "larqEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "案发时间",
id: "asjfssjAsjfskssjStart",
id2: "asjfssjAsjfskssjEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "主案类别",
id: "ajzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJZLB",
value: "",
col: "3",
},
{
name: "类案类别",
id: "ajxzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJXZLB",
value: "",
col: "3",
},
{
name: "次类案类别",
id: "xalbdmbcms",
type: "code",
codeOptions: [],
codeTree: "CODE_XALBDMBCMS",
value: "",
col: "3",
},
{
name: "案发地行政区划",
id: "asjfsddXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "到案状态",
id: "zhfzxyrFzxyrdaztdm",
type: "code",
codeOptions: [],
codeTree: "CODE_DAZT",
value: "",
col: "3",
},
{
name: "案件名称",
id: "ajmc",
type: "text",
placeholder: "请输入",
value: "",
col: "3",
},
{
name: "立案单位",
id: "ladwGajgjgdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_UNIT",
value: "",
col: "3",
},
{
name: "损失总价值",
id: "ssjzrmbyMin",
id2: "ssjzrmbyMax",
type: "zdyText",
value: "",
col: "3",
},
{
name: "标注状态",
id: "bzzt",
type: "radio",
value: "1",
placeholder: "",
col: "3",
radioData: [
{ label: "全部", val: "" },
{ label: "已标注", val: "1" },
{ label: "未标注", val: "2" },
{ label: "待标注", val: "3" },
],
},
{
name: "简要案情",
id: "jyaq",
type: "text",
value: "",
placeholder: "请输入",
col: "15",
},
{
name: "案发地详址",
id: "asjfsddDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "15",
},
],
cxDefaultFormThead: [
{
label: "案件编号",
prop: "asjbh",
width: "220",
},
{
label: "案件类别",
prop: "ajlbdmMc",
width: "200",
},
{
label: "主案类别",
prop: "ajzlbMc",
width: "220",
},
{
label: "类案类别",
prop: "ajxzlbMc",
width: "220",
},
{
label: "案件名称",
prop: "ajmc",
width: "150",
},
{
label: "案发地点",
prop: "asjfsddDzmc",
width: "280",
},
{
label: "损失总价值",
prop: "ssjzrmby",
width: "180",
},
{
/*table默认得表头*/
label: "立案日期",
prop: "larq",
width: "200",
},
{
label: "立案单位名称",
prop: "ladwGajgjgdmMc",
width: "220",
},
{
label: "案发开始时间",
prop: "asjfssjAsjfskssj",
width: "220",
},
{
label: "简要案情",
prop: "jyaq",
width: "220",
},
],
tableBtns: ["add", "view"],
cxUrl: EsAsjQuery,
};
},
methods: {},
created() {},
};
</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;
background: #f3f3f3;
}
.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">
@import "@/assets/styles/rightContent.scss";
.topTitle {
width: 100%;
height: 56px;
background: #1f212c;
display: flex;
align-items: center;
span {
font-size: 18px;
font-weight: bold;
line-height: 24px;
color: #ffffff;
margin-left: 35px;
}
.subTitle {
width: 138px;
margin-left: 90px;
text-align: center;
margin-top: 19px;
.ajTitle {
font-size: 14px;
font-weight: 400;
color: #ffffff;
opacity: 0.8;
}
.bottom {
height: 4px;
background: #f1970f;
opacity: 1;
margin-top: 7px;
}
}
}
</style>
...@@ -1076,7 +1076,10 @@ export default { ...@@ -1076,7 +1076,10 @@ export default {
obj2 = {}, obj2 = {},
obj3 = {}, obj3 = {},
obj4 = {}; obj4 = {};
getTableTitleRedis(self.fieldType).then(res => { var paramsfield = {
type:self.fieldType
}
getTableTitleRedis(paramsfield).then(res => {
//查询是否保存过查询字段 //查询是否保存过查询字段
if (res.code == 20000) { if (res.code == 20000) {
console.log(res); console.log(res);
...@@ -1141,7 +1144,10 @@ export default { ...@@ -1141,7 +1144,10 @@ export default {
return res.data; return res.data;
}); });
/*获取案件表头*/ /*获取案件表头*/
getTableTitleRedis(self.ajFieldType).then(res => { var paramsajFiel = {
type:self.ajFieldType
}
getTableTitleRedis(paramsajFiel).then(res => {
if (res.success === true) { if (res.success === true) {
if (res.data.total > 0) { if (res.data.total > 0) {
self.DefaultAjFormThead = []; self.DefaultAjFormThead = [];
...@@ -1154,8 +1160,11 @@ export default { ...@@ -1154,8 +1160,11 @@ export default {
// }); // });
} }
}); });
var paramsaxyrField = {
type:self.xyrFieldType
}
/*获取嫌疑人表头*/ /*获取嫌疑人表头*/
getTableTitleRedis(self.xyrFieldType).then(res => { getTableTitleRedis(paramsaxyrField).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.total > 0) { if (res.data.total > 0) {
self.DefaultXyrFormThead = []; self.DefaultXyrFormThead = [];
...@@ -1168,8 +1177,11 @@ export default { ...@@ -1168,8 +1177,11 @@ export default {
// }); // });
} }
}); });
var paramsashrField = {
type:self.shrFieldType
}
/*获取受害人表头*/ /*获取受害人表头*/
getTableTitleRedis(self.shrFieldType).then(res => { getTableTitleRedis(paramsashrField).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.total > 0) { if (res.data.total > 0) {
self.DefaultShrFormThead = []; self.DefaultShrFormThead = [];
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="header-admin"> <div class="header-admin">
<span class="img-span"></span> <span class="img-span"></span>
<span>欢迎您:</span> <span>欢迎您:</span>
<span>冉处</span> <span>{{username}}</span>
<span>系统管理员:</span> <span>系统管理员:</span>
</div> </div>
<div class="header-nav"> <div class="header-nav">
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
url: require("../../assets/img/nav8.png"), //字典管理 url: require("../../assets/img/nav8.png"), //字典管理
}, },
], ],
username:JSON.parse(sessionStorage.getItem("userInfo")).realname
}; };
}, },
methods: { methods: {
......
...@@ -31,14 +31,15 @@ export default { ...@@ -31,14 +31,15 @@ export default {
xzLogin({ xzLogin({
xz_token: self.xz_token, xz_token: self.xz_token,
}).then((res) => { }).then((res) => {
console.log(res.data.message);
if (res.code == 200) { if (res.code == 200) {
sessionStorage.setItem("token", "bearer " + res.data.accessToken); sessionStorage.setItem("token", "bearer " + res.data.accessToken);
sessionStorage.setItem("userInfo", JSON.stringify(res.data.data)); sessionStorage.setItem("userInfo", JSON.stringify(res.data));
self.saveLoading.close(); self.saveLoading.close();
this.$router.push("/home"); this.$router.push("/home");
} else { } else {
self self
.$confirm(res.data.message, "提示", { .$confirm(res.message, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
showCancelButton: false, showCancelButton: false,
type: "warning", type: "warning",
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
}).then(res=>{ }).then(res=>{
if(res.code == 200){ if(res.code == 200){
sessionStorage.setItem('token', 'bearer ' + res.data.accessToken); sessionStorage.setItem('token', 'bearer ' + res.data.accessToken);
sessionStorage.setItem("userInfo",JSON.stringify(res.data.data)) sessionStorage.setItem("userInfo",JSON.stringify(res.data))
this.$router.push('/home') this.$router.push('/home')
}else{ }else{
this.$confirm("账号或密码错误!", { this.$confirm("账号或密码错误!", {
......
...@@ -183,12 +183,12 @@ export default { ...@@ -183,12 +183,12 @@ export default {
{ {
label: '案件名称', label: '案件名称',
prop: 'ajmc', prop: 'ajmc',
width: '80' width: '150'
}, },
{ {
label: '案发地点', label: '案发地点',
prop: 'asjfsddDzmc', prop: 'asjfsddDzmc',
width: '80' width: '280'
}, },
{ {
label: '损失总价值', label: '损失总价值',
......
...@@ -58,12 +58,20 @@ module.exports = { ...@@ -58,12 +58,20 @@ module.exports = {
}, },
proxy: { proxy: {
"/api": { "/api": {
target: "http://26.3.13.184:8762/", //案件标注 target: "http://47.92.225.109:8762/", //案件标注 http://26.3.13.184:8762/
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'
} }
},
"/api2": {
target: "http://26.3.13.120:8088/", //案件标注
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api2': '/'
}
} }
}, },
}, },
......
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