Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
byq_pc
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
张伯涛
byq_pc
Commits
076a4d68
Commit
076a4d68
authored
Apr 28, 2025
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增套组
parent
4e21d926
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1309 additions
and
301 deletions
+1309
-301
变压器抠图-1.png
src/assets/image/变压器抠图-1.png
+0
-0
变压器抠图-2.png
src/assets/image/变压器抠图-2.png
+0
-0
index.vue
src/components/card-box/index.vue
+46
-0
index.vue
src/views/index/index.vue
+62
-11
index copy 2.vue
src/views/makePie/index copy 2.vue
+664
-0
index.vue
src/views/makePie/index.vue
+536
-289
vue.config.js
vue.config.js
+1
-1
No files found.
src/assets/image/变压器抠图-1.png
0 → 100644
View file @
076a4d68
This diff is collapsed.
Click to expand it.
src/assets/image/变压器抠图-2.png
0 → 100644
View file @
076a4d68
622 KB
src/components/card-box/index.vue
0 → 100644
View file @
076a4d68
<
template
>
<div
class=
"container"
>
<div
v-if=
"title"
>
<h1>
{{
title
}}
</h1>
<div><solt
name=
"left-btn"
></solt></div>
</div>
<div>
<solt
name=
"right-btn"
></solt>
</div>
<!-- 这里可以添加变压器运行状态的具体内容 -->
<!-- 例如:电压、电流、温度等监测数据 -->
</div>
</
template
>
<
script
>
export
default
{
name
:
'TransformerStatus'
,
props
:
{
title
:
{
type
:
String
,
default
:
''
}
},
methods
:
{
getType
(
e
)
{
console
.
log
(
e
)
}
}
}
</
script
>
<
style
>
body
{
font-family
:
Arial
,
sans-serif
;
margin
:
20px
;
line-height
:
1.6
;
}
h1
{
color
:
#333
;
border-bottom
:
1px
solid
#eee
;
padding-bottom
:
10px
;
}
.container
{
max-width
:
800px
;
background
:
#EBF1FF
;
margin
:
0
auto
;
}
</
style
>
src/views/index/index.vue
View file @
076a4d68
<
template
>
<
template
>
<div>
<div
class=
"pageindex"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<div
class=
"left-bar"
>
<div
class=
"left-bar"
>
<el-button
:type=
"type == 1"
@
click=
"getType(1)"
>
第一视角
</el-button>
<button
<el-button
:type=
"type == 2"
@
click=
"getType(2)"
>
第二视角
</el-button>
:class=
"type == 1 ? 'active-btn' : 'default-btn'"
<el-button
:type=
"type == 3"
@
click=
"getType(3)"
>
第三视角
</el-button>
@
click=
"getType(1)"
<el-button
:type=
"type == 4"
@
click=
"getType(4)"
>
第四视角
</el-button>
>
<el-button
:type=
"type == 5"
@
click=
"getType(5)"
>
第五视角
</el-button>
第一视角
<el-button
:type=
"type == 6"
@
click=
"getType(6)"
>
第六视角
</el-button>
</button>
<button
:class=
"type == 2 ? 'active-btn' : 'default-btn'"
@
click=
"getType(2)"
>
第二视角
</button>
<!--
<button
:class=
"type == 3 ? 'active-btn' : 'default-btn'"
@
click=
"getType(3)"
>
第三视角
</button>
<button
:class=
"type == 4 ? 'active-btn' : 'default-btn'"
@
click=
"getType(4)"
>
第四视角
</button>
<button
:class=
"type == 5 ? 'active-btn' : 'default-btn'"
@
click=
"getType(5)"
>
第五视角
</button>
<button
:class=
"type == 6 ? 'active-btn' : 'default-btn'"
@
click=
"getType(6)"
>
第六视角
</button>
-->
</div>
</div>
<pie>
</pie>
<pie
ref=
"zutai"
:backgroundImage=
"pic1"
>
</pie>
</el-col>
</el-row>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
pie
from
'@/views/makePie/index.vue'
import
pie
from
'@/views/makePie/index.vue'
import
pic1
from
'@/assets/image/变压器抠图-1.png'
import
pic2
from
'@/assets/image/变压器抠图-2.png'
export
default
{
export
default
{
components
:
{
components
:
{
pie
:
pie
pie
:
pie
...
@@ -20,7 +56,9 @@ export default {
...
@@ -20,7 +56,9 @@ export default {
data
()
{
data
()
{
return
{
return
{
name
:
'特变电压器'
,
name
:
'特变电压器'
,
type
:
1
type
:
1
,
pic1
,
pic2
}
}
},
},
getType
(
e
)
{
getType
(
e
)
{
...
@@ -30,9 +68,22 @@ export default {
...
@@ -30,9 +68,22 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.default-btn
{
width
:
145px
;
height
:
58px
;
background
:
#ffffff
;
border-radius
:
29px
;
}
.active-btn
{
width
:
145px
;
height
:
58px
;
background
:
#ffffff
;
border-radius
:
29px
;
}
.pageindex
{
.pageindex
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
.index-top
{
.index-top
{
display
:
flex
;
display
:
flex
;
.top-left
{
.top-left
{
...
...
src/views/makePie/index copy 2.vue
0 → 100644
View file @
076a4d68
This diff is collapsed.
Click to expand it.
src/views/makePie/index.vue
View file @
076a4d68
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
076a4d68
...
@@ -61,7 +61,7 @@ module.exports = {
...
@@ -61,7 +61,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://49.232.167.247:20014/`,
// target: `http://49.232.167.247:20014/`,
// target: `http://192.168.10.185:8084/`,
// target: `http://192.168.10.185:8084/`,
target
:
`http://1
92.168.1.19:808
2/`
,
target
:
`http://1
06.3.97.198:2016
2/`
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
}
}
...
...
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