修改bug

prod
wangwei 2 years ago
parent 7e30fcd8e7
commit 3ef1afac78

@ -56,7 +56,7 @@
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
@pagination="handleCurrentChange"
/>
<el-dialog
:title="formMap[formName]"
@ -209,8 +209,9 @@ export default {
this.getList();
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.filterQuery.page = val.page;
this.getList();
this.filterQuery.page =1;
},
getList() {
this.loading = true;
@ -312,7 +313,6 @@ export default {
created() {
this.getStorage();
//
this.getList();
},
};

@ -173,7 +173,7 @@ export default {
},
userData: [],
userTotal: 0,
userDataList:[],
//--------------------
selectUserQuery: {
@ -206,25 +206,29 @@ export default {
};
},
loadUserList() { //
// if (val != null) {
// this.userQuery.page = val;
// }
//
warehouseUserList(this.userQuery).then((res) => {
this.userData = res.data.list;
this.userTotal = res.data.total;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
},
addUser() { //
debugger
this.currentCode = this.inputQuery.code;
this.userFormVisible = true;
this.selectUserQuery.code = this.inputQuery.code;
this.selectUserQuery.page = 1;
for(var i=0;i<this.userData.length;i++){
this.userDataList[i]=this.userData[i].id;
}
this.selectUserQuery.listUser=this.userDataList;
this.getSelectUser();
},
@ -309,6 +313,7 @@ export default {
created() {
this.userQuery.code = this.inputQuery.code;
this.loadUserList();
}
}
</script>

Loading…
Cancel
Save