Commit dcde0b08 by gao_yingdong

车辆档案

parent db03c9f6
No preview for this file type
......@@ -9,6 +9,7 @@
cxType != 'clwzxx' &&
cxType != 'cljbxxDj' &&
cxType != 'thjl' &&
cxType != 'qgAsj' &&
cxType != 'lsjsr' &&
cxType != 'sjlsjz' &&
cxType != 'sjLs'
......@@ -79,6 +80,7 @@
page == 'asj' ||
page == 'bt' ||
page == 'jq' ||
page == 'qgAsj' ||
page == 'ka'
"
>
......@@ -89,7 +91,9 @@
: page == "ka"
? "车辆轨迹信息"
: page == "asj"
? "案件信息"
? "涉及区内案件"
: page == "qgAsj"
? "涉及区外案件"
: "机动车基本信息"
}}</span
>
......@@ -277,6 +281,7 @@ export default {
},
data() {
return {
pageSize: 5,
dataLength: 0,
formThead: this.DefaultAjFormThead,
currentPage1: 1,
......@@ -411,8 +416,15 @@ export default {
this.doQuery("yes");
},
handleCurrentChange(val) {
let self = this;
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) {
/*post方法*/
......@@ -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) {
let self = this,
json = {};
......@@ -486,6 +508,30 @@ export default {
this.tableLoading = false;
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 {
json.page = this.currentPage1;
json.pageNo = this.currentPage1;
......@@ -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: {
cxSj() {
......
......@@ -69,6 +69,7 @@ router.afterEach((to) => {
if (to.path != '/dwqsajIndex') {
request.getYhxx("").then(res => {
if (res.success === true) {
sessionStorage.setItem("userInfo", JSON.stringify(res.data.rows));
let userInfo = res.data.rows
let zjhm = userInfo.identitycard.replace(/^(.{10})(?:\d+)(.{4})$/, "$1****$2")
let name = userInfo.trueName.substring(0, userInfo.trueName.length - 1)
......
......@@ -73,6 +73,18 @@
ref="rightContents"
></table-component>
</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>
......@@ -150,6 +162,47 @@ export default {
children: "children",
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: [
{
......@@ -193,6 +246,7 @@ export default {
prop: "ssjzrmby",
},
],
carwzQueryData: {
hphm: this.$route.query["cphm"],
kssj: "",
......@@ -228,7 +282,7 @@ export default {
label: "警情类别",
prop: "bjlbdmStr",
},
/* {
/* {
label: "案件类别",
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