From 0c1a33a33b45fc3265cb7fef20beb48407cd6c98 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 24 八月 2023 14:54:06 +0800 Subject: [PATCH] 2023-08-24 --- src/views/systemproc/proc/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/systemproc/proc/index.jsx b/src/views/systemproc/proc/index.jsx index d9be6a9..62ce63a 100644 --- a/src/views/systemproc/proc/index.jsx +++ b/src/views/systemproc/proc/index.jsx @@ -13,7 +13,7 @@ class ProcControl extends Component { state = { - procName: '', + procName: this.props.func || '', content: '', loading: false, visible: false, @@ -29,7 +29,7 @@ if (sessionStorage.getItem('permFuncField')) { this.setState({permFuncs: JSON.parse(sessionStorage.getItem('permFuncField'))}) - } else { + } else if (sessionStorage.getItem('UserID')) { Api.getCloudConfig({func: 'sPC_Get_Roles_sModular'}).then(res => { if (res.status) { let _permFuncs = [] @@ -57,6 +57,12 @@ } }) } + + if (this.props.func && sessionStorage.getItem('UserID')) { + setTimeout(() => { + this.search(this.props.func) + }, 500) + } } search = (value) => { -- Gitblit v1.8.0