Commit 39d14d43 by 张超军

Merge branch 'dev_zwpt' of http://39.99.224.27:9022/changchao/founder_vue into dev_zwpt

parents a8a74266 69da340d
VUE_APP_AUTO_WRITE = dev VUE_APP_AUTO_WRITE = dev
\ No newline at end of file VUE_APP_BB_IP = http://192.168.128.101:8075/
\ No newline at end of file
VUE_APP_AUTO_WRITE = pro VUE_APP_AUTO_WRITE = pro
\ No newline at end of file VUE_APP_BB_IP = http://192.168.128.101:8075/
\ No newline at end of file
...@@ -23,6 +23,7 @@ const cjxxmb = [ ...@@ -23,6 +23,7 @@ const cjxxmb = [
{ {
label: "采集方式:", label: "采集方式:",
type: "select", type: "select",
id: "code",
selectList: [ selectList: [
{ {
name: "捺印指纹", name: "捺印指纹",
...@@ -33,21 +34,21 @@ const cjxxmb = [ ...@@ -33,21 +34,21 @@ const cjxxmb = [
value: "2", value: "2",
}, },
], ],
id: "code",
} }
] ]
const ajxxmb = [ const ajxxmb = [
{ {
label: "提取时间:", label: "提取时间:",
type: "dateValue", type: "dateValue",
fomat: "yyyy-MM", fomat: "yyyy-MM-DD",
id: "tqsj", id: "tqsj",
placeholder: "选择日期", placeholder: "选择日期",
}, },
{ {
label: "入库时间:", label: "入库时间:",
type: "dateValue", type: "dateValue",
fomat: "yyyy-MM", fomat: "yyyy-MM-DD",
id: "rksj", id: "rksj",
placeholder: "选择日期", placeholder: "选择日期",
}, },
...@@ -57,12 +58,12 @@ const ajxxmb = [ ...@@ -57,12 +58,12 @@ const ajxxmb = [
id: "unitcode", id: "unitcode",
placeholder: "选择日期", placeholder: "选择日期",
}, },
{ // {
label: "采集方式:", // label: "采集方式:",
type: "input", // type: "input",
id: "cjfs", // id: "cjfs",
placeholder: "请输入采集方式", // placeholder: "请输入采集方式",
}, // },
{ {
label: "案事件编号:", label: "案事件编号:",
type: "input", type: "input",
......
...@@ -88,8 +88,11 @@ ...@@ -88,8 +88,11 @@
<div class="label"> <div class="label">
<span>采集信息统计模版</span> <span>采集信息统计模版</span>
</div> </div>
<div class="btnBox"> <div
<div>可视化切换</div> class="btnBox"
v-if="tpl==1"
>
<div @click='ksh'>可视化切换</div>
<div>打印</div> <div>打印</div>
<div>导出</div> <div>导出</div>
</div> </div>
...@@ -117,6 +120,7 @@ export default { ...@@ -117,6 +120,7 @@ export default {
}, },
data () { data () {
return { return {
status: 1, // 可视化切换 1或2
props: { props: {
value: "code", value: "code",
label: "key", label: "key",
...@@ -125,7 +129,7 @@ export default { ...@@ -125,7 +129,7 @@ export default {
emitPath: false, emitPath: false,
}, },
queryParams: { queryParams: {
sj: "", sj: '',
unitcode: "", unitcode: "",
type: [], type: [],
}, },
...@@ -148,7 +152,7 @@ export default { ...@@ -148,7 +152,7 @@ export default {
formTemplate: cjxxmb, formTemplate: cjxxmb,
tpl: "1", tpl: "1",
fr_cpt_url: fr_cpt_url:
"http://192.168.128.106:8075/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=1&unitcode=%27540000000000%27&sj=%272022-01%27#/report", `${process.env.VUE_APP_BB_IP}/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=1&unitcode=%27540000000000%27&sj=%272022-01%27#/report`,
}; };
}, },
mounted () { mounted () {
...@@ -162,13 +166,112 @@ export default { ...@@ -162,13 +166,112 @@ export default {
this.formTemplate = cjxxmb; this.formTemplate = cjxxmb;
} else if (val == 2) { } else if (val == 2) {
this.formTemplate = ajxxmb; this.formTemplate = ajxxmb;
this.queryParams = {
tqsj: "",
rksj: "",
unitcode: '',
// cjfs: '',
asjbh: '',
kybh: '',
}
} else if (val == 3) { } else if (val == 3) {
this.formTemplate = dsbzmb; this.formTemplate = dsbzmb;
this.queryParams = {
qzsj: "",
cxlx: "",
ytmh: '',
mbtmh: '',
rddw: '',
}
} }
console.log(val); console.log(val);
this.handleQuery()
console.log(this.queryParams, 'queryParamsqueryParamsqueryParams')
}, },
handleQuery () { handleQuery () {
console.log(this.params, this.checked); 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')
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.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.fr_cpt_url, ' this.fr_cpt_url')
},
ksh () {
this.status == 1 ? this.status = 2 : this.status = 1
this.handleQuery()
}, },
}, },
computed: { computed: {
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
</div> </div>
</div> </div>
<el-tooltip <el-tooltip
:ref="'ryTooltipP'+scope.row.logicId" :ref="'ryTooltipP'+scope.row.logicId"
class="item" class="item"
...@@ -50,7 +49,8 @@ ...@@ -50,7 +49,8 @@
v-if="scope.row.groups && scope.row.groups.length > 4"> v-if="scope.row.groups && scope.row.groups.length > 4">
<span style="margin-left: 5px" <span style="margin-left: 5px"
@mouseenter.stop="showMoreYhView(scope.$index)">...</span> @mouseenter.stop="showMoreYhView(scope.$index)"
@mouseout.stop="showMoreYhView(scope.$index,true)">...</span>
<div slot="content" class="tooTipBtn" @mouseover="showMoreYhView(scope.$index)" <div slot="content" class="tooTipBtn" @mouseover="showMoreYhView(scope.$index)"
@mouseleave="hideMoreYhView()"> @mouseleave="hideMoreYhView()">
...@@ -215,13 +215,14 @@ export default { ...@@ -215,13 +215,14 @@ export default {
this.width6 = (this.width6 * w2) / w1 this.width6 = (this.width6 * w2) / w1
// this.initTestData() // this.initTestData()
this.getList() // this.getList()
}, },
mounted() { mounted() {
let _that = this let _that = this
document.addEventListener('click', function (e) { document.addEventListener('click', function (e) {
_that.hideMoreYhView(false) _that.hideMoreYhView(false)
}) })
this.getList()
}, },
methods: { methods: {
moveChildView() { moveChildView() {
...@@ -231,7 +232,8 @@ export default { ...@@ -231,7 +232,8 @@ export default {
this.isInChildView = false this.isInChildView = false
this.hideMoreYhView() this.hideMoreYhView()
}, },
showMoreYhView(index) { showMoreYhView(index, openTimeOut = false) {
var _that = this
this.isInParentView = true this.isInParentView = true
// logger.info('tooltipParentEnter', 'tooltipParentEnter-' + index) // logger.info('tooltipParentEnter', 'tooltipParentEnter-' + index)
if (this.curMoreYhViewIndex !== index && this.curMoreYhViewIndex >= 0) { if (this.curMoreYhViewIndex !== index && this.curMoreYhViewIndex >= 0) {
...@@ -239,7 +241,20 @@ export default { ...@@ -239,7 +241,20 @@ export default {
} }
this.tableDate[index].disabled = true this.tableDate[index].disabled = true
this.curMoreYhViewIndex = index this.curMoreYhViewIndex = index
// logger.info('showMoreYhView-tableDate', this.tableDate) if (openTimeOut) {
this.isInParentView = false
setTimeout(function () {
if (_that.isInChildView || _that.isInParentView) {
return
}
if (_that.curMoreYhViewIndex >= 0) {
_that.tableDate[_that.curMoreYhViewIndex].disabled = false
}
this.curMoreYhViewIndex = -1
_that.isInParentView = false
_that.isInChildView = false
}, 200)
}
}, },
hideMoreYhView(isDelay = true) { hideMoreYhView(isDelay = true) {
let _that = this let _that = this
......
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<!-- 人员逻辑库 --> <!-- 人员逻辑库 -->
<ry-xtljfk-view <ry-xtljfk-view
ref="ryXtfk" ref="ryXtfk"
v-show="isPerson" v-if="isPerson"
@openBj="openBj" @openBj="openBj"
@openGzl="openGzl" @openGzl="openGzl"
@openSjgl="openSjgl" /> @openSjgl="openSjgl" />
<!-- 案件逻辑库 --> <!-- 案件逻辑库 -->
<aj-xtljfk-view <aj-xtljfk-view
ref="ajXtfk" ref="ajXtfk"
v-show="!isPerson" v-if="!isPerson"
@openBj="openBj" @openBj="openBj"
@openGzl="openGzl" @openGzl="openGzl"
@openSjgl="openSjgl" /> @openSjgl="openSjgl" />
...@@ -85,11 +85,11 @@ export default { ...@@ -85,11 +85,11 @@ export default {
methods: { methods: {
toggleView(state) {// true: 显示人员逻辑分库 false :显示案件逻辑分库 toggleView(state) {// true: 显示人员逻辑分库 false :显示案件逻辑分库
this.isPerson = state this.isPerson = state
if (this.isPerson) { // if (this.isPerson) {
this.$refs.ryXtfk.loadData() // this.$refs.ryXtfk.loadData()
} else { // } else {
this.$refs.ajXtfk.loadData() // this.$refs.ajXtfk.loadData()
} // }
}, },
addFk() { // 新增分库 addFk() { // 新增分库
this.isAddFk = true this.isAddFk = true
......
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