|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-09-16 11:27:35
|
|
* @Date: 2021-09-16 11:27:35
|
|
- * @LastEditTime: 2021-09-26 14:32:00
|
|
|
|
|
|
+ * @LastEditTime: 2021-09-28 08:57:08
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\PersonAdmin.vue
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\PersonAdmin.vue
|
|
@@ -19,7 +19,7 @@
|
|
<query-conditions :formItems="formItems" :propFormData="propFormData" @getQueryParams="handleQuery"></query-conditions>
|
|
<query-conditions :formItems="formItems" :propFormData="propFormData" @getQueryParams="handleQuery"></query-conditions>
|
|
|
|
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
- <new-table :title="title" :listData="listData" :tableItems="tableItems" :shows="tableShows">
|
|
|
|
|
|
+ <new-table :title="title" :listData="listData" :tableItems="tableItems" :shows="tableShows" :height="475">
|
|
<template v-slot:right>
|
|
<template v-slot:right>
|
|
<template v-if="btnSelected === 1">
|
|
<template v-if="btnSelected === 1">
|
|
<div>
|
|
<div>
|
|
@@ -39,6 +39,12 @@
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</new-table>
|
|
</new-table>
|
|
|
|
+ <table-footer
|
|
|
|
+ :totals="total"
|
|
|
|
+ :size="size"
|
|
|
|
+ @sizeChange="sizeChange"
|
|
|
|
+ @pageChange="pageChange">
|
|
|
|
+ </table-footer>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -46,6 +52,7 @@
|
|
import HeadBtns from 'components/bioSafety/Btns'
|
|
import HeadBtns from 'components/bioSafety/Btns'
|
|
import QueryConditions from 'components/bioSafety/QueryConditions'
|
|
import QueryConditions from 'components/bioSafety/QueryConditions'
|
|
import NewTable from 'components/newTable/NewTable'
|
|
import NewTable from 'components/newTable/NewTable'
|
|
|
|
+import TableFooter from "../../components/TableFooter"
|
|
|
|
|
|
import { formItems, propFormData } from './personAdmin/queryCondition.config'
|
|
import { formItems, propFormData } from './personAdmin/queryCondition.config'
|
|
import { titles, tableItems, tableShows } from './personAdmin/table.config'
|
|
import { titles, tableItems, tableShows } from './personAdmin/table.config'
|
|
@@ -55,7 +62,8 @@ export default {
|
|
components: {
|
|
components: {
|
|
HeadBtns,
|
|
HeadBtns,
|
|
QueryConditions,
|
|
QueryConditions,
|
|
- NewTable
|
|
|
|
|
|
+ NewTable,
|
|
|
|
+ TableFooter
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -70,7 +78,12 @@ export default {
|
|
title: '', // 传给 BioTable 组件的 title
|
|
title: '', // 传给 BioTable 组件的 title
|
|
listData: [], // 传给 BioTable 组件的表格展示的值 listData
|
|
listData: [], // 传给 BioTable 组件的表格展示的值 listData
|
|
tableItems: [], // 传给 BioTable 组件的表格的列表 tableItems
|
|
tableItems: [], // 传给 BioTable 组件的表格的列表 tableItems
|
|
- tableShows: {}
|
|
|
|
|
|
+ tableShows: {},
|
|
|
|
+ // table的翻页
|
|
|
|
+ total: 0,
|
|
|
|
+ size: 20,
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ selectId: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -92,6 +105,25 @@ export default {
|
|
// 获取查询条件
|
|
// 获取查询条件
|
|
handleQuery(params) {
|
|
handleQuery(params) {
|
|
console.log(params)
|
|
console.log(params)
|
|
|
|
+ },
|
|
|
|
+ // 修改size
|
|
|
|
+ sizeChange(val) {
|
|
|
|
+ this.size = val;
|
|
|
|
+ this.init();
|
|
|
|
+ },
|
|
|
|
+ // 修改页数
|
|
|
|
+ pageChange(val) {
|
|
|
|
+ this.pageNum= val;
|
|
|
|
+ this.init();
|
|
|
|
+ },
|
|
|
|
+ init() {
|
|
|
|
+ let params = {
|
|
|
|
+ pageNum: this.pageNum,
|
|
|
|
+ pageSize: this.size,
|
|
|
|
+ searchStr: this.keyword
|
|
|
|
+ }
|
|
|
|
+ console.log(params)
|
|
|
|
+ // 获取后端数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|