Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
computedRoomPad
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
computedRoomPad
Commits
b1504145
提交
b1504145
authored
3月 30, 2025
作者:
caodi\cd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:提交
上级
78d515f5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
15 行删除
+27
-15
dialog.vue
pages/inspectionContent/components/dialog.vue
+4
-1
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+1
-1
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+22
-13
没有找到文件。
pages/inspectionContent/components/dialog.vue
浏览文件 @
b1504145
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
>
{{
item
}}
</view
>
{{
item
}}
</view
>
>
</view><view
class=
"row-item bottom-row"
>
</view><view
class=
"row-item bottom-row"
>
<view
v-if=
"!startDialogData.isList"
class=
"button btn"
@
click=
"
clearSignature
"
>
返回巡检列表
</view>
<view
v-if=
"!startDialogData.isList"
class=
"button btn"
@
click=
"
backList
"
>
返回巡检列表
</view>
<view
class=
"button"
@
click=
"confirmSignature"
>
我已到达
</view>
<view
class=
"button"
@
click=
"confirmSignature"
>
我已到达
</view>
</view>
</view>
...
@@ -39,6 +39,9 @@ export default {
...
@@ -39,6 +39,9 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
backList
()
{
this
.
$emit
(
"backList"
,
""
);
},
confirmSignature
()
{
confirmSignature
()
{
this
.
$emit
(
"confirm"
,
""
);
this
.
$emit
(
"confirm"
,
""
);
},
},
...
...
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
b1504145
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"box"
>
<view
class=
"box"
v-if=
"!isSign"
>
<view
class=
"bar"
>
<view
class=
"bar"
>
<view
class=
"title"
>
巡检进度
</view>
<view
class=
"title"
>
巡检进度
</view>
<view
class=
"dai"
>
<view
class=
"dai"
>
...
...
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
b1504145
...
@@ -140,6 +140,7 @@
...
@@ -140,6 +140,7 @@
ref=
"startDialog"
ref=
"startDialog"
:startDialogData=
"startDialogData"
:startDialogData=
"startDialogData"
@
confirm=
"handleStartDialog"
@
confirm=
"handleStartDialog"
@
backList=
"back"
></startDialog>
></startDialog>
</view>
</view>
</
template
>
</
template
>
...
@@ -215,6 +216,7 @@ export default {
...
@@ -215,6 +216,7 @@ export default {
name
:
""
,
name
:
""
,
jfType
:
"0"
,
jfType
:
"0"
,
value
:
"1"
,
value
:
"1"
,
paramsObjFirst
:
{},
};
};
},
},
computed
:
{
computed
:
{
...
@@ -240,12 +242,13 @@ export default {
...
@@ -240,12 +242,13 @@ export default {
this
.
inspectionCode
=
options
.
inspectionCode
;
this
.
inspectionCode
=
options
.
inspectionCode
;
this
.
backValue
=
options
.
backValue
||
""
;
this
.
backValue
=
options
.
backValue
||
""
;
this
.
tabs
=
this
.
tabs
=
this
.
jfType
===
"2"
||
this
.
jfType
===
"3"
?
t
absInfo2
:
tabsInfo1
;
this
.
jfType
===
"2"
||
this
.
jfType
===
"3"
?
t
his
.
deepClone
(
tabsInfo2
)
:
this
.
deepClone
(
tabsInfo1
)
;
console
.
log
(
"机房查看options"
,
options
);
console
.
log
(
"机房查看options"
,
options
);
if
(
options
.
uid
)
{
if
(
options
.
uid
)
{
this
.
getDetails
(
options
.
uid
);
this
.
getDetails
(
options
.
uid
);
}
else
{
}
else
{
this
.
init
();
this
.
init
();
this
.
paramsObjFirst
=
this
.
getAllChildFormData
();
}
}
},
},
watch
:
{},
watch
:
{},
...
@@ -255,6 +258,7 @@ export default {
...
@@ -255,6 +258,7 @@ export default {
methods
:
{
methods
:
{
// 初始化
// 初始化
init
()
{
init
()
{
console
.
log
(
"查看tabs"
,
this
.
tabs
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// 判断是否有回显数据
// 判断是否有回显数据
// 基础数据
// 基础数据
...
@@ -285,8 +289,16 @@ export default {
...
@@ -285,8 +289,16 @@ export default {
getInspectionDetails
(
uid
)
getInspectionDetails
(
uid
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
const
detailsInfo
=
res
;
const
detailsInfo
=
res
;
console
.
log
(
"查看tabs"
,
this
.
tabs
);
this
.
list
=
detailsInfo
.
originData
[
this
.
value
-
1
].
details
;
this
.
list
=
detailsInfo
.
originData
[
this
.
value
-
1
].
details
;
console
.
log
(
"查看list"
,
this
.
list
);
console
.
log
(
"查看list"
,
this
.
list
);
this
.
tabs
.
forEach
((
item
)
=>
{
if
(
this
.
list
[
item
.
value
]
&&
this
.
list
[
item
.
value
].
status
!==
undefined
)
{
item
.
status
=
this
.
list
[
item
.
value
].
status
;
}
});
console
.
log
(
"查看tabs2"
,
this
.
tabs
);
// this.inspectionResult = list[0].inspectionResult;
// this.inspectionResult = list[0].inspectionResult;
this
.
detailsInfo
=
detailsInfo
;
this
.
detailsInfo
=
detailsInfo
;
console
.
log
(
"detailsInfo"
,
detailsInfo
);
console
.
log
(
"detailsInfo"
,
detailsInfo
);
...
@@ -316,7 +328,6 @@ export default {
...
@@ -316,7 +328,6 @@ export default {
getParams
(
isSubmit
)
{
getParams
(
isSubmit
)
{
if
(
this
.
uid
)
{
if
(
this
.
uid
)
{
let
posItem
=
this
.
detailsInfo
.
originData
[
this
.
value
-
1
];
let
posItem
=
this
.
detailsInfo
.
originData
[
this
.
value
-
1
];
this
.
listData
=
this
.
detailsInfo
.
originData
;
let
paramsObj
=
this
.
getAllChildFormData
();
//获取所有数据
let
paramsObj
=
this
.
getAllChildFormData
();
//获取所有数据
console
.
log
(
"获取数据"
,
paramsObj
);
console
.
log
(
"获取数据"
,
paramsObj
);
posItem
.
details
=
paramsObj
;
posItem
.
details
=
paramsObj
;
...
@@ -342,6 +353,7 @@ export default {
...
@@ -342,6 +353,7 @@ export default {
// this.detailsInfo.isException = equalTwoCount; //异常数量
// this.detailsInfo.isException = equalTwoCount; //异常数量
this
.
detailsInfo
.
submitTime
=
moment
().
format
(
"yyyy-MM-DD"
);
// 记录提交时间
this
.
detailsInfo
.
submitTime
=
moment
().
format
(
"yyyy-MM-DD"
);
// 记录提交时间
this
.
detailsInfo
.
submitMonth
=
moment
().
format
(
"yyyy-MM"
);
// 记录提交月份
this
.
detailsInfo
.
submitMonth
=
moment
().
format
(
"yyyy-MM"
);
// 记录提交月份
this
.
listData
=
this
.
detailsInfo
.
originData
;
return
this
.
detailsInfo
;
return
this
.
detailsInfo
;
}
else
{
}
else
{
let
baseInfo
=
this
.
baseInfo
;
let
baseInfo
=
this
.
baseInfo
;
...
@@ -352,14 +364,13 @@ export default {
...
@@ -352,14 +364,13 @@ export default {
value
:
item
.
dictValue
,
value
:
item
.
dictValue
,
jfType
:
item
.
jfType
,
jfType
:
item
.
jfType
,
isVaild
:
false
,
// 校验通过
isVaild
:
false
,
// 校验通过
details
:
paramsObj
,
details
:
this
.
paramsObjFirst
,
status
:
item
.
status
,
status
:
item
.
status
,
refName
:
`TabContentItem_
${
index
}
`
,
refName
:
`TabContentItem_
${
index
}
`
,
statusLable
:
item
.
statusLable
,
statusLable
:
item
.
statusLable
,
};
};
});
});
let
tabList
=
this
.
deepClone
(
dataObj
);
let
tabList
=
this
.
deepClone
(
dataObj
);
this
.
listData
=
this
.
deepClone
(
tabList
);
let
posItem
=
tabList
[
this
.
value
-
1
];
let
posItem
=
tabList
[
this
.
value
-
1
];
posItem
.
details
=
paramsObj
;
posItem
.
details
=
paramsObj
;
posItem
.
isSubmit
=
isSubmit
;
posItem
.
isSubmit
=
isSubmit
;
...
@@ -382,6 +393,7 @@ export default {
...
@@ -382,6 +393,7 @@ export default {
originData
:
tabList
,
//所有大楼和楼层的数据
originData
:
tabList
,
//所有大楼和楼层的数据
};
};
console
.
log
(
"getParams,data"
,
data
);
console
.
log
(
"getParams,data"
,
data
);
this
.
listData
=
data
.
originData
;
return
data
;
return
data
;
}
}
},
},
...
@@ -520,22 +532,19 @@ export default {
...
@@ -520,22 +532,19 @@ export default {
title
:
"暂存成功"
,
title
:
"暂存成功"
,
icon
:
"none"
,
icon
:
"none"
,
});
});
// uni.navigateTo({
// url: `/pages/inspectionContent/inspectionContentList?uid=${params.uid}&backValue=${this.backValue}`,
// });
}
}
uni
.
navigateTo
({
url
:
`/pages/inspectionContent/inspectionContentList?uid=
${
params
.
uid
}
&backValue=
${
this
.
backValue
}
`
,
});
},
},
startDialog
()
{
startDialog
()
{
let
allIsSubmitOne
=
this
.
listData
.
every
((
item
)
=>
item
.
isSubmit
===
1
);
console
.
log
(
"是否全部完成"
,
allIsSubmitOne
);
console
.
log
(
"this.listData"
,
this
.
listData
);
let
item
=
this
.
findTargetObject
(
this
.
listData
);
let
item
=
this
.
findTargetObject
(
this
.
listData
);
console
.
log
(
"即将操作的机房"
,
item
);
console
.
log
(
"即将操作的机房"
,
item
);
this
.
name
=
item
&&
item
.
name
?
item
.
name
:
""
;
this
.
name
=
item
&&
item
.
name
?
item
.
name
:
""
;
this
.
jfType
=
item
&&
item
.
name
?
item
.
jfType
:
""
;
this
.
jfType
=
item
&&
item
.
name
?
item
.
jfType
:
""
;
this
.
value
=
item
&&
item
.
name
?
item
.
value
:
""
;
this
.
value
=
item
&&
item
.
name
?
item
.
value
:
""
;
if
(
item
&&
item
.
nam
e
)
{
if
(
!
allIsSubmitOn
e
)
{
this
.
startDialogData
.
text
=
[
this
.
startDialogData
.
text
=
[
`当前机房已巡检完毕,`
,
`当前机房已巡检完毕,`
,
`请到“
${
this
.
name
}
”`
,
`请到“
${
this
.
name
}
”`
,
...
@@ -550,7 +559,7 @@ export default {
...
@@ -550,7 +559,7 @@ export default {
},
},
// 处理弹窗确认
// 处理弹窗确认
handleStartDialog
()
{
handleStartDialog
()
{
console
.
log
(
"跳转前"
,
this
.
uid
)
console
.
log
(
"跳转前"
,
this
.
uid
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/inspectionContent/inspectionContentNew?value=
${
this
.
value
}
&inspectionCode=
${
this
.
inspectionCode
}
&jfType=
${
this
.
jfType
}
&location=
${
this
.
name
}
&uid=
${
this
.
uid
}
&backValue=
${
this
.
backValue
}
`
,
url
:
`/pages/inspectionContent/inspectionContentNew?value=
${
this
.
value
}
&inspectionCode=
${
this
.
inspectionCode
}
&jfType=
${
this
.
jfType
}
&location=
${
this
.
name
}
&uid=
${
this
.
uid
}
&backValue=
${
this
.
backValue
}
`
,
});
});
...
@@ -670,7 +679,7 @@ export default {
...
@@ -670,7 +679,7 @@ export default {
}
}
},
// 设置巡检结论
},
// 设置巡检结论
setInspectionResult
(
value
)
{
setInspectionResult
(
value
)
{
console
.
log
(
"设置巡检结论"
,
value
)
console
.
log
(
"设置巡检结论"
,
value
);
this
.
inspectionResult
=
value
;
this
.
inspectionResult
=
value
;
this
.
list
[
this
.
activeTab
].
inspectionResult
=
value
;
// 更新当前 Tab 的数据
this
.
list
[
this
.
activeTab
].
inspectionResult
=
value
;
// 更新当前 Tab 的数据
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论