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
4d7a7d37
Commit
4d7a7d37
authored
Oct 28, 2021
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
解润东 20211028
parent
2ab4ce3c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
26 deletions
+78
-26
src/views/checked/index.vue
src/views/checked/index.vue
+4
-2
src/views/checked/problem/formwork/index.vue
src/views/checked/problem/formwork/index.vue
+5
-1
src/views/checked/problem/index.vue
src/views/checked/problem/index.vue
+17
-8
src/views/checked/problem/list/index.vue
src/views/checked/problem/list/index.vue
+6
-1
src/views/checked/problem/note/index.vue
src/views/checked/problem/note/index.vue
+14
-5
src/views/notice/index.vue
src/views/notice/index.vue
+2
-1
src/views/notice/noticeList/index.vue
src/views/notice/noticeList/index.vue
+30
-8
No files found.
src/views/checked/index.vue
View file @
4d7a7d37
...
...
@@ -27,6 +27,7 @@
<div>
检查开始时间:{{item.planStartTime}}
</div>
<div>
检查结束时间:{{item.planEndTime}}
</div>
<div>
检查地点:{{item.address}}
</div>
<div>
是否提交:{{item.finish?'已提交':'未提交'}}
</div>
</div>
</div>
</template>
...
...
@@ -43,7 +44,8 @@ export default {
return
{
value
:
''
,
//列表搜索关键字值
checkedList
:[],
//检查列表
text
:
'
检查执行
'
//顶部文本
text
:
'
检查执行
'
,
//顶部文本
finish
:
''
,
//问题是否提交
}
},
mounted
()
{
...
...
@@ -69,13 +71,13 @@ export default {
},
/* 搜索查询列表接口 */
onSearch
(){
console
.
log
(
111
)
getFun
(
'
check/carry/user/list
'
,{
name
:
this
.
value
}).
then
((
Response
)
=>
{
this
.
checkedList
=
Response
.
data
})
},
cardLocation
(
item
){
sessionStorage
.
setItem
(
'
id
'
,
item
.
id
)
sessionStorage
.
setItem
(
'
finish
'
,
item
.
finish
)
this
.
$router
.
push
({
name
:
'
problem
'
,
params
:{
id
:
item
.
id
}})
//此id来判断是否加载问题上报新数据
}
}
...
...
src/views/checked/problem/formwork/index.vue
View file @
4d7a7d37
...
...
@@ -30,7 +30,7 @@
<td
align=
"center"
v-text=
"item2.checkContent"
style=
"width:20%"
></td>
<td
align=
"center"
v-text=
"item2.checkBasis"
style=
"width:30%"
></td>
<td
align=
"center"
>
<van-radio-group
v-model=
"item2.checkStatus"
:disabled=
"item2.isDisabled"
>
<van-radio-group
v-model=
"item2.checkStatus"
:disabled=
"
finish=='true'?true:
item2.isDisabled"
>
<van-radio
name=
"0"
>
合格
</van-radio>
<van-radio
name=
"1"
@
click=
"noGrage(item2)"
>
不合格
</van-radio>
</van-radio-group>
...
...
@@ -62,12 +62,16 @@ export default {
id
:
''
,
//检查执行清单id
active
:
0
,
//tab默认选中状态
text
:
'
问题上报表
'
,
//顶部文本
finish
:
''
,
//提交状态
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
this
.
id
=
this
.
$route
.
query
.
id
}
if
(
sessionStorage
.
getItem
(
'
finish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
}
this
.
init
()
},
methods
:
{
...
...
src/views/checked/problem/index.vue
View file @
4d7a7d37
...
...
@@ -19,10 +19,10 @@
<div>
检查地点:
{{
nums
.
address
}}
</div>
</div>
<div
class=
"button-more"
>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"problem"
>
检查问题上报
{{
nums
.
t
roubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"problem"
:disabled=
"finish=='true'?true:false"
>
检查问题上报
{{
nums
.
addT
roubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"formwork"
>
检查清单模板
{{
nums
.
listNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"note"
>
检查问题记录
{{
nums
.
addT
roubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"end"
>
结束上报
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"note"
:disabled=
"nums.addTroubleNumber
<1
?
true:false
"
>
检查问题记录
{{
nums
.
t
roubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"end"
:disabled=
"finish=='true'?true:false"
>
结束上报
</van-button>
</div>
</div>
</
template
>
...
...
@@ -39,19 +39,27 @@ export default {
return
{
id
:
''
,
//问题上报清单列表列表id
nums
:{},
//问题上报清单列表
text
:
'
问题上报
'
//顶部文本
text
:
'
问题上报
'
,
//顶部文本
finish
:
''
,
//提交状态
}
},
mounted
()
{
//请求新数据
if
(
this
.
$route
.
params
.
id
){
this
.
id
=
sessionStorage
.
getItem
(
'
id
'
)
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
this
.
init
()
}
//缓存数据获取
//缓存数据获取
---不更新检查执行id时,获取缓存执行id
else
if
(
sessionStorage
.
getItem
(
'
id
'
)){
this
.
id
=
sessionStorage
.
getItem
(
'
id
'
)
this
.
nums
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
nums
'
))
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
if
(
this
.
$route
.
query
.
pageName
){
this
.
init
()
}
else
{
//当清单模板,问题列表,问题记录不进行提交操作返回该页面调用缓存数据
this
.
nums
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
nums
'
))
}
}
},
methods
:
{
...
...
@@ -95,12 +103,13 @@ export default {
this
.
$router
.
push
({
name
:
'
note
'
,
query
:{
id
:
this
.
nums
.
id
id
:
this
.
nums
.
id
,
finish
:
this
.
finish
}
})
},
formwork
(){
this
.
$router
.
push
({
name
:
'
formwork
'
,
query
:{
id
:
this
.
id
}})
this
.
$router
.
push
({
name
:
'
formwork
'
,
query
:{
id
:
this
.
id
,
finish
:
this
.
finish
}})
}
}
}
...
...
src/views/checked/problem/list/index.vue
View file @
4d7a7d37
...
...
@@ -183,7 +183,12 @@ export default {
message
:
'
提交成功
'
,
duration
:
2000
})
history
.
go
(
-
1
)
this
.
$router
.
push
({
name
:
'
problem
'
,
query
:{
pageName
:
'
problemList
'
}
})
}).
catch
(()
=>
{
this
.
$toast
.
clear
()
this
.
$toast
.
fail
(
'
提交失败,请稍后再试
'
)
...
...
src/views/checked/problem/note/index.vue
View file @
4d7a7d37
...
...
@@ -13,7 +13,7 @@
<LHeader
v-bind:text=
"text"
></LHeader>
<van-checkbox-group
v-model=
"result"
@
change=
"checkedEvent"
ref=
"checkboxGroup"
>
<div
class=
"card"
v-for=
"(item,index) in list"
:key=
"index"
>
<van-checkbox
:name=
"item.id"
:disabled=
"item.checkSubmitId?true:false"
>
问题
{{
item
.
id
}}
</van-checkbox>
<van-checkbox
:name=
"item.id"
:disabled=
"
finish=='true'?true:
item.checkSubmitId?true:false"
>
问题
{{
item
.
id
}}
</van-checkbox>
<div>
问题名称:
{{
item
.
title
}}
</div>
<div>
问题位置:
{{
item
.
address
}}
</div>
<div>
问题内容:
{{
item
.
context
}}
</div>
...
...
@@ -21,9 +21,9 @@
</div>
</van-checkbox-group>
<div
class=
"page-footer"
>
<van-checkbox
v-model=
"checkedAll"
@
change=
"checkedAllEvent"
@
click=
"checkedAllClick"
>
全选
</van-checkbox>
<van-button
round
type=
"defult"
@
click=
"cancel"
>
取消
</van-button>
<van-button
round
type=
"info"
@
click=
"commit"
>
提交
</van-button>
<van-checkbox
v-model=
"checkedAll"
@
change=
"checkedAllEvent"
@
click=
"checkedAllClick"
:disabled=
"finish=='true'?true:false"
>
全选
</van-checkbox>
<van-button
round
type=
"defult"
@
click=
"cancel"
:disabled=
"finish=='true'?true:false"
>
取消
</van-button>
<van-button
round
type=
"info"
@
click=
"commit"
:disabled=
"finish=='true'?true:false"
>
提交
</van-button>
</div>
</div>
</
template
>
...
...
@@ -44,12 +44,16 @@ export default {
result
:
[],
//问题记录复选数组
list
:[],
//列表数组
id
:
''
,
//检查执行id
finish
:
''
,
//提交状态
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
this
.
id
=
this
.
$route
.
query
.
id
}
if
(
this
.
$route
.
query
.
finish
){
this
.
finish
=
this
.
$route
.
query
.
finish
}
this
.
init
()
},
methods
:
{
...
...
@@ -130,7 +134,12 @@ export default {
duration
:
0
})
postFun
(
'
check/carry/trouble/submit
'
,
obj
).
then
((
Response
)
=>
{
this
.
$router
.
push
(
'
/correct
'
)
this
.
$router
.
push
({
name
:
'
problem
'
,
query
:{
pageName
:
'
problemNote
'
}
})
this
.
$toast
.
clear
()
this
.
$toast
.
success
(
'
提交成功
'
)
}).
catch
(()
=>
{
...
...
src/views/notice/index.vue
View file @
4d7a7d37
...
...
@@ -35,7 +35,7 @@ export default {
data
()
{
return
{
noticeList
:[],
//整改通知管理列表
text
:
'
整改通知管理
'
text
:
'
整改通知管理
'
,
}
},
mounted
()
{
...
...
@@ -57,6 +57,7 @@ export default {
})
},
cardLocation
(
item
){
sessionStorage
.
setItem
(
'
finish
'
,
item
.
finish
)
this
.
$router
.
push
({
name
:
'
noticeList
'
,
query
:{
...
...
src/views/notice/noticeList/index.vue
View file @
4d7a7d37
...
...
@@ -12,7 +12,7 @@
<
template
>
<div>
<LHeader
v-bind:text=
"text"
></LHeader>
<van-tabs
v-model=
"active"
>
<van-tabs
v-model=
"active"
@
click=
"tabClick"
>
<van-tab
title=
"上报状态"
>
<table
border=
"1"
cellspacing=
"0"
>
<thead>
...
...
@@ -36,7 +36,7 @@
<van-tab
title=
"问题记录"
>
<van-checkbox-group
v-model=
"result"
@
change=
"checkedEvent"
ref=
"checkboxGroup"
>
<div
class=
"card"
v-for=
"(item,index) in noticeQuestionList"
:key=
"index"
>
<van-checkbox
:name=
"item.id"
:disabled=
"item.checkSubmitId?true:false"
>
问题
{{
item
.
id
}}
</van-checkbox>
<van-checkbox
:name=
"item.id"
:disabled=
"
finish=='true'?true:
item.checkSubmitId?true:false"
>
问题
{{
item
.
id
}}
</van-checkbox>
<div>
负责人姓名:
{{
item
.
realName
}}
</div>
<div>
问题名称:
{{
item
.
title
}}
</div>
<div>
问题位置:
{{
item
.
address
}}
</div>
...
...
@@ -45,7 +45,7 @@
</div>
</van-checkbox-group>
<div
class=
"page-footer"
>
<van-checkbox
v-model=
"checkedAll"
@
change=
"checkedAllEvent"
@
click=
"checkedAllClick"
>
全选
</van-checkbox>
<van-checkbox
v-model=
"checkedAll"
@
change=
"checkedAllEvent"
@
click=
"checkedAllClick"
:disabled=
"finish=='true'?true:false"
>
全选
</van-checkbox>
</div>
<van-field
readonly
...
...
@@ -54,13 +54,13 @@
:value=
"value"
label=
"整改完成日期"
placeholder=
"请选择日期"
@
click=
"
showCalendar = true
"
@
click=
"
calendarOpen
"
/>
<van-calendar
v-model=
"showCalendar"
@
confirm=
"onConfirm"
/>
<div
class=
"sign"
><span>
检查组负责人签字确认:
</span><van-tag
color=
"#ffe1e1"
>
电子签字
</van-tag></div>
<div
class=
"sign"
><span>
检查组负责人签字确认:
</span><van-tag
color=
"#ffe1e1"
:disabled=
"finish=='true'?true:false"
>
电子签字
</van-tag></div>
<div
class=
"page-footer-button"
>
<van-button
round
type=
"info"
size=
"large"
@
click=
"commit"
>
生成整改通知单
</van-button>
<van-button
round
type=
"defult"
size=
"large"
@
click=
"cancel"
>
取消
</van-button>
<van-button
round
type=
"info"
size=
"large"
@
click=
"commit"
:disabled=
"finish=='true'?true:false"
>
生成整改通知单
</van-button>
<van-button
round
type=
"defult"
size=
"large"
@
click=
"cancel"
:disabled=
"finish=='true'?true:false"
>
取消
</van-button>
</div>
</van-tab>
</van-tabs>
...
...
@@ -86,12 +86,19 @@ export default {
value
:
''
,
//日期值
id
:
''
,
//整改通知id
showCalendar
:
false
,
//弹出层状态
finish
:
''
,
//检查状态
}
},
watch
:{
},
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
this
.
id
=
this
.
$route
.
query
.
id
}
if
(
sessionStorage
.
getItem
(
'
finish
'
)){
this
.
finish
=
sessionStorage
.
getItem
(
'
finish
'
)
}
this
.
init
()
// this.$toast.clear()
},
...
...
@@ -119,7 +126,6 @@ export default {
problem
(){
this
.
noticeQuestionList
=
[]
getFun
(
'
check/notify/trouble/list
'
,{
planId
:
this
.
id
}).
then
((
Response
)
=>
{
this
.
noticeQuestionList
=
Response
.
data
this
.
noticeQuestionList
=
Response
.
data
this
.
noticeQuestionList
.
forEach
((
item
)
=>
{
if
(
item
.
checkSubmitId
){
...
...
@@ -163,6 +169,22 @@ export default {
cancel
(){
this
.
$toast
(
'
取消
'
)
},
//日期输入框点击事件
calendarOpen
(){
if
(
this
.
finish
==
'
false
'
){
this
.
showCalendar
=
true
}
},
//标签点击事件防止标签切换首次进入不执行复选框监听事件
tabClick
(
idx
){
if
(
idx
==
1
){
if
(
this
.
result
.
length
==
this
.
noticeQuestionList
.
length
){
this
.
checkedAll
=
true
}
else
if
(
this
.
result
.
length
<
this
.
noticeQuestionList
.
length
){
this
.
checkedAll
=
false
}
}
},
//提交问题记录
commit
(){
var
checkedList
=
[]
...
...
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