diff --git a/src/views/enterpriseArchives/result.vue b/src/views/enterpriseArchives/result.vue index e9f6dff..2ed8761 100644 --- a/src/views/enterpriseArchives/result.vue +++ b/src/views/enterpriseArchives/result.vue @@ -29,10 +29,19 @@
{{ item.companyAddress }}
+
+ 人员: +
- 人员:   车辆: + 车辆:
+
+ + +
检索历史
@@ -57,10 +66,12 @@ export default { return { numList: [], totalNum: '', - isShow: false, + // isShow: false, regex: {}, total1: this.total, resultList1: [], + pageNum: 1, + pageSize: 10, historyList1: this.historyList, modifiedText: this.searchVal } @@ -92,6 +103,17 @@ export default { return item }) }, + handleSizeChange(val) { + console.log(`每页 ${val} 条`); + this.pageNum = 1; + this.pageSize = val; + this.showResult(this.modifiedText) + }, + handleCurrentChange(val) { + console.log(`当前页: ${val}`); + this.pageNum = val; + this.showResult(this.modifiedText) + }, goArchives(val) { console.log(val, 'val'); this.$router.push({ @@ -100,18 +122,19 @@ export default { }) }, showResult(val) { - console.log(!val.length, val.length); - if (!val.length) { + this.modifiedText = val ? val : this.modifiedText + //console.log(!val.length, val.length); + if (!this.modifiedText.length) { this.$message.warning('请输入要查询的关键词') return } - this.modifiedText = val - searchList({ searchValue: val }).then(res => { + + searchList({ searchValue: this.modifiedText }).then(res => { if (res.total || res.data.length) { this.$set(this, 'resultList1', res.data) console.log(this.resultList1, 'this.resultList1'); this.total1 = res.total - this.isShow = true + //this.isShow = true this.gethistoryList() this.checkKeyWords() } else {