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
dccfbc4a
Commit
dccfbc4a
authored
Dec 20, 2021
by
罗新东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交了我的延期加了标签页
parent
0efe2ef2
Pipeline
#7576
passed with stage
in 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
75 deletions
+114
-75
src/App.vue
src/App.vue
+2
-2
src/views/danger/myDelay/index.vue
src/views/danger/myDelay/index.vue
+110
-71
src/views/saveWorkbench/index.vue
src/views/saveWorkbench/index.vue
+2
-2
No files found.
src/App.vue
View file @
dccfbc4a
...
...
@@ -49,9 +49,9 @@ export default {
],
// cachePage预先定义的缓存页面
otherCache
:
[],
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新
,如何有需要缓存的列表请放到这里来。
listCache
:[
'
insert-danger
'
,
'
confirme-danger
'
,
'
report-return
'
,
'
change-danger
'
,
'
review-danger
'
,
'
stand-book
'
,
'
major-danger
'
,
'
delay-approval
'
,
'
my-delay
'
,
'
risk-return
'
,
'
risk-account
'
,
'
risk-confirme
'
],
'
my-delay
'
,
'
risk-return
'
,
'
risk-account
'
,
'
risk-confirme
'
,
'
my-delay
'
],
};
},
...
...
src/views/danger/myDelay/index.vue
View file @
dccfbc4a
...
...
@@ -16,80 +16,104 @@
</
template
>
</van-search>
</van-sticky>
<div
class=
"con-list"
@
touchmove=
"showIndex = null"
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"touchstart(index, item)"
>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患单编号:
</van-col>
<van-col
span=
"17"
>
{{ item.businessId || item.pid || item.id }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
所属项目:
</van-col>
<van-col
span=
"17"
>
{{ item.proId }}
</van-col>
</van-row>
<van-row
gutter=
""
v-show=
"item.hdLev"
>
<van-col
span=
"7"
>
隐患级别:
</van-col>
<van-col
span=
"17"
>
{{ item.hdLev | dangerText }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
适用范围:
</van-col>
<van-col
span=
"17"
>
{{ item.hdRange }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患类型:
</van-col>
<van-col
span=
"17"
>
{{ item.hdType }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
超期标识:
</van-col>
<van-col
span=
"17"
>
{{ item.dueDate | formatTime }}
</van-col>
</van-row>
<van-row
gutter=
""
v-if=
"item.taskName"
>
<van-col
span=
"7"
>
工单状态:
</van-col>
<van-col
span=
"17"
>
{{ item.taskName }}
</van-col>
</van-row>
<!-- 长按显示遮罩层 -->
<van-overlay
:show=
"showIndex == index"
>
<div
class=
"wrapper"
@
click.stop=
"showIndex = null"
>
<van-button
round
type=
"primary"
@
click=
"goDetail(item,'normal-detail')"
>
隐患详情
</van-button
><van-button
round
type=
"info"
@
click=
"goDetail(item,'finish-delay-detail')"
>
延期查看
</van-button
>
</div>
</van-overlay>
</van-cell-group>
</div>
<!-- 暂无数据 -->
<div
style=
"
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
<van-tabs
v-model=
"active"
@
change=
"
postList(searchValue);
showIndex = null;
"
v-if=
"messageList.length == 0"
color=
"#2980f7"
animated
:sticky=
"true"
offset-top=
"2.93rem"
>
暂无数据
</div>
<van-tab
v-for=
"(item, key) in tabs"
:key=
"key"
:title=
"item.title"
>
<div
class=
"con-list"
@
touchmove=
"showIndex = null"
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"touchstart(index, item)"
>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患单编号:
</van-col>
<van-col
span=
"17"
>
{{ item.businessId || item.pid || item.id }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
所属项目:
</van-col>
<van-col
span=
"17"
>
{{ item.proId }}
</van-col>
</van-row>
<van-row
gutter=
""
v-show=
"item.hdLev"
>
<van-col
span=
"7"
>
隐患级别:
</van-col>
<van-col
span=
"17"
>
{{
item.hdLev | dangerText
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
适用范围:
</van-col>
<van-col
span=
"17"
>
{{ item.hdRange }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患类型:
</van-col>
<van-col
span=
"17"
>
{{ item.hdType }}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
超期标识:
</van-col>
<van-col
span=
"17"
>
{{
item.dueDate | formatTime
}}
</van-col>
</van-row>
<van-row
gutter=
""
v-if=
"item.taskName"
>
<van-col
span=
"7"
>
工单状态:
</van-col>
<van-col
span=
"17"
>
{{ item.taskName }}
</van-col>
</van-row>
<!-- 长按显示遮罩层 -->
<van-overlay
:show=
"showIndex == index"
>
<div
class=
"wrapper"
@
click.stop=
"showIndex = null"
>
<van-button
round
type=
"primary"
@
click=
"goDetail(item, 'normal-detail')"
>
隐患详情
</van-button
><van-button
round
type=
"info"
@
click=
"
goDetail(item, 'finish-delay-detail')
"
>
延期查看
</van-button
>
</div>
</van-overlay>
</van-cell-group>
</div>
<!-- 暂无数据 -->
<div
style=
"
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
"
v-if=
"messageList.length == 0"
>
暂无数据
</div>
</van-tab>
</van-tabs>
</div>
</template>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
import
{
Dialog
}
from
"
vant
"
;
export
default
{
name
:
'
my-delay
'
,
name
:
"
my-delay
"
,
components
:
{
LHeader
,
},
...
...
@@ -98,7 +122,22 @@ export default {
text
:
"
我的延期
"
,
searchValue
:
""
,
messageList
:
[],
showIndex
:
null
,
showIndex
:
null
,
active
:
0
,
tabs
:
[
{
title
:
"
待审批
"
,
api
:
"
/delayApply/finishDelayList
"
,
},
{
title
:
"
已通过
"
,
api
:
"
/delayApply/finishDelayListYes
"
,
},
{
title
:
"
已退回
"
,
api
:
"
/delayApply/finishDelayListNo
"
,
},
],
};
},
created
()
{
...
...
@@ -117,7 +156,7 @@ export default {
});
let
formdata
=
new
FormData
();
formdata
.
append
(
"
select
"
,
select
);
postFun
(
"
/rectification/finishDelayList
"
,
formdata
)
postFun
(
this
[
"
tabs
"
][
this
.
active
][
"
api
"
]
,
formdata
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
$toast
.
clear
();
...
...
@@ -139,16 +178,16 @@ export default {
},
// 详情
goDetail
(
data
,
name
=
'
normal-detail
'
)
{
let
id
=
name
==
'
normal-detail
'
?
data
.
pid
:
data
.
id
goDetail
(
data
,
name
=
"
normal-detail
"
)
{
let
id
=
name
==
"
normal-detail
"
?
data
.
pid
:
data
.
id
;
this
.
$router
.
push
({
name
,
params
:
{
id
id
,
},
});
this
.
showIndex
=
null
;
}
}
,
},
filters
:
{
formatTime
:
function
(
val
)
{
...
...
src/views/saveWorkbench/index.vue
View file @
dccfbc4a
...
...
@@ -11,7 +11,7 @@
</div>
-->
<!-- 滚动通知 -->
<van-notice-bar
left-icon=
"volume-o"
:scrollable=
"false"
mode=
"link"
>
<
!--
<
van-notice-bar
left-icon=
"volume-o"
:scrollable=
"false"
mode=
"link"
>
<van-swipe
vertical
class=
"notice-swipe"
...
...
@@ -21,7 +21,7 @@
<van-swipe-item>
提示:您有1条待办事项需要处理
</van-swipe-item>
<van-swipe-item>
提示:您有2条待办事项需要处理
</van-swipe-item>
</van-swipe>
</van-notice-bar>
</van-notice-bar>
-->
<!-- 内容 -->
<div
class=
"con"
>
...
...
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