Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
ZiBoYingJI
Commits
4371b3cf
Commit
4371b3cf
authored
Sep 25, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子档案 变形监测y轴处理
parent
4226a5bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
shape-monitor.html
public/datav/detail/shape-monitor.html
+17
-7
index.vue
src/views/edoc/index.vue
+12
-10
No files found.
public/datav/detail/shape-monitor.html
View file @
4371b3cf
...
...
@@ -292,6 +292,7 @@
symbol
:
'
none
'
// 移除箭头
}
}
var
chartsOption
=
{
legend
:
{
textStyle
:
{
...
...
@@ -318,10 +319,10 @@
yAxis
:
[{
type
:
'
value
'
,
name
:
'
单位(mm)
'
,
position
:
'
right
'
,
nameTextStyle
:
{
color
:
'
#fff
'
},
position
:
'
left
'
,
show
:
true
,
// 显示 Y 轴
splitLine
:
{
show
:
false
},
nameTextStyle
:
{
color
:
'
#fff
'
},
axisLabel
:
{
show
:
true
,
// 显示刻度标签
textStyle
:
{
color
:
'
#fff
'
}
...
...
@@ -330,15 +331,13 @@
show
:
true
},
axisTick
:
{
show
:
true
},
title
:
{
text
:
'
Precipitation
'
,
// 这是你的 Y 轴标题
color
:
'
#a3e4f5
'
// 这里设置你的颜色,你可以使用十六进制颜色代码,如 '#FF0000',或者 RGB 等
}
min
:
0
,
max
:
100
,
},
{
type
:
'
value
'
,
name
:
'
单位(mm)
'
,
nameTextStyle
:
{
color
:
'
#fff
'
},
position
:
'
lef
t
'
,
position
:
'
righ
t
'
,
show
:
true
,
// 显示 Y 轴
splitLine
:
{
show
:
false
},
axisLabel
:
{
...
...
@@ -352,6 +351,8 @@
show
:
true
},
axisTick
:
{
show
:
true
},
min
:
0
,
max
:
100
,
}],
grid
:
{
right
:
45
,
top
:
40
,
left
:
40
,
bottom
:
25
},
dataZoom
:
[
...
...
@@ -389,6 +390,15 @@
}).
then
(
res
=>
{
const
result
=
res
.
data
.
body
;
if
(
result
)
{
const
max
=
result
.
max
if
(
max
){
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
0
].
min
=
-
max
chartsOption
.
yAxis
[
1
].
max
=
max
chartsOption
.
yAxis
[
1
].
min
=
-
max
}
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
yAxisOption
));
...
...
src/views/edoc/index.vue
View file @
4371b3cf
...
...
@@ -72,13 +72,13 @@
:ref=
"`addhdpic`"
class=
"helloworld"
type=
"file"
accept=
".pdf"
accept
1
=
".pdf"
hidden
@
change=
"addhdPicChange"
/>
</label>
<
span>
仅支持pdf格式文件
</span
>
<
!--
<span>
仅支持pdf格式文件
</span>
--
>
</el-form-item>
<el-form-item
label=
""
>
<div
v-for=
"(item, index) in uploadedFiles"
:key=
"item.name + index"
>
...
...
@@ -182,15 +182,9 @@
width=
"100"
/>
<el-table-column
width=
"200px"
prop=
"createTime"
label=
"录入时间"
/>
<el-table-column
label=
"操作"
width=
"230px"
align=
"
center
"
>
<el-table-column
label=
"操作"
width=
"230px"
align=
"
left
"
>
<template
slot-scope=
"scope"
>
<el-button
v-show=
"scope.row.downloadWhether"
type=
"primary"
size=
"mini"
@
click=
"viewFile(scope.row)"
>
预览
</el-button
>
<el-button
v-show=
"scope.row.downloadWhether"
type=
"primary"
...
...
@@ -205,6 +199,14 @@
@
click=
"delFileById(scope.row)"
>
删除
</el-button
>
<el-button
v-show=
"scope.row.downloadWhether && (scope.row.filePath.indexOf('.pdf')>-1)"
type=
"primary"
size=
"mini"
@
click=
"viewFile(scope.row)"
>
预览
</el-button
>
</
template
>
</el-table-column>
</el-table>
...
...
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