Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
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
李苏
zghywpc-vue
Commits
999317f7
Commit
999317f7
authored
Sep 25, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
3f9d7a5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
864 additions
and
818 deletions
+864
-818
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+864
-818
No files found.
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
999317f7
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-09-25 1
6:20:23
* @LastEditTime: 2024-09-25 1
8:00:01
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
<
template
>
...
...
@@ -279,9 +279,9 @@
<span>
溯源排查
</span>
<b
class=
"data-title-right"
>
]
</b>
</div>
<div
class=
"full "
style=
"height: calc(100% - 14px);padding-top: 12px;padding-left:
50
px;"
>
<div
class=
"full "
style=
"height: calc(100% - 14px);padding-top: 12px;padding-left:
25
px;"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
style=
"width: 100%;"
>
<el-col
:span=
"
4
"
class=
"search-col"
>
<el-col
:span=
"
3
"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
><span
style=
"color: rgb(255, 73, 73); margin-right: 4px;"
>
*
</span>
功能位置:
</span>
<el-input
v-model=
"sypcQueryParams.gnwz"
></el-input>
...
...
@@ -316,7 +316,7 @@
<el-input
v-model=
"sypcQueryParams.cz"
></el-input>
</div>
</el-col>
<el-col
:span=
"
4
"
class=
"search-col flex-center"
>
<el-col
:span=
"
3
"
class=
"search-col flex-center"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
流动特性:
</span>
<RelSelect
placeholder=
''
style=
"width: 100%;"
src=
'ywxxgl/uywxx/init/ldtx '
filterable
clearable
...
...
@@ -329,14 +329,20 @@
<el-button
style=
"background-color: rgba(7,32,96,0.0);border: 1px solid #68D8FE; color: #68D8FE;"
size=
"mini"
@
click=
"sypc()"
type=
"primary"
>
溯源排查
</el-button>
</el-col>
<el-col
:span=
"2"
class=
"search-col flex-center"
style=
"padding-right: 10px;"
>
<el-col
:span=
"2"
class=
"search-col flex-center"
style=
"padding-left: 20px;"
>
<el-button
style=
"background-color: rgba(7,32,96,0.0);border: 1px solid #68D8FE; color: #68D8FE;"
size=
"mini"
@
click=
"czmx()"
type=
"primary"
>
重置模型
</el-button>
</el-col>
<el-col
:span=
"2"
class=
"search-col flex-center"
style=
"padding-left: 20px;"
>
<el-button
@
click=
"savePdf()"
style=
"background-color: rgba(7,32,96,0.0);border: 1px solid #68D8FE; color: #68D8FE;"
size=
"mini"
type=
"primary"
>
溯源日志
</el-button>
</el-col>
</el-row>
<!--
<!--
<el-row
:gutter=
"24"
class=
"search-row-1"
style=
"width: 100%;"
>
<el-col
:span=
"20"
class=
"search-col"
>
...
...
@@ -506,6 +512,8 @@
},
data
()
{
return
{
/* pdf-*/
pdfBytes
:
''
,
mxbshow
:
false
,
sblxCode
:
''
,
sblxcxwcxdxx
:
false
,
...
...
@@ -618,7 +626,44 @@
this
.
apiJzbm
()
},
/* 点击按钮弹出异物,然后选中*/
savePdf
(){
if
(
this
.
pdfBytes
){
const
base64String
=
this
.
pdfBytes
;
const
linkSource
=
`data:application/pdf;base64,
${
base64String
}
`
;
const
downloadLink
=
document
.
createElement
(
'a'
);
const
fileName
=
'排除日志.pdf'
;
downloadLink
.
href
=
linkSource
;
downloadLink
.
download
=
fileName
;
downloadLink
.
click
();
downloadLink
.
remove
()
}
else
{
this
.
$warning
(
'请溯源后,再保存为排除日志'
)
}
},
sypcMethods
(
res
)
{
// function byteStringToUint8Array(byteString) {
// const byteArray = new Uint8Array(byteString.length);
// for (let i = 0; i
<
byteString
.
length
;
i
++
)
{
// byteArray[i] = byteString.charCodeAt(i);
// }
// return byteArray;
// }
// let byteArray =byteStringToUint8Array(res.data.records.pdfBytes)
// const blob = new Blob([byteArray], { type: 'application/pdf' });
// const url = URL.createObjectURL(blob);
// const a = document.createElement('a');
// a.href = url;
// a.download = 'document.pdf'; // 设置下载文件名
// // 触发下载
// document.body.appendChild(a);
// a.click();
// a.remove()
this
.
pdfBytes
=
res
.
data
.
records
.
pdfBytes
/* -
-*/
let
sbxxList
=
res
.
data
.
records
.
kshSbInfos
||
[]
let
zbInfos
=
res
.
data
.
records
.
zbInfos
||
[]
/* 进行标记设备*/
...
...
@@ -648,7 +693,8 @@
sbxxCodeList
.
forEach
(
item
=>
{
if
(
model
.
name
.
includes
(
item
))
{
isbh
=
true
}})
}
})
if
(
isbh
)
{
model
.
visible
=
true
...
...
@@ -1715,7 +1761,7 @@
margin-top
:
185px
;
width
:
28%
;
left
:
15px
;
height
:
calc
(
100%
-
205px
+
10px
)
;
height
:
calc
(
100%
-
205px
+
10px
);
z-index
:
12
;
display
:
flex
;
flex-direction
:
column
;
...
...
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