分页器修改

This commit is contained in:
2024-06-20 11:34:11 +08:00
parent 9fe9bd2e57
commit 03fdb1e000
6 changed files with 71 additions and 23 deletions

View File

@ -89,8 +89,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
@pagination="getList" /> :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> -->
<!-- 添加或修改机构类别对话框 --> <!-- 添加或修改机构类别对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
@ -221,6 +223,11 @@ export default {
this.screenChange() this.screenChange()
}, },
methods: { methods: {
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
// //
gettreelistitem() { gettreelistitem() {
agencyCategoryList().then((res) => { agencyCategoryList().then((res) => {

View File

@ -90,9 +90,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> @pagination="getList" /> -->
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
<!-- 添加或修改标准科室对照信息对话框 --> <!-- 添加或修改标准科室对照信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true"> <el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
@ -140,21 +141,19 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 科室弹框 --> <!-- 科室弹框 -->
<el-dialog title="" :visible.sync="innerVisibleshow" width="1000px" append-to-body <el-dialog title="" :visible.sync="innerVisibleshow" width="800px" append-to-body
:before-close="innerVisiblecancel"> :before-close="innerVisiblecancel">
<el-form ref="queryForm" :model="informationqueryParams" :rules="rules" label-width="80px" :inline="true"> <el-form ref="queryForm" :model="informationqueryParams" :rules="rules" label-width="80px" :inline="true">
<el-form-item label="科室名称" prop="departmentName" label-width="120"> <el-form-item label="科室名称" prop="departmentName" label-width="120">
<el-input v-model="informationqueryParams.departmentName" placeholder="请输入科室名称" clearable /> <el-input v-model="informationqueryParams.departmentName" placeholder="请输入科室名称" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading"> <el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading">
<el-table-column label="请选择" width="100" align="center"> <el-table-column label="请选择" width="150" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" style="width: 15px; height: 15px" <el-button type="primary" style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode" circle @click="nurseclick(scope.row)"></el-button> v-if="form.departmentId == scope.row.departmentCode" circle @click="nurseclick(scope.row)"></el-button>
@ -164,8 +163,10 @@
<el-table-column property="departmentName" label="科室名称" align="center" :show-overflow-tooltip="true"> <el-table-column property="departmentName" label="科室名称" align="center" :show-overflow-tooltip="true">
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum" <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> @pagination="getList" /> -->
<myPagination v-show="totaldepartment > 0" :total="totaldepartment" :pageSize="informationqueryParams.pageSize"
:indexFromWrap="informationqueryParams.pageNum" @updateCPage="updateCPagetwo"></myPagination>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -258,6 +259,16 @@ export default {
// console.log(this.departmentName, "0000"); // console.log(this.departmentName, "0000");
this.innerVisibleshow = false; this.innerVisibleshow = false;
}, },
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
updateCPagetwo(index, size) {
this.informationqueryParams.pageNum = index
this.informationqueryParams.pageSize = size
this.informationInfoinfo();
},
// //
informationInfoinfo() { informationInfoinfo() {
department(this.informationqueryParams).then((response) => { department(this.informationqueryParams).then((response) => {
@ -403,3 +414,8 @@ export default {
} }
}; };
</script> </script>
<style scoped>
::v-deep .el-dialog__body {
padding-bottom: 60px !important;
}
</style>

View File

@ -79,8 +79,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
@pagination="getList" /> :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> -->
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
@ -172,6 +174,11 @@ export default {
this.screenChange() this.screenChange()
}, },
methods: { methods: {
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
/** 查询参数列表 */ /** 查询参数列表 */
getList() { getList() {
this.loading = true; this.loading = true;

View File

@ -99,8 +99,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> :limit.sync="queryParams.pageSize" @pagination="getList" /> -->
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
</el-col> </el-col>
</el-row> </el-row>
<!-- 导入 --> <!-- 导入 -->
@ -477,6 +479,11 @@ export default {
this.infocompare(); this.infocompare();
}, },
methods: { methods: {
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
optionsubdivision(e) { optionsubdivision(e) {
// this.form.subdivisionCategoryId = this.optionsubdivisionCategory.find( // this.form.subdivisionCategoryId = this.optionsubdivisionCategory.find(
// (e) => e.id == this.form.subdivisionCategoryId // (e) => e.id == this.form.subdivisionCategoryId

View File

@ -70,9 +70,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
@pagination="getList" /> <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> -->
<!-- 添加或修改公告对话框 --> <!-- 添加或修改公告对话框 -->
<el-dialog :title="title" :visible.sync="open" width="780px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="780px" append-to-body>
@ -171,6 +172,11 @@ export default {
this.screenChange() this.screenChange()
}, },
methods: { methods: {
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
/** 查询公告列表 */ /** 查询公告列表 */
getList() { getList() {
this.loading = true; this.loading = true;

View File

@ -64,10 +64,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> -->
@pagination="getList" /> <myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
<!-- 添加或修改细分类别信息对话框 --> <!-- 添加或修改细分类别信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true"> <el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
@ -156,6 +156,11 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
/** 查询细分类别信息列表 */ /** 查询细分类别信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;