前端对接接口
This commit is contained in:
@@ -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;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
|
||||
|
||||
@@ -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];
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user