Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
4c1091e0
提交
4c1091e0
authored
4月 23, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: bugs
上级
c4437ca2
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
81 行增加
和
90 行删除
+81
-90
afxt.vue
pages/inspectionContent/components/afxt.vue
+19
-14
customPopup.vue
pages/inspectionContent/components/customPopup.vue
+1
-1
dczt.vue
pages/inspectionContent/components/dczt.vue
+21
-24
dlxt.vue
pages/inspectionContent/components/dlxt.vue
+2
-7
jfwsd.vue
pages/inspectionContent/components/jfwsd.vue
+3
-8
mixin.js
pages/inspectionContent/components/mixin.js
+10
-1
sbgj.vue
pages/inspectionContent/components/sbgj.vue
+0
-6
wlhj.vue
pages/inspectionContent/components/wlhj.vue
+0
-10
xfxt.vue
pages/inspectionContent/components/xfxt.vue
+0
-6
xlqk.vue
pages/inspectionContent/components/xlqk.vue
+2
-7
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+19
-3
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+4
-3
没有找到文件。
pages/inspectionContent/components/afxt.vue
浏览文件 @
4c1091e0
...
...
@@ -15,13 +15,24 @@
@click="setInspectionResult(index, 0, item.lableArr[0])"
>
{{
item
.
lableArr
[
0
]
}}
</view>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 1 }]"
@click="setInspectionResult(index, 1, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</view>
<template
v-if=
"item.lableArr[1] === '无监控'"
>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 2 }]"
@click="setInspectionResult(index, 2, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</
template
>
<
template
v-else
>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 1 }]"
@click="setInspectionResult(index, 1, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</
template
>
</view>
</view>
<
template
v-if=
"item.inspectionResult === 1"
>
...
...
@@ -201,12 +212,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
@@ -259,7 +264,7 @@ export default {
},
areAllInspectionResultsOne
(
details
)
{
const
thirdItemResult
=
details
[
2
].
inspectionResult
;
const
shouldCheckAll
=
!
(
thirdItemResult
===
1
||
thirdItemResult
===
""
);
const
shouldCheckAll
=
!
(
thirdItemResult
===
1
||
thirdItemResult
===
""
||
thirdItemResult
===
2
);
const
checkItems
=
shouldCheckAll
?
details
:
details
.
slice
(
0
,
3
);
let
hasEmpty
=
false
;
let
hasZero
=
false
;
...
...
pages/inspectionContent/components/customPopup.vue
浏览文件 @
4c1091e0
...
...
@@ -143,7 +143,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
z-index: 99999
9
;
.synchronous-content {
padding: 3% 20px 32px 24px;
width: 400px;
...
...
pages/inspectionContent/components/dczt.vue
浏览文件 @
4c1091e0
...
...
@@ -44,22 +44,24 @@
:min=
"-100"
placeholder=
"请输入"
/>
<NumberInput
v-if=
"index == 1"
class=
"input"
v-model=
"item.value"
type=
"number"
:max=
"100"
:min=
"0"
placeholder=
"请输入"
/>
<NumberInput
v-else
class=
"input"
v-model=
"item.value"
type=
"number"
placeholder=
"请输入"
/>
<template
v-else
>
<NumberInput
v-if=
"index == 1"
class=
"input"
v-model=
"item.value"
type=
"number"
:max=
"100"
:min=
"0"
placeholder=
"请输入"
/>
<NumberInput
v-else
class=
"input"
v-model=
"item.value"
type=
"number"
placeholder=
"请输入"
/>
</
template
>
</template>
{{ item.unit }}
...
...
@@ -246,12 +248,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
@@ -283,8 +279,9 @@ export default {
// 遍历每一项进行检查
for
(
const
item
of
details
)
{
if
(
item
.
inspectionResult
===
0
)
{
// 如果 inspectionResult 为 0,跳过此项的其他检查
continue
;
if
(
!
item
.
value
)
{
return
false
;
}
}
else
if
(
item
.
inspectionResult
===
1
)
{
// 如果 inspectionResult 为 1,检查 conclusion 和 photos
if
(
!
item
.
conclusion
||
item
.
photos
.
length
===
0
||
!
item
.
value
)
{
...
...
pages/inspectionContent/components/dlxt.vue
浏览文件 @
4c1091e0
...
...
@@ -9,13 +9,13 @@
<view
class=
"switch-container"
>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 0 }]"
@click="setInspectionResult(index, 0)"
@click="setInspectionResult(index, 0
, item.lableArr[0]
)"
>
正常
</view>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 1 }]"
@click="setInspectionResult(index, 1)"
@click="setInspectionResult(index, 1
, item.lableArr[1]
)"
>
异常
</view>
...
...
@@ -177,11 +177,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
pages/inspectionContent/components/jfwsd.vue
浏览文件 @
4c1091e0
...
...
@@ -215,12 +215,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
@@ -253,8 +247,9 @@ export default {
// 遍历每一项进行检查
for
(
const
item
of
details
)
{
if
(
item
.
inspectionResult
===
0
)
{
// 如果 inspectionResult 为 0,跳过此项的其他检查
continue
;
if
(
!
item
.
value
)
{
return
false
;
}
}
else
if
(
item
.
inspectionResult
===
1
)
{
// 如果 inspectionResult 为 1,检查 conclusion 和 photos
if
(
!
item
.
conclusion
||
item
.
photos
.
length
===
0
||
!
item
.
value
)
{
...
...
pages/inspectionContent/components/mixin.js
浏览文件 @
4c1091e0
export
default
{
methods
:
{
methods
:
{
setInspectionResult
(
index
,
value
,
label
)
{
console
.
log
(
"setInspectionResult"
,
index
,
value
,
label
);
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
if
(
value
==
0
)
{
this
.
itemData
.
detail
[
index
].
conclusion
=
''
this
.
itemData
.
detail
[
index
].
photos
=
[]
}
},
showPopup
(
item
,
index
)
{
console
.
log
(
"showPopup"
,
item
);
this
.
currentIndex
=
index
;
...
...
pages/inspectionContent/components/sbgj.vue
浏览文件 @
4c1091e0
...
...
@@ -248,12 +248,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
pages/inspectionContent/components/wlhj.vue
浏览文件 @
4c1091e0
...
...
@@ -199,16 +199,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
console
.
log
(
"this.itemData.detail[index].inspectionResult"
,
this
.
itemData
.
detail
[
index
].
inspectionResult
);
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
pages/inspectionContent/components/xfxt.vue
浏览文件 @
4c1091e0
...
...
@@ -225,12 +225,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
,
label
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
this
.
itemData
.
detail
[
index
].
inspectionResultLable
=
label
;
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
pages/inspectionContent/components/xlqk.vue
浏览文件 @
4c1091e0
...
...
@@ -9,13 +9,13 @@
<view
class=
"switch-container"
>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 0 }]"
@click="setInspectionResult(index, 0)"
@click="setInspectionResult(index, 0
, item.lableArr[0]
)"
>
正常
</view>
<view
:class=
"['status-btn',
{ active: item.inspectionResult === 1 }]"
@click="setInspectionResult(index, 1)"
@click="setInspectionResult(index, 1
, item.lableArr[1]
)"
>
异常
</view>
...
...
@@ -178,11 +178,6 @@ export default {
deletePhoto
(
index
,
itemIndex
)
{
this
.
itemData
.
detail
[
index
].
photos
.
splice
(
itemIndex
,
1
);
},
// 设置巡检结论
setInspectionResult
(
index
,
value
)
{
this
.
itemData
.
detail
[
index
].
inspectionResult
=
value
;
// 0正常 1异常
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
itemData
.
detail
[
this
.
currentIndex
].
conclusion
=
summary
;
// 回显到文字显示区域
...
...
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
4c1091e0
...
...
@@ -207,8 +207,23 @@ export default {
updateDate
()
{
return
moment
(
Number
(
this
.
detailsInfo
.
updateTime
||
this
.
detailsInfo
.
createTime
)).
format
(
'YYYY-MM-DD'
);
},
abnormalLengths
()
{
return
this
.
detailsInfo
?.
originData
?.
filter
((
t
)
=>
t
.
status
===
2
).
length
;
abnormalLengths
()
{
const
originData
=
this
.
detailsInfo
?.
originData
;
let
ret
=
0
;
(
originData
||
[]).
forEach
(
jf
=>
{
const
details
=
jf
.
details
||
{}
Object
.
keys
(
details
).
forEach
(
key
=>
{
const
item
=
details
[
key
]
console
.
log
(
'x'
,
key
,
item
);
(
item
.
detail
||
[]).
forEach
(
current
=>
{
if
(
current
.
inspectionResult
===
1
)
{
ret
++
}
})
})
})
console
.
log
(
'ret'
,
ret
);
return
ret
}
},
onLoad
(
options
)
{
...
...
@@ -587,7 +602,8 @@ export default {
}
}
.nav-right {
width: 192px;
width: 192px;
z-index: 10;
}
.header-buttons {
display: flex;
...
...
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
4c1091e0
...
...
@@ -16,7 +16,7 @@
<!-- Tab 操作区域 -->
<view
class=
"module"
>
<view
class=
"location"
>
{{
location
}}
</view>
<view
class=
"action-btn complete-btn"
@
click=
"submit(1)"
>
完成巡检
</view>
<view
class=
"tab-buttons"
>
<view
v-for=
"(tab, index) in tabs"
...
...
@@ -124,7 +124,8 @@
>
下一项
</view>
<!-- v-if="value > 2" -->
<!-- v-if="value > 2" -->
<view
class=
"action-btn complete-btn"
@
click=
"submit(1)"
>
完成巡检
</view>
<view
class=
"action-btn"
@
click=
"normal"
>
一键正常
</view>
</view>
<startDialog
...
...
@@ -871,7 +872,7 @@ export default {
margin-bottom: 14.4px;
}
.action-btn {
width: 1
45.6
px;
width: 1
18
px;
height: 38.4px;
line-height: 38.4px;
background: #ffffff;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论