前端对接接口

This commit is contained in:
橙子
2021-10-31 16:47:53 +08:00
parent 35f39eb65b
commit b299a7e41b
12 changed files with 35 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ export default {
created(){this.init()},
methods:{
init(){
userApi.GetRouterByUserId(this.$route.path).then(resp=>{
userApi.GetAxiosByRouter(this.$route.path).then(resp=>{
this.axiosUrls=resp.data;
})
}

View File

@@ -19,7 +19,7 @@ export default {
},
methods: {
init() {
userApi.GetRouterByUserId(this.$route.path).then(resp=>{
userApi.GetAxiosByRouter(this.$route.path).then(resp=>{
this.axiosUrls=resp.data;
})

View File

@@ -64,7 +64,7 @@ export default {
selectionRole: {
handler(val, oldVal) {
if (val.length == 1) {
roleApi.getMenuByRloe(val[0].id).then((resp) => {
roleApi.GetTopMenusByRoleId(val[0].id).then((resp) => {
this.selectionMenu = resp.data;
});
}
@@ -98,8 +98,8 @@ export default {
this.RoleItems = resp.data;
});
menuApi.getMenu().then((resp) => {
this.Menuitems = resp.data;
menuApi.GetMenuInMould().then((resp) => {
this.Menuitems = [resp.data];
});
},
},

View File

@@ -36,7 +36,7 @@ export default {
methods: {
async showItem(item) {
var strInfo = "";
userApi.GetRolesByUserId(item.id).then(async (resp) => {
roleApi.GetRolesByUserId(item.id).then(async (resp) => {
const roleData = resp.data;
strInfo += "拥有的角色:<br>";
roleData.forEach((u) => {
@@ -58,7 +58,7 @@ export default {
});
},
init() {
userApi.GetRouterByUserId(this.$route.path).then((resp) => {
userApi.GetAxiosByRouter(this.$route.path).then((resp) => {
this.axiosUrls = resp.data;
});
roleApi.getRole().then((resp) => {

View File

@@ -289,13 +289,13 @@ export default {
},
init() {
this.newPassword="";
userApi.GetUserInfoById().then((resp) => {
userApi.GetUserInRolesByHttpUser().then((resp) => {
this.userInfo = resp.data;
this.userInfo.password="";
this.editInfo= Object.assign({}, this.userInfo);
});
menuApi.geTopMenuByUser().then(resp=>{
menuApi.GetTopMenusByHttpUser().then(resp=>{
this.menuInfo=resp.data;
})
},