Commit dcde0b08 by gao_yingdong

车辆档案

parent db03c9f6
No preview for this file type
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
cxType != 'clwzxx' && cxType != 'clwzxx' &&
cxType != 'cljbxxDj' && cxType != 'cljbxxDj' &&
cxType != 'thjl' && cxType != 'thjl' &&
cxType != 'qgAsj' &&
cxType != 'lsjsr' && cxType != 'lsjsr' &&
cxType != 'sjlsjz' && cxType != 'sjlsjz' &&
cxType != 'sjLs' cxType != 'sjLs'
...@@ -79,6 +80,7 @@ ...@@ -79,6 +80,7 @@
page == 'asj' || page == 'asj' ||
page == 'bt' || page == 'bt' ||
page == 'jq' || page == 'jq' ||
page == 'qgAsj' ||
page == 'ka' page == 'ka'
" "
> >
...@@ -89,7 +91,9 @@ ...@@ -89,7 +91,9 @@
: page == "ka" : page == "ka"
? "车辆轨迹信息" ? "车辆轨迹信息"
: page == "asj" : page == "asj"
? "案件信息" ? "涉及区内案件"
: page == "qgAsj"
? "涉及区外案件"
: "机动车基本信息" : "机动车基本信息"
}}</span }}</span
> >
...@@ -277,6 +281,7 @@ export default { ...@@ -277,6 +281,7 @@ export default {
}, },
data() { data() {
return { return {
pageSize: 5,
dataLength: 0, dataLength: 0,
formThead: this.DefaultAjFormThead, formThead: this.DefaultAjFormThead,
currentPage1: 1, currentPage1: 1,
...@@ -411,8 +416,15 @@ export default { ...@@ -411,8 +416,15 @@ export default {
this.doQuery("yes"); this.doQuery("yes");
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
let self = this;
this.currentPage1 = val; this.currentPage1 = val;
this.doQuery("yes"); if (self.cxType == "qgAsj") {
self.tableData = self.getNeedArr(self.tableDataTl, self.currentPage1)[
self.pageSize - 1
];
} else {
this.doQuery("yes");
}
}, },
doQueryRequest(form) { doQueryRequest(form) {
/*post方法*/ /*post方法*/
...@@ -445,6 +457,16 @@ export default { ...@@ -445,6 +457,16 @@ export default {
}); });
} }
}, },
postGetClcxsjgl(form) {
return request({
url: url.BaseURL + "/asj/getSaxxQg",
data: form,
method: "POST",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
});
},
doQuery(flag) { doQuery(flag) {
let self = this, let self = this,
json = {}; json = {};
...@@ -486,6 +508,30 @@ export default { ...@@ -486,6 +508,30 @@ export default {
this.tableLoading = false; this.tableLoading = false;
console.log("catch this.tableLoading = false;", this.tableLoading); console.log("catch this.tableLoading = false;", this.tableLoading);
}); });
} else if (self.cxType == "qgAsj") {
let objQg = JSON.parse(window.sessionStorage.getItem("userInfo"));
let params = new FormData();
params.append("gjc", self.$route.query.cphm);
params.append("type", "jyaq");
params.append("userCardId", objQg.identitycard);
params.append("userName", objQg.trueName);
params.append("userDept", objQg.unitcode);
params.append("userDeptName", objQg.unitname);
params.append("userIp", objQg.ip);
self.postGetClcxsjgl(params).then((res) => {
if (list.success) {
self.tableDataTl = res.data.rows;
self.tableData = self.getNeedArr(
self.tableDataTl,
self.currentPage1
)[self.pageSize - 1];
self.dataLength = parseInt(res.data.total);
this.tableLoading = false;
} else {
this.tableLoading = false;
}
});
} else { } else {
json.page = this.currentPage1; json.page = this.currentPage1;
json.pageNo = this.currentPage1; json.pageNo = this.currentPage1;
...@@ -565,6 +611,24 @@ export default { ...@@ -565,6 +611,24 @@ export default {
} }
} }
}, },
getNeedArr(array, size) {
const length = array.length;
if (!length || !size || size < 1) {
return [];
}
let index = 0; //用来表示切割元素的范围start
let resIndex = 0; //用来递增表示输出数组的下标
//根据length和size算出输出数组的长度,并且创建它。
let result = new Array(Math.ceil(length / size));
//进行循环
while (index < length) {
//循环过程中设置result[0]和result[1]的值。该值根据array.slice切割得到。
result[resIndex++] = array.slice(index, (index += size));
}
//输出新数组
return result;
},
}, },
watch: { watch: {
cxSj() { cxSj() {
......
...@@ -69,6 +69,7 @@ router.afterEach((to) => { ...@@ -69,6 +69,7 @@ router.afterEach((to) => {
if (to.path != '/dwqsajIndex') { if (to.path != '/dwqsajIndex') {
request.getYhxx("").then(res => { request.getYhxx("").then(res => {
if (res.success === true) { if (res.success === true) {
sessionStorage.setItem("userInfo", JSON.stringify(res.data.rows));
let userInfo = res.data.rows let userInfo = res.data.rows
let zjhm = userInfo.identitycard.replace(/^(.{10})(?:\d+)(.{4})$/, "$1****$2") let zjhm = userInfo.identitycard.replace(/^(.{10})(?:\d+)(.{4})$/, "$1****$2")
let name = userInfo.trueName.substring(0, userInfo.trueName.length - 1) let name = userInfo.trueName.substring(0, userInfo.trueName.length - 1)
......
...@@ -73,6 +73,18 @@ ...@@ -73,6 +73,18 @@
ref="rightContents" ref="rightContents"
></table-component> ></table-component>
</div> </div>
<!-- 案事件 -->
<div style="margin-top: 39px">
<table-component
:DefaultAjFormThead="carQgFormThead"
:propQueryData="carQgQueryData"
:cxUrl="qgCxUrl"
:cxType="aGCxType"
:jbcjbxxThear="qGbxxThear"
:page="pageQg"
ref="rightContentQg"
></table-component>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -150,6 +162,47 @@ export default { ...@@ -150,6 +162,47 @@ export default {
children: "children", children: "children",
label: "label", label: "label",
}, },
// 全国案件
carQgFormThead: [
{
label: "案件编号",
prop: "asjbh",
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案件类别",
prop: "ajlbdmStr",
},
{
label: "案发时间",
prop: "afsj",
},
{
label: "案发地区",
prop: "afdXzqhdmStr",
},
{
label: "立案单位",
prop: "ladwdmStr",
},
{
label: "简要案情",
prop: "jyaq",
},
],
carQgQueryData: {
gjc: this.$route.query["cphm"],
type: "jyaq",
page: 1,
limit: 5,
},
pageQg: "qgAsj",
qGbxxThear: "涉及区外案件",
aGCxType: "qgAsj",
qgCxUrl: "/asj/getSaxxQg",
// 卡口 // 卡口
carwzFormThead: [ carwzFormThead: [
{ {
...@@ -193,6 +246,7 @@ export default { ...@@ -193,6 +246,7 @@ export default {
prop: "ssjzrmby", prop: "ssjzrmby",
}, },
], ],
carwzQueryData: { carwzQueryData: {
hphm: this.$route.query["cphm"], hphm: this.$route.query["cphm"],
kssj: "", kssj: "",
...@@ -228,7 +282,7 @@ export default { ...@@ -228,7 +282,7 @@ export default {
label: "警情类别", label: "警情类别",
prop: "bjlbdmStr", prop: "bjlbdmStr",
}, },
/* { /* {
label: "案件类别", label: "案件类别",
prop: "ajlbdmStr", prop: "ajlbdmStr",
},*/ },*/
......
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