Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
computedRoomPad
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
computedRoomPad
Commits
fb35d0e1
提交
fb35d0e1
authored
3月 05, 2025
作者:
caodi\cd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:巡检管理
上级
9b32c3a6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
215 行增加
和
175 行删除
+215
-175
global.css
common/global.css
+1
-1
index.vue
components/inspectionItem/index.vue
+175
-164
index.vue
components/searchCom/index.vue
+24
-8
pages.json
pages.json
+6
-0
home.vue
pages/home/home.vue
+8
-1
index.vue
pages/inspectionManagement/index.vue
+0
-0
uni-nav-bar.vue
...odules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
+1
-1
没有找到文件。
common/global.css
浏览文件 @
fb35d0e1
...
...
@@ -45,7 +45,7 @@ uni-page-head .uni-btn-icon {
}
.uni-navbar__header
{
padding
:
0
24
px
!important
;
padding
:
0
32
px
!important
;
/* padding-right: 18px !important; */
}
...
...
components/inspectionItem/index.vue
浏览文件 @
fb35d0e1
<
template
>
<view
class=
"inspect-item"
@
click=
"toPage"
>
<view
class=
"content"
:class=
"details.synchronization == 1 ? 'synchronization' : ''"
>
<view
class=
"name"
>
{{
getLabel
(
details
.
inspectionType
)
}}
</view>
<view
class=
"info"
>
<view
class=
"info-row"
>
<text
class=
"title"
>
{{
details
.
recordName
}}
</text>
<text
class=
"status"
>
{{
<view
class=
"inspect-item"
@
click=
"toPage"
>
<view
class=
"content"
:class=
"details.synchronization == 1 ? 'synchronization' : ''"
>
<view
class=
"name"
>
{{
details
.
synchronization
==
0
?
"待同步"
:
"已同步"
}}
</view>
<view
class=
"info"
>
<view
class=
"info-row"
>
<text
class=
"title"
>
{{
getLabel
(
details
.
inspectionType
)
}}
</text>
<text
class=
"status"
>
{{
details
.
synchronization
==
0
?
"待同步"
:
"已同步"
}}
</text>
<view
v-if=
"details.isException == 1"
class=
"status alarm"
>
<text
class=
"iconfont icon-yichang1"
></text>
<text>
有异常
</text></view
>
</view>
<view
class=
"info-row info-row-code"
>
<text>
编号:
</text>
<text
class=
"code-num"
>
{{
details
.
inspectionCode
}}
</text>
</view>
</view>
<view
class=
"img"
>
<image
v-if=
"details.synchronization == 1"
class=
"bg-img"
src=
"../../static/img/add-img/default.png"
></image>
<image
v-else
class=
"bg-img"
src=
"../../static/img/add-img/active.png"
></image>
</view>
</view>
</view>
<view
v-if=
"details.isException == 1"
class=
"status alarm"
>
<text
class=
"iconfont icon-yichang1"
></text>
<text>
有异常
</text>
</view>
</view>
<view
class=
"info-row info-row-code"
>
<text>
巡检人:
</text>
<text
class=
"code-num"
>
admin
</text>
<text>
编号:
</text>
<text
class=
"code-num"
>
{{
details
.
inspectionCode
}}
</text>
<text>
巡检日期:
</text>
<text
class=
"code-num"
>
2025-01-29
</text>
</view>
</view>
<view
class=
"img"
>
<image
v-if=
"details.synchronization == 1"
class=
"bg-img"
src=
"../../static/img/add-img/default.png"
></image>
<!--
<image
v-else
class=
"bg-img"
src=
"../../static/img/add-img/active.png"
></image>
-->
</view>
</view>
</view>
</
template
>
<
script
>
import
{
pad_inspection_type
}
from
"@/utils/dict.js"
;
export
default
{
props
:
{
details
:
{
type
:
Object
,
},
isDisable
:
{
type
:
Boolean
,
},
},
methods
:
{
getLabel
(
val
)
{
const
temp
=
(
pad_inspection_type
.
rows
.
filter
((
item
)
=>
item
.
dictValue
==
val
)[
0
]
||
{}
).
dictLabel
||
""
;
return
temp
.
length
?
temp
.
slice
(
0
,
2
)
:
""
;
},
toPage
()
{
const
url
=
this
.
details
.
inspectionType
==
1
?
`/pages/inspectionContent/inspectionContent?isDisable=
${
import
{
pad_inspection_type
}
from
"@/utils/dict.js"
;
export
default
{
props
:
{
details
:
{
type
:
Object
,
},
isDisable
:
{
type
:
Boolean
,
},
},
methods
:
{
getLabel
(
val
)
{
const
temp
=
(
pad_inspection_type
.
rows
.
filter
((
item
)
=>
item
.
dictValue
==
val
)[
0
]
||
{}
).
dictLabel
||
""
;
return
temp
.
length
?
temp
:
""
;
},
toPage
()
{
const
url
=
this
.
details
.
inspectionType
==
1
?
`/pages/inspectionContent/inspectionContent?isDisable=
${
this
.
isDisable
?
1
:
0
}
`
:
`/pages/shaftInspection/shaftInspectionNew?isDisable=
${
}
`
:
`/pages/shaftInspection/shaftInspectionNew?isDisable=
${
this
.
isDisable
?
1
:
0
}
`
;
uni
.
navigateTo
({
url
:
`
${
url
}
&uid=
${
this
.
details
.
uid
}
`
,
});
},
},
};
uni
.
navigateTo
({
url
:
`
${
url
}
&uid=
${
this
.
details
.
uid
}
`
,
});
},
},
};
</
script
>
<
style
scoped
lang=
"less"
>
.inspect-item {
width: 50%;
padding-right: 16px;
margin-bottom: 16px;
.content {
background: #fff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 12px;
padding: 18px 16px 14px 10px;
display: flex;
align-items: center;
height: 84px;
box-sizing: border-box;
position: relative;
background-image: linear-gradient(-67deg, #ffab2423, #ffab2411 50%);
.name {
background: #ffab2423;
border-radius: 12px;
width: 54px;
height: 54px;
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
color: #f39800;
}
.info {
.info-row {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-of-type {
margin: 0;
}
.title {
font-size: 12px;
color: #000000;
font-weight: bold;
margin-right: 8px;
}
.status {
padding: 2px 4px;
font-size: 12px;
color: #ffffff;
text-align: center;
line-height: 20px;
font-weight: 400;
background: #ffab24;
border-radius: 3px;
}
.alarm {
margin-left: 8px;
background: rgba(255, 105, 82, 0.1);
font-size: 12px;
color: #ff6952;
text-align: center;
line-height: 20px;
font-weight: 400;
}
}
.info-row-code {
font-size: 14px;
color: #7c7c7c;
font-weight: 400;
.code-num {
font-size: 14px;
color: #000000;
font-weight: 400;
}
}
}
.img {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
.bg-img {
width: 80px;
height: 80px;
}
}
}
.synchronization {
background-image: linear-gradient(-67deg, #9c9c9c16, #9c9c9c09 50%);
.name {
background: #9c9c9c16;
border-radius: 12px;
color: #4a4a4a;
}
.status {
background: #9c9c9c16 !important;
color: #4a4a4a !important;
}
}
}
</
style
>
.inspect-item {
width: calc(50% - 8px);
margin-bottom: 16px;
.content {
background: #fff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 12px;
padding: 12px;
display: flex;
align-items: center;
height: 78px;
box-sizing: border-box;
position: relative;
.name {
background: #ffab2423;
border-radius: 12px;
width: 54px;
height: 54px;
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
color: #f39800;
}
.info {
.info-row {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-of-type {
margin: 0;
}
.title {
font-size: 12px;
color: #000000;
font-weight: bold;
margin-right: 8px;
}
.status {
padding: 2px 4px;
font-size: 12px;
color: #ffffff;
text-align: center;
line-height: 20px;
font-weight: 400;
background: #ffab24;
border-radius: 3px;
}
.alarm {
margin-left: 8px;
background: rgba(255, 105, 82, 0.1);
font-size: 12px;
color: #ff6952;
text-align: center;
line-height: 20px;
font-weight: 400;
}
}
.info-row-code {
font-size: 12px;
color: #7c7c7c;
font-weight: 400;
.code-num {
font-size: 12px;
color: #000000;
font-weight: 400;
margin-right: 10px;
&:last-child{
margin-right: 0;
}
}
}
}
.img {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
.bg-img {
width: 80px;
height: 80px;
}
}
}
.synchronization {
background-image: linear-gradient(-67deg, #9c9c9c16, #9c9c9c09 50%);
.name {
background: #9c9c9c16;
border-radius: 12px;
color: #4a4a4a;
}
.status {
background: #9c9c9c16 !important;
color: #4a4a4a !important;
}
}
}
</
style
>
\ No newline at end of file
components/searchCom/index.vue
浏览文件 @
fb35d0e1
...
...
@@ -7,7 +7,7 @@
v-model=
"searchFrom.inspectionType"
:localdata=
"inspectArr"
@
change=
"(e) => change(e, 'inspectionType')"
placeholder=
"
巡检类型:全部
"
placeholder=
"
类型
"
:clear=
"true"
:key=
"new Date().getTime()"
></uni-data-select>
...
...
@@ -17,7 +17,7 @@
class=
"uni-search-item"
v-model=
"searchFrom.synchronization"
:localdata=
"synchronization"
placeholder=
"
是否同步:全部
"
placeholder=
"
状态
"
@
change=
"(e) => change(e, 'synchronization')"
:clear=
"true"
:key=
"new Date().getTime()"
...
...
@@ -29,14 +29,24 @@
class=
"uni-search-item"
v-model=
"searchFrom.isException"
:localdata=
"exceptionArr"
placeholder=
"
有无异常:全部
"
placeholder=
"
异常
"
@
change=
"(e) => change(e, 'isException')"
:clear=
"true"
:key=
"new Date().getTime()"
></uni-data-select>
<uni-data-select
v-if=
"!hiddenSearch.includes('inspectionTime')"
class=
"uni-search-item"
v-model=
"searchFrom.inspectionTime"
:localdata=
"dateArr"
placeholder=
"选择时间"
@
change=
"(e) => change(e, 'inspectionTime')"
:clear=
"true"
:key=
"new Date().getTime()"
></uni-data-select>
</view>
<view
<!--
<view
class=
"search-com-right"
v-if=
"!hiddenSearch.includes('inspectionTime')"
>
...
...
@@ -47,7 +57,7 @@
:border=
"false"
@
change=
"(e) => change(e, 'inspectionTime')"
/>
</view>
</view>
-->
</view>
</
template
>
<
script
>
...
...
@@ -82,8 +92,14 @@ export default {
],
exceptionArr
:
[
{
value
:
"all"
,
text
:
"全部"
},
{
value
:
"1"
,
text
:
"有异常"
},
{
value
:
"0"
,
text
:
"无异常"
},
{
value
:
"1"
,
text
:
"有"
},
{
value
:
"0"
,
text
:
"无"
},
],
dateArr
:
[
{
value
:
"0"
,
text
:
"本月"
},
{
value
:
"1"
,
text
:
"本季"
},
{
value
:
"2"
,
text
:
"本年"
},
{
value
:
"3"
,
text
:
"自定义"
},
],
};
},
...
...
@@ -101,13 +117,13 @@ export default {
.search-com {
display: flex;
align-items: center;
width: 50%;
.search-com-left {
display: flex;
align-items: center;
flex: 1;
.uni-search-item {
margin-right: 12px;
width: 130px;
background: #fff;
border-radius: 4px;
border: none !important;
...
...
pages.json
浏览文件 @
fb35d0e1
...
...
@@ -48,6 +48,12 @@
"navigationBarTitleText"
:
""
}
},
//
新增配置---------
//
巡检管理
{
"path"
:
"pages/inspectionManagement/index"
},
//
井道巡检新页面
{
"path"
:
"pages/shaftInspection/shaftInspectionNew"
,
...
...
pages/home/home.vue
浏览文件 @
fb35d0e1
...
...
@@ -22,7 +22,7 @@
<view
class=
"username"
>
{{
userName
}}
</view>
</view>
<view
class=
"profile-right"
>
<button
class=
"inspection-button"
>
巡检管理
</button>
<button
class=
"inspection-button"
@
click=
"toInspectionManagement"
>
巡检管理
</button>
<button
class=
"record-button"
>
上架记录
</button>
</view>
</view>
...
...
@@ -87,6 +87,13 @@
url
:
"/pages/index/operLog"
,
});
},
// 巡检管理
toInspectionManagement
()
{
console
.
log
(
1111
)
uni
.
navigateTo
({
url
:
"/pages/inspectionManagement/index"
,
});
},
// 井道巡检
toShaftInspection
()
{
uni
.
navigateTo
({
...
...
pages/inspectionManagement/index.vue
浏览文件 @
fb35d0e1
差异被折叠。
点击展开。
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
浏览文件 @
fb35d0e1
...
...
@@ -260,7 +260,7 @@
/* #endif */
flex-wrap
:
nowrap
;
flex-direction
:
row
;
width
:
120rpx
;
width
:
auto
;
// padding: 0 6px;
justify-content
:
center
;
align-items
:
center
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论