diff --git a/src/components/xUser/index.vue b/src/components/xUser/index.vue index 7c36cd2..02b016d 100644 --- a/src/components/xUser/index.vue +++ b/src/components/xUser/index.vue @@ -156,11 +156,11 @@ xupdate(key, name, type){ this.updateKey = key; this.$nextTick(() => { - this.$refs.xupdate.open().getComponentType(type).setConfig({name:name, remoteurl:'system/table/getUpdate?name='+key+'&token='+this.token}); + this.$refs.xupdate.open().getComponentType(type).setConfig({name:name, remoteurl:'table/getUpdate?name='+key+'&token='+this.token}); }) }, loaddata(){ - this.$http.post('system/user/get',{uid: this.userData.uid, type:this.type}).then((res) => { + this.$http.post('user/index/get',{uid: this.userData.uid, type:this.type}).then((res) => { if (res.code==200) { Object.assign(this.$data, res.data); return false; @@ -169,7 +169,7 @@ }); }, onRemove(){ - this.$http.post('app/avatar/delete',{token: this.token}).then((res) => { + this.$http.post('avatar/index/delete',{token: this.token}).then((res) => { if (res.code==200) { this.userData.avatar = ''; this.$refs.uploader.clearFiles(); diff --git a/src/components/xUser/select.vue b/src/components/xUser/select.vue index f030d06..3cbf34f 100644 --- a/src/components/xUser/select.vue +++ b/src/components/xUser/select.vue @@ -145,7 +145,7 @@ //获取组织 async getGroup(){ this.showGrouploading = true; - var res = await this.$http.get('system/user/groupList'); + var res = await this.$http.get('user/group/lists'); this.showGrouploading = false; var allNode = {[config.group.props.key]: '', [config.group.props.label]: '所有'} res.data.unshift(allNode); @@ -160,7 +160,7 @@ [config.user.request.page]: this.currentPage, [config.user.request.limit]: this.limit } - var res = await this.$http.get('system/user/userList', params); + var res = await this.$http.get('user/index/lists', params); this.showUserloading = false; this.user = config.user.parseData(res).rows; this.total = config.user.parseData(res).total || 0; @@ -169,7 +169,7 @@ //获取角色 async getRole(){ this.showGrouploading = true; - var res = await this.$http.get('system/user/roleList'); + var res = await this.$http.get('user/group/lists'); this.showGrouploading = false; this.role = config.role.parseData(res).rows }, diff --git a/src/views/home/widgets/components/work.vue b/src/views/home/widgets/components/work.vue index e3de06e..406315c 100644 --- a/src/views/home/widgets/components/work.vue +++ b/src/views/home/widgets/components/work.vue @@ -110,7 +110,7 @@ // 提交到远程 - this.$http.post('system/user/commonlyusedSubmit', {data:myModsName}).then((res) => { + this.$http.post('user/index/commonlyusedSubmit', {data:myModsName}).then((res) => { if (res.code == 200 ) { this.$tool.data.set('commonlyused', myModsName) this.$message.success(res.message || "操作成功") diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 1fefc38..8adc04b 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -65,8 +65,8 @@ //获取token var user = await this.$api.auth.token.post(data) + this.islogin = false if(user.code !== 200){ - this.islogin = false this.$message.warning(user.message) return false } diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 41cc61e..794a66b 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -74,7 +74,7 @@ //加载树数据 async getMenu(){ this.menuloading = true - var res = await this.$http.get('system/menu'); + var res = await this.$http.get('menu'); this.menuloading = false this.menuList = res.data; }, @@ -109,7 +109,7 @@ // let obj = Object.assign({}, draggingNode.data, {parentid:dropNode.data.id}); // delete obj.children; - var res = await this.$http.post('system/menu/update', {id:draggingNode.data.id,ids:ids}); + var res = await this.$http.post('menu/update', {id:draggingNode.data.id,ids:ids}); if(res.code !== 200){ this.$message.warning(res.message); return false; @@ -138,7 +138,7 @@ } } this.menuloading = true - var res = await this.$http.post('system/menu/submit',newMenuData) + var res = await this.$http.post('menu/submit',newMenuData) this.menuloading = false if(res.code !== 200){ @@ -174,7 +174,7 @@ var reqData = { ids: CheckedNodes.map(item => item.id) } - var res = await this.$http.post('system/menu/delete',reqData) + var res = await this.$http.post('menu/delete',reqData) this.menuloading = false if(res.code == 200){ diff --git a/src/views/system/setting/index.vue b/src/views/system/setting/index.vue index beb251e..d11cced 100644 --- a/src/views/system/setting/index.vue +++ b/src/views/system/setting/index.vue @@ -106,7 +106,7 @@ render(){ this.loading = true; setTimeout(async ()=>{ - var res = await this.$http.get('system/setting/get'); + var res = await this.$http.get('setting/get'); if (res.code!=200) { this.$message.warning(res.message) return false; @@ -125,7 +125,7 @@ }, async submit(){ this.submitloading = true; - var res = this.$http.post('system/setting/submit', {info:this.info,extend:this.extend}); + var res = this.$http.post('setting/submit', {info:this.info,extend:this.extend}); this.submitloading = false; this.$message.success(res.message || "操作成功")