Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
computedRoomPad
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
computedRoomPad
Commits
eaf5fe27
提交
eaf5fe27
authored
3月 23, 2025
作者:
caodi\cd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:优化
上级
82aa36b7
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
99 行增加
和
42 行删除
+99
-42
home.vue
pages/home/home.vue
+51
-27
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+12
-2
index.vue
pages/listingManagement/index.vue
+32
-12
shaftInspectionList.vue
pages/shaftInspection/shaftInspectionList.vue
+4
-1
没有找到文件。
pages/home/home.vue
浏览文件 @
eaf5fe27
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
<view
class=
"header-buttons"
>
<view
class=
"header-buttons"
>
<button
class=
"log-button"
@
click=
"lookLog"
>
操作日志
</button>
<button
class=
"log-button"
@
click=
"lookLog"
>
操作日志
</button>
<div
class=
"exit-button"
@
click=
"logOut"
>
<div
class=
"exit-button"
@
click=
"logOut"
>
<image
class=
"logout"
src=
"@/static/img/logout.svg"
mode=
"aspectFit"
></image>
<image
class=
"logout"
src=
"@/static/img/logout.svg"
mode=
"aspectFit"
></image>
</div>
</div>
</view>
</view>
</view>
</view>
...
@@ -17,14 +21,23 @@
...
@@ -17,14 +21,23 @@
<view
class=
"profile-box"
>
<view
class=
"profile-box"
>
<view
class=
"profile-left"
>
<view
class=
"profile-left"
>
<view
class=
"avatar"
>
<view
class=
"avatar"
>
<image
src=
"@/static/img/add-img/home1.png"
mode=
"aspectFit"
></image>
<image
<view
class=
"change-password"
@
click=
"updatePassword"
>
修改密码
</view>
src=
"@/static/img/add-img/home1.png"
mode=
"aspectFit"
></image>
<view
class=
"change-password"
@
click=
"updatePassword"
>
修改密码
</view
>
</view>
</view>
<view
class=
"username"
>
{{
userName
}}
</view>
<view
class=
"username"
>
{{
userName
}}
</view>
</view>
</view>
<view
class=
"profile-right"
>
<view
class=
"profile-right"
>
<button
class=
"inspection-button"
@
click=
"toInspectionManagement"
>
巡检管理
</button>
<button
class=
"inspection-button"
@
click=
"toInspectionManagement"
>
<button
class=
"record-button"
@
click=
"toListingManagement"
>
设备上架管理
</button>
巡检管理
</button>
<button
class=
"record-button"
@
click=
"toListingManagement"
>
设备上架管理
</button>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -32,22 +45,32 @@
...
@@ -32,22 +45,32 @@
<!-- 第三个模块 -->
<!-- 第三个模块 -->
<view
class=
"card-section"
>
<view
class=
"card-section"
>
<view
class=
"card-container"
>
<view
class=
"card-container"
>
<view
class=
"card"
v-for=
"(card, index) in cards"
:key=
"index"
<view
:style=
"
{ backgroundImage: `url(${card.image})` }" @click="toList(card.url)">
class=
"card"
v-for=
"(card, index) in cards"
:key=
"index"
:style=
"
{ backgroundImage: `url(${card.image})` }"
@click="toList(card.url)"
>
<view
class=
"card-text"
>
{{
card
.
text
}}
</view>
<view
class=
"card-text"
>
{{
card
.
text
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 退出账号弹出 -->
<!-- 退出账号弹出 -->
<uni-popup
ref=
"inputDialog2"
type=
"dialog"
>
<uni-popup
ref=
"inputDialog2"
type=
"dialog"
>
<uni-popup-dialog
ref=
"inputClose2"
mode=
"base"
title=
"确定退出该账号?"
@
confirm=
"dialogInputConfirm2"
>
<uni-popup-dialog
ref=
"inputClose2"
mode=
"base"
title=
"确定退出该账号?"
@
confirm=
"dialogInputConfirm2"
>
</uni-popup-dialog>
</uni-popup-dialog>
</uni-popup>
</uni-popup>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
cards
:
[{
cards
:
[{
...
@@ -62,7 +85,8 @@
...
@@ -62,7 +85,8 @@
},
},
{
{
image
:
'../../static/img/sj.png'
,
image
:
'../../static/img/sj.png'
,
text
:
'设备上架'
text
:
'设备上架'
,
url
:
"/pages/listingManagement/index?backValue=home"
}
}
],
],
userName
:
this
.
$store
.
state
.
now_user
.
user
,
userName
:
this
.
$store
.
state
.
now_user
.
user
,
...
@@ -130,21 +154,21 @@
...
@@ -130,21 +154,21 @@
},
},
}
}
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.container {
.container {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
padding: 20px;
padding: 20px;
height: 100vh;
height: 100vh;
background-image: linear-gradient(115deg, #E8F0FB 0%, #E1EBFA
100%);
background-image: linear-gradient(115deg, #e8f0fb 0%, #e1ebfa
100%);
z-index: 1;
z-index: 1;
}
}
.header {
.header {
width: 100%;
width: 100%;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
...
@@ -174,7 +198,7 @@
...
@@ -174,7 +198,7 @@
.log-button {
.log-button {
width: 112px;
width: 112px;
height: 36px;
height: 36px;
background: #FFFFFF
;
background: #ffffff
;
border-radius: 18px;
border-radius: 18px;
margin-right: 10px;
margin-right: 10px;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
...
@@ -187,7 +211,7 @@
...
@@ -187,7 +211,7 @@
.exit-button {
.exit-button {
width: 36px;
width: 36px;
height: 36px;
height: 36px;
background: #FFFFFF
;
background: #ffffff
;
border: 0.5px solid rgba(224, 224, 224, 1);
border: 0.5px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 18px;
display: flex;
display: flex;
...
@@ -200,9 +224,9 @@
...
@@ -200,9 +224,9 @@
}
}
}
}
}
}
}
}
.profile-section {
.profile-section {
width: 720px;
width: 720px;
.profile-box {
.profile-box {
...
@@ -239,7 +263,7 @@
...
@@ -239,7 +263,7 @@
height: 22px;
height: 22px;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 12px;
font-size: 12px;
color: #FFFFFF
;
color: #ffffff
;
line-height: 20px;
line-height: 20px;
font-weight: 400;
font-weight: 400;
}
}
...
@@ -261,11 +285,11 @@
...
@@ -261,11 +285,11 @@
.inspection-button {
.inspection-button {
width: 112px;
width: 112px;
height: 36px;
height: 36px;
background-image: linear-gradient(105deg, #68ACFB 0%, #3774F
6 100%);
background-image: linear-gradient(105deg, #68acfb 0%, #3774f
6 100%);
border-radius: 18px;
border-radius: 18px;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 16px;
font-size: 16px;
color: #FFFFFF
;
color: #ffffff
;
line-height: 36px;
line-height: 36px;
font-weight: 400;
font-weight: 400;
margin-right: 16px;
margin-right: 16px;
...
@@ -274,20 +298,20 @@
...
@@ -274,20 +298,20 @@
.record-button {
.record-button {
width: 144px;
width: 144px;
height: 36px;
height: 36px;
background: #FFFFFF
;
background: #ffffff
;
border: 1px solid rgba(55, 116, 246, 1);
border: 1px solid rgba(55, 116, 246, 1);
border-radius: 18px;
border-radius: 18px;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 16px;
font-size: 16px;
color: #3774F
6;
color: #3774f
6;
line-height: 36px;
line-height: 36px;
font-weight: 400;
font-weight: 400;
}
}
}
}
}
}
}
}
.card-section {
.card-section {
width: 720px;
width: 720px;
margin-top: 20px;
margin-top: 20px;
...
@@ -317,5 +341,5 @@
...
@@ -317,5 +341,5 @@
}
}
}
}
}
}
}
}
</
style
>
</
style
>
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
eaf5fe27
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
>
>
</view>
</view>
</view>
</view>
<view
v-if=
"inspectionNumber >1"
class=
"profile-right"
>
<view
v-if=
"inspectionNumber >
1"
class=
"profile-right"
>
<button
v-if=
"!isSign"
class=
"record-button"
@
click=
"toSign"
>
<button
v-if=
"!isSign"
class=
"record-button"
@
click=
"toSign"
>
巡检人签字
巡检人签字
</button>
</button>
...
@@ -97,6 +97,12 @@
...
@@ -97,6 +97,12 @@
<
script
>
<
script
>
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
{
pad_all_inspection_position
}
from
"@/utils/dict.js"
;
import
{
pad_all_inspection_position
}
from
"@/utils/dict.js"
;
import
{
writeInspectionData
,
addLog
,
getLogContent
,
LOG_TYPE_ENUM
,
}
from
"@/utils/IoReadingAndWriting.js"
;
import
{
getInspectionDetails
}
from
"@/request/index.js"
;
import
{
getInspectionDetails
}
from
"@/request/index.js"
;
import
signDialog
from
"@/components/signDialog.vue"
;
import
signDialog
from
"@/components/signDialog.vue"
;
export
default
{
export
default
{
...
@@ -116,6 +122,7 @@ export default {
...
@@ -116,6 +122,7 @@ export default {
uid
:
""
,
uid
:
""
,
options
:
{},
//存储数据
options
:
{},
//存储数据
backValue
:
""
,
backValue
:
""
,
all_data
:
[],
//所有数据
};
};
},
},
computed
:
{
computed
:
{
...
@@ -136,6 +143,7 @@ export default {
...
@@ -136,6 +143,7 @@ export default {
}
else
{
}
else
{
this
.
init
();
this
.
init
();
}
}
this
.
all_data
=
this
.
$store
.
state
.
all_data
;
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
...
@@ -223,7 +231,7 @@ export default {
...
@@ -223,7 +231,7 @@ export default {
},
},
// 提交
// 提交
submit
(
type
=
"sign"
,
value
=
""
)
{
submit
(
type
=
"sign"
,
value
=
""
)
{
const
all_data
=
this
.
$store
.
state
.
all_data
;
//获取全部数据
const
all_data
=
this
.
all_data
;
//获取全部数据
let
params
=
this
.
detailsInfo
;
let
params
=
this
.
detailsInfo
;
params
.
signImg
=
value
;
params
.
signImg
=
value
;
console
.
log
(
"all_data"
,
all_data
);
console
.
log
(
"all_data"
,
all_data
);
...
@@ -234,7 +242,9 @@ export default {
...
@@ -234,7 +242,9 @@ export default {
const
logContent
=
getLogContent
(
LOG_TYPE_ENUM
.
sys
,
"数据同步"
,
"同步"
);
const
logContent
=
getLogContent
(
LOG_TYPE_ENUM
.
sys
,
"数据同步"
,
"同步"
);
// 更新巡检list
// 更新巡检list
console
.
log
(
"all_data存储"
,
all_data
);
console
.
log
(
"all_data存储"
,
all_data
);
console
.
log
(
"all_data一个"
,
all_data
[
index
]);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
all_data
);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
all_data
);
const
userInfo
=
this
.
userInfo
;
const
inspectList
=
all_data
.
filter
(
const
inspectList
=
all_data
.
filter
(
(
item
)
=>
item
.
createByName
==
userInfo
.
user
(
item
)
=>
item
.
createByName
==
userInfo
.
user
);
);
...
...
pages/listingManagement/index.vue
浏览文件 @
eaf5fe27
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</block>
</block>
<block
slot=
"right"
class=
"nav-right"
>
<block
slot=
"right"
class=
"nav-right"
>
<view
class=
"header-buttons"
>
<view
class=
"header-buttons"
>
<button
class=
"button"
>
机房
</button>
<button
class=
"button"
>
操作说明
</button>
</view>
</view>
</block>
</block>
</uni-nav-bar>
</uni-nav-bar>
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
<text
<text
class=
"inner-circle"
class=
"inner-circle"
v-if=
"filteredData(selectedPhotos, group, date)"
v-if=
"filteredData(selectedPhotos, group, date)"
></text>
>
✔
</text
>
</view>
</view>
<text
class=
"date"
>
{{
date
}}
</text>
<text
class=
"date"
>
{{
date
}}
</text>
</view>
</view>
...
@@ -49,9 +50,13 @@
...
@@ -49,9 +50,13 @@
class=
"card"
class=
"card"
@
click=
"previewPhoto(photo)"
@
click=
"previewPhoto(photo)"
>
>
<image
:src=
"photo.url"
mode=
"scaleToFill"
class=
"photo"
></image>
<image
:src=
"photo.url"
mode=
"center"
class=
"photo"
></image>
<view
class=
"check-icon"
@
click
.
stop=
"toggleSelect(photo)"
>
<view
<text
v-if=
"photo.selected"
>
√
</text>
class=
"check-icon"
:class=
"
{ active: photo.selected }"
@click.stop="toggleSelect(photo)"
>
<text
v-if=
"photo.selected"
></text>
</view>
</view>
<view
class=
"delete-icon"
@
click
.
stop=
"deletePhoto(photo)"
<view
class=
"delete-icon"
@
click
.
stop=
"deletePhoto(photo)"
>
×
</view
>
×
</view
...
@@ -401,10 +406,15 @@ export default {
...
@@ -401,10 +406,15 @@ export default {
}
}
.selected-count {
.selected-count {
background-color: #f
0f0f0
;
background-color: #f
ff
;
padding: 6.4px;
padding: 6.4px;
font-size: 14.4px;
color: #000000;
line-height: 20.8px;
font-weight: 500;
border-radius: 6.4px;
border-radius: 6.4px;
margin-bottom: 12.8px;
margin-bottom: 12.8px;
padding-left: 25.6px;
}
}
.photo-box {
.photo-box {
...
@@ -425,13 +435,13 @@ export default {
...
@@ -425,13 +435,13 @@ export default {
align-items: center;
align-items: center;
margin-bottom: 6.4px;
margin-bottom: 6.4px;
padding: 0 25.6px;
padding: 0 25.6px;
.date {
.date {
font-size: 20.8px;
font-size: 20.8px;
color: #000000;
color: #000000;
line-height: 14.4px;
line-height: 14.4px;
font-weight: 500;
font-weight: 500;
margin-left: 6.4px;
margin-left: 6.4px;
margin-bottom: 6.4px;
}
}
}
}
...
@@ -455,18 +465,25 @@ export default {
...
@@ -455,18 +465,25 @@ export default {
position: absolute;
position: absolute;
top: 6.4px;
top: 6.4px;
left: 6.4px;
left: 6.4px;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
border-radius: 50%;
width: 19.2px;
width: 19.2px;
height: 19.2px;
height: 19.2px;
border: 1px solid rgba(255, 255, 255, 0.2);
display: flex;
display: flex;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
line-height: 19.2px;
font-size: 9.6px;
&.active {
background: #3774f6;
color: #fff;
border: 1px solid #fff;
}
}
}
.delete-icon {
.delete-icon {
position: absolute;
position: absolute;
bottom: 6.4px;
bottom:
2
6.4px;
left: 6.4px;
left: 6.4px;
background-color: rgba(255, 0, 0, 0.8);
background-color: rgba(255, 0, 0, 0.8);
border-radius: 50%;
border-radius: 50%;
...
@@ -542,10 +559,13 @@ export default {
...
@@ -542,10 +559,13 @@ export default {
justify-content: center;
justify-content: center;
cursor: pointer;
cursor: pointer;
transition: all 0.3s ease;
transition: all 0.3s ease;
margin-bottom: 2px;
font-size: 8px;
text-align: center;
&.active {
&.active {
border-color: #007aff;
background: #3774f6;
background-color: #3774f6;
color: #fff;
border: 1px solid #fff;
}
}
.inner-circle {
.inner-circle {
...
...
pages/shaftInspection/shaftInspectionList.vue
浏览文件 @
eaf5fe27
...
@@ -151,6 +151,7 @@ export default {
...
@@ -151,6 +151,7 @@ export default {
uid
:
""
,
uid
:
""
,
options
:
{},
//存储数据
options
:
{},
//存储数据
backValue
:
""
,
backValue
:
""
,
all_data
:
[],
//所有数据
};
};
},
},
computed
:
{
computed
:
{
...
@@ -176,6 +177,7 @@ export default {
...
@@ -176,6 +177,7 @@ export default {
}
else
{
}
else
{
this
.
init
();
this
.
init
();
}
}
this
.
all_data
=
this
.
$store
.
state
.
all_data
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -280,7 +282,7 @@ export default {
...
@@ -280,7 +282,7 @@ export default {
// 提交
// 提交
submit
(
type
=
"sign"
,
value
=
""
)
{
submit
(
type
=
"sign"
,
value
=
""
)
{
const
all_data
=
this
.
$store
.
state
.
all_data
;
//获取全部数据
const
all_data
=
this
.
all_data
;
//获取全部数据
let
params
=
this
.
detailsInfo
;
let
params
=
this
.
detailsInfo
;
params
.
signImg
=
value
;
params
.
signImg
=
value
;
console
.
log
(
"all_data"
,
all_data
);
console
.
log
(
"all_data"
,
all_data
);
...
@@ -292,6 +294,7 @@ export default {
...
@@ -292,6 +294,7 @@ export default {
console
.
log
(
"all_data存储"
,
all_data
);
console
.
log
(
"all_data存储"
,
all_data
);
console
.
log
(
"all_data一个"
,
all_data
[
index
]);
console
.
log
(
"all_data一个"
,
all_data
[
index
]);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
all_data
);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
all_data
);
const
userInfo
=
this
.
userInfo
;
const
inspectList
=
all_data
.
filter
(
const
inspectList
=
all_data
.
filter
(
(
item
)
=>
item
.
createByName
==
userInfo
.
user
(
item
)
=>
item
.
createByName
==
userInfo
.
user
);
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论