Commit 909d0683 by gao_yingdong

统计评估, ‘涉案视频统计’ ‘抓获人员统计’

parent 049abbde
......@@ -387,7 +387,12 @@ export default {
if (json.unitcode && json.cxSj) {
let kssj = json.cxSj.substring(0, 10);
let jssj = json.cxSj.substring(22, 32);
let params = `&__bypagesize__=false&tjdw=${json.unitcode}&kssj=${kssj}&jssj=${jssj}`;
let params = "";
if (this.name == "zhrytj") {
params = `&__bypagesize__=false&tjdw=${json.unitcode}&kssj=${kssj}&jssj=${jssj}&xbdm=${json.xbdm}`;
} else {
params = `&__bypagesize__=false&tjdw=${json.unitcode}&kssj=${kssj}&jssj=${jssj}`;
}
console.log(params);
if (this.name == "ajkhtj") {
window.open(
......
......@@ -131,6 +131,22 @@ export default [
title: "两抢犯罪统计表"
}
},
{
path: "sasptj",
name: "sasptj",
component: () => import("@/views/tjpg/sasptj.vue"),
meta: {
title: "统计评估"
}
},
{
path: "zhrytj",
name: "zhrytj",
component: () => import("@/views/tjpg/zhrytj.vue"),
meta: {
title: "统计评估"
}
},
]
},
{
......
......@@ -12699,6 +12699,11 @@ let tjpgPropLeftMenu = [
label: '三所人员统计',
index: '2-3',
},
{
id: 'sasptj',
label: '涉案视频统计',
index: '2-4',
},
]
},
......@@ -12779,6 +12784,20 @@ let tjpgPropLeftMenu = [
]
},
{
id: 'zhrytj',
label: 'DNA人员统计',
index: '6',
className: 'iconfont iconchaxun',
children: [
{
id: 'zhrytj',
label: '抓获人员统计',
index: '6-1',
},
]
},
]
let tjpgCxQueryField = [
{
......
<template>
<div>
<right-content
:cxQueryField="cxQueryField"
:cxFormData="cxFormData"
:name="name"
:urls="urls"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_componentsTjpg.vue";
export default {
name: "sasptj",
components: {
rightContent,
},
data() {
return {
name: "sasptj",
cxFormData: {
cxSj: "",
unitcode: "",
},
urls: 'http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB_SASPTJ.cpt',
cxQueryField: [
{
name: "单位代码",
id: "unitcode",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
value: "",
placeholder: "",
codeOptions: [],
codeTree: "CODE_UNIT",
col: "3",
},
{
name: "时间",
id: "cxSj",
type: "datetimerange",
value: "",
col: "3",
pickerOptions: {
shortcuts: [
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth();
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 2;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近六个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 5;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近一年",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 11;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
],
},
},
],
};
},
};
</script>
<style scoped>
</style>
<template>
<div>
<right-content
:cxQueryField="cxQueryField"
:cxFormData="cxFormData"
:name="name"
:urls="urls"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_componentsTjpg.vue";
export default {
name: "zhrytj",
components: {
rightContent,
},
data() {
return {
name: "zhrytj",
cxFormData: {
cxSj: "",
unitcode: "",
xbdm: "",
},
urls: "http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FDNA_RYXQ.cpt",
cxQueryField: [
{
name: "单位代码",
id: "unitcode",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
value: "",
placeholder: "",
codeOptions: [],
codeTree: "CODE_UNIT",
col: "3",
},
{
name: "时间",
id: "cxSj",
type: "datetimerange",
value: "",
col: "3",
pickerOptions: {
shortcuts: [
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth();
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 2;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近六个月",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 5;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
{
text: "最近一年",
onClick(picker) {
const end = new Date();
const start = new Date();
let year = start.getFullYear();
let month = start.getMonth() - 11;
if (month === 0) {
month = 12;
year = year - 1;
}
if (month < 0) {
month = 12 + month;
year = year - 1;
}
if (month < 10 && month > 0) {
month = "0" + month;
}
let firstDayOfPreMonth =
year + "-" + month + "-" + start.getDate();
firstDayOfPreMonth = new Date(firstDayOfPreMonth);
picker.$emit("pick", [firstDayOfPreMonth, end]);
},
},
],
},
},
{
name: "性别",
id: "xbdm",
type: "select",
value: "",
placeholder: "请选择",
col: "3",
selectData: [
{ value: "0", name: "未知的性别" },
{ value: "1", name: "男" },
{ value: "2", name: "女" },
{ value: "9", name: "未说明的性别" },
],
},
],
};
},
};
</script>
<style scoped>
</style>
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