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
39dc3020
Commit
39dc3020
authored
Nov 17, 2021
by
罗新东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了延期审批页面增加了页签
parent
961e799c
Pipeline
#7153
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
67 deletions
+78
-67
src/views/danger/delayApproval/index.vue
src/views/danger/delayApproval/index.vue
+78
-67
No files found.
src/views/danger/delayApproval/index.vue
View file @
39dc3020
<
template
>
<div>
<van-sticky
offset-top=
"0"
>
<LHeader
:text=
"text"
></LHeader>
</van-sticky>
<van-sticky
offset-top=
"1.5rem"
>
<van-search
v-model=
"searchValue"
...
...
@@ -15,7 +17,23 @@
</van-sticky>
<!-- 内容列表 -->
<!-- 接口对接4 START -->
<div
class=
"con-list"
@
touchmove=
"showIndex = null"
>
<van-tabs
v-model=
"active"
@
change=
"
getList;
showIndex = null;
"
color=
"#2980f7"
animated
:sticky=
"true"
offset-top=
"3rem"
>
<van-tab
v-for=
"(item, key) in tabs"
:key=
"key"
:title=
"item.title"
>
<div
class=
"con-list"
@
touchmove=
"showIndex = null"
v-if=
"key == active"
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
...
...
@@ -34,52 +52,34 @@
<van-col
span=
"6"
>
隐患级别:
</van-col>
<van-col
span=
"18"
>
{{ item.hdLev | dangerText }}
</van-col>
</van-row>
<!-- <van-row gutter="">
<van-col span="6">发现时间:</van-col>
<van-col span="18">{{ item.hdDiscoveryTime }}</van-col>
</van-row> -->
<!-- *接口对接4 END -->
<!-- 长按显示遮罩层 -->
<
template
v-if=
"active == 0"
>
<van-overlay
:show=
"showIndex == index"
>
<div
class=
"wrapper"
@
click.stop=
"showIndex = null"
>
<van-button
round
type=
"primary"
@
click=
"goDetail(item)"
<!--
<van-button
round
type=
"primary"
@
click=
"goDetail(item)"
>
详情
</van-button
>
>
--
>
<van-button
round
type=
"info"
@
click=
"goConfirm(item)"
>
审批
</van-button
>
>
审批
</van-button
>
</div>
</van-overlay>
</
template
>
</van-cell-group>
</div>
<!-- 暂无数据 -->
<div
style=
"
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
"
v-if=
"isHaveNews"
>
暂无数据
</div>
<tab-bar
:index=
"1"
></tab-bar>
</van-tab>
</van-tabs>
</div>
</template>
<
script
>
import
tabBar
from
"
@/components/TabBar
"
;
import
LHeader
from
"
@/components/header.vue
"
;
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
import
{
delayList
}
from
"
@/service/danger
"
;
export
default
{
components
:
{
LHeader
,
tabBar
,
},
data
()
{
return
{
...
...
@@ -89,6 +89,17 @@ export default {
messageList
:
[],
Loop
:
""
,
// 定时器
showIndex
:
null
,
// 是否显示遮罩层
active
:
0
,
tabs
:
[
{
title
:
"
待审批
"
,
api
:
"
/delayApply/list
"
,
},
{
title
:
"
已审批
"
,
api
:
"
/delayApply/finishList
"
,
},
],
};
},
created
()
{
...
...
@@ -104,9 +115,9 @@ export default {
loadingType
:
"
spinner
"
,
duration
:
0
,
});
let
formdata
=
new
FormData
();
formdata
.
append
(
'
select
'
,
select
);
postFun
(
'
/delayApply/list
'
,
formdata
)
let
formdata
=
new
FormData
();
formdata
.
append
(
"
select
"
,
select
);
postFun
(
this
.
tabs
[
this
.
active
][
"
api
"
],
formdata
)
.
then
((
res
)
=>
{
this
.
$toast
.
clear
();
this
.
messageList
=
res
.
rows
;
...
...
@@ -122,7 +133,7 @@ export default {
/*接口对接3 END*/
},
onSearch
()
{
this
.
getList
(
this
.
searchValue
)
this
.
getList
(
this
.
searchValue
)
;
},
touchstart
(
index
,
item
)
{
if
(
this
.
showIndex
!=
null
)
{
...
...
@@ -133,15 +144,15 @@ export default {
},
// 详情
goDetail
(
data
)
{
this
.
$router
.
push
({
name
:
"
normal-detail
"
,
params
:
{
id
:
data
.
businessId
,
},
});
this
.
showIndex
=
null
;
},
//
goDetail(data) {
//
this.$router.push({
//
name: "normal-detail",
//
params: {
//
id: data.businessId,
//
},
//
});
//
this.showIndex = null;
//
},
// 审批
goConfirm
(
data
)
{
this
.
$router
.
push
({
...
...
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