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
9a8cc915
Commit
9a8cc915
authored
Nov 15, 2021
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
20211115 解润东
parent
57380a7e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
265 additions
and
164 deletions
+265
-164
src/App.vue
src/App.vue
+1
-0
src/views/checked/problem/index.vue
src/views/checked/problem/index.vue
+2
-0
src/views/checked/problem/list/index.vue
src/views/checked/problem/list/index.vue
+2
-3
src/views/checked/problem/note/edit/index.vue
src/views/checked/problem/note/edit/index.vue
+21
-5
src/views/checked/problem/note/index.vue
src/views/checked/problem/note/index.vue
+7
-6
src/views/checkedConfirm/confirmNote/index.vue
src/views/checkedConfirm/confirmNote/index.vue
+62
-86
src/views/checkedConfirm/index.vue
src/views/checkedConfirm/index.vue
+3
-1
src/views/notice/index.vue
src/views/notice/index.vue
+1
-0
src/views/notice/noticeList/detail/index.vue
src/views/notice/noticeList/detail/index.vue
+1
-1
src/views/notice/noticeList/edit/index.vue
src/views/notice/noticeList/edit/index.vue
+17
-8
src/views/notice/noticeList/index.vue
src/views/notice/noticeList/index.vue
+131
-46
src/views/notice/noticeList/sign/index.vue
src/views/notice/noticeList/sign/index.vue
+17
-8
No files found.
src/App.vue
View file @
9a8cc915
...
...
@@ -45,6 +45,7 @@ export default {
"
major-survey
"
,
"
risk-add
"
,
"
noticeList
"
,
"
confirmNote
"
,
],
};
},
...
...
src/views/checked/problem/index.vue
View file @
9a8cc915
...
...
@@ -118,7 +118,9 @@ export default {
finish
:
this
.
finish
}
})
console
.
log
(
this
.
nums
.
id
)
sessionStorage
.
setItem
(
'
noteId
'
,
this
.
nums
.
id
)
sessionStorage
.
setItem
(
'
checkedFinish
'
,
this
.
finish
)
},
formwork
(){
this
.
$router
.
push
({
name
:
'
formwork
'
,
query
:{
id
:
this
.
id
,
finish
:
this
.
finish
}})
...
...
src/views/checked/problem/list/index.vue
View file @
9a8cc915
...
...
@@ -34,7 +34,6 @@
label=
"法律依据"
placeholder=
"法律依据"
:disabled=
"isFormwork"
:rules=
"[
{ required: true, message: '请填写法律依据' }]"
/>
<van-field
v-model=
"problemPosition"
...
...
@@ -64,12 +63,12 @@
/>
<!--
<van-area
title=
"标题"
:area-list=
"areaList"
@
confirm=
"onConfirm"
/>
-->
</van-popup>
<van-field
name=
"uploader"
label=
"图像上传"
:rules=
"[
{ required: true, message: '请上传图像' }]"
>
<van-field
name=
"uploader"
label=
"图像上传"
>
<template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderImg"
/>
</
template
>
</van-field>
<van-field
name=
"uploader2"
label=
"视频上传"
:rules=
"[{ required: true, message: '请上传视频' }]"
>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderVideo"
/>
</
template
>
...
...
src/views/checked/problem/note/edit/index.vue
View file @
9a8cc915
...
...
@@ -95,10 +95,16 @@ export default {
mounted
()
{
if
(
this
.
$route
.
query
.
name
==
'
note
'
){
this
.
editObj
=
JSON
.
parse
(
this
.
$route
.
query
.
obj
)
this
.
editObj
.
value
=
""
this
.
editObj
.
pictures
=
[]
this
.
editObj
.
videos
=
[]
console
.
log
(
this
.
editObj
)
this
.
editObj
=
{
id
:
this
.
editObj
.
id
,
//问题ID
address
:
this
.
editObj
.
address
,
//问题位置
value
:
this
.
editObj
.
deptNames
.
join
(
'
/
'
),
//责任单位
context
:
this
.
editObj
.
context
,
//问题描述
checkBasis
:
this
.
editObj
.
checkBasis
,
//法律依据
pictures
:
this
.
editObj
.
pictures
,
//图片
videos
:
this
.
editObj
.
videos
//视频
}
this
.
ids
=
this
.
editObj
.
deptIds
}
this
.
init
()
},
...
...
@@ -134,10 +140,20 @@ export default {
value
.
uploader
.
forEach
((
item
)
=>
{
pictures
.
push
(
item
.
content
)
});
if
(
this
.
editObj
.
pictures
){
this
.
editObj
.
pictures
.
forEach
((
item
)
=>
{
pictures
.
push
(
item
)
})
}
var
videos
=
[];
value
.
uploader2
.
forEach
((
item
)
=>
{
videos
.
push
(
item
.
content
)
});
})
if
(
this
.
editObj
.
videos
){
this
.
editObj
.
videos
.
forEach
((
item
)
=>
{
videos
.
push
(
item
)
})
}
var
obj
=
{
id
:
this
.
editObj
.
id
,
//列表ID
pictures
:
pictures
,
//图片
...
...
src/views/checked/problem/note/index.vue
View file @
9a8cc915
...
...
@@ -15,8 +15,8 @@
<div
class=
"card"
v-for=
"(item,index) in list"
:key=
"index"
>
<van-overlay
@
click.stop=
"close(item)"
:show=
"item.show"
>
<van-button
round
type=
"primary"
@
click.stop=
"detail(index,item)"
>
详情
</van-button>
<van-button
round
type=
"info"
@
click.stop=
"update(index,item)"
>
修改
</van-button>
<van-button
round
type=
"warning "
@
click.stop=
"Delete(item)"
>
删除
</van-button>
<van-button
round
type=
"info"
v-show=
"!finish"
@
click.stop=
"update(index,item)"
>
修改
</van-button>
<van-button
round
type=
"warning "
v-show=
"!finish"
@
click.stop=
"Delete(item)"
>
删除
</van-button>
</van-overlay>
<van-checkbox
:name=
"item.id"
:disabled=
"finish=='true'?true:item.checkSubmitId?true:false"
>
问题
{{
index
+
1
}}
</van-checkbox>
<div
@
click=
"cardClick(item)"
>
...
...
@@ -57,11 +57,11 @@ export default {
}
},
mounted
()
{
if
(
sessionStorage
.
getItem
(
'
no
d
eId
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
no
d
eId
'
)
if
(
sessionStorage
.
getItem
(
'
no
t
eId
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
no
t
eId
'
)
}
if
(
this
.
$route
.
query
.
finish
){
this
.
finish
=
this
.
$route
.
query
.
finish
if
(
sessionStorage
.
getItem
(
'
checkedFinish
'
)
){
this
.
finish
=
sessionStorage
.
getItem
(
'
checkedFinish
'
)
}
this
.
init
()
},
...
...
@@ -176,6 +176,7 @@ export default {
id
:
item
.
id
,
//问题ID
address
:
item
.
address
,
//问题位置
deptId
:
item
.
deptIds
,
//责任单位ID
deptNames
:
item
.
deptNames
,
//责任单位名称
context
:
item
.
context
,
//问题描述
checkBasis
:
item
.
checkBasis
,
//法律依据
pictures
:
item
.
pictures
,
//图片
...
...
src/views/checkedConfirm/confirmNote/index.vue
View file @
9a8cc915
...
...
@@ -27,9 +27,9 @@
</div>
</div>
</van-checkbox-group>
<div
class=
"page-footer"
>
<
!--
<
div
class=
"page-footer"
>
<van-checkbox
v-model=
"checkedAll"
@
change=
"checkedAllEvent"
@
click=
"checkedAllClick"
:disabled=
"finish=='true'?true:false"
>
全选
</van-checkbox>
</div>
</div>
-->
<van-field
readonly
clickable
...
...
@@ -43,18 +43,6 @@
<van-datetime-picker
v-model=
"currentDate"
type=
"datehour"
@
confirm=
"onConfirm"
@
cancel=
"showCalendar=false"
title=
"选择年月日小时"
/>
</van-popup>
<div
class=
"sign"
><span>
检查组负责人签字确认:
</span><van-tag
color=
"#ffe1e1"
:disabled=
"finish=='true'?true:false"
><p
v-show=
"istext"
@
click=
"sign"
>
电子签字
</p><img
class=
"sign-img"
v-show=
"isImg"
:src=
"resultImg"
alt=
""
></van-tag></div>
<van-field
readonly
clickable
name=
"person"
:value=
"person"
label=
"人员选择"
placeholder=
"请选择人员"
@
click=
"personChecked"
/>
<van-popup
v-model=
"showCalendar2"
position=
"bottom"
>
<van-picker
ref=
"apicker"
title=
"人员匹配"
show-toolbar
:columns=
"columns"
@
confirm=
"personOnConfirm"
@
cancel=
"showCalendar2=false"
/>
</van-popup>
<div
class=
"page-footer-button"
>
<van-button
round
type=
"info"
size=
"large"
@
click=
"commit"
:disabled=
"finish=='true'?true:isFinish==true?true:false"
>
整改确认
</van-button>
</div>
...
...
@@ -74,7 +62,6 @@ export default {
},
data
()
{
return
{
currentDate
:
new
Date
(),
//当前默认时间
dialogShow
:
false
,
//弹框是否显示
istext
:
true
,
//是否显示文字
isImg
:
false
,
//是否显示图片
...
...
@@ -89,24 +76,48 @@ export default {
id
:
''
,
//整改通知id
showCalendar
:
false
,
//日期弹出层状态
showCalendar2
:
false
,
//人员匹配弹出层状态
finish
:
tru
e
,
//检查状态
finish
:
fals
e
,
//检查状态
isFinish
:
false
,
//提交状态
person
:
''
,
//人员匹配
columns
:
''
,
//下拉数组
projectId
:
''
,
//判断请求树形菜单还是下拉框
}
},
watch
:{
},
activated
(){
//判断是否由确认列表跳转进来,清空表单获取新数据
if
(
this
.
$route
.
params
.
name
==
'
checkedConfirm
'
){
this
.
istext
=
true
//是否显示文字
this
.
isImg
=
false
//是否显示图片
this
.
value
=
''
//日期值
this
.
resultImg
=
''
//电子签名图片
this
.
id
=
this
.
$route
.
params
.
id
//请求问题记录列表的唯一id
this
.
noticeTableList
=
[];
//问题记录列表数组
if
(
sessionStorage
.
getItem
(
'
ConfirmFinish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
ConfirmFinish
'
)
}
}
//判断是否从电子签名跳转过来-获取图片是否显示的布尔值
if
(
this
.
$route
.
query
.
name
==
'
callbackSign
'
){
if
(
this
.
$route
.
query
.
confirmImg
==
true
||
this
.
$route
.
query
.
confirmImg
==
'
true
'
){
this
.
istext
=
false
this
.
isImg
=
true
//从session中获取签名生成的图片1
if
(
sessionStorage
.
getItem
(
'
confirmImg
'
)){
this
.
resultImg
=
sessionStorage
.
getItem
(
'
confirmImg
'
)
}
}
}
},
mounted
()
{
//获取确认id
if
(
this
.
$route
.
query
.
id
){
this
.
id
=
this
.
$route
.
query
.
id
this
.
projectId
=
this
.
$route
.
query
.
projectId
//刷新页面时候,从session中获取确认id
if
(
sessionStorage
.
getItem
(
'
ConfirmFinish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
ConfirmFinish
'
)
}
if
(
sessionStorage
.
getItem
(
'
ConfirmId
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
ConfirmId
'
)
}
this
.
problem
()
this
.
init
()
},
methods
:
{
/* 问题记录列表 */
...
...
@@ -143,51 +154,27 @@ export default {
if
(
Response
.
data
.
leaderSign
){
this
.
resultImg
=
Response
.
data
.
leaderSign
}
//电子签名数据2回显
if
(
Response
.
data
.
managerSign
){
this
.
resultImg2
=
Response
.
data
.
managerSign
}
//判断是否有签名
if
(
this
.
resultImg
){
this
.
istext
=
false
this
.
isImg
=
true
}
//判断是否有签名
if
(
this
.
resultImg2
){
this
.
istext2
=
false
this
.
isImg2
=
true
}
}
})
},
//请求人员匹配下拉菜单
init
(){
this
.
columns
=
[];
if
(
this
.
projectId
){
//请求下拉菜单
getFun
(
'
check/project/user/list
'
,{
projectId
:
this
.
projectId
}).
then
((
Response
)
=>
{
this
.
columns
=
Response
.
data
})
}
else
{
//请求下拉树形菜单
getFun
(
'
/check/dept/user/tree
'
,{
projectId
:
this
.
projectId
}).
then
((
Response
)
=>
{
this
.
columns
=
Response
.
data
})
}
},
/* 全选点击事件---只让全选框的触发全不选事件 */
checkedAllClick
(){
if
(
this
.
checkedAll
){
this
.
$refs
.
checkboxGroup
.
toggleAll
(
true
);
}
else
{
/* 全不选只可以控制未禁用状态下的复选框 */
for
(
var
key
of
this
.
$refs
.
checkboxGroup
.
$children
){
if
(
!
key
.
$el
.
_prevClass
.
includes
(
'
disabled
'
)){
key
.
toggle
(
false
)
}
}
}
},
//
checkedAllClick(){
//
if(this.checkedAll){
//
this.$refs.checkboxGroup.toggleAll(true);
//
}else{
//
/* 全不选只可以控制未禁用状态下的复选框 */
//
for(var key of this.$refs.checkboxGroup.$children){
//
if(!key.$el._prevClass.includes('disabled')){
//
key.toggle(false)
//
}
//
}
//
}
//
},
/* 复选框改变事件 */
checkedEvent
(){
if
(
this
.
result
.
length
==
this
.
noticeQuestionList
.
length
){
...
...
@@ -196,16 +183,13 @@ export default {
this
.
checkedAll
=
false
}
},
//人员选择事件
personChecked
(){
this
.
showCalendar2
=
true
//显示遮罩层
},
/* 全选框改变事件 */
checkedAllEvent
(){
if
(
this
.
checkedAll
){
this
.
$refs
.
checkboxGroup
.
toggleAll
(
true
);
}
},
//
checkedAllEvent(){
//
if(this.checkedAll){
//
this.$refs.checkboxGroup.toggleAll(true);
//
}
//
},
/* 时间戳转换 */
onConfirm
(
date
)
{
this
.
value
=
this
.
util
.
timestampToTime
(
date
,
'
DT1
'
,
true
)
...
...
@@ -231,7 +215,13 @@ export default {
sign
(){
//点击电子签名,保存用户选择的日期和复选框回显值
if
(
this
.
finish
==
'
false
'
){
this
.
$router
.
push
({
name
:
'
sign
'
,
query
:{
name
:
'
sign
'
,
img
:
true
}})
//每次签名检测需要签名的模块是哪个
if
(
sessionStorage
.
getItem
(
'
IsconfirmImg
'
)){
sessionStorage
.
removeItem
(
'
IsconfirmImg
'
)
}
else
{
sessionStorage
.
setItem
(
'
IsconfirmImg
'
,
true
)
}
this
.
$router
.
push
({
name
:
'
sign
'
,
query
:{
name
:
'
confirmNote
'
,
confirmImg
:
true
}})
}
},
//提交问题记录
...
...
@@ -259,11 +249,10 @@ export default {
loadingType
:
'
spinner
'
,
duration
:
0
})
postFun
(
'
check/
notify
/trouble
'
,
obj
).
then
((
Response
)
=>
{
postFun
(
'
check/
confirm
/trouble
'
,
obj
).
then
((
Response
)
=>
{
this
.
$toast
.
clear
()
this
.
$toast
.
success
(
'
提交成功
'
)
this
.
init
()
this
.
$router
.
push
(
'
/notice
'
)
this
.
$toast
.
success
(
'
确认成功
'
)
this
.
problem
()
}).
catch
(()
=>
{
this
.
$toast
.
clear
()
this
.
$toast
.
fail
(
'
提交失败,请稍后再试
'
)
...
...
@@ -286,19 +275,6 @@ export default {
this
.
$forceUpdate
()
//强制刷新
this
.
$router
.
push
({
name
:
'
confirmDetail
'
,
query
:{
id
:
item
.
id
}})
},
//人员匹配确认按钮
personOnConfirm
(){
//获取回显的部门值和部门id数组
this
.
person
=
""
this
.
ids
=
[]
var
valueList
=
this
.
$refs
.
apicker
.
getValues
()
valueList
.
forEach
((
item
)
=>
{
this
.
ids
.
push
(
item
.
id
)
this
.
person
+=
item
.
text
+
'
/
'
})
console
.
log
(
this
.
person
)
this
.
showCalendar2
=
false
;
}
}
}
</
script
>
...
...
src/views/checkedConfirm/index.vue
View file @
9a8cc915
...
...
@@ -61,7 +61,9 @@ export default {
})
},
cardLocation
(
item
){
this
.
$router
.
push
({
name
:
'
confirmNote
'
,
query
:{
projectId
:
item
.
projectId
,
id
:
item
.
id
}})
//此id来判断是否加载问题上报新数据
sessionStorage
.
setItem
(
'
ConfirmFinish
'
,
item
.
finish
)
sessionStorage
.
setItem
(
'
ConfirmId
'
,
item
.
id
)
this
.
$router
.
push
({
name
:
'
confirmNote
'
,
params
:{
name
:
'
checkedConfirm
'
,
id
:
item
.
id
}})
//此id来判断是否加载问题上报新数据
}
}
}
...
...
src/views/notice/index.vue
View file @
9a8cc915
...
...
@@ -60,6 +60,7 @@ export default {
})
},
cardLocation
(
item
){
sessionStorage
.
setItem
(
'
projectId
'
,
item
.
projectId
)
sessionStorage
.
setItem
(
'
finish
'
,
item
.
finish
)
sessionStorage
.
setItem
(
'
id
'
,
item
.
id
)
this
.
$router
.
push
({
...
...
src/views/notice/noticeList/detail/index.vue
View file @
9a8cc915
...
...
@@ -13,7 +13,7 @@
<LHeader
v-bind:text=
"text"
></LHeader>
<div
class=
"card"
>
<div>
问题位置:
{{
list
.
address
}}
</div>
<div>
责任单位:
{{
list
.
deptNames
}}
</div>
<div>
责任单位:
{{
list
.
deptNames
.
join
(
'
/
'
)
}}
</div>
<div>
问题描述:
{{
list
.
context
}}
</div>
<div>
法律依据:
{{
list
.
checkBasis
}}
</div>
<div>
图片展示:
<van-uploader
multiple
:deletable=
"false"
:show-upload=
"false"
v-model=
"list.pictures"
/></div>
...
...
src/views/notice/noticeList/edit/index.vue
View file @
9a8cc915
...
...
@@ -96,12 +96,18 @@ export default {
if
(
this
.
$route
.
query
.
name
==
'
noticeList
'
){
this
.
editObj
=
JSON
.
parse
(
this
.
$route
.
query
.
obj
)
this
.
editObj
.
value
=
""
this
.
editObj
.
pictures
=
[]
this
.
editObj
.
videos
=
[]
this
.
editObj
=
{
id
:
this
.
editObj
.
id
,
//问题ID
address
:
this
.
editObj
.
address
,
//问题位置
value
:
this
.
editObj
.
deptNames
.
join
(
'
/
'
),
//责任单位
context
:
this
.
editObj
.
context
,
//问题描述
checkBasis
:
this
.
editObj
.
checkBasis
,
//法律依据
pictures
:
this
.
editObj
.
pictures
,
//图片
videos
:
this
.
editObj
.
videos
//视频
}
this
.
ids
=
this
.
editObj
.
deptIds
}
console
.
log
(
this
.
editObj
)
this
.
init
()
},
methods
:
{
...
...
@@ -132,12 +138,15 @@ export default {
/* 问题提交 */
onSubmit
(
value
){
var
pictures
=
[];
console
.
log
(
value
)
value
.
uploader
.
forEach
((
item
)
=>
{
pictures
.
push
(
item
.
content
)
if
(
item
.
content
){
pictures
.
push
(
item
.
content
)}
else
if
(
item
){
pictures
.
push
(
item
)}
});
var
videos
=
[];
value
.
uploader2
.
forEach
((
item
)
=>
{
videos
.
push
(
item
.
content
)
if
(
item
.
content
){
videos
.
push
(
item
.
content
)}
else
if
(
item
){
videos
.
push
(
item
)}
});
var
obj
=
{
id
:
this
.
editObj
.
id
,
//列表ID
...
...
@@ -165,9 +174,9 @@ export default {
duration
:
2000
})
this
.
$router
.
push
({
name
:
'
not
e
'
,
name
:
'
not
iceList
'
,
query
:{
pageName
:
'
problemLis
t
'
pageName
:
'
noticeListEdi
t
'
}
})
}).
catch
(()
=>
{
...
...
src/views/notice/noticeList/index.vue
View file @
9a8cc915
...
...
@@ -81,9 +81,21 @@
<van-popup
v-model=
"showCalendar"
position=
"bottom"
>
<van-datetime-picker
v-model=
"currentDate"
type=
"datehour"
@
confirm=
"onConfirm"
@
cancel=
"showCalendar=false"
title=
"选择年月日小时"
/>
</van-popup>
<van-field
readonly
clickable
name=
"person"
:value=
"person"
label=
"人员选择"
placeholder=
"请选择人员"
@
click=
"personChecked"
/>
<van-popup
v-model=
"showCalendar2"
position=
"bottom"
>
<van-picker
ref=
"apicker"
title=
"人员匹配"
show-toolbar
:columns=
"columns"
@
confirm=
"personOnConfirm"
@
cancel=
"showCalendar2=false"
/>
</van-popup>
<!--
<van-calendar
v-model=
"showCalendar"
@
confirm=
"onConfirm"
/>
-->
<div
class=
"sign"
><span>
检查组负责人签字确认:
</span><van-tag
color=
"#ffe1e1"
:disabled=
"finish=='true'?true:false"
><p
v-show=
"istext"
@
click=
"sign"
>
电子签字
</p><img
class=
"sign-img"
v-show=
"isImg"
:src=
"resultImg"
alt=
""
></van-tag></div>
<
div
class=
"sign2"
><span>
项目经理签字确认:
</span><van-tag
color=
"#ffe1e1"
:disabled=
"finish=='true'?true:false"
><p
v-show=
"istext2"
@
click=
"sign2"
>
电子签字
</p><img
class=
"sign-img2"
v-show=
"isImg2"
:src=
"resultImg2"
alt=
""
></van-tag></div
>
<
!--
<div
class=
"sign2"
><span>
项目经理签字确认:
</span><van-tag
color=
"#ffe1e1"
:disabled=
"finish=='true'?true:false"
><p
v-show=
"istext2"
@
click=
"sign2"
>
电子签字
</p><img
class=
"sign-img2"
v-show=
"isImg2"
:src=
"resultImg2"
alt=
""
></van-tag></div>
--
>
<div
class=
"page-footer-button"
>
<van-button
round
type=
"info"
size=
"large"
@
click=
"commit"
:disabled=
"finish=='true'?true:isFinish==true?true:false"
>
生成整改通知单
</van-button>
</div>
...
...
@@ -111,10 +123,10 @@ export default {
dialogShow
:
false
,
//弹框是否显示
istext
:
true
,
//是否显示文字
isImg
:
false
,
//是否显示图片
istext2
:
true
,
//是否显示文字2
isImg2
:
false
,
//是否显示图片2
//
istext2:true,//是否显示文字2
//
isImg2:false,//是否显示图片2
resultImg
:
''
,
//电子签名图片
resultImg2
:
''
,
//电子签名图片2
//
resultImg2:'',//电子签名图片2
noticeQuestionList
:[],
//整改通知问题记录列表
active
:
0
,
//tab选中状态
checkedAll
:
false
,
//全选状态
...
...
@@ -124,6 +136,7 @@ export default {
value
:
''
,
//日期值
id
:
''
,
//整改通知id
showCalendar
:
false
,
//弹出层状态
showCalendar2
:
false
,
//人员匹配弹出层状态
finish
:
''
,
//检查状态
isFinish
:
false
,
//提交状态
dialogTitle
:
'
标题
'
,
//弹框标题
...
...
@@ -134,6 +147,10 @@ export default {
address
:
''
,
//问题位置
context
:
''
//问题内容
},
ids
:[],
//人员匹配数组
columns
:[],
//人员匹配下拉数据数组默认值
person
:
''
,
//人员匹配默认值
projectId
:
''
,
}
},
watch
:{
...
...
@@ -144,19 +161,24 @@ export default {
if
(
this
.
$route
.
params
.
name
==
'
notice
'
){
//清空表单
this
.
value
=
""
this
.
person
=
""
this
.
active
=
0
this
.
checkedAll
=
false
this
.
result
=
[];
this
.
resultImg
=
""
this
.
resultImg2
=
""
//
this.resultImg2=""
this
.
isImg
=
false
;
this
.
istext
=
true
this
.
isImg2
=
false
;
this
.
istext2
=
true
//
this.isImg2=false;
//
this.istext2=true
//获取检查id
if
(
sessionStorage
.
getItem
(
'
id
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
id
'
)
}
//获取人员匹配projectId
if
(
sessionStorage
.
getItem
(
'
projectId
'
)){
this
.
projectId
=
sessionStorage
.
getItem
(
'
projectId
'
)
}
//获取检查状态
if
(
sessionStorage
.
getItem
(
'
finish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
...
...
@@ -164,23 +186,41 @@ export default {
this
.
init
()
}
//判断是否从电子签名跳转过来-获取图片是否显示的布尔值
if
(
this
.
$route
.
query
.
name
==
'
noticeList
'
){
if
(
this
.
$route
.
query
.
img
==
true
){
if
(
this
.
$route
.
query
.
name
==
'
sign
'
){
if
(
this
.
$route
.
query
.
img
==
true
||
this
.
$route
.
query
.
img
==
'
true
'
){
this
.
istext
=
false
this
.
isImg
=
true
//从session中获取签名生成的图片1
if
(
sessionStorage
.
getItem
(
'
resultImg
'
)){
this
.
resultImg
=
sessionStorage
.
getItem
(
'
resultImg
'
)
}
}
else
if
(
this
.
$route
.
query
.
img2
==
true
){
//从session中获取签名生成的图片2
if
(
sessionStorage
.
getItem
(
'
resultImg2
'
)){
this
.
resultImg2
=
sessionStorage
.
getItem
(
'
resultImg2
'
)
}
this
.
istext2
=
false
this
.
isImg2
=
true
}
// else if(this.$route.query.img2==true){
// //从session中获取签名生成的图片2
// if(sessionStorage.getItem('resultImg2')){
// this.resultImg2=sessionStorage.getItem('resultImg2')
// }
// this.istext2=false
// this.isImg2=true
// }
this
.
active
=
1
}
//判断是否编辑页面跳转进来
if
(
this
.
$route
.
query
.
pageName
==
'
noticeListEdit
'
){
//获取检查id
if
(
sessionStorage
.
getItem
(
'
id
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
id
'
)
}
//获取检查状态
if
(
sessionStorage
.
getItem
(
'
finish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
}
//获取人员匹配projectId
if
(
sessionStorage
.
getItem
(
'
projectId
'
)){
this
.
projectId
=
sessionStorage
.
getItem
(
'
projectId
'
)
}
this
.
active
=
1
this
.
init
()
}
},
mounted
()
{
...
...
@@ -192,6 +232,10 @@ export default {
if
(
sessionStorage
.
getItem
(
'
finish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
}
//获取人员匹配projectId
if
(
sessionStorage
.
getItem
(
'
projectId
'
)){
this
.
projectId
=
sessionStorage
.
getItem
(
'
projectId
'
)
}
this
.
init
()
},
methods
:
{
...
...
@@ -205,8 +249,32 @@ export default {
})
await
this
.
statusList
()
await
this
.
problem
()
await
this
.
Selection
()
this
.
$toast
.
clear
()
},
//请求人员匹配下拉菜单
Selection
(){
this
.
columns
=
[];
if
(
this
.
projectId
!=
'
null
'
){
//请求下拉菜单
getFun
(
'
check/project/user/list/
'
+
this
.
projectId
).
then
((
Response
)
=>
{
if
(
Response
.
data
.
length
){
Response
.
data
.
forEach
((
item
)
=>
{
this
.
columns
.
push
({
text
:
item
.
username
,
id
:
item
.
id
})
})
}
})
}
else
{
//请求下拉树形菜单
getFun
(
'
/check/dept/user/tree
'
).
then
((
Response
)
=>
{
this
.
columns
=
Response
.
data
})
}
},
/* 上报状态列表 */
statusList
(){
this
.
noticeTableList
=
[]
...
...
@@ -242,20 +310,20 @@ export default {
if
(
Response
.
data
.
leaderSign
){
this
.
resultImg
=
Response
.
data
.
leaderSign
}
//电子签名数据2回显
if
(
Response
.
data
.
managerSign
){
this
.
resultImg2
=
Response
.
data
.
managerSign
}
//
//
电子签名数据2回显
//
if(Response.data.managerSign){
//
this.resultImg2=Response.data.managerSign
//
}
//判断是否有签名
if
(
this
.
resultImg
){
this
.
istext
=
false
this
.
isImg
=
true
}
//判断是否有签名
if
(
this
.
resultImg2
){
this
.
istext2
=
false
this
.
isImg2
=
true
}
//
//
判断是否有签名
//
if(this.resultImg2){
//
this.istext2=false
//
this.isImg2=true
//
}
}
})
},
...
...
@@ -314,13 +382,13 @@ export default {
this
.
$router
.
push
({
name
:
'
sign
'
,
query
:{
name
:
'
sign
'
,
img
:
true
}})
}
},
//电子签名2
sign2
(){
//点击电子签名,保存用户选择的日期和复选框回显值
if
(
this
.
finish
==
'
false
'
){
this
.
$router
.
push
({
name
:
'
sign
'
,
query
:{
name
:
'
sign
'
,
img2
:
true
}})
}
},
//
//
电子签名2
//
sign2(){
//
//点击电子签名,保存用户选择的日期和复选框回显值
//
if(this.finish=='false'){
//
this.$router.push({name:'sign',query:{name:'sign',img2:true}})
//
}
//
},
//提交问题记录
commit
(){
var
checkedList
=
[]
...
...
@@ -337,7 +405,7 @@ export default {
troubleIds
:
checkedList
,
finishTime
:
this
.
value
,
leaderSign
:
this
.
resultImg
,
managerSign
:
this
.
resultImg2
ids
:
this
.
ids
}
this
.
$dialog
.
confirm
({
title
:
'
提示
'
,
...
...
@@ -378,6 +446,7 @@ export default {
id
:
item
.
id
,
//问题ID
address
:
item
.
address
,
//问题位置
deptId
:
item
.
deptIds
,
//责任单位ID
deptNames
:
item
.
deptNames
,
//责任单位名称数组
context
:
item
.
context
,
//问题描述
checkBasis
:
item
.
checkBasis
,
//法律依据
pictures
:
item
.
pictures
,
//图片
...
...
@@ -418,8 +487,26 @@ export default {
}).
catch
(()
=>
{
this
.
$toast
.
success
(
'
取消删除
'
)
})
},
//人员选择事件
personChecked
(){
this
.
showCalendar2
=
true
//显示遮罩层
},
//人员匹配确认按钮
personOnConfirm
(
value
){
//获取回显的部门值和部门id数组
this
.
person
=
""
this
.
ids
=
[]
var
valueList
=
this
.
$refs
.
apicker
.
getValues
()
console
.
log
(
valueList
)
valueList
.
forEach
((
item
)
=>
{
this
.
ids
.
push
(
item
.
id
)
this
.
person
+=
item
.
text
+
'
/
'
})
//去尾'/'
this
.
person
=
this
.
person
.
substr
(
0
,
this
.
person
.
length
-
2
)
this
.
showCalendar2
=
false
;
}
}
}
</
script
>
...
...
@@ -472,9 +559,7 @@ export default {
.card-middle div:nth-child(2){
font-size: 0.3rem;
font-weight: bolder;
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
width: 5rem;
}
.card-right{
font-size: 0.3rem;
...
...
@@ -515,15 +600,15 @@ export default {
margin-left:0.4rem ;
font-size: 0.37333rem;
}
.sign2{
width: 90%;
height: 2rem;
display: flex;
align-items: center;
margin-top: 0.1rem;
margin-left:0.4rem ;
font-size: 0.37333rem;
}
//
.sign2{
//
width: 90%;
//
height: 2rem;
//
display: flex;
//
align-items: center;
//
margin-top: 0.1rem;
//
margin-left:0.4rem ;
//
font-size: 0.37333rem;
//
}
.van-tag{
color: #323233
}
...
...
src/views/notice/noticeList/sign/index.vue
View file @
9a8cc915
...
...
@@ -34,33 +34,42 @@ export default {
result
:[],
checkedAll
:
''
,
img
:
''
,
img2
:
''
// img2:'',
confirmImg
:
''
,
};
},
mounted
(){
if
(
this
.
$route
.
query
.
name
==
'
sign
'
){
this
.
img
=
this
.
$route
.
query
.
img
this
.
img2
=
this
.
$route
.
query
.
img2
// this.img2=this.$route.query.img2
}
if
(
this
.
$route
.
query
.
name
==
'
confirmNote
'
){
this
.
confirmImg
=
this
.
$route
.
query
.
confirmImg
}
},
methods
:
{
handleReset
()
{
this
.
$refs
.
esign
.
reset
()
},
// 生成base64格式
handleGenerate
()
{
this
.
$refs
.
esign
.
generate
().
then
(
res
=>
{
this
.
resultImg
=
res
//把base64赋给img
//生成图片后存储到session中并跳转把图片是否显示的boolean带过去
console
.
log
(
this
.
value
)
this
.
$router
.
push
({
name
:
'
noticeList
'
,
query
:{
name
:
'
sign
'
,
img
:
this
.
img
,
img2
:
this
.
img2
}})
if
(
this
.
confirmImg
){
this
.
$router
.
push
({
name
:
'
confirmNote
'
,
query
:{
name
:
'
callbackSign
'
,
confirmImg
:
this
.
confirmImg
}})
}
else
{
this
.
$router
.
push
({
name
:
'
noticeList
'
,
query
:{
name
:
'
sign
'
,
img
:
this
.
img
}})
}
//判断是检查组签字还是项目经理签字
if
(
this
.
img
){
sessionStorage
.
setItem
(
'
resultImg
'
,
this
.
resultImg
)
}
else
if
(
this
.
img2
){
sessionStorage
.
setItem
(
'
resultImg2
'
,
this
.
resultImg
)
}
// else if(this.img2){
// sessionStorage.setItem('resultImg2',this.resultImg)
// }
else
if
(
this
.
confirmImg
){
sessionStorage
.
setItem
(
'
confirmImg
'
,
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