Commit 671e0ff5 by 西瓜

新型黑恶, 个案分页

parent 46ca22f4
......@@ -71,3 +71,8 @@ export const getTqGaShr = params =>
// 案件审核审批提交
export const ajsp = params => post(`${base.alyIP}/tldjbxx/ajsp`, params)
// 犯罪嫌疑人 受害人分页
export const tqRyFyList = params =>
post(`${base.alyIP}/tldjbxx/tqRyFyList`, params)
......@@ -57,7 +57,7 @@
>
<template slot-scope="scope">
<div
v-if="index == 0"
v-if="index == 0 && !xx"
@click="goDetail(scope.row, 'xyrDetailInfor')"
style="
cursor: pointer;
......@@ -153,7 +153,7 @@
>
<template slot-scope="scope">
<div
v-if="index == 0"
v-if="index == 0 && !xx"
@click="goDetail(scope.row, 'shrDetail')"
style="
cursor: pointer;
......@@ -213,9 +213,7 @@
<script>
import FormGroupCommonPage from './caseGroupConfig.vue'
import {
deleteAsjFlws
} from '@/api/case/caseInform.js'
import { deleteAsjFlws } from '@/api/case/caseInform.js'
import {
getTldGaxxAll,
addGaxx,
......@@ -225,7 +223,8 @@ import {
import {
getTldShrxxList,
deleteTldShrxx,
tqtldshrxx
tqtldshrxx,
tqRyFyList
} from '@/api/specificProject/shr.js'
import {
getXyrList,
......@@ -241,6 +240,7 @@ export default {
},
data () {
return {
typeFy: '',
loading2: false,
formLabelAlign: {},
str: 'gaxx',
......@@ -564,10 +564,10 @@ export default {
//犯罪嫌疑人
fzxyrList: {
tableList: [
{
label: '案件编号',
prop: 'xxzjbh'
},
// {
// label: '案件编号',
// prop: 'xxzjbh'
// },
{
label: '姓名',
prop: 'xm'
......@@ -897,7 +897,7 @@ export default {
})
} else {
// 采集
this.loadingLr = false
// this.loadingLr = false
params.append('jbxxzjbh', self.jbxxzjbh)
addGaxx(params).then(res => {
if (res.code == 200) {
......@@ -910,8 +910,16 @@ export default {
type: 'success',
callback: () => {
debugger
window.opener.location.reload()
// window.opener.location.reload()
window.close()
this.$router.pushToTab({
path: '/zxCase',
query: {
xxzjbh: res.data.xxzjbh,
tldbh: this.$route.query.xxzjbh,
flag: 0
}
})
this.loadingLr = false
}
})
......@@ -1285,7 +1293,7 @@ export default {
self.$set(self.formLabelAlign, 'editing', true)
self.$forceUpdate()
// setTimeout(() => {
self.loading = false
self.loading = false
// }, 1000)
self.loadingLr = false
// this.isEmpty()
......@@ -1425,16 +1433,78 @@ export default {
},
//当前页改变事件
handleCurrentChange (val, type) {
if (type == 'xyr') {
this.fzxyrList.page.currentPage = val
this.$set(this.fzxyrList, 'loading', true)
this.getZbfzxyr()
} else if (type == 'shr') {
this.shrList.page.currentPage = val
this.$set(this.shrList, 'loading', true)
this.getShr()
debugger
if (!this.xx) {
if (type == 'xyr') {
this.fzxyrList.page.currentPage = val
this.$set(this.fzxyrList, 'loading', true)
this.getZbfzxyr()
} else if (type == 'shr') {
this.shrList.page.currentPage = val
this.$set(this.shrList, 'loading', true)
this.getShr()
}
} else {
if (type == 'xyr') {
this.typeFy = 'xyr'
this.fzxyrList.shuju = []
this.fzxyrList.page.currentPage = val
this.$set(this.fzxyrList, 'loading', true)
this.tqRyFyListFy()
} else if (type == 'shr') {
this.typeFy = 'shr'
this.shrList.shuju = []
this.shrList.page.currentPage = val
this.$set(this.shrList, 'loading', true)
this.tqRyFyListShr()
}
}
},
// 提取的犯罪嫌疑人和受害人分页
tqRyFyListFy () {
var self = this
tqRyFyList({
asjbh: this.formLabelAlign.asjbh,
type: this.typeFy,
page: this.fzxyrList.page.currentPage,
rows: this.fzxyrList.page.pageSize
}).then(res => {
self.$set(self.fzxyrList.page, 'total', res.data.xyrListCount)
console.log(res)
var obj = {}
res.data.xyrList.forEach(item => {
this.fzxyrList.tableList.forEach(subItem => {
obj[subItem.prop] = item[subItem.prop]
})
this.fzxyrList.shuju.push(obj)
obj = {}
})
this.$set(this.fzxyrList, 'loading', false)
})
},
tqRyFyListShr () {
var self = this
tqRyFyList({
asjbh: this.formLabelAlign.asjbh,
type: this.typeFy,
page: this.shrList.page.currentPage,
rows: this.shrList.page.pageSize
}).then(res => {
self.$set(self.shrList.page, 'total', res.data.shrListCount)
console.log(res)
var obj = {}
res.data.shrList.forEach(item => {
this.shrList.tableList.forEach(subItem => {
obj[subItem.prop] = item[subItem.prop]
})
this.shrList.shuju.push(obj)
obj = {}
})
this.$set(this.shrList, 'loading', false)
})
},
//编辑
edit (scope, type) {
var query = {
......
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