Commit 69da340d by 米嘉伟

报表参数对接

parent e35ee5fd
......@@ -23,6 +23,7 @@ const cjxxmb = [
{
label: "采集方式:",
type: "select",
id: "code",
selectList: [
{
name: "捺印指纹",
......@@ -33,21 +34,21 @@ const cjxxmb = [
value: "2",
},
],
id: "code",
}
]
const ajxxmb = [
{
label: "提取时间:",
type: "dateValue",
fomat: "yyyy-MM",
fomat: "yyyy-MM-DD",
id: "tqsj",
placeholder: "选择日期",
},
{
label: "入库时间:",
type: "dateValue",
fomat: "yyyy-MM",
fomat: "yyyy-MM-DD",
id: "rksj",
placeholder: "选择日期",
},
......@@ -57,12 +58,12 @@ const ajxxmb = [
id: "unitcode",
placeholder: "选择日期",
},
{
label: "采集方式:",
type: "input",
id: "cjfs",
placeholder: "请输入采集方式",
},
// {
// label: "采集方式:",
// type: "input",
// id: "cjfs",
// placeholder: "请输入采集方式",
// },
{
label: "案事件编号:",
type: "input",
......
......@@ -88,7 +88,10 @@
<div class="label">
<span>采集信息统计模版</span>
</div>
<div class="btnBox">
<div
class="btnBox"
v-if="tpl==1"
>
<div @click='ksh'>可视化切换</div>
<div>打印</div>
<div>导出</div>
......@@ -126,7 +129,7 @@ export default {
emitPath: false,
},
queryParams: {
sj: "",
sj: '',
unitcode: "",
type: [],
},
......@@ -158,46 +161,113 @@ export default {
this.formTemplate = cjxxmb;
} else if (val == 2) {
this.formTemplate = ajxxmb;
this.queryParams = {
tqsj: "",
rksj: "",
unitcode: '',
// cjfs: '',
asjbh: '',
kybh: '',
}
} else if (val == 3) {
this.formTemplate = dsbzmb;
this.queryParams = {
qzsj: "",
cxlx: "",
ytmh: '',
mbtmh: '',
rddw: '',
}
}
console.log(val);
this.handleQuery()
console.log(this.queryParams, 'queryParamsqueryParamsqueryParams')
},
handleQuery () {
// 采集信息统计模板
let url1 = `${process.env.VUE_APP_BB_IP}/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=${this.status}&unitcode=%27${this.queryParams.unitcode}%27&sj=%27${this.queryParams.sj}%27#/report`
// http://localhost:8075/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=2&unitcode=%27540000000000%27&sj=%272022-01%27#/report
// 案件信息统计模板
let url2 = `${process.env.VUE_APP_BB_IP}/webroot/decision/view/report?viewlet=aj.cpt&`
// http://localhost:8075/webroot/decision/view/report?viewlet=aj.cpt&page=1&limit=10&asjbh=%27%27&xckybh=%27%27&tqkssj=%272021-12-12%27&tqjssj=%272023-12-29%27&rkkssj=%272021-01-01%27&rkjssj=%272023-01-01%27&rkkssj&unitcode=%27540000000000%27
if (this.tpl == 1) {
// 采集信息统计模板
let url1 = `${process.env.VUE_APP_BB_IP}webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=${this.status}`
if (this.queryParams.unitcode) {
url1 += `&unitcode=%27${this.queryParams.unitcode}%27`
} else {
url1 += `&unitcode=%27540000000000%27`
// this.queryParams.unitcode = 540000000000
}
if (this.queryParams.sj) {
url1 += `&sj=%27${this.queryParams.sj}%27`
} else {
var now = new Date();
var year = now.getFullYear(); //得到年份
var month = now.getMonth(); //得到月份
var defaultDate = `${year}-${month}`;
url1 += `&sj=%27${defaultDate}%27`
this.queryParams.sj = defaultDate
}
url1 += `#/report`
this.fr_cpt_url = url1;
} else if (this.tpl == 2) {
// 案件信息统计模板
let url2 = `${process.env.VUE_APP_BB_IP}webroot/decision/view/report?viewlet=aj.cpt`
console.log(this.queryParams, 'this.queryParamsthis.queryParamsthis.queryParams')
// 城市比中明细复核统计
let url3 = `${process.env.VUE_APP_BB_IP}/webroot/decision/view/report?viewlet=lt.cpt&`
// http://localhost:8075/webroot/decision/view/report?viewlet=lt.cpt&querytype=%271%27&unitcode=%27540000000000%27&startTime=%272021-01-01%27&endTime=%272023-01-01%27&srcbarcode=%27%27&destbarcode=%27%27#/report&op=read
if (this.queryParams.asjbh) {
url2 += `&asjbh=%27${this.queryParams.asjbh}%27`
}
if (this.queryParams.tqsj) {
url2 += `&tqkssj=%27${this.queryParams.tqsj[0]}%27&tqjssj=%27${this.queryParams.tqsj[1]}%27`
}
if (this.queryParams.rksj) {
url2 += `&rkkssj=%27${this.queryParams.rksj[0]}%27&rkjssj=%27${this.queryParams.rksj[1]}%27`
}
if (this.queryParams.unitcode) {
url2 += `&unitcode=%27${this.queryParams.unitcode}%27`
}
if (this.tpl == 1) {
this.fr_cpt_url = url1;
} else if (this.tpl == 2) {
if (this.queryParams.kybh) {
url2 += `&xckybh=%27${this.queryParams.kybh}%27`
}
this.fr_cpt_url = url2;
} else if (this.tpl == 3) {
// 城市比中明细复核统计
let url3 = `${process.env.VUE_APP_BB_IP}webroot/decision/view/report?viewlet=lt.cpt&`
// http://localhost:8075/webroot/decision/view/report?viewlet=lt.cpt&srcbarcode=%27%27&destbarcode=%27%27#/report&op=read
if (this.queryParams.cxlx) {
url3 += `&querytype=%27${this.queryParams.cxlx}%27`
}
if (this.queryParams.rddw) {
url3 += `&unitcode=%27${this.queryParams.rddw}%27`
}
if (this.queryParams.qzsj) {
url3 += `&startTime=%27${this.queryParams.qzsj[0]}%27&endTime=%27${this.queryParams.qzsj[1]}%27`
}
if (this.queryParams.ytmh) {
url3 += `&srcbarcode=%27${this.queryParams.ytmh}%27`
}
if (this.queryParams.mbtmh) {
url3 += `&destbarcode=%27${this.queryParams.mbtmh}%27`
}
url3 += `#/report&op=read`
this.fr_cpt_url = url3;
}
console.log(this.queryParams, 'this.queryParams')
console.log(this.params, this.checked, 'this.params');
console.log(this.fr_cpt_url, ' this.fr_cpt_url')
},
ksh () {
this.status == 1 ? this.status = 2 : this.status = 1
this.handleQuery()
}
},
},
computed: {
params () {
......
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