Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
e83492a0
提交
e83492a0
authored
5月 14, 2025
作者:
刘守彩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: update inspect
上级
c84aa801
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
44 行增加
和
43 行删除
+44
-43
log.js
api/log.js
+1
-1
dczt.vue
pages/inspectionContent/components/dczt.vue
+12
-18
detail.vue
pages/inspectionContent/components/detail.vue
+11
-5
jfwsd.vue
pages/inspectionContent/components/jfwsd.vue
+2
-2
xfxt.vue
pages/inspectionContent/components/xfxt.vue
+5
-13
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+1
-1
dialog.vue
pages/inspectionManagement/dialog.vue
+12
-3
没有找到文件。
api/log.js
浏览文件 @
e83492a0
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
'
${
data
.
LastSynchronizationTime
||
""
}
',
'
${
data
.
LastSynchronizationTime
||
""
}
',
'
${
data
.
avatar
||
""
}
',
'
${
data
.
avatar
||
""
}
',
'
${
data
.
detail
||
""
}
',
'
${
data
.
detail
||
""
}
',
${
data
.
isAdmin
}
,
'
${
data
.
isAdmin
}
'
,
'
${
data
.
level
}
',
'
${
data
.
level
}
',
'
${
data
.
module
}
',
'
${
data
.
module
}
',
'
${
data
.
passWord
}
',
'
${
data
.
passWord
}
',
...
...
pages/inspectionContent/components/dczt.vue
浏览文件 @
e83492a0
...
@@ -25,15 +25,8 @@
...
@@ -25,15 +25,8 @@
{{
item
.
lableArr
[
1
]
}}
{{
item
.
lableArr
[
1
]
}}
</view>
</view>
</view>
</view>
<!--
<input
<!--
v-if=
"'value' in item"
<template
v-if=
"'value' in item"
>
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
maxlength=
"3"
/>
-->
<template
v-if=
"'value' in item"
>
<NumberInput
<NumberInput
v-if=
"index == 0"
v-if=
"index == 0"
class=
"input"
class=
"input"
...
@@ -63,8 +56,8 @@
...
@@ -63,8 +56,8 @@
/>
/>
</
template
>
</
template
>
</template>
</template>
{{ item.unit }}
{{ item.unit }}
-->
</view>
</view>
<
template
v-if=
"item.inspectionResult === 1"
>
<
template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
...
@@ -148,7 +141,7 @@ export default {
...
@@ -148,7 +141,7 @@ export default {
settingLabel
:
"设定电池电压"
,
settingLabel
:
"设定电池电压"
,
settingLabelShow
:
"设定电压"
,
settingLabelShow
:
"设定电压"
,
setting
:
this
.
jfType
===
"3"
?
"10V-15V"
:
"2V-3V"
,
//设定温度值
setting
:
this
.
jfType
===
"3"
?
"10V-15V"
:
"2V-3V"
,
//设定温度值
value
:
""
,
//输入温度
//
value: "", //输入温度
unit
:
"V"
,
//单位
unit
:
"V"
,
//单位
photos
:
[],
photos
:
[],
},
},
...
@@ -163,7 +156,7 @@ export default {
...
@@ -163,7 +156,7 @@ export default {
settingLabel
:
"设定电池温度"
,
settingLabel
:
"设定电池温度"
,
settingLabelShow
:
"设定温度"
,
settingLabelShow
:
"设定温度"
,
setting
:
"15℃-30℃"
,
//设定湿度值
setting
:
"15℃-30℃"
,
//设定湿度值
value
:
""
,
//输入湿度
//
value: "", //输入湿度
unit
:
"℃"
,
//单位
unit
:
"℃"
,
//单位
photos
:
[],
photos
:
[],
},
},
...
@@ -178,7 +171,7 @@ export default {
...
@@ -178,7 +171,7 @@ export default {
settingLabel
:
"设定电池内阻"
,
settingLabel
:
"设定电池内阻"
,
settingLabelShow
:
"设定内阻"
,
settingLabelShow
:
"设定内阻"
,
setting
:
this
.
jfType
===
"3"
?
"<10mΩ"
:
"<0.5mΩ"
,
//设定湿度值
setting
:
this
.
jfType
===
"3"
?
"<10mΩ"
:
"<0.5mΩ"
,
//设定湿度值
value
:
""
,
//输入湿度
//
value: "", //输入湿度
unit
:
"mΩ"
,
//单位
unit
:
"mΩ"
,
//单位
photos
:
[],
photos
:
[],
},
},
...
@@ -279,12 +272,13 @@ export default {
...
@@ -279,12 +272,13 @@ export default {
// 遍历每一项进行检查
// 遍历每一项进行检查
for
(
const
item
of
details
)
{
for
(
const
item
of
details
)
{
if
(
item
.
inspectionResult
===
0
)
{
if
(
item
.
inspectionResult
===
0
)
{
if
(
!
item
.
value
)
{
// if ((item.hasOwnProperty("value") && !item.value)) {
return
false
;
// return false;
}
// }
return
true
}
else
if
(
item
.
inspectionResult
===
1
)
{
}
else
if
(
item
.
inspectionResult
===
1
)
{
// 如果 inspectionResult 为 1,检查 conclusion 和 photos
// 如果 inspectionResult 为 1,检查 conclusion 和 photos
if
(
!
item
.
conclusion
||
item
.
photos
.
length
===
0
||
!
item
.
value
)
{
if
(
!
item
.
conclusion
||
item
.
photos
.
length
===
0
||
(
item
.
hasOwnProperty
(
"value"
)
&&
!
item
.
value
)
)
{
return
false
;
return
false
;
}
}
}
else
{
}
else
{
...
...
pages/inspectionContent/components/detail.vue
浏览文件 @
e83492a0
...
@@ -118,10 +118,16 @@
...
@@ -118,10 +118,16 @@
{{ item.setting }}
{{ item.setting }}
</view>
</view>
</view>
</view>
<view
class=
"list"
>
<!--
<view class="list">
<view class="label">{{ item.sjLabelShow }}:</view>
<view class="label">{{ item.sjLabelShow }}:</view>
<view class="content"> {{ item.value }}{{ item.unit }} </view>
<view class="content"> {{ item.value }}{{ item.unit }} </view>
</view>
</view> -->
<view
class=
"list"
>
<view
class=
"label"
>
情况描述:
</view>
<view
class=
"content"
>
{{ item.conclusion }}
</view>
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
现场照片:
</view>
<view
class=
"label"
>
现场照片:
</view>
<view
v-if=
"item.photos.length === 0"
class=
"content"
>
<view
v-if=
"item.photos.length === 0"
class=
"content"
>
...
@@ -293,7 +299,7 @@
...
@@ -293,7 +299,7 @@
>
>
<
template
v-if=
"index==0"
>
<
template
v-if=
"index==0"
>
<view>
<view>
{{
item
.
label
}}
(
{{
item
.
setting
}}
)
{{
item
.
label
}}
(
气压范围:
{{
item
.
setting
}}
)
<text
<text
class=
"status"
class=
"status"
:class=
"
{ warning: item.inspectionResult === 1 }"
:class=
"
{ warning: item.inspectionResult === 1 }"
...
@@ -311,7 +317,7 @@
...
@@ -311,7 +317,7 @@
</
template
>
</
template
>
</view
</view
>
>
<
template
v-if=
"index==0"
>
<
!-- <
template v-if="index==0">
<view class="list">
<view class="list">
<view class="label" style="width: 70px;">{{item.settingLabel}}:</view>
<view class="label" style="width: 70px;">{{item.settingLabel}}:</view>
<view class="content">
<view class="content">
...
@@ -324,7 +330,7 @@
...
@@ -324,7 +330,7 @@
{{ item.value || '--' }} MPa
{{ item.value || '--' }} MPa
</view>
</view>
</view>
</view>
</
template
>
</template>
-->
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
情况描述:
</view>
<view
class=
"label"
>
情况描述:
</view>
<view
class=
"content"
>
<view
class=
"content"
>
...
...
pages/inspectionContent/components/jfwsd.vue
浏览文件 @
e83492a0
...
@@ -124,7 +124,7 @@ export default {
...
@@ -124,7 +124,7 @@ export default {
inspectionItem
:
""
,
//巡检事项
inspectionItem
:
""
,
//巡检事项
detail
:
[
detail
:
[
{
{
label
:
"
机房
温度"
,
label
:
"
实际
温度"
,
sjLabel
:
"实际温度"
,
sjLabel
:
"实际温度"
,
inspectionResult
:
""
,
inspectionResult
:
""
,
inspectionResultLable
:
"正常"
,
inspectionResultLable
:
"正常"
,
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
photos
:
[],
photos
:
[],
},
},
{
{
label
:
"
机房
湿度"
,
label
:
"
实际
湿度"
,
sjLabel
:
"实际湿度"
,
sjLabel
:
"实际湿度"
,
inspectionResult
:
""
,
inspectionResult
:
""
,
inspectionResultLable
:
"正常"
,
inspectionResultLable
:
"正常"
,
...
...
pages/inspectionContent/components/xfxt.vue
浏览文件 @
e83492a0
...
@@ -25,15 +25,7 @@
...
@@ -25,15 +25,7 @@
{{
item
.
lableArr
[
1
]
}}
{{
item
.
lableArr
[
1
]
}}
</view>
</view>
</view>
</view>
<!--
<input
<!--
<NumberInput
v-if=
"'value' in item && item.inspectionResult === 1"
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
maxlength=
"3"
/>
-->
<NumberInput
v-if=
"'value' in item && item.inspectionResult === 1"
v-if=
"'value' in item && item.inspectionResult === 1"
class=
"input"
class=
"input"
v-model=
"item.value"
v-model=
"item.value"
...
@@ -42,8 +34,9 @@
...
@@ -42,8 +34,9 @@
:min=
"0"
:min=
"0"
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
{{
item
.
inspectionResult
===
1
?
item
.
unit
:
""
}}
{{
item
.
inspectionResult
===
1
?
item
.
unit
:
""
}}
</view>
-->
</view>
<template
v-if=
"item.inspectionResult === 1"
>
<template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
<text
class=
"form-label"
<text
class=
"form-label"
...
@@ -139,8 +132,7 @@ export default {
...
@@ -139,8 +132,7 @@ export default {
conclusion
:
""
,
conclusion
:
""
,
settingLabel
:
"气压范围"
,
settingLabel
:
"气压范围"
,
setting
:
"2-4.2MPa"
,
//设定气压
setting
:
"2-4.2MPa"
,
//设定气压
value
:
""
,
//请输入
sjLabel
:
'实际气压'
,
// 新增显示
sjLabel
:
'实际气压'
,
// 新增显示
unit
:
"MPa"
,
//单位
unit
:
"MPa"
,
//单位
photos
:
[],
photos
:
[],
},
},
...
...
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
e83492a0
...
@@ -1152,7 +1152,7 @@ export default {
...
@@ -1152,7 +1152,7 @@ export default {
justify-content: center;
justify-content: center;
position: fixed;
position: fixed;
gap: 16px;
gap: 16px;
left: 5
0
%;
left: 5
5
%;
transform: translateX(-50%);
transform: translateX(-50%);
bottom: 20px;
bottom: 20px;
...
...
pages/inspectionManagement/dialog.vue
浏览文件 @
e83492a0
...
@@ -154,14 +154,23 @@
...
@@ -154,14 +154,23 @@
});
});
// });
// });
},
},
copyPhotos
()
{
async
copyPhotos
()
{
const
signImgList
=
[]
this
.
list
.
forEach
((
e
)
=>
{
this
.
list
.
forEach
((
e
)
=>
{
if
(
typeof
e
.
inspectionData
===
"string"
)
{
if
(
typeof
e
.
inspectionData
===
"string"
)
{
e
.
inspectionData
=
JSON
.
parse
(
e
.
inspectionData
)
||
"{}"
;
e
.
inspectionData
=
JSON
.
parse
(
e
.
inspectionData
)
||
"{}"
;
}
}
if
(
e
.
signImg
)
{
signImgList
.
push
(
e
.
signImg
.
split
(
"/"
).
pop
())
}
});
});
const
urls
=
findPhotosUrls
(
this
.
list
).
map
((
url
)
=>
url
.
split
(
"/"
).
pop
());
const
urls
=
findPhotosUrls
(
this
.
list
).
map
((
url
)
=>
url
.
split
(
"/"
).
pop
());
console
.
log
(
"urls"
,
urls
);
console
.
log
(
"urls"
,
signImgList
,
urls
);
await
copySelectedFiles
(
"_documents/data/sign"
,
`
${
SYNCHRONIZE_DATA_PAD
}
/发送数据`
,
signImgList
);
return
copySelectedFiles
(
return
copySelectedFiles
(
"_documents/data/photos"
,
"_documents/data/photos"
,
`
${
SYNCHRONIZE_DATA_PAD
}
/发送数据`
,
`
${
SYNCHRONIZE_DATA_PAD
}
/发送数据`
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论