Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
0e11dcd9
Commit
0e11dcd9
authored
Jul 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产报工选中增加颜色区分
parent
7e2e582b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
index.vue
pages/mes/prodReport/index.vue
+11
-2
zb-table.vue
uni_modules/zb-table/components/zb-table/zb-table.vue
+1
-1
No files found.
pages/mes/prodReport/index.vue
View file @
0e11dcd9
...
@@ -1550,10 +1550,14 @@ export default {
...
@@ -1550,10 +1550,14 @@ export default {
// console.log(row, i, 999)
// console.log(row, i, 999)
var
oDate1
=
new
Date
();
var
oDate1
=
new
Date
();
var
oDate2
=
new
Date
(
row
.
scheduleEndDate
);
var
oDate2
=
new
Date
(
row
.
scheduleEndDate
);
const
index
=
this
.
tableSelectData
.
findIndex
(
v
=>
v
.
taskWorkunitId
===
row
.
taskWorkunitId
)
if
(
index
>
-
1
)
{
return
'selectrow'
}
if
(
oDate1
.
getTime
()
>
oDate2
.
getTime
())
{
if
(
oDate1
.
getTime
()
>
oDate2
.
getTime
())
{
return
true
;
//第一个大
return
'trbg'
;
//第一个大
}
else
{
}
else
{
return
false
;
//第二个大
return
''
;
//第二个大
}
}
},
},
commonClick
(
oper
)
{
commonClick
(
oper
)
{
...
@@ -2988,6 +2992,11 @@ export default {
...
@@ -2988,6 +2992,11 @@ export default {
background
:
#fb9461
!
important
;
background
:
#fb9461
!
important
;
// color:#fff !important;
// color:#fff !important;
}
}
/
deep
/
.item-tr.selectrow
.item-td
{
background
:
#4ea381
!
important
;
// color:#fff !important;
}
}
}
.prod-body-left-num
{
.prod-body-left-num
{
...
...
uni_modules/zb-table/components/zb-table/zb-table.vue
View file @
0e11dcd9
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<view
class=
"zb-table-tbody"
>
<view
class=
"zb-table-tbody"
>
<radio-group
@
change=
"handleRadio"
>
<radio-group
@
change=
"handleRadio"
>
<view
<view
:class=
"['item-tr', highlight && isHighlight(item, index) ? 'current-row' : '', isTrClassStyle
&& isTrClassStyle(item, index) ? 'trbg'
: '']"
:class=
"['item-tr', highlight && isHighlight(item, index) ? 'current-row' : '', isTrClassStyle
? isTrClassStyle(item, index)
: '']"
@
click
.
stop=
"rowClick(item, index)"
@
click
.
stop=
"rowClick(item, index)"
v-for=
"(item, index) in transData"
v-for=
"(item, index) in transData"
:key=
"item.key"
:key=
"item.key"
...
...
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