Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
5b600a22
提交
5b600a22
authored
4月 23, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: bugs
上级
57222d0f
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
47 行增加
和
23 行删除
+47
-23
user.js
api/user.js
+1
-1
afxt.vue
pages/inspectionContent/components/afxt.vue
+3
-4
customPopup.vue
pages/inspectionContent/components/customPopup.vue
+4
-3
detail.vue
pages/inspectionContent/components/detail.vue
+30
-7
dialog.vue
pages/inspectionContent/components/dialog.vue
+2
-1
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+0
-0
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+3
-3
login.vue
pages/login/login.vue
+4
-4
没有找到文件。
api/user.js
浏览文件 @
5b600a22
...
...
@@ -26,7 +26,7 @@ export default {
let
{
account
,
pwd
}
=
data
}
=
data
const
sql
=
`select * from
${
table
.
userName
}
where user = '
${
account
}
' AND passWord ='
${
pwd
}
'`
let
res
=
await
sqllitedb
.
selectSQL
(
sql
);
...
...
pages/inspectionContent/components/afxt.vue
浏览文件 @
5b600a22
...
...
@@ -223,10 +223,9 @@ export default {
const
isAllOne
=
this
.
areAllInspectionResultsOne
(
this
.
itemData
.
detail
);
this
.
itemData
.
isValid
=
isValid
;
this
.
itemData
.
inspectionItem
=
this
.
inspectionItem
;
console
.
log
(
222
,
this
.
itemData
);
this
.
itemData
.
status
=
isAllOne
.
status
;
//1表示已经巡检过没有异常
this
.
itemData
.
statusLabel
=
isAllOne
.
statusLabel
;
// console.log(
this.itemData);
this
.
itemData
.
statusLabel
=
isAllOne
.
statusLabel
;
console
.
log
(
'afxt'
,
this
.
itemData
);
return
this
.
itemData
;
},
// 数据校验方法 true说明有未填项
...
...
@@ -249,7 +248,7 @@ export default {
console
.
log
(
"确定需要校验的范围 "
,
itemsToCheck
);
// 检查 conclusion 和 photos(如果存在)
for
(
const
item
of
itemsToCheck
)
{
if
(
item
.
inspectionResult
===
0
)
{
if
(
item
.
inspectionResult
===
0
||
item
.
inspectionResult
===
2
)
{
continue
;
// 跳过检查
}
if
(
"conclusion"
in
item
&&
!
item
.
conclusion
)
{
...
...
pages/inspectionContent/components/customPopup.vue
浏览文件 @
5b600a22
...
...
@@ -127,7 +127,7 @@ export default {
"需处理"
,
"已处理"
];
}
,
}
},
};
</
script
>
...
...
@@ -142,8 +142,9 @@ export default {
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 999999;
justify-content: center;
// pointer-events: none;
z-index: 999999;
.synchronous-content {
padding: 3% 20px 32px 24px;
width: 400px;
...
...
pages/inspectionContent/components/detail.vue
浏览文件 @
5b600a22
...
...
@@ -287,13 +287,36 @@
class=
"cards-item"
>
<view
class=
"name"
>
{{
item
.
label
}}{{
index
===
0
?
`(${item.setting
}
)`
:
""
}}
<
text
class
=
"status"
:
class
=
"{ warning: item.inspectionResult === 1
}
"
>
{{
item
.
inspectionResultLable
}}
<
/tex
t
><
/vie
w
>
>
<template
v-if=
"index==0"
>
<view>
{{
item
.
label
}}
<text
class=
"status"
:class=
"
{ warning: item.inspectionResult === 1 }"
>
{{
item
.
inspectionResultLable
}}
</text>
</view>
<!--
<text>
{{
item
.
settingLabel
}}
{{
`(${item.setting
}
)`
}}
<
/text> -->
<
/template>
<
template
v
-
else
>
{{
item
.
label
}}
<
text
class
=
"status"
:
class
=
"{ warning: item.inspectionResult === 1
}
"
>
{{
item
.
inspectionResultLable
}}
<
/text>
<
/template>
<
/vie
w
>
<
view
v
-
if
=
"index==0"
class
=
"list"
>
<
view
class
=
"label"
style
=
"width: 70px;"
>
{{
item
.
settingLabel
}}
:
<
/view>
<
view
class
=
"content"
>
{{
item
.
setting
}}
<
/view>
<
/view
>
<
view
class
=
"list"
>
<
view
class
=
"label"
>
情况描述:
<
/view
>
<
view
class
=
"content"
>
...
...
pages/inspectionContent/components/dialog.vue
浏览文件 @
5b600a22
...
...
@@ -66,7 +66,8 @@ export default {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
text-align: center;
z-index: 99999;
.synchronous-content {
padding: 25.6px 19.2px;
width: 420px;
...
...
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
5b600a22
差异被折叠。
点击展开。
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
5b600a22
...
...
@@ -126,7 +126,7 @@
</view>
<!-- v-if="value > 2" -->
<view
class=
"action-btn complete-btn"
@
click=
"submit(1)"
>
完成巡检
</view>
<
view
class=
"action-btn"
@
click=
"normal"
>
一键正常
</view
>
<
!--
<view
class=
"action-btn"
@
click=
"normal"
>
一键正常
</view>
--
>
</view>
<startDialog
ref=
"startDialog"
...
...
@@ -1154,10 +1154,10 @@ export default {
gap: 16px;
left: 50%;
transform: translateX(-50%);
bottom: 2
5.6
px;
bottom: 2
0
px;
.action-btn {
width: 1
45.6
px;
width: 1
18
px;
height: 38.4px;
line-height: 38.4px;
background: #ffffff;
...
...
pages/login/login.vue
浏览文件 @
5b600a22
...
...
@@ -13,7 +13,7 @@
<uni-easyinput
v-if=
"passwordVisible"
class=
"log-input"
prefixIcon=
"locked"
clearSize=
"0"
v-model=
"person.pwd"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
:passwordIcon=
"false"
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
<uni-easyinput
v-else
class=
"log-input"
prefixIcon=
"locked-filled"
clearSize=
"0"
v-model=
"person.pd"
<uni-easyinput
v-else
class=
"log-input"
prefixIcon=
"locked-filled"
clearSize=
"0"
v-model=
"person.p
w
d"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
:passwordIcon=
"false"
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
</view>
...
...
@@ -44,8 +44,8 @@
data
()
{
return
{
person
:
{
account
:
"管理员"
,
pwd
:
"Gly@124"
,
account
:
"
"
,
// "
管理员",
pwd
:
"
"
//
Gly@124",
},
backButtonPress
:
0
,
personList
:
[],
...
...
@@ -89,7 +89,7 @@
this
.
passwordVisible
=
!
this
.
passwordVisible
;
},
// 点击登录
async
login
()
{
async
login
()
{
userApi
.
login
(
this
.
person
).
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
personList
=
res
.
data
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论