Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
海康威视
web-project
Commits
28757bb2
Commit
28757bb2
authored
Jul 12, 2024
by
qjeslks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/tj-wang-yahui/AMS_HeatSys_Vue_V10
parents
63936a9b
4268a496
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
LOGO_index.png
public/imgs/home/LOGO_index.png
+0
-0
PLATFORM.png
public/imgs/home/PLATFORM.png
+0
-0
index.less
src/style/index.less
+1
-0
home.vue
src/views/home.vue
+9
-5
No files found.
public/imgs/home/LOGO_index.png
View replaced file @
63936a9b
View file @
28757bb2
23 KB
|
W:
|
H:
108 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/imgs/home/PLATFORM.png
0 → 100644
View file @
28757bb2
61.5 KB
src/style/index.less
View file @
28757bb2
...
...
@@ -140,6 +140,7 @@ html {
}
.enterprise-name {
width: 23%;
line-height: 60px;
padding: 0 20px 0 20px;
color: #fff;
...
...
src/views/home.vue
View file @
28757bb2
...
...
@@ -2,7 +2,7 @@
<div
id=
"ams-container"
>
<div
class=
"ams-aside"
:style=
"
{ width: menuWidth + 'px'}">
<div
class=
"header"
:style=
"
{ width: menuWidth - 1 + 'px'}">
<img
style=
"margin-top:5px;height:50px; width: 150px;
"
v-show=
"!$store.state.iscollapse"
v-bind:src=
"amslogo"
/>
<img
:style=
"
{height:amslogo_style.height+'px',width: amslogo_style.width+'px'}
" v-show="!$store.state.iscollapse" v-bind:src="amslogo" />
<i
@
click=
"toggleLeft"
class=
"collapse-menu"
:style=
"
{width:38+ 'px'}">
<el-icon
v-if=
"!$store.state.iscollapse"
size=
"20"
style=
"vertical-align: middle"
><Fold
/></el-icon>
<el-icon
v-if=
"$store.state.iscollapse"
size=
"20"
style=
"vertical-align: middle"
><Expand
/></el-icon>
...
...
@@ -15,7 +15,7 @@
<div
class=
"ams-container"
:style=
"
{ left: menuWidth-2 + 'px' }">
<div
class=
"ams-header"
>
<div
class=
"enterprise-name"
>
<el-dropdown
size=
"'large'"
style=
"margin-left: 10px;margin-top: 5px;color:blue;"
<el-dropdown
size=
"'large'"
style=
"margin-left: 10px;margin-top: 5px;color:blue;
width: 100%;
"
@
command=
"handleCommand"
:trigger=
"(roleId > 2) ? 'contextmenu' : 'hover'"
>
<span
class=
"el-dropdown-link"
>
<el-image
style=
" height: 60px "
:src=
"currLogoUrl"
:fit=
"'full'"
/>
...
...
@@ -30,7 +30,7 @@
</el-dropdown>
</div>
<div
class=
"header-weather"
id=
"mt"
>
<el-row
style=
"left: 2
0px
;widows: 60px;"
>
<el-row
style=
"left: 2
.5%
;widows: 60px;"
>
<el-col
:span=
"4"
>
<div>
温度 ℃
<div
class=
"div-contain-text-big"
>
{{ showWeatherData.weatherData.temperature }}
</div>
...
...
@@ -237,14 +237,17 @@ export default defineComponent({
const
router
=
useRouter
();
let
_config
=
getCurrentInstance
()
!
.
appContext
.
config
.
globalProperties
;
var
amslogo_url
=
new
URL
(
'/imgs/home/LOGO_
ams_1
.png'
,
import
.
meta
.
url
).
href
;
var
amslogo_url
=
new
URL
(
'/imgs/home/LOGO_
index
.png'
,
import
.
meta
.
url
).
href
;
const
amslogo
=
ref
(
amslogo_url
);
var
currLogoUrl
=
new
URL
(
'../assets/imgs/home/LOGO_gangyi.png'
,
import
.
meta
.
url
).
href
;
var
currLogoUrl
=
new
URL
(
'/imgs/home/PLATFORM.png'
,
import
.
meta
.
url
).
href
;
var
amslogo_style
=
reactive
({
height
:
50
,
width
:
150
});
//控制左侧导航菜单的展开和隐藏
const
toggleLeft
=
()
=>
{
store
.
commit
(
'setAsideWidth'
);
menuWidth
.
value
=
store
.
state
.
iscollapse
?
63
:
200
;
amslogo_style
.
height
=
store
.
state
.
iscollapse
?
12
:
50
;
amslogo_style
.
width
=
store
.
state
.
iscollapse
?
40
:
150
;
mainWidth
.
value
=
window
.
innerWidth
-
menuWidth
.
value
;
EventBus
.
emit
(
'changeValue'
,
mainWidth
.
value
);
}
...
...
@@ -490,6 +493,7 @@ export default defineComponent({
visibleItem
,
currentMenuId
,
amslogo
,
amslogo_style
,
addTab
,
//menuRoot,
handleCommand
,
...
...
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