1.取消仓库字典添加用户和单据类型列表的分页

fencang
x_z 3 years ago
parent 127297fed9
commit 4b12bce7d8

@ -313,15 +313,6 @@
<el-table-column label="用户名" prop="employeeName" fixed></el-table-column>
</el-table>
<el-pagination
:page-size="hospitalUserQuery.limit"
@current-change="getHospitalUser"
layout="prev, pager, next"
:total="hospitalUserTotal"
:current-page="hospitalUserQuery.page"
>
</el-pagination>
<div slot="footer" class="dialog-footer">
<el-button @click.native="userFormVisible = !userFormVisible"
>取消
@ -354,15 +345,6 @@
<el-table-column label="单据类型名称" prop="name" fixed></el-table-column>
</el-table>
<el-pagination
:page-size="bussinessTypeQuery.limit"
@current-change="getBussinessType"
layout="prev, pager, next"
:total="bussinessTypeTotal"
:current-page="bussinessTypeQuery.page"
>
</el-pagination>
<div slot="footer" class="dialog-footer">
<el-button @click.native="bussinessTypeFormVisible = !bussinessTypeFormVisible"
>取消
@ -878,17 +860,6 @@ export default {
limit: 10
},
busTotal: 0,
hospitalUserQuery: {
page: 1,
limit: 10
},
hospitalUserTotal: 0,
bussinessTypeQuery: {
enabled: true,
page: 1,
limit: 10
},
bussinessTypeTotal: 0
};
},
methods: {
@ -1326,18 +1297,13 @@ export default {
this.$message.error("请先选择当前分库!")
} else {
this.userFormVisible = true;
this.hospitalUserQuery.page = 1;
this.getHospitalUser();
}
},
getHospitalUser(val) {
if (val != null) {
this.hospitalUserQuery.page = val;
}
getHospitalUserList(this.hospitalUserQuery).then((res) => {
getHospitalUser() {
getHospitalUserList().then((res) => {
this.selectUserList = [];
this.userList = res.data.list;
this.hospitalUserTotal = res.data.total;
this.userList = res.data;
var that = this;
that.$nextTick(() => {
if (that.$refs.checkUserList) {
@ -1353,16 +1319,11 @@ export default {
})
});
},
getBussinessType(val) {
if (val != null) {
this.bussinessTypeQuery.page = val;
}
getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
getBussinessType() {
getJoinBussinessType().then((res) => {
this.selectBussinessTypeList = [];
this.bussinessTypeList = res.data.list;
this.bussinessTypeTotal = res.data.total;
var that = this;
that.$nextTick(() => {
if (that.$refs.typeList) {
@ -1446,7 +1407,6 @@ export default {
this.$message.error("请先选择当前分库!")
} else {
this.bussinessTypeFormVisible = true;
this.bussinessTypeQuery.page = 1;
this.getBussinessType();
}
},

Loading…
Cancel
Save