Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
9fb3bb44
提交
9fb3bb44
authored
4月 15, 2025
作者:
BaoChunXian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 井道巡检异常时带出之前填写的情况摘要
上级
8c0d9459
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
20 行增加
和
17 行删除
+20
-17
customPopup.vue
pages/shaftInspection/model/customPopup.vue
+2
-1
shaftInspectionNew.vue
pages/shaftInspection/shaftInspectionNew.vue
+18
-16
没有找到文件。
pages/shaftInspection/model/customPopup.vue
浏览文件 @
9fb3bb44
...
...
@@ -66,7 +66,8 @@ export default {
},
methods
:
{
// 打开弹窗
open
()
{
open
(
item
)
{
this
.
summary
=
item
.
conclusion
;
this
.
isOpen
=
true
;
},
// 关闭弹窗
...
...
pages/shaftInspection/shaftInspectionNew.vue
浏览文件 @
9fb3bb44
...
...
@@ -88,10 +88,10 @@
<text
v-if=
"list[activeTab].conclusion"
class=
"conclusion have"
@
click=
"showPopup(
index)"
@
click=
"showPopup(
list[activeTab])"
>
{{
list
[
activeTab
].
conclusion
}}
</text
>
<text
v-else
class=
"conclusion"
@
click=
"showPopup(
index)"
<text
v-else
class=
"conclusion"
@
click=
"showPopup(
list[activeTab])"
>
请输入情况摘要
</text
>
</view>
...
...
@@ -99,7 +99,8 @@
<text
class=
"form-label"
><text
class=
"required"
>
*
</text>
现场照片
</text
>
<CommonUpload
v-model=
"list[activeTab].photos"
:max-count=
"5"
>
</CommonUpload>
<CommonUpload
v-model=
"list[activeTab].photos"
:max-count=
"5"
>
</CommonUpload>
<!--
<view
class=
"photo-box"
>
<view
class=
"photo-container"
>
<view
...
...
@@ -173,7 +174,7 @@ import { sqlToData, dataToSql } from "./shared";
export
default
{
components
:
{
customPopup
,
CommonUpload
CommonUpload
,
},
data
()
{
return
{
...
...
@@ -531,13 +532,13 @@ export default {
const
send
=
dataToSql
(
params
);
let
api
;
if
(
this
.
uid
)
{
send
.
id
=
this
.
uid
api
=
inspectApi
.
update
send
.
id
=
this
.
uid
;
api
=
inspectApi
.
update
;
}
else
{
api
=
inspectApi
.
save
api
=
inspectApi
.
save
;
}
try
{
let
saveRes
=
await
api
(
send
)
let
saveRes
=
await
api
(
send
)
;
if
(
this
.
uid
)
{
const
index
=
this
.
all_data
.
findIndex
(
(
element
)
=>
element
.
uid
==
this
.
uid
...
...
@@ -585,12 +586,13 @@ export default {
icon
:
"success"
,
});
uni
.
navigateTo
({
url
:
`/pages/shaftInspection/shaftInspectionList?uid=
${
this
.
uid
?
this
.
uid
:
saveRes
.
lastInsertId
}
&backValue=
${
this
.
backValue
}
`
,
url
:
`/pages/shaftInspection/shaftInspectionList?uid=
${
this
.
uid
?
this
.
uid
:
saveRes
.
lastInsertId
}
&backValue=
${
this
.
backValue
}
`
,
});
}
catch
(
err
)
{
console
.
log
(
'err'
,
err
)
console
.
log
(
"err"
,
err
);
}
},
// 检查所有Tab 的必填项是否填写完整
isAllTabValid
()
{
...
...
@@ -610,8 +612,8 @@ export default {
};
}
// 如果巡检结论为正常,则不对摘要和现场照片做必填校验
if
(
item
.
inspectionResult
===
0
)
{
continue
if
(
item
.
inspectionResult
===
0
)
{
continue
;
}
// 2. 检查是否填写了情况摘要
if
(
!
item
.
conclusion
||
item
.
conclusion
.
trim
()
===
""
)
{
...
...
@@ -665,9 +667,9 @@ export default {
this
.
updateCurrentTabData
();
},
// 显示弹窗
showPopup
(
i
ndex
)
{
this
.
currentIndex
=
index
;
this
.
$refs
.
customPopup
.
open
(
);
showPopup
(
i
tem
)
{
console
.
log
(
item
);
this
.
$refs
.
customPopup
.
open
(
item
);
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论