Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
959d427f
提交
959d427f
authored
4月 08, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: update
上级
25410e74
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
65 行增加
和
41 行删除
+65
-41
home.vue
pages/home/home.vue
+7
-4
detail.vue
pages/inspectionContent/components/detail.vue
+37
-28
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+20
-9
shared.js
pages/inspectionContent/shared.js
+1
-0
没有找到文件。
pages/home/home.vue
浏览文件 @
959d427f
...
@@ -2,14 +2,17 @@
...
@@ -2,14 +2,17 @@
<!-- 首页 -->
<!-- 首页 -->
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<navigator
url=
"/pages/test/index"
hover-class=
"navigator-hover"
>
<navigator
<button
type=
"default"
class=
"uni-btn"
>
跳转TEST
</button>
url=
"/pages/inspectionContent/inspectionContentList?uid=15"
hover-class=
"navigator-hover"
>
<button
type=
"default"
class=
"uni-btn"
>
15
</button>
</navigator>
</navigator>
<navigator
<navigator
url=
"/pages/inspectionContent/inspectionContentList?uid=1"
url=
"/pages/inspectionContent/inspectionContentList?uid=1
6
"
hover-class=
"navigator-hover"
hover-class=
"navigator-hover"
>
>
<button
type=
"default"
class=
"uni-btn"
>
测试巡检
</button>
<button
type=
"default"
class=
"uni-btn"
>
16
</button>
</navigator>
</navigator>
</view>
</view>
<!-- 第一个模块 -->
<!-- 第一个模块 -->
...
...
pages/inspectionContent/components/detail.vue
浏览文件 @
959d427f
...
@@ -40,7 +40,8 @@
...
@@ -40,7 +40,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -84,7 +85,8 @@
...
@@ -84,7 +85,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -109,16 +111,14 @@
...
@@ -109,16 +111,14 @@
></view
></view
>
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
{{
item
.
settingLabelShow
}}
:
</view>
<view
class=
"label"
>
{{
item
.
settingLabelShow
}}
:
</view>
<view
class=
"content"
>
<view
class=
"content"
>
{{
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"
>
<view
class=
"content"
>
{{
item
.
value
}}{{
item
.
unit
}}
</view>
{{
item
.
value
}}{{
item
.
unit
}}
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
现场照片:
</view>
<view
class=
"label"
>
现场照片:
</view>
...
@@ -131,7 +131,8 @@
...
@@ -131,7 +131,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -180,7 +181,8 @@
...
@@ -180,7 +181,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -205,16 +207,12 @@
...
@@ -205,16 +207,12 @@
></view
></view
>
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
{{
item
.
settingLabel
}}
:
</view>
<view
class=
"label"
>
{{
item
.
settingLabel
}}
:
</view>
<view
class=
"content"
>
<view
class=
"content"
>
{{
item
.
setting
}}{{
item
.
unit
}}
</view>
{{
item
.
setting
}}{{
item
.
unit
}}
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
{{
item
.
sjLabel
}}
:
</view>
<view
class=
"label"
>
{{
item
.
sjLabel
}}
:
</view>
<view
class=
"content"
>
<view
class=
"content"
>
{{
item
.
value
}}{{
item
.
unit
}}
</view>
{{
item
.
value
}}{{
item
.
unit
}}
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"label"
>
现场照片:
</view>
<view
class=
"label"
>
现场照片:
</view>
...
@@ -227,7 +225,8 @@
...
@@ -227,7 +225,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -268,7 +267,8 @@
...
@@ -268,7 +267,8 @@
:key=
"urlIndex"
:key=
"urlIndex"
class=
"image-item"
class=
"image-item"
:src=
"url"
:src=
"url"
mode=
"center"
mode=
"aspectFit"
@
click=
"previewImage(item.photos, urlIndex)"
></image>
></image>
</view>
</view>
</view>
</view>
...
@@ -285,8 +285,8 @@
...
@@ -285,8 +285,8 @@
class=
"cards-item"
class=
"cards-item"
>
>
<view
class=
"name"
<view
class=
"name"
>
{{
item
.
label
>
{{
item
.
label
}}{{
index
===
0
?
`(${item.setting
}
)`
:
""
}}
{{
index
===
0
?
`(${item.setting
}
)`
:
''
}}
<
text
}}
<
text
class
=
"status"
class
=
"status"
:
class
=
"{ warning: item.inspectionResult === 1
}
"
:
class
=
"{ warning: item.inspectionResult === 1
}
"
>
{{
item
.
inspectionResultLable
}}
<
/tex
t
>
{{
item
.
inspectionResultLable
}}
<
/tex
t
...
@@ -309,7 +309,8 @@
...
@@ -309,7 +309,8 @@
:
key
=
"urlIndex"
:
key
=
"urlIndex"
class
=
"image-item"
class
=
"image-item"
:
src
=
"url"
:
src
=
"url"
mode
=
"center"
mode
=
"aspectFit"
@
click
=
"previewImage(item.photos, urlIndex)"
><
/image
>
><
/image
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -350,7 +351,8 @@
...
@@ -350,7 +351,8 @@
:
key
=
"urlIndex"
:
key
=
"urlIndex"
class
=
"image-item"
class
=
"image-item"
:
src
=
"url"
:
src
=
"url"
mode
=
"center"
mode
=
"aspectFit"
@
click
=
"previewImage(item.photos, urlIndex)"
><
/image
>
><
/image
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -383,7 +385,8 @@
...
@@ -383,7 +385,8 @@
:
key
=
"urlIndex"
:
key
=
"urlIndex"
class
=
"image-item"
class
=
"image-item"
:
src
=
"url"
:
src
=
"url"
mode
=
"center"
mode
=
"aspectFit"
@
click
=
"previewImage(item.photos, urlIndex)"
><
/image
>
><
/image
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -409,7 +412,14 @@ export default {
...
@@ -409,7 +412,14 @@ export default {
mounted
()
{
mounted
()
{
console
.
log
(
"this.detailsItem"
,
this
.
detailsItem
);
console
.
log
(
"this.detailsItem"
,
this
.
detailsItem
);
}
,
}
,
methods
:
{
}
,
methods
:
{
previewImage
(
images
,
index
)
{
uni
.
previewImage
({
current
:
index
,
urls
:
images
,
}
);
}
,
}
,
}
;
}
;
<
/script
>
<
/script
>
...
@@ -490,7 +500,7 @@ export default {
...
@@ -490,7 +500,7 @@ export default {
font
-
weight
:
400
;
font
-
weight
:
400
;
display
:
flex
;
display
:
flex
;
flex
-
wrap
:
nowrap
;
flex
-
wrap
:
nowrap
;
justify
-
content
:
space
-
between
;
//
justify-content: space-between;
.
image
-
item
{
.
image
-
item
{
width
:
57.6
px
;
width
:
57.6
px
;
height
:
57.6
px
;
height
:
57.6
px
;
...
@@ -504,4 +514,4 @@ export default {
...
@@ -504,4 +514,4 @@ export default {
}
}
}
}
}
}
<
/style>
<
/style
>
\ No newline at end of file
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
959d427f
...
@@ -41,7 +41,9 @@
...
@@ -41,7 +41,9 @@
<div
v-else
style=
"display: flex"
>
<div
v-else
style=
"display: flex"
>
<image
<image
style=
"width: 120px; height: 40px"
style=
"width: 120px; height: 40px"
mode=
"aspectFit"
:src=
"detailsInfo.signImg"
:src=
"detailsInfo.signImg"
@
click=
"previewImage([detailsInfo.signImg], 0)"
></image>
></image>
<button
class=
"record-button"
@
click=
"toSign"
>
重签
</button>
<button
class=
"record-button"
@
click=
"toSign"
>
重签
</button>
</div>
</div>
...
@@ -257,16 +259,19 @@ export default {
...
@@ -257,16 +259,19 @@ export default {
this
.
value
=
this
.
options
.
value
||
"1"
;
this
.
value
=
this
.
options
.
value
||
"1"
;
},
},
onShow
()
{
onShow
()
{
if
(
this
.
uid
)
{
// 已经签名不触发更新,主要用于图片预览关闭后会触发onShow
this
.
getRoomList
().
then
((
res
)
=>
{
if
(
!
this
.
isSign
)
{
this
.
init
(
res
).
then
(()
=>
{
if
(
this
.
uid
)
{
this
.
getDetails
(
this
.
uid
);
this
.
getRoomList
().
then
((
res
)
=>
{
this
.
init
(
res
).
then
(()
=>
{
this
.
getDetails
(
this
.
uid
);
});
});
});
}
);
}
else
{
}
else
{
this
.
getRoomList
().
then
((
res
)
=>
{
this
.
getRoomList
().
then
((
res
)
=>
{
this
.
init
(
res
);
this
.
init
(
res
);
}
);
}
);
}
}
}
// this.startDialogData.text = [
// this.startDialogData.text = [
...
@@ -577,6 +582,12 @@ export default {
...
@@ -577,6 +582,12 @@ export default {
});
});
}
}
},
},
previewImage
(
images
,
index
)
{
uni
.
previewImage
({
current
:
index
,
urls
:
images
,
});
},
},
},
};
};
</
script
>
</
script
>
...
...
pages/inspectionContent/shared.js
浏览文件 @
959d427f
...
@@ -63,6 +63,7 @@ export function sqlToData(sqlData) {
...
@@ -63,6 +63,7 @@ export function sqlToData(sqlData) {
originData
,
originData
,
inspectionNumber
,
inspectionNumber
,
allIsSubmitOne
,
allIsSubmitOne
,
isSign
:
!!
sqlData
.
signImg
,
};
};
return
ret
;
return
ret
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论