Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
50022109
Commit
50022109
authored
Jul 13, 2023
by
张耀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://cloud.wodcloud.com/git/smart-operation/so-manage-ui
into dev
parents
027587b5
42e9eb8a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
20 deletions
+21
-20
src/components/bg-menu.vue
src/components/bg-menu.vue
+9
-0
src/components/login-by-account.vue
src/components/login-by-account.vue
+0
-1
src/page/login/index.vue
src/page/login/index.vue
+10
-18
src/page/main/authority/user/add/system-form.vue
src/page/main/authority/user/add/system-form.vue
+0
-1
src/request/http.js
src/request/http.js
+2
-0
No files found.
src/components/bg-menu.vue
View file @
50022109
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
}">
}">
<!-- LOGO -->
<!-- LOGO -->
<router-link
to=
"/"
class=
"bg-logo"
>
<router-link
to=
"/"
class=
"bg-logo"
>
<img
style=
"width: 22px; height: 22px"
:src=
"systemLogo ? JSON.parse(systemLogo)[0].url : getImageUrl('img_logo.png')"
/>
<span>
智能运维管理平台
</span>
<span>
智能运维管理平台
</span>
</router-link>
</router-link>
...
@@ -82,6 +85,7 @@
...
@@ -82,6 +85,7 @@
import
{
mapState
,
mapMutations
}
from
"
vuex
"
;
import
{
mapState
,
mapMutations
}
from
"
vuex
"
;
import
{
clearCookie
}
from
"
../services/cookie.js
"
;
import
{
clearCookie
}
from
"
../services/cookie.js
"
;
import
{
resetRouter
}
from
"
../router/index
"
;
import
{
resetRouter
}
from
"
../router/index
"
;
import
{
getImageUrl
}
from
"
@/services/helper.js
"
;
import
{
normalizeProps
}
from
"
vue-demi
"
;
import
{
normalizeProps
}
from
"
vue-demi
"
;
export
default
{
export
default
{
...
@@ -95,6 +99,7 @@ export default {
...
@@ -95,6 +99,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
getImageUrl
,
documentScrollTop
:
0
,
documentScrollTop
:
0
,
cartList
:
[],
cartList
:
[],
showCart
:
true
,
showCart
:
true
,
...
@@ -158,6 +163,9 @@ export default {
...
@@ -158,6 +163,9 @@ export default {
return
temp
;
return
temp
;
},
},
}),
}),
systemLogo
()
{
return
this
.
$store
.
state
.
systemLogo
;
},
},
},
watch
:
{
watch
:
{
nameFlag
(
n
,
o
)
{
nameFlag
(
n
,
o
)
{
...
@@ -202,6 +210,7 @@ export default {
...
@@ -202,6 +210,7 @@ export default {
if
(
res
.
data
.
code
==
"
200
"
)
{
if
(
res
.
data
.
code
==
"
200
"
)
{
window
.
location
.
href
=
"
/so/manage/ui/#/login
"
;
window
.
location
.
href
=
"
/so/manage/ui/#/login
"
;
this
.
$store
.
commit
(
"
setUserInfo
"
,
null
);
this
.
$store
.
commit
(
"
setUserInfo
"
,
null
);
this
.
$store
.
commit
(
"
setMenu
"
,
null
);
clearCookie
(
"
bgToken
"
);
clearCookie
(
"
bgToken
"
);
this
.
$message
.
success
(
"
退出成功
"
);
this
.
$message
.
success
(
"
退出成功
"
);
resetRouter
();
resetRouter
();
...
...
src/components/login-by-account.vue
View file @
50022109
...
@@ -129,7 +129,6 @@ const getMenu = (search) => {
...
@@ -129,7 +129,6 @@ const getMenu = (search) => {
};
};
const
getUser
=
()
=>
{
const
getUser
=
()
=>
{
Promise
.
all
([
getUserInfo
(),
getMenu
(
"
1e99371c-187f-4966-94cf-32f116f42ce6
"
)]).
then
((
res
)
=>
{
Promise
.
all
([
getUserInfo
(),
getMenu
(
"
1e99371c-187f-4966-94cf-32f116f42ce6
"
)]).
then
((
res
)
=>
{
console
.
log
(
"
res
"
,
res
);
if
(
res
[
0
].
data
.
code
==
200
&&
res
[
1
].
data
.
code
==
200
)
{
if
(
res
[
0
].
data
.
code
==
200
&&
res
[
1
].
data
.
code
==
200
)
{
let
data
=
(
res
[
1
].
data
.
data
&&
res
[
1
].
data
.
data
[
0
].
children
)
||
[];
let
data
=
(
res
[
1
].
data
.
data
&&
res
[
1
].
data
.
data
[
0
].
children
)
||
[];
store
.
commit
(
"
setUserInfo
"
,
res
[
0
].
data
.
data
);
store
.
commit
(
"
setUserInfo
"
,
res
[
0
].
data
.
data
);
...
...
src/page/login/index.vue
View file @
50022109
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
class=
"login-container"
class=
"login-container"
:style=
"
{
:style=
"
{
'background-image': `url(${
'background-image': `url(${
configOptions.b
ackgroundUrl ? JSON.parse(configOptions.backgroundUrl
)[0].url : getImageUrl('bg.png')
configOptions.b
g_image ? JSON.parse(configOptions.bg_image
)[0].url : getImageUrl('bg.png')
})`,
})`,
}">
}">
<el-alert
v-if=
"showValidityDays"
class=
"bg-warning"
:title=
"validityTips"
type=
"warning"
/>
<el-alert
v-if=
"showValidityDays"
class=
"bg-warning"
:title=
"validityTips"
type=
"warning"
/>
...
@@ -27,15 +27,15 @@
...
@@ -27,15 +27,15 @@
<div
class=
"bg-msg"
>
<div
class=
"bg-msg"
>
<p
v-if=
"configOptions && configOptions.patent"
>
{{
configOptions
.
patent
}}
</p>
<p
v-if=
"configOptions && configOptions.patent"
>
{{
configOptions
.
patent
}}
</p>
<p
v-if=
"configOptions"
>
<p
v-if=
"configOptions"
>
<span
class=
"can_click_text"
@
click=
"open(configOptions.icp
Url)"
>
{{
configOptions
.
icpFiling
}}
|
</span>
<span
class=
"can_click_text"
@
click=
"open(configOptions.icp
_url)"
>
{{
configOptions
.
icp
}}
|
</span>
<span
class=
"can_click_text"
@
click=
"open(configOptions.p
ublicSecurityU
rl)"
>
<span
class=
"can_click_text"
@
click=
"open(configOptions.p
olice_u
rl)"
>
{{
configOptions
.
p
ublicSecurityFiling
}}
{{
configOptions
.
p
olice
}}
</span>
</span>
</p>
</p>
<p>
<p>
<span
class=
"can_click_text"
@
click=
"open(configOptions.legal
StatementUrl
)"
>
法律声明
</span>
<span
class=
"can_click_text"
@
click=
"open(configOptions.legal
_notice
)"
>
法律声明
</span>
|
|
<span
class=
"can_click_text"
@
click=
"open(configOptions.privacy
PolicyUrl
)"
>
隐私政策
</span>
<span
class=
"can_click_text"
@
click=
"open(configOptions.privacy
_policy
)"
>
隐私政策
</span>
</p>
</p>
</div>
</div>
...
@@ -73,7 +73,6 @@ const validityTips = ref("");
...
@@ -73,7 +73,6 @@ const validityTips = ref("");
const
showValidityDays
=
ref
(
false
);
const
showValidityDays
=
ref
(
false
);
onBeforeMount
(()
=>
{
onBeforeMount
(()
=>
{
getLoginPageConfig
();
getSysOptions
();
getSysOptions
();
});
});
...
@@ -84,21 +83,14 @@ const switchPageType = (type) => {
...
@@ -84,21 +83,14 @@ const switchPageType = (type) => {
const
password
=
()
=>
{
const
password
=
()
=>
{
router
.
push
(
"
/password
"
);
router
.
push
(
"
/password
"
);
};
};
const
getLoginPageConfig
=
()
=>
{
axios
.
get
(
`/apaas/system/v5/login/loginDetail`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
configOptions
.
value
=
res
.
data
.
data
||
null
;
store
.
commit
(
"
setSystemLogo
"
,
configOptions
.
value
.
logoUrl
);
}
else
{
ElMessage
.
error
(
res
.
data
.
data
);
}
});
};
//获取首选项配置
//获取首选项配置
const
getSysOptions
=
()
=>
{
const
getSysOptions
=
()
=>
{
axios
.
get
(
`/v1/api/sysOptions`
).
then
((
res
)
=>
{
axios
.
get
(
`/v1/api/sysOptions`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
const
result
=
res
.
data
.
data
||
{};
const
result
=
res
.
data
.
data
;
configOptions
.
value
=
result
;
store
.
commit
(
"
setSystemLogo
"
,
configOptions
.
value
.
logo
);
if
(
result
.
license_dead_date
&&
result
.
license_inform_day
)
{
if
(
result
.
license_dead_date
&&
result
.
license_inform_day
)
{
calculateValidityDays
(
calculateValidityDays
(
new
Date
().
getTime
(),
new
Date
().
getTime
(),
...
...
src/page/main/authority/user/add/system-form.vue
View file @
50022109
...
@@ -131,7 +131,6 @@ watch(
...
@@ -131,7 +131,6 @@ watch(
const
setForm
=
(
data
)
=>
{
const
setForm
=
(
data
)
=>
{
Object
.
assign
(
systemForm
,
data
);
Object
.
assign
(
systemForm
,
data
);
console
.
log
(
"
systemForm
"
,
systemForm
);
};
};
const
orgData
=
ref
([]);
const
orgData
=
ref
([]);
...
...
src/request/http.js
View file @
50022109
...
@@ -28,6 +28,8 @@ const toLogin = () => {
...
@@ -28,6 +28,8 @@ const toLogin = () => {
let
path
=
router
.
currentRoute
.
value
.
path
;
let
path
=
router
.
currentRoute
.
value
.
path
;
//白名单中的401不做跳转
//白名单中的401不做跳转
if
(
!
store
.
state
.
whiteList
.
includes
(
path
))
{
if
(
!
store
.
state
.
whiteList
.
includes
(
path
))
{
store
.
commit
(
"
setUserInfo
"
,
null
);
store
.
commit
(
"
setMenu
"
,
null
);
window
.
location
.
href
=
`/so/manage/ui/#/login`
;
window
.
location
.
href
=
`/so/manage/ui/#/login`
;
}
}
// router.replace({
// router.replace({
...
...
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