Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b3b6f071
authored
Apr 03, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.17.0' into 'develop'
V1.17.0版本已上线,代码合并到develop See merge request
!27
2 parents
9239f558
1b841f4a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
9 deletions
src/components/DesktopTopSider/DesktopTopSider.vue
src/components/DesktopTopSider/Sub/UserButton.vue
src/utils/globalUI/element.js
src/views/Login.vue
vue.config.js
src/components/DesktopTopSider/DesktopTopSider.vue
View file @
b3b6f07
...
...
@@ -40,13 +40,11 @@ export default {
name
:
'DesktopTopSider'
,
data
()
{
return
{
date
:
''
//
date: ''
}
},
mounted
()
{
setInterval
(()
=>
{
this
.
date
=
new
Date
(
new
Date
().
getTime
()
+
(
parseInt
(
new
Date
().
getTimezoneOffset
()
/
60
)
+
8
)
*
3600
*
1000
).
toLocaleString
()
},
1000
);
},
components
:
{
SettingButton
,
...
...
@@ -57,6 +55,7 @@ export default {
const
state
=
reactive
({
collapsed
:
false
,
commonData
:
store
.
getters
.
commonData
.
parent
,
date
:
''
// reactNum: 0
});
...
...
@@ -68,6 +67,10 @@ export default {
actions
.
setGlobalState
({
isCollapsed
:
state
.
collapsed
})
};
setInterval
(()
=>
{
state
.
date
=
new
Date
(
new
Date
().
getTime
()
+
(
parseInt
(
new
Date
().
getTimezoneOffset
()
/
60
)
+
8
)
*
3600
*
1000
).
toLocaleString
()
},
1000
);
// const minus = () => {
// state.commonData -= 1;
// console.log(store)
...
...
src/components/DesktopTopSider/Sub/UserButton.vue
View file @
b3b6f07
...
...
@@ -20,7 +20,7 @@
// UserOutlined
// } from '@ant-design/icons-vue';
import
{
reactive
,
toRefs
}
from
'vue'
;
import
{
useRouter
}
from
"vue-router"
;
//
import { useRouter } from "vue-router";
import
{
useStore
}
from
'vuex'
;
export
default
{
...
...
@@ -30,7 +30,7 @@ export default {
},
setup
()
{
const
store
=
useStore
();
const
router
=
useRouter
();
//
const router = useRouter();
const
state
=
reactive
({
userName
:
store
.
getters
.
userInfo
.
username
});
...
...
src/utils/globalUI/element.js
View file @
b3b6f07
...
...
@@ -25,6 +25,7 @@ import {
ElEmpty
,
ElPopover
,
ElDialog
,
ElCheckbox
}
from
"element-plus"
;
const
plugins
=
[
...
...
@@ -58,6 +59,7 @@ const elementUI = {
Vue
.
component
(
ElEmpty
.
name
,
ElEmpty
);
Vue
.
component
(
ElPopover
.
name
,
ElPopover
);
Vue
.
component
(
ElDialog
.
name
,
ElDialog
);
Vue
.
component
(
ElCheckbox
.
name
,
ElCheckbox
)
plugins
.
forEach
(
plugin
=>
{
Vue
.
use
(
plugin
)
...
...
src/views/Login.vue
View file @
b3b6f07
...
...
@@ -23,11 +23,15 @@
<el-input
class=
"login-input"
placeholder=
"请输入密码"
v-model=
"formInline.password"
maxLength=
"20"
show-password
autocomplete=
"off"
>
</el-input>
</el-form-item>
<el-form-item
class=
"login-button-wrapper"
@
keyup
.
enter=
"handleSubmit"
@
click
.
native
.
prevent=
"handleSubmit"
>
<el-button
class=
"login-button"
type=
"primary"
html-type=
"submit"
>
<el-form-item
class=
"login-button-wrapper"
>
<el-checkbox
class=
"check_tips"
v-model=
"checked"
>
请阅读并同意
<a
href=
"https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/privacy.html"
target=
"_blank"
>
《隐私协议》
</a>
和
<a
href=
"https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/agreement.html"
target=
"_blank"
>
《用户协议》
</a></el-checkbox>
<el-button
class=
"login-button"
type=
"primary"
html-type=
"submit"
:disabled=
"!checked"
@
keyup
.
enter=
"handleSubmit"
@
click
.
native
.
prevent=
"handleSubmit"
>
登录
</el-button>
</el-form-item>
<el-form-item>
</el-form-item>
</el-form>
</div>
</div>
...
...
@@ -80,6 +84,7 @@ export default {
},
title
:
store
.
state
.
app
.
title
,
logo
:
store
.
state
.
app
.
logo
,
checked
:
false
});
let
logoPath
=
store
.
state
.
app
.
logo
;
...
...
@@ -337,6 +342,13 @@ export default {
background
:
#fff
;
}
}
.check_tips
{
color
:
#fff
;
a{
color
:
#0077ff
;
}
}
</
style
>
<
style
scoped
>
.login_box
>>>
.el-input__inner
{
...
...
vue.config.js
View file @
b3b6f07
...
...
@@ -33,7 +33,7 @@ module.exports = {
config
.
plugin
(
'html'
)
.
tap
(
args
=>
{
args
[
0
].
title
=
'
试乘试驾管理平台
'
args
[
0
].
title
=
'
车辆管理系统
'
return
args
})
config
.
entry
(
'main'
).
add
(
'babel-polyfill'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment