diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index 93de6bb5d..5ffe6740b 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -361,7 +361,7 @@ getAction(this.url.getLoginUserType, params).then((res) => { if (res.success) { this.getTableList(res.result[0].value) - this.$emit('LoginUserType', res.result) + this.$emit('LoginUserType', res.result,this.currentPersonRole) } }) }, diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index bb640dbd3..20b926bd8 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -790,13 +790,13 @@ } return flag }, - LoginUserType(val) { + LoginUserType(val, currentPersonRole) { this.RoleType = [] if (this.currentPersonRole == '') { this.currentPersonRole = val.length >= 1 ? val[0].value : '' } this.RoleType = val - this.formInlineRoleSwitching.roleSwitchingCode = val[0].value + this.formInlineRoleSwitching.roleSwitchingCode = currentPersonRole || val[0].value this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching } }, // 表格所选中得行内容