Commit 049abbde by gao_yingdong

统计评估'侵财案件统计

parent e9bf3545
File added
......@@ -206,6 +206,7 @@ export default {
},
cxFormData: Object,
name: String,
urls: String,
},
data() {
return {
......@@ -384,63 +385,65 @@ 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}`;
console.log(params);
if (this.name == "ajkhtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FBHGTJB%252Fbhgsjb.cpt" +
params
);
} else if (this.name == "rykhtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB.cpt" +
params
);
}else if (this.name == "jzrytJ") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB_JZDCRY.cpt" +
params
);
}else if (this.name == "ssRytj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB_SSRY.cpt" +
params
);
}else if (this.name == "khbhgtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FJXKHTJB.cpt" +
params
);
}else if (this.name == "gRjftj" || this.name == "gRjftjs") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FJFKH%252FJFKHTJB.cpt" +
params
);
} else if (this.name == "xsajlatj"){
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fqqxsajlaqkfxb1.cpt" +
params
);
} else if (this.name == "xsajlatj2"){
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fqqxsajlaqkfxb2.cpt" +
params
);
} else if (this.name == "dyxsajtj"){
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fdyqqxsajlaqkfxb1.cpt" +
params
);
} else if (this.name == "dyxsajtj2"){
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fdyqqxsajlaqkfxb2.cpt" +
params
);
}
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}`;
console.log(params);
if (this.name == "ajkhtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FBHGTJB%252Fbhgsjb.cpt" +
params
);
} else if (this.name == "rykhtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB.cpt" +
params
);
} else if (this.name == "jzrytJ") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB_JZDCRY.cpt" +
params
);
} else if (this.name == "ssRytj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FZHXZJSGZLHB_SSRY.cpt" +
params
);
} else if (this.name == "khbhgtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252FJXKHTJB.cpt" +
params
);
} else if (this.name == "gRjftj" || this.name == "gRjftjs") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FJFKH%252FJFKHTJB.cpt" +
params
);
} else if (this.name == "xsajlatj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fqqxsajlaqkfxb1.cpt" +
params
);
} else if (this.name == "xsajlatj2") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fqqxsajlaqkfxb2.cpt" +
params
);
} else if (this.name == "dyxsajtj") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fdyqqxsajlaqkfxb1.cpt" +
params
);
} else if (this.name == "dyxsajtj2") {
window.open(
"http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FGZLHB%252Fdyqqxsajlaqkfxb2.cpt" +
params
);
} else {
window.open(this.urls + params);
}
} else {
this.$message('单位代码, 时间不能为空!');
this.$message("单位代码, 时间不能为空!");
}
},
},
......
......@@ -107,6 +107,30 @@ export default [
title: "统计评估"
}
},
{
path: "qcajtj",
name: "qcajtj",
component: () => import("@/views/tjpg/qcajtj.vue"),
meta: {
title: "盗抢骗犯罪统计表"
}
},
{
path: "dqfztjb",
name: "dqfztjb",
component: () => import("@/views/tjpg/dqfztjb.vue"),
meta: {
title: "盗窃犯罪统计表"
}
},
{
path: "lqfztjb",
name: "lqfztjb",
component: () => import("@/views/tjpg/lqfztjb.vue"),
meta: {
title: "两抢犯罪统计表"
}
},
]
},
{
......
......@@ -12755,7 +12755,30 @@ let tjpgPropLeftMenu = [
]
},
{
id: 'qcajtj',
label: '侵财案件统计',
index: '5',
className: 'iconfont iconjingzongxinxi',
children: [
{
id: 'qcajtj',
label: '盗抢骗犯罪统计表',
index: '5-1',
},
{
id: 'dqfztjb',
label: '盗窃犯罪统计表',
index: '5-2',
},
{
id: 'lqfztjb',
label: '两抢犯罪统计表',
index: '5-3',
},
]
},
]
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: "dqfztjb",
components: {
rightContent,
},
data() {
return {
name: "dqfztjb",
cxFormData: {
cxSj: "",
unitcode: "",
},
urls: "http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FQCAJTJB%252Fdqfztjb.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: "lqfztjb",
components: {
rightContent,
},
data() {
return {
name: "lqfztjb",
cxFormData: {
cxSj: "",
unitcode: "",
},
urls: 'http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FQCAJTJB%252Flqfztjb.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: "qcajtj",
components: {
rightContent,
},
data() {
return {
name: "qcajtj",
cxFormData: {
cxSj: "",
unitcode: "",
},
urls: 'http://10.100.17.124:9080/webroot/decision/view/report?viewlet=XZKHTJ%252FQCAJTJB%252Fctdqpfztjb.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>
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