Commit 5a374397 by fukai

更新admin 请求路径

parent 9ad7d864
......@@ -421,7 +421,7 @@
"pageSize":this.model.pageSize,
"pageNum":this.model.pageNum,
}
Api.post('/webapi/admin/bch/getBchListByRootWithFieldsPage',data).then(res => {
Api.post('/admin/bch/getBchListByRootWithFieldsPage',data).then(res => {
if (res.respCode == SUCCESS) {
const list = res.data.list
this.bchData = list
......@@ -452,7 +452,7 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/bch/addBch',this.dataForm)
Api.post('/admin/bch/addBch',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("添加成功!");
......@@ -479,7 +479,7 @@
//查看弹窗
bchInfo(row) {
let tmp=row;
Api.post('/webapi/admin/bch/getBchById',{"id":row.id})
Api.post('/admin/bch/getBchById',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -493,7 +493,7 @@
//修改弹窗
bchEdit(row) {
Api.post('/webapi/admin/bch/getBchById',{"id":row.id})
Api.post('/admin/bch/getBchById',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -507,7 +507,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/bch/updateBchById',this.dataForm)
Api.post('/admin/bch/updateBchById',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("修改成功!");
......@@ -536,7 +536,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/bch/deleteBchById',{"id":row.id})
Api.post('/admin/bch/deleteBchById',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("删除成功!");
......
......@@ -7,7 +7,7 @@ export default {
let params = {
rootBranch: JSON.parse(sessionStorage.getItem("currentOrg")).departmentNumber
}
let rtnmsg = await Api.post("/webapi/admin/bch/getBchTreeByRoot", params);
let rtnmsg = await Api.post("/admin/bch/getBchTreeByRoot", params);
if (rtnmsg.respCode == SUCCESS) {
this.orgTree = rtnmsg.data
this.orgTree.forEach((item) => {
......@@ -22,7 +22,7 @@ export default {
let params = {
id: data.id
}
let rtnmsg = await Api.post("/webapi/admin/bch/getBchById", params);
let rtnmsg = await Api.post("/admin/bch/getBchById", params);
if (rtnmsg.respCode == SUCCESS) {
this.bchInfo = rtnmsg.data
}
......
......@@ -342,7 +342,7 @@ export default {
let $this = this
if (this.bchInfo.id ==null ||this.bchInfo.id==""){
//新增
uri='/webapi/admin/bch/addBch'
uri='/admin/bch/addBch'
Api.post(uri, this.bchInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success("添加成功!");
......@@ -367,7 +367,7 @@ export default {
)
}else{
//修改
uri='/webapi/admin/bch/updateBchById'
uri='/admin/bch/updateBchById'
Api.post(uri, this.bchInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success("修改成功!");
......@@ -462,7 +462,7 @@ export default {
})
.then(() => {
//发送删除请求
Api.post('/webapi/admin/bch/deleteBchById', { "id": data.id }).then(
Api.post('/admin/bch/deleteBchById', { "id": data.id }).then(
(res) => {
if (res.respCode == SUCCESS) {
this.$notify.success("删除成功!");
......
......@@ -3,7 +3,7 @@ import Api from "~/service/Api"
export default {
async getMenuTree() {
let rtnmsg = await Api.post("/webapi/admin/menu/getMenuTree", {});
let rtnmsg = await Api.post("/admin/menu/getMenuTree", {});
if (rtnmsg.respCode == SUCCESS) {
this.menuTree = rtnmsg.data
this.menuTree.forEach((item) => {
......@@ -17,7 +17,7 @@ export default {
let params = {
"id": data.id
}
let rtnmsg = await Api.post("/webapi/admin/menu/getMenuById", params);
let rtnmsg = await Api.post("/admin/menu/getMenuById", params);
if (rtnmsg.respCode == SUCCESS) {
this.menuInfo = rtnmsg.data
......
......@@ -229,7 +229,7 @@ export default {
let $this = this
if (this.menuInfo.id ==null ||this.menuInfo.id==""){
//新增
uri='/webapi/admin/menu/addMenu'
uri='/admin/menu/addMenu'
Api.post(uri, this.menuInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.添加成功!'));
......@@ -275,7 +275,7 @@ export default {
)
}else{
//修改
uri='/webapi/admin/menu/updateMenuById'
uri='/admin/menu/updateMenuById'
Api.post(uri, this.menuInfo).then(res=>{
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.修改成功!'));
......@@ -382,7 +382,7 @@ export default {
})
.then(() => {
//发送删除请求
Api.post('/webapi/admin/menu/deleteMenuById', { "id": data.id }).then(
Api.post('/admin/menu/deleteMenuById', { "id": data.id }).then(
(res) => {
if (res.respCode == SUCCESS) {
this.$notify.success(this.$t('statics.删除成功!'));
......
......@@ -427,7 +427,7 @@
onDblroleSearch() {
this.searchLoading = true;
Api.post('/webapi/admin/role/getRoleListWithPage',this.model).then(res => {
Api.post('/admin/role/getRoleListWithPage',this.model).then(res => {
if (res.respCode == "AAAAAA") {
const list = res.data.list
......@@ -485,7 +485,7 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/role/addRole',this.dataForm)
Api.post('/admin/role/addRole',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.添加成功!'));
......@@ -516,7 +516,7 @@
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.post('/webapi/admin/role/getRoleById',{"id":row.id})
Api.post('/admin/role/getRoleById',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -530,7 +530,7 @@
//修改弹窗
roleEdit(row) {
Api.post('/webapi/admin/role/getRoleById',{"id":row.id})
Api.post('/admin/role/getRoleById',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -544,7 +544,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/role/updateRoleById',this.dataForm)
Api.post('/admin/role/updateRoleById',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
......@@ -573,7 +573,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/role/deleteRoleById',{"id":row.id})
Api.post('/admin/role/deleteRoleById',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.删除成功'));
......@@ -605,7 +605,7 @@
this.menuForm=row;
this.treeData.defaultCheckedKeys=[];
Api.post('/webapi/admin/menu/getMenuTree',{})
Api.post('/admin/menu/getMenuTree',{})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
//获取所有菜单树
......@@ -616,7 +616,7 @@
});
Api.post('/webapi/admin/role/getRoleMenuListByRoleId',{"id":row.id,"leafOnly":true})
Api.post('/admin/role/getRoleMenuListByRoleId',{"id":row.id,"leafOnly":true})
.then((res) => {
//获取该角色已绑定的菜单
......@@ -643,7 +643,7 @@
this.$refs['menuForm'].validate((valid) => {
if (valid) {
this.menuForm.menuList=this.$refs.treeRef.getCheckedNodes(false,true)
Api.post('/webapi/admin/role/updateRoleMenuListByRoleId',this.menuForm)
Api.post('/admin/role/updateRoleMenuListByRoleId',this.menuForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
......
......@@ -252,7 +252,7 @@
onDblparamSearch() {
this.searchLoading = true;
Api.post('/webapi/admin/sysparam/listSysparm',this.model).then(res => {
Api.post('/admin/sysparam/listSysparm',this.model).then(res => {
if (res.respCode == SUCCESS) {
const list = res.data.list
this.paramData = list
......@@ -283,7 +283,7 @@
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/sysparam/addSysparm',this.dataForm)
Api.post('/admin/sysparam/addSysparm',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.添加成功!'));
......@@ -314,7 +314,7 @@
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.post('/webapi/admin/sysparam/detailSysparm',{"id":row.id})
Api.post('/admin/sysparam/detailSysparm',{"id":row.id})
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
......@@ -328,7 +328,7 @@
//修改弹窗
paramEdit(row) {
Api.post('/webapi/admin/sysparam/detailSysparm',{"id":row.id})
Api.post('/admin/sysparam/detailSysparm',{"id":row.id})
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
......@@ -342,7 +342,7 @@
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/webapi/admin/sysparam/updateSysparm',this.dataForm)
Api.post('/admin/sysparam/updateSysparm',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
......@@ -372,7 +372,7 @@
type: "warning",
})
.then(() => {
Api.post('/webapi/admin/sysparam/deleteSysparm',{"id":row.id})
Api.post('/admin/sysparam/deleteSysparm',{"id":row.id})
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success("删除成功!");
......
......@@ -220,7 +220,7 @@ export default {
pageSize: this.pagination.pageSize
};
const loading = this.loading();
let res = await Api.post('/webapi/admin/usr/listusr', params);
let res = await Api.post('/admin/usr/listusr', params);
if (res.respCode == SUCCESS) {
loading.close();
this.userdata = res.data.list || [];
......@@ -255,7 +255,7 @@ export default {
extkey: row.extkey,
};
const loading = this.loading();
res = await Api.post('/webapi/admin/usr/deleteusr', params);
res = await Api.post('/admin/usr/deleteusr', params);
if (res.respCode == SUCCESS) {
loading.close();
}
......
......@@ -456,14 +456,14 @@ export default {
selectPostTree:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/post/relation/posttree/{userid}"},
submitGroup:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/group/relation"},
submitRole:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/User/role/relation"},
selectRoletree:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/webapi/admin/usr/allroletree"},
selectRoletree:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/admin/usr/allroletree"},
selectSubRoletree:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/User/conn/subroletree/{currentLoginUserRoleId}"},
delDepart:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/depart/relation/{userid}/{departId}"},
searchOrg:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/org/relation/{userid}"},
saveGroup:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/group/relation/put"},
getNation:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/User/nation"},
saveRole:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/User/role/relation/put"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/webapi/admin/usr/userdetail/userid/{id}"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/admin/usr/userdetail/userid/{id}"},
getDeptTreeChild:{"fileName":"department.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/department/find/treeNode/{departmentNumber}"},
saveOrgd:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/User/org/relation/put"},
saveUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/saveUsr"},
......@@ -645,13 +645,13 @@ export default {
},
methods : {
bch_init(){
Api.post('/webapi/admin/bch/getBchListForUsr',{}).then(res=>{
Api.post('/admin/bch/getBchListForUsr',{}).then(res=>{
this.branchlist = res.data;
}
)
},
role_init(){
Api.post('/webapi/admin/role/getRoleList',{}).then(res=>{
Api.post('/admin/role/getRoleList',{}).then(res=>{
this.rolelist = res.data;
}
)
......@@ -685,7 +685,7 @@ export default {
role:this.user.rolecode,
workorg:this.user.workorg,
};
await Api.post('/webapi/admin/usr/addusr', params)
await Api.post('/admin/usr/addusr', params)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify({
......@@ -729,7 +729,7 @@ export default {
role:this.user.rolecode,
workorg:this.user.workorg,
};
await Api.post('/webapi/admin/usr/updateusr', params).then((res) => {
await Api.post('/admin/usr/updateusr', params).then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify({
title: this.$t('components.成功'),
......
......@@ -454,7 +454,7 @@ export default {
saveGroup:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/group/relation/put"},
getNation:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/nation"},
saveRole:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/role/relation/put"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/webapi/admin/usr/userdetail/userid/{id}"},
showUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/admin/usr/userdetail/userid/{id}"},
getDeptTreeChild:{"fileName":"department.json","basePath":"{{basePath}}","method":"get","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/department/find/treeNode/{departmentNumber}"},
saveUserDetail:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/usr/saveUsr"},
delPost:{"fileName":"users.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/users/user/post/relation/{userid}/{postid}"},
......@@ -617,13 +617,13 @@ this.role_init();
methods : {
bch_init(){
Api.post('/webapi/admin/bch/getBchListForUsr',{}).then(res=>{
Api.post('/admin/bch/getBchListForUsr',{}).then(res=>{
this.branchlist = res.data;
}
)
},
role_init(){
Api.post('/webapi/admin/role/getRoleList',{}).then(res=>{
Api.post('/admin/role/getRoleList',{}).then(res=>{
this.rolelist = res.data;
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment