Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
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
张牧越
digital-construction
Commits
08b7903f
Commit
08b7903f
authored
Apr 14, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
082a85f4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
App.vue
src/App.vue
+1
-14
Index.vue
src/components/Index.vue
+14
-1
Index.vue
src/components/realname/Index.vue
+2
-0
Index.vue
src/components/tower/Index.vue
+1
-1
No files found.
src/App.vue
View file @
08b7903f
...
@@ -8,24 +8,11 @@
...
@@ -8,24 +8,11 @@
export
default
{
export
default
{
name
:
"App"
,
name
:
"App"
,
components
:
{},
components
:
{},
methods
:
{
methods
:
{},
bodyScale
()
{
var
devicewidth
=
document
.
documentElement
.
clientWidth
;
//获取当前分辨率下的可是区域宽度
var
scale
=
devicewidth
/
1920
;
// 分母——设计稿的尺寸
document
.
body
.
style
.
zoom
=
scale
;
//放大缩小相应倍数
let
charts
=
document
.
getElementsByClassName
(
"chart-container"
);
for
(
let
i
=
0
;
i
<
charts
.
length
;
i
++
)
{
charts
[
i
].
style
.
zoom
=
1
;
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
token
)
{
if
(
this
.
$route
.
query
.
token
)
{
localStorage
.
setItem
(
"token"
,
this
.
$route
.
query
.
token
);
localStorage
.
setItem
(
"token"
,
this
.
$route
.
query
.
token
);
}
}
this
.
$nextTick
(()
=>
{
this
.
bodyScale
();
});
},
},
};
};
</
script
>
</
script
>
...
...
src/components/Index.vue
View file @
08b7903f
<
template
>
<
template
>
<div>
<div
:style=
"
{ zoom: zoom }"
>
<div
class=
"nav-header"
>
<div
class=
"nav-header"
>
<div
class=
"left-nav"
>
<div
class=
"left-nav"
>
<span
style=
"font-size: 14px"
>
XXX项目后台管理系统
</span>
<span
style=
"font-size: 14px"
>
XXX项目后台管理系统
</span>
...
@@ -38,6 +38,7 @@ export default {
...
@@ -38,6 +38,7 @@ export default {
time
:
""
,
time
:
""
,
weekDay
:
""
,
weekDay
:
""
,
date
:
""
,
date
:
""
,
zoom
:
1
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -84,8 +85,20 @@ export default {
...
@@ -84,8 +85,20 @@ export default {
}
}
this
.
weekDay
=
str
;
this
.
weekDay
=
str
;
},
},
bodyScale
()
{
var
devicewidth
=
document
.
documentElement
.
clientWidth
;
//获取当前分辨率下的可是区域宽度
var
scale
=
devicewidth
/
1920
;
// 分母——设计稿的尺寸
this
.
zoom
=
scale
;
//放大缩小相应倍数
let
charts
=
document
.
getElementsByClassName
(
"chart-container"
);
for
(
let
i
=
0
;
i
<
charts
.
length
;
i
++
)
{
charts
[
i
].
style
.
zoom
=
1
;
}
},
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
bodyScale
();
});
this
.
getTime
();
this
.
getTime
();
setInterval
(()
=>
{
setInterval
(()
=>
{
this
.
getTime
();
this
.
getTime
();
...
...
src/components/realname/Index.vue
View file @
08b7903f
...
@@ -349,6 +349,7 @@ export default {
...
@@ -349,6 +349,7 @@ export default {
color
:
"rgba(95, 120, 144, 0.4)"
,
color
:
"rgba(95, 120, 144, 0.4)"
,
},
},
},
},
minInterval
:
1
,
},
},
series
:
[
series
:
[
{
{
...
@@ -496,6 +497,7 @@ export default {
...
@@ -496,6 +497,7 @@ export default {
color
:
"rgba(95, 120, 144, 0.4)"
,
color
:
"rgba(95, 120, 144, 0.4)"
,
},
},
},
},
minInterval
:
1
,
},
},
series
:
[
series
:
[
{
{
...
...
src/components/tower/Index.vue
View file @
08b7903f
...
@@ -415,7 +415,7 @@ export default {
...
@@ -415,7 +415,7 @@ export default {
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
}
});
});
resizeOb
.
observe
(
document
.
getElementById
(
"device-chart"
));
//
resizeOb.observe(document.getElementById("device-chart"));
resizeOb
.
observe
(
document
.
getElementById
(
"force-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"force-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"dip-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"dip-chart"
));
});
});
...
...
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