From 8ca5c9bf0630e1b41b84cf97ef0b3259a4c4c2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 22 Jul 2021 22:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=8D=95=E6=8D=AE=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/api/api.js | 3 +- .../src/components/layouts/TabLayout.vue | 6 ++- .../modules/MaterialCategoryModal.vue | 2 +- .../src/views/system/OrganizationList.vue | 37 ++++++++++++++----- .../system/modules/OrganizationModal.vue | 36 +++++++++++++----- 5 files changed, 62 insertions(+), 22 deletions(-) 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 @@