Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
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
首开风险隐患双控平台
BCDH-APP
Commits
a3e5de16
Commit
a3e5de16
authored
Oct 29, 2021
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转电子签名返回时候 切换到问题记录,回显问题记录
解润东 2021102902
parent
ea1bdbfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
src/views/notice/noticeList/index.vue
src/views/notice/noticeList/index.vue
+7
-3
src/views/notice/noticeList/sign/index.vue
src/views/notice/noticeList/sign/index.vue
+13
-2
No files found.
src/views/notice/noticeList/index.vue
View file @
a3e5de16
...
...
@@ -107,13 +107,17 @@ export default {
this
.
init
()
//从session中获取签名生成的图片
if
(
sessionStorage
.
getItem
(
'
resultImg
'
)){
console
.
log
(
sessionStorage
.
getItem
(
'
resultImg
'
))
this
.
resultImg
=
sessionStorage
.
getItem
(
'
resultImg
'
)
}
//获取图片是否显示的布尔值
if
(
this
.
$route
.
query
.
isImg
){
console
.
log
(
this
.
$route
.
query
)
this
.
istext
=
false
this
.
isImg
=
true
this
.
active
=
1
this
.
value
=
this
.
$route
.
query
.
value
this
.
checkedAll
=
this
.
$route
.
query
.
checkedAll
this
.
result
=
this
.
$route
.
query
.
result
}
},
methods
:
{
...
...
@@ -178,7 +182,6 @@ export default {
/* 时间戳转换 */
onConfirm
(
date
)
{
this
.
value
=
`
${
date
.
getFullYear
()}
-
${
date
.
getMonth
()
+
1
}
-
${
date
.
getDate
()}
`
;
console
.
log
(
this
.
value
)
this
.
showCalendar
=
false
;
},
cancel
(){
...
...
@@ -202,8 +205,9 @@ export default {
},
//电子签名
sign
(){
//点击电子签名,保存用户选择的日期和复选框回显值
if
(
this
.
finish
==
'
false
'
){
this
.
$router
.
push
(
'
/sign
'
)
this
.
$router
.
push
(
{
name
:
'
sign
'
,
query
:{
value
:
this
.
value
,
result
:
this
.
result
,
checkedAll
:
this
.
checkedAll
}}
)
}
},
//提交问题记录
...
...
src/views/notice/noticeList/sign/index.vue
View file @
a3e5de16
...
...
@@ -27,9 +27,19 @@ export default {
lineColor
:
'
red
'
,
bgColor
:
''
,
resultImg
:
''
,
isCrop
:
false
isCrop
:
false
,
value
:
''
,
result
:[],
checkedAll
:
''
};
},
mounted
(){
if
(
this
.
$route
.
name
==
'
sign
'
){
this
.
value
=
this
.
$route
.
query
.
value
this
.
result
=
this
.
$route
.
query
.
result
this
.
checkedAll
=
this
.
$route
.
query
.
checkedAll
}
},
methods
:
{
handleReset
()
{
...
...
@@ -41,7 +51,8 @@ export default {
this
.
$refs
.
esign
.
generate
().
then
(
res
=>
{
this
.
resultImg
=
res
//把base64赋给img
//生成图片后存储到session中并跳转把图片是否显示的boolean带过去
this
.
$router
.
push
({
name
:
'
noticeList
'
,
query
:{
isImg
:
true
}})
console
.
log
(
this
.
value
)
this
.
$router
.
push
({
name
:
'
noticeList
'
,
query
:{
isImg
:
true
,
value
:
this
.
value
,
result
:
this
.
result
,
checkedAll
:
this
.
checkedAll
}})
sessionStorage
.
setItem
(
'
resultImg
'
,
this
.
resultImg
)
}).
catch
(
err
=>
{
// 画布没有签字时会执行这里
...
...
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