Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
590a7c39
Commit
590a7c39
authored
Nov 15, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQCDP没到日子的显示空白,不默认绿色
parent
bc8f8ba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
calendar.vue
...rivateComponents/components/Sqcdp/components/calendar.vue
+17
-0
No files found.
applications/dee-mes/src/privateComponents/components/Sqcdp/components/calendar.vue
View file @
590a7c39
...
@@ -137,6 +137,7 @@
...
@@ -137,6 +137,7 @@
v-for=
"item in optionData"
v-for=
"item in optionData"
:key=
"item.id"
:key=
"item.id"
:value=
"item.value"
:value=
"item.value"
:disabled=
"item.value==='White'"
:label=
"item.label"
:label=
"item.label"
/>
/>
</el-select>
</el-select>
...
@@ -162,6 +163,7 @@
...
@@ -162,6 +163,7 @@
v-for=
"item in optionData"
v-for=
"item in optionData"
:key=
"item.id"
:key=
"item.id"
:value=
"item.value"
:value=
"item.value"
:disabled=
"item.value==='White'"
:label=
"item.label"
:label=
"item.label"
/>
/>
</el-select>
</el-select>
...
@@ -186,6 +188,7 @@
...
@@ -186,6 +188,7 @@
<el-option
<el-option
v-for=
"item in optionData"
v-for=
"item in optionData"
:key=
"item.id"
:key=
"item.id"
:disabled=
"item.value==='White'"
:value=
"item.value"
:value=
"item.value"
:label=
"item.label"
:label=
"item.label"
/>
/>
...
@@ -211,6 +214,7 @@
...
@@ -211,6 +214,7 @@
<el-option
<el-option
v-for=
"item in optionData"
v-for=
"item in optionData"
:key=
"item.id"
:key=
"item.id"
:disabled=
"item.value==='White'"
:value=
"item.value"
:value=
"item.value"
:label=
"item.label"
:label=
"item.label"
/>
/>
...
@@ -236,6 +240,7 @@
...
@@ -236,6 +240,7 @@
<el-option
<el-option
v-for=
"item in optionData"
v-for=
"item in optionData"
:key=
"item.id"
:key=
"item.id"
:disabled=
"item.value==='White'"
:value=
"item.value"
:value=
"item.value"
:label=
"item.label"
:label=
"item.label"
/>
/>
...
@@ -443,6 +448,14 @@ export default {
...
@@ -443,6 +448,14 @@ export default {
this
.
$api
.
searchApi
(
'FactoryCalendar'
,
params
)
this
.
$api
.
searchApi
(
'FactoryCalendar'
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
res
.
items
.
content
.
map
((
item
)
=>
{
res
.
items
.
content
.
map
((
item
)
=>
{
const
isWhite
=
this
.
isDateAfterToday
(
item
.
calendar
)
if
(
isWhite
)
{
item
.
srisk
=
'White'
item
.
qrisk
=
'White'
item
.
crisk
=
'White'
item
.
drisk
=
'White'
item
.
prisk
=
'White'
}
item
.
calendar
=
item
.
calendar
.
substr
(
5
,
5
)
item
.
calendar
=
item
.
calendar
.
substr
(
5
,
5
)
if
(
!
item
.
srisk
)
{
if
(
!
item
.
srisk
)
{
item
.
srisk
+=
''
item
.
srisk
+=
''
...
@@ -594,6 +607,10 @@ export default {
...
@@ -594,6 +607,10 @@ export default {
// 重置弹出框
// 重置弹出框
reset
(
message
)
{
reset
(
message
)
{
this
.
$utils
.
showMessageSuccess
(
message
)
this
.
$utils
.
showMessageSuccess
(
message
)
},
isDateAfterToday
(
date
)
{
const
today
=
new
Date
()
return
new
Date
(
date
)
>
today
}
}
}
}
}
}
...
...
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