Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tianhong2.1xcx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
tianhong2.1xcx
Commits
d9792c59
Commit
d9792c59
authored
Aug 21, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:隐患管理页面检查日期显示格式为年月日处理。
parent
f4f1bde7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
dangerlist.js
pages/dangerlist/dangerlist.js
+12
-2
dangerlist.wxml
pages/dangerlist/dangerlist.wxml
+1
-1
No files found.
pages/dangerlist/dangerlist.js
View file @
d9792c59
...
...
@@ -57,8 +57,13 @@ Page({
arr
=
newarr
;
console
.
log
(
arr
,
'
获取当前企业的隐患arr3
'
)
if
(
res
.
statusCode
===
200
)
{
const
filterData
=
res
.
data
.
content
.
map
((
item
)
=>
{
// 日期格式化
item
.
hdInspectDateFilter
=
item
.
hdInspectDate
?
item
.
hdInspectDate
.
substring
(
0
,
10
)
:
''
return
item
})
this
.
setData
({
dglist
:
[...
res
.
data
.
content
]
dglist
:
[...
filterData
],
})
return
;
}
else
if
(
res
.
statusCode
===
401
)
{
...
...
@@ -129,8 +134,13 @@ Page({
arr
=
newarr
;
console
.
log
(
arr
,
'
获取当前企业的隐患arr2
'
)
if
(
res
.
statusCode
===
200
)
{
const
filterData
=
res
.
data
.
content
.
map
((
item
)
=>
{
// 日期格式化
item
.
hdInspectDateFilter
=
item
.
hdInspectDate
?
item
.
hdInspectDate
.
substring
(
0
,
10
)
:
''
return
item
})
this
.
setData
({
dglist
:
[...
res
.
data
.
content
]
dglist
:
[...
filterData
],
})
}
else
if
(
res
.
statusCode
===
401
)
{
wx
.
redirectTo
({
...
...
pages/dangerlist/dangerlist.wxml
View file @
d9792c59
...
...
@@ -29,7 +29,7 @@
<span >{{newMsg}}</span>
</view>
<view style="margin-bottom:12px;margin-top:-6px;">
<span >检查时间: {{item.hdInspectDate}}</span>
<span >检查时间: {{item.hdInspectDate
Filter
}}</span>
</view>
<view>
<button style="float:left;" type="default" class="editBtn" size="mini" bindtap="editHD" data-index="{{index}}" wx:if="{{!(item.overtime == 1)&&(item.hdstatus1===1)&&!(curRole=='企业员工')}}">查看</button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment