diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index 4c649ff4..039b3532 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -48,7 +48,7 @@ const queryPermissionRule = (params)=>getAction("/sys/permission/queryPermission //机构管理 const queryOrganizationTreeList = (params)=>getAction("/organization/getOrganizationTree",params); const queryOrganizationById = (params)=>getAction("/organization/findById",params); -const queryIdTree = (params)=>getAction("/sys/sysDepart/queryIdTree",params); +const checkOrganization = (params)=>getAction("/organization/checkIsNameExist",params); const queryParentName = (params)=>getAction("/sys/sysDepart/queryParentName",params); const searchByKeywords = (params)=>getAction("/sys/sysDepart/searchBy",params); const deleteByDepartId = (params)=>deleteAction("/sys/sysDepart/delete",params); @@ -195,6 +195,7 @@ export { queryPermissionRule, queryOrganizationTreeList, queryOrganizationById, + checkOrganization, queryParentName, searchByKeywords, deleteByDepartId, diff --git a/jshERP-web/src/components/layouts/TabLayout.vue b/jshERP-web/src/components/layouts/TabLayout.vue index 612f3409..ead77270 100644 --- a/jshERP-web/src/components/layouts/TabLayout.vue +++ b/jshERP-web/src/components/layouts/TabLayout.vue @@ -121,6 +121,8 @@ let oldIndex = this.linkList.indexOf(newRoute.fullPath) let oldPositionRoute = this.pageList[oldIndex] this.pageList.splice(oldIndex, 1, Object.assign({},newRoute,{meta:oldPositionRoute.meta})) + //每次切换都刷新 + this.routeReload() } }, 'activePage': function(key) { @@ -194,10 +196,12 @@ this.$message.warning('这是最后一页,不能再关闭了啦') return } - console.log("this.pageList ",this.pageList ); + console.log("this.pageList ",this.pageList); this.pageList = this.pageList.filter(item => item.fullPath !== key) + console.log("this.pageList ",this.pageList); let index = this.linkList.indexOf(key) this.linkList = this.linkList.filter(item => item !== key) + console.log("this.linkList ",this.linkList); index = index >= this.linkList.length ? this.linkList.length - 1 : index this.activePage = this.linkList[index] }, diff --git a/jshERP-web/src/views/material/modules/MaterialCategoryModal.vue b/jshERP-web/src/views/material/modules/MaterialCategoryModal.vue index b136de1c..4171613a 100644 --- a/jshERP-web/src/views/material/modules/MaterialCategoryModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialCategoryModal.vue @@ -101,7 +101,7 @@ this.visible = true; this.loadTreeData(); this.$nextTick(() => { - this.form.setFieldsValue(pick(record, 'orgFullName','orgAbr', 'orgNo', 'parentId', 'sort', 'remark')) + this.form.setFieldsValue(pick(record, 'name','serialNo', 'parentId', 'sort', 'remark')) }); }, close () { diff --git a/jshERP-web/src/views/system/OrganizationList.vue b/jshERP-web/src/views/system/OrganizationList.vue index 3e51c9c3..6f97b0a0 100644 --- a/jshERP-web/src/views/system/OrganizationList.vue +++ b/jshERP-web/src/views/system/OrganizationList.vue @@ -61,11 +61,8 @@ - - - - - + + @@ -100,7 +97,7 @@