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
acbdb64d
Commit
acbdb64d
authored
Nov 02, 2021
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航菜单更新
解润东 2021110201
parent
e3ccbb71
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
src/components/TabBar.vue
src/components/TabBar.vue
+10
-8
src/views/checked/index.vue
src/views/checked/index.vue
+4
-1
src/views/checked/problem/index.vue
src/views/checked/problem/index.vue
+3
-3
No files found.
src/components/TabBar.vue
View file @
acbdb64d
...
@@ -3,9 +3,8 @@
...
@@ -3,9 +3,8 @@
<van-tabbar
v-model=
"active"
@
change=
"onChange"
>
<van-tabbar
v-model=
"active"
@
change=
"onChange"
>
<van-tabbar-item
<van-tabbar-item
v-for=
"(item,index) in tabBarList"
v-for=
"(item,index) in tabBarList"
:key=
"item.key"
:key=
"index"
:icon=
"active == index?item.imgUrlActive: item.imgUrl"
:icon=
"active==item.name?item.imgUrlActive: item.imgUrl"
:to=
"item.path"
>
{{
item
.
text
}}
</van-tabbar-item
>
{{
item
.
text
}}
</van-tabbar-item
>
>
</van-tabbar>
</van-tabbar>
...
@@ -54,15 +53,18 @@ export default {
...
@@ -54,15 +53,18 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
active
=
this
.
index
this
.
active
=
this
.
index
},
methods
:
{
onChange
(
index
)
{
this
.
active
=
index
;
if
(
this
.
active
==
index
){
this
.
tabBarList
.
forEach
((
item
)
=>
{
this
.
tabBarList
.
forEach
((
item
)
=>
{
if
(
item
.
name
==
this
.
active
){
if
(
item
.
name
==
this
.
active
){
this
.
$router
.
push
(
item
.
path
)
this
.
$router
.
push
(
item
.
path
)
}
}
})
})
},
}
else
{
methods
:
{
}
onChange
(
index
)
{
this
.
active
=
index
;
}
}
}
}
};
};
...
...
src/views/checked/index.vue
View file @
acbdb64d
...
@@ -29,16 +29,19 @@
...
@@ -29,16 +29,19 @@
<div>
检查地点:{{item.address}}
</div>
<div>
检查地点:{{item.address}}
</div>
<div>
是否提交:{{item.finish?'已提交':'未提交'}}
</div>
<div>
是否提交:{{item.finish?'已提交':'未提交'}}
</div>
</div>
</div>
<tab-bar
:index=
"1"
></tab-bar>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
tabBar
from
"
@/components/TabBar
"
;
import
LHeader
from
'
@/components/header.vue
'
import
LHeader
from
'
@/components/header.vue
'
import
{
getFun
,
postFun
}
from
'
@/service/table
'
import
{
getFun
,
postFun
}
from
'
@/service/table
'
export
default
{
export
default
{
name
:
'
checked
'
,
name
:
'
checked
'
,
components
:
{
components
:
{
"
LHeader
"
:
LHeader
"
LHeader
"
:
LHeader
,
"
tabBar
"
:
tabBar
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/checked/problem/index.vue
View file @
acbdb64d
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
<div>
检查地点:
{{
nums
.
address
}}
</div>
<div>
检查地点:
{{
nums
.
address
}}
</div>
</div>
</div>
<div
class=
"button-more"
>
<div
class=
"button-more"
>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"problem"
:disabled=
"finish=='true'?true:false"
>
检查问题上报
{{
nums
.
addTroubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"problem"
:disabled=
"finish=='true'?true:false"
>
检查问题上报
{{
'
(
'
+
nums
.
addTroubleNumber
+
'
)
'
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"formwork"
>
检查清单模板
{{
nums
.
listNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"formwork"
>
检查清单模板
{{
'
(
'
+
nums
.
listNumber
+
'
)
'
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"note"
:disabled=
"nums.troubleNumber
<1
?
true:false
"
>
检查问题记录
{{
nums
.
troubleNumber
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"note"
:disabled=
"nums.troubleNumber
<1
?
true:false
"
>
检查问题记录
{{
'
(
'
+
nums
.
troubleNumber
+
'
)
'
}}
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"end"
:disabled=
"finish=='true'?true:false"
>
结束上报
</van-button>
<van-button
type=
"primary"
round
size=
"large"
@
click=
"end"
:disabled=
"finish=='true'?true:false"
>
结束上报
</van-button>
</div>
</div>
</div>
</div>
...
...
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