Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
457ba96b
提交
457ba96b
authored
4月 25, 2025
作者:
zs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
巡检数据完成后页面显示样式更改-xfxt/afxt
上级
9fe900e1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
8 行删除
+20
-8
init.js
api/sqllite/init.js
+1
-1
detail.vue
pages/inspectionContent/components/detail.vue
+15
-4
xfxt.vue
pages/inspectionContent/components/xfxt.vue
+4
-3
没有找到文件。
api/sqllite/init.js
浏览文件 @
457ba96b
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
await
ioUtil
.
createDir
(
parent
,
parts
.
pop
());
await
ioUtil
.
createDir
(
parent
,
parts
.
pop
());
}
}
const
subDirs
=
[
'发送数据'
,
'日志文件'
,
'巡检数据'
,
'history'
,
'fssj'
];
const
subDirs
=
[
'发送数据'
,
'日志文件'
,
'巡检数据'
,
'history'
,
'fssj'
,
'list'
];
await
Promise
.
all
(
await
Promise
.
all
(
subDirs
.
map
(
dir
=>
ioUtil
.
createDir
(
BASE_PATH
,
dir
))
subDirs
.
map
(
dir
=>
ioUtil
.
createDir
(
BASE_PATH
,
dir
))
);
);
...
...
pages/inspectionContent/components/detail.vue
浏览文件 @
457ba96b
...
@@ -56,7 +56,9 @@
...
@@ -56,7 +56,9 @@
v-for=
"(item, index) in detailsItem.afxt.detail"
v-for=
"(item, index) in detailsItem.afxt.detail"
:key=
"index"
:key=
"index"
class=
"cards-item"
class=
"cards-item"
v-if=
"showItem(item)"
>
>
<template></
template
>
<view
class=
"name"
<view
class=
"name"
>
{{ item.label
>
{{ item.label
}}
<text
}}
<text
...
@@ -286,6 +288,7 @@
...
@@ -286,6 +288,7 @@
:key=
"index"
:key=
"index"
class=
"cards-item"
class=
"cards-item"
>
>
<view
class=
"name"
<view
class=
"name"
>
>
<
template
v-if=
"index==0"
>
<
template
v-if=
"index==0"
>
...
@@ -309,16 +312,16 @@
...
@@ -309,16 +312,16 @@
</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"
>
{{
item
.
setting
}}
{{
item
.
setting
}}
</view>
</view>
</view>
-->
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
style=
"width: 70px;"
>
{{
item
.
l
abel
}}
:
</view>
<view
class=
"label"
style=
"width: 70px;"
>
{{
item
.
sjL
abel
}}
:
</view>
<view
class=
"content"
>
<view
class=
"content"
>
{{
item
.
value
}}
{{
item
.
value
||
'--'
}}
MPa
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -441,8 +444,16 @@ export default {
...
@@ -441,8 +444,16 @@ export default {
},
},
mounted
()
{
mounted
()
{
console
.
log
(
"this.detailsItem"
,
this
.
detailsItem
);
console
.
log
(
"this.detailsItem"
,
this
.
detailsItem
);
console
.
log
(
this
.
detailsItem
)
},
},
methods
:
{
methods
:
{
showItem
(
item
)
{
const
hasMonitor
=
this
.
detailsItem
.
afxt
.
detail
.
find
(
i
=>
i
.
label
===
"是否有监控"
);
if
(
hasMonitor
&&
hasMonitor
.
inspectionResultLable
===
"无监控"
)
{
return
!
[
"监控外观破损"
,
"监控画面清晰"
,
"监控存储连续"
].
includes
(
item
.
label
);
}
return
true
;
},
previewImage
(
images
,
index
)
{
previewImage
(
images
,
index
)
{
uni
.
previewImage
({
uni
.
previewImage
({
current
:
index
,
current
:
index
,
...
...
pages/inspectionContent/components/xfxt.vue
浏览文件 @
457ba96b
...
@@ -137,10 +137,11 @@ export default {
...
@@ -137,10 +137,11 @@ export default {
inspectionResultLable
:
"正常"
,
inspectionResultLable
:
"正常"
,
lableArr
:
[
"正常"
,
"异常"
],
lableArr
:
[
"正常"
,
"异常"
],
conclusion
:
""
,
conclusion
:
""
,
settingLabel
:
"气压
设定值
"
,
settingLabel
:
"气压
范围
"
,
setting
:
"2
MPA-4.2MPA
"
,
//设定气压
setting
:
"2
-4.2MPa
"
,
//设定气压
value
:
""
,
//请输入
value
:
""
,
//请输入
unit
:
"MPA"
,
//单位
sjLabel
:
'实际气压'
,
// 新增显示
unit
:
"MPa"
,
//单位
photos
:
[],
photos
:
[],
},
},
{
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论