Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
de9ab9a7
Commit
de9ab9a7
authored
Nov 25, 2022
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特种设备记录日期的逾期显示
parent
c672295f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
index.vue
.../src/views/deviceManagement/specialDeviceRecord/index.vue
+8
-5
No files found.
danger-manage-web/src/views/deviceManagement/specialDeviceRecord/index.vue
View file @
de9ab9a7
...
...
@@ -44,12 +44,15 @@
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
/>
<el-table-column
label=
"登记有效日期"
align=
"center"
prop=
"effectiveDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.effectiveDate != null && scope.row.effectiveDate != '' && getDays(scope.row.effectiveDate, new Date())
<30
"
style=
"color: red;"
>
{{
scope
.
row
.
effectiveDate
}}
(即将到期)
</span>
<span
v-if=
"scope.row.effectiveDate != null && scope.row.effectiveDate != '' && getDays(scope.row.effectiveDate, new Date())
<30
&&
getDays
(
scope
.
row
.
effectiveDate
,
new
Date
())
>
0" style="color: red;">
{{
scope
.
row
.
effectiveDate
}}
(即将到期)
</span>
<span
v-if=
"scope.row.effectiveDate != null && scope.row.effectiveDate != '' && getDays(scope.row.effectiveDate, new Date())
<0
"
style=
"color: red;"
>
{{
scope
.
row
.
effectiveDate
}}
(已逾期)
</span>
<span
v-if=
"scope.row.effectiveDate != null && scope.row.effectiveDate != '' && getDays(scope.row.effectiveDate, new Date())>30"
>
{{
scope
.
row
.
effectiveDate
}}
</span>
{{
scope
.
row
.
effectiveDate
}}
</span>
<span
v-if=
"scope.row.effectiveDate == null || scope.row.effectiveDate == ''"
>
-
</span>
</
template
>
</el-table-column>
...
...
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