Commit c09471a9 by 米嘉伟

分页

parent 70d209f9
......@@ -516,7 +516,6 @@ export default {
byzs: '1000',// 该类型下本月总数
sytsArr: '',// 剩余条数
syts: '300', //该类型下剩余条数
color: 'color_a0e7db', // 进度条颜色
bcxh: '1', //本次消耗
checkAll_mbljk: false, // 目标逻辑库全选
checkedTargets: [], // 选定目标逻辑库
......@@ -592,8 +591,12 @@ export default {
if (newVal == true) {
this.searchZTS()
this.searchsytsArr()
this.getHpseqno()
this.bcxh = this.rowData.length;
if (this.type == 'aj') {
console.log('案件数据开始获取')
this.getHpseqno()
this.fingerscountArr()
}
}
},
dialogVisible (val) {
......@@ -696,39 +699,6 @@ export default {
}
},
methods: {
// // 发查询指位信息
// getHpseqno () {
// let reqParam = {
// barcodes: '', // 条码号
// };
// let barcodeArr = []
// for (let i = 0; i < this.rowData.length; i++) {
// barcodeArr.push(this.rowData[i].barcode)
// }
// reqParam.barcodes = barcodeArr
// this.$axios
// .post("/api/casestore/getHpseqno", reqParam)
// .then(response => {
// if (response.data.code === 0) {
// let arr = response.data.ret
// if (this.rowData.length == 1) {
// for (var item in arr) {
// this.cities = arr[item]
// console.log("指位返回列表===>", item, arr);
// }
// } else {
// console.log("多条案件")
// for (var item in arr) {
// this.cities = arr[item]
// console.log("指位返回列表===>", item, arr);
// }
// }
// } else {
// this.$message.error(response.data.message);
// }
// });
// },
// 发查询指位信息
getHpseqno () {
let reqParam = {
......@@ -1064,6 +1034,27 @@ export default {
}
});
},
// 获取多条案件指位个数
fingerscountArr () {
let fingerscountArr = [];
for (let i = 0; i < this.rowData.length; i++) {
fingerscountArr.push(this.rowData[i].id)
};
this.$axios
.post("/api/casestore/fingerscount", { cids: fingerscountArr })
.then(response => {
if (response.data.code === 0) {
this.bcxh = response.data.ret;
// this.sytsArr = response.data.ret
// this.syts = this.sytsArr[0].level1
console.info("555发查询剩余条数返回列表===>", response);
} else {
// this.$message.error(response.data.message);
this.$message.error('获取发查询剩余条数失败');
}
});
},
}
};
</script>
......
......@@ -29,12 +29,13 @@
prop="ysxtAsjbh"
>
<el-input
class="inputBh"
v-model.trim="ruleForm.ysxtAsjbh"
placeholder="请输入案事件编号"
maxlength="23"
maxlength="22"
show-word-limit
clearable
></el-input>
><template slot="prepend">A</template></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -361,7 +362,7 @@ export default {
}
},
methods: {
disabledDate(a) {
disabledDate (a) {
if (a.getTime() > new Date().getTime()) {
return true;
} else {
......@@ -375,6 +376,8 @@ export default {
caseBase: ""
}
reqParam.caseBase = this.ruleForm
let defaultArr = 'A'
reqParam.personDo.ysxtAsjbh = defaultArr.concat(this.ruleForm.ysxtAsjbh)
this.$axios
.post("/api/casestore/caseadd", reqParam)
.then(response => {
......@@ -412,6 +415,16 @@ export default {
</script>
<style lang="scss" scoped>
.inputBh {
/deep/.el-input-group__prepend {
width: 40px;
text-align: center;
padding: 0;
}
/deep/.el-input__inner {
width: 224px;
}
}
// 滚动条的宽度
/deep/ .el-form::-webkit-scrollbar {
width: 6px; // 横向滚动条
......
<template>
<el-container
<div
class="RAList"
direction="vertical"
>
......@@ -70,7 +70,7 @@
<div class="search sjxz">
<div class="item">时间选择:</div>
<el-date-picker
v-model="value1"
v-model="startEndDate"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
......@@ -150,7 +150,7 @@
<!-- <div class='search sjxz'>
<div class='item'> 时间选择:</div>
<el-date-picker
v-model="value1"
v-model="startEndDate"
type="datetimerange"
start-placeholder="开始日期"
end-placeholder="结束日期"
......@@ -227,7 +227,7 @@
<!-- 五 -->
<div v-if="showType == 1">
<el-table
max-height="500"
max-height="700"
ref="multipleTable"
:data="tableDate1"
tooltip-effect="dark"
......@@ -241,38 +241,38 @@
>
<el-table-column
type="selection"
width="auto"
width="70"
v-if="isSelected"
>
</el-table-column>
<el-table-column
prop="taskNumber"
label="任务号"
width="200"
width="350"
>
</el-table-column>
<el-table-column
prop="fileName"
label="文件名"
width="300"
width="400"
>
</el-table-column>
<el-table-column
prop="barcode"
label="人员编号/案事件编号"
width="300"
width="350"
>
</el-table-column>
<el-table-column
prop="dataType"
label="类型"
width="auto"
width="200"
>
</el-table-column>
<el-table-column
prop="logicDatabase"
label="逻辑分库"
width="auto"
width="200"
>
</el-table-column>
<el-table-column
......@@ -284,7 +284,7 @@
<el-table-column
fixed="right"
label="操作"
width="100"
width="200"
>
<template slot-scope="scope">
<div class="ops">
......@@ -348,7 +348,7 @@
<el-table
v-if="showType == 2"
max-height="500"
max-height="700"
ref="multipleTable"
:data="tableDate2"
tooltip-effect="dark"
......@@ -369,25 +369,25 @@
<el-table-column
prop="taskNumber"
label="任务号"
width="200"
width="350"
>
</el-table-column>
<el-table-column
prop="fileName"
label="文件名"
width="300"
width="400"
>
</el-table-column>
<el-table-column
prop="queryType"
label="查询类型"
width="auto"
width="200"
>
</el-table-column>
<el-table-column
prop="barcode"
label="人员编号/案事件编号"
width="300"
width="350"
>
<template slot-scope="scope">
<div>{{ scope.row.srcBarcode }}</div>
......@@ -397,7 +397,7 @@
<el-table-column
prop="logicDatabase"
label="逻辑分库"
width="auto"
width="200"
>
</el-table-column>
<el-table-column
......@@ -409,7 +409,7 @@
<el-table-column
fixed="right"
label="操作"
width="100"
width="200"
>
<template slot-scope="scope">
<div class="ops">
......@@ -470,52 +470,70 @@
</el-table-column>
</el-table>
<!-- 六 -->
<div class="block">
<span class="record">共{{ reqParam.page.total }}条记录 第{{ reqParam.page.currPage }}/{{
Tpage
}}页</span>
<div
class="block"
v-if="showType == 1"
>
<span class="record">共{{ total1 }}条记录 第{{ currPage1 }}/{{Tpage1}}页</span>
<el-pagination
class="paging"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="reqParam.page.currPage"
@size-change="handleSizeChange1"
@current-change="handleCurrentChange1"
:current-page="currPage1"
:page-sizes="[10, 20, 30, 40]"
background
layout="prev, pager, next"
:total="reqParam.page.total"
:total="total1"
>
</el-pagination>
<!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" background layout="sizes, prev, pager, next" :total="tableDataLength">
</el-pagination> -->
<!-- 添加到队列弹窗 -->
<tjddl
:isShowTjddl="isShowTjddl"
:rowData="rowData"
:type="type"
@closeTjddl="closeTjddl"
></tjddl>
<!-- 复制数据弹窗 -->
<fztm
:isShowFztm="isShowFztm"
:rowData="rowData"
:type="type"
@closeFztm="closeFztm"
></fztm>
<!-- 发查询弹窗 -->
<fcx
:isShowFcx="isShowFcx"
:rowData="rowData"
:type="type"
@closeFcx="closeFcx"
</div>
<div
class="block"
v-if="showType == 2"
>
<span class="record">共{{ total2 }}条记录 第{{ currPage2 }}/{{Tpage2}}页</span>
<el-pagination
class="paging"
@size-change="handleSizeChange2"
@current-change="handleCurrentChange2"
:current-page="currPage2"
:page-sizes="[10, 20, 30, 40]"
background
layout="prev, pager, next"
:total="total2"
>
</fcx>
</el-pagination>
</div>
</el-container>
<!-- 添加到队列弹窗 -->
<tjddl
:isShowTjddl="isShowTjddl"
:rowData="rowData"
:type="type"
@closeTjddl="closeTjddl"
></tjddl>
<!-- 复制数据弹窗 -->
<fztm
:isShowFztm="isShowFztm"
:rowData="rowData"
:type="type"
@closeFztm="closeFztm"
></fztm>
<!-- 发查询弹窗 -->
<fcx
:isShowFcx="isShowFcx"
:rowData="rowData"
:type="type"
@closeFcx="closeFcx"
>
</fcx>
</div>
</template>
<script>
import tjddl from "../AllPersonnelBase/modules/tjddl.vue"; // 添加到队列弹窗
import fztm from "../AllPersonnelBase/modules/fztm.vue"; // 复制数据弹窗
import fcx from "../AllPersonnelBase/modules/fcx.vue"; // 发查询弹窗
import moment from "moment";
export default {
name: "RAList",
components: {
......@@ -547,7 +565,7 @@ export default {
],
status: null, // 入库状态
logicDatabase: "", // 逻辑库
value1: "", // 时间
startEndDate: null, // 时间
taskNumber: "", // 任务号
showType: "1", // 1:人案 2:比中
queryType: "", // 比中类型
......@@ -573,6 +591,17 @@ export default {
tableDate1: [], // 人员列表数据
tableDate2: [], // 人员列表数据
total1: null, // 总条数
total2: null, // 总条数
pageSize: 10, //当前选择要显示的条数
currPage1: 1, // 当前在第几页
currPage2: 1, // 当前在第几页
sendTimeStart: "", // 开始时间
sendTimeEnd: "", // 结束时间
isSelected: false, // 是否批量操作
isShowTjddl: false, // 添加到队列
isShowFztm: false, //复制条码
......@@ -583,15 +612,11 @@ export default {
reqParam: {
// 请求参数
page: {
total: 0, //表格条数
total1: 0, //表格条数
pageSize: 10, //当前选择要显示的条数
currPage: 1, // 当前在第几页
},
personStoreCustomSearch: {
ysxtAsjxgrybh: "", // 搜索框内容
searchOptions: 3, // 默认搜索方式
checkboxQuery: [], //滚动平面等筛选条件
currPage1: 1, // 当前在第几页
},
},
multipleSelection: [], // 表单选择项目
......@@ -609,7 +634,7 @@ export default {
methods: {
// 获取全部人员列表请求
search () {
console.log(this.value1, 123321)
this.getParam()
let reqUrl = null;
let reqParam = null;
if (this.showType == 1) {
......@@ -620,6 +645,10 @@ export default {
status: null, // 状态
barcode: "", // 条码号
logicDatabase: "", // 逻辑分库
sendTimeStart: null, // 开始时间
sendTimeEnd: null, // 结束时间
offSet: null, // 当前页数
limit: null // 当页条数
};
reqParam.taskNumber = this.taskNumber;
reqParam.dataType = Number(this.dataType);
......@@ -627,6 +656,10 @@ export default {
reqParam.status = this.status != null ? Number(this.status) : null;
reqParam.barcode = this.barcode;
reqParam.logicDatabase = this.logicDatabase;
reqParam.sendTimeStart = this.sendTimeStart = this.sendTimeStart;
reqParam.sendTimeEnd = this.sendTimeEnd = this.sendTimeStart;
reqParam.offSet = this.currPage1;
reqParam.limit = this.pageSize
} else if (this.showType == 2) {
// console.log('bizhong bizhong ')
reqUrl = "/api/record/import/affirm/search";
......@@ -635,11 +668,15 @@ export default {
barcode: "", // 条码号
logicDatabase: "", // 逻辑分库
queryType: "", // 类型
offSet: null, // 当前页数
limit: null // 当页条数
};
reqParam.status = this.status != null ? Number(this.status) : null;
reqParam.barcode = this.barcode;
reqParam.logicDatabase = this.logicDatabase;
reqParam.queryType = this.queryType;
reqParam.offSet = this.currPage2;
reqParam.limit = this.pageSize
}
// console.info("请求===>", this.reqParam);
this.$axios.post(reqUrl, reqParam).then((response) => {
......@@ -647,16 +684,34 @@ export default {
if (response.data.code === 0) {
if (this.showType == 1) {
this.tableDate1 = response.data.ret.pcImportRecordChildren;
this.total1 = response.data.ret.total;
console.log('total', this.total1)
} else if (this.showType == 2) {
this.tableDate2 = response.data.ret.affirmImportRecordChildren;
this.total2 = response.data.ret.total;
}
// this.reqParam.page.total = response.data.ret.total;
console.info("查询结果===>", this.tableDate);
// this.reqParam.page.total1 = response.data.ret.total1;
console.info("查询结果1===>", this.tableDate1);
console.info("查询结果2===>", this.tableDate2);
} else {
this.$message.error(response.data.message);
}
});
},
// 格式化参数
getParam () {
if (this.startEndDate !== null) {
this.sendTimeStart = moment(
this.startEndDate[0]
).format("YYYY-MM-DD");
this.sendTimeEnd = moment(
this.startEndDate[1]
).format("YYYY-MM-DD");
} else {
this.sendTimeStart = null
this.sendTimeEnd = null
}
},
// 复制条码号 获取选中条码值
getBarcode () {
let self = this;
......@@ -775,18 +830,37 @@ export default {
* @param {*} pageSize 每页条数
* @return {*}
*/
handleSizeChange (pageSize) {
this.reqParam.page.pageSize = pageSize;
console.log("每页条数", this.reqParam.page.pageSize);
handleSizeChange1 (pageSize) {
this.pageSize = pageSize;
console.log("每页条数", this.pageSize);
},
/**
* @description: currentPage 改变时会触发
* @param {*} page 当前页
* @return {*}
*/
handleCurrentChange (page) {
this.reqParam.page.currPage = page;
console.log("当前页", this.reqParam.page.currPage);
handleCurrentChange1 (page) {
this.currPage1 = page;
console.log("当前页", this.currPage1);
this.search();
},
/**
* @description: pageSize 改变时会触发
* @param {*} pageSize 每页条数
* @return {*}
*/
handleSizeChange2 (pageSize) {
this.pageSize = pageSize;
console.log("每页条数", this.pageSize);
},
/**
* @description: currentPage 改变时会触发
* @param {*} page 当前页
* @return {*}
*/
handleCurrentChange2 (page) {
this.currPage1 = page;
console.log("当前页", this.currPage1);
this.search();
},
/**
......@@ -811,9 +885,14 @@ export default {
* @param {*}
* @return {*}
*/
Tpage () {
Tpage1 () {
return (
Math.floor(this.total1 / this.pageSize) + 1
);
},
Tpage2 () {
return (
Math.floor(this.reqParam.page.total / this.reqParam.page.pageSize) + 1
Math.floor(this.total2 / this.pageSize) + 1
);
},
},
......
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