Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V3-TailingPond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
V3-TailingPond
Commits
66cdabc8
Commit
66cdabc8
authored
May 27, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:hbb用户 报警列表 修改按钮隐藏。
parent
9ef88e78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
httpApi.js
src/assets/js/httpApi.js
+2
-1
user.js
src/store/modules/user.js
+5
-0
No files found.
src/assets/js/httpApi.js
View file @
66cdabc8
...
...
@@ -4,6 +4,7 @@ import request from '@/utils/request';
import
{
Tools
}
from
'
./common
'
;
import
{
Highchart
}
from
'
@/assets/js/chartTemplates.js
'
;
import
{
initData
,
download
}
from
'
@/api/data
'
;
import
Cookies
from
'
js-cookie
'
//var baseAPI = process.env.VUE_APP_LOCAL_API + '/';
var
baseAPI
=
process
.
env
.
NODE_ENV
...
...
@@ -2359,7 +2360,7 @@ var reqApis = function () {
labelWidth
:
'
120
'
,
operWidth
:
'
120
'
,
title
:
'
监测项
'
,
buttons
:
[
buttons
:
Cookies
.
get
(
'
username
'
)
==
'
hbb
'
?
[]:
[
{
'
type
'
:
'
primary
'
,
'
icon
'
:
'
el-icon-close-notification
'
,
'
isvalid
'
:
function
(
item
)
{
return
item
.
state
!==
1
...
...
src/store/modules/user.js
View file @
66cdabc8
import
{
login
,
getInfo
,
logout
}
from
'
@/api/login
'
import
{
getToken
,
setToken
,
removeToken
}
from
'
@/utils/auth
'
import
Cookies
from
'
js-cookie
'
const
user
=
{
state
:
{
...
...
@@ -41,6 +42,10 @@ const user = {
setUserInfo
(
body
.
user
,
commit
);
// 第一次加载菜单时用到, 具体见 src 目录下的 permission.js
commit
(
'
SET_LOAD_MENUS
'
,
true
);
// 2025-5-27 10:52:58新增存储登录权限到cookie中
// Cookies.set('role', body.roles[0]);
// debugger
Cookies
.
set
(
'
username
'
,
body
.
user
.
user
.
username
);
};
resolve
(
res
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment