|
@@ -266,16 +266,16 @@ export default {
|
|
|
return year + '-' + month +'-' + date
|
|
|
},
|
|
|
/*查重格式化*/
|
|
|
- getFontHighlight(data){
|
|
|
+ getFontHighlight(data,type){
|
|
|
data.map(item => {
|
|
|
item.chars = item.chars.reduce((acc,ite) => ({
|
|
|
...acc,
|
|
|
...ite
|
|
|
}),{})
|
|
|
|
|
|
- item.projectname = item.projectname.split('').map(text => {
|
|
|
- let projectname = item.chars.projectname.join("") || ''
|
|
|
- return projectname.includes(text) ? {
|
|
|
+ item[type] = item[type].split('').map(text => {
|
|
|
+ type = item.chars[type].join("") || ''
|
|
|
+ return type.includes(text) ? {
|
|
|
text,
|
|
|
color: 'red'
|
|
|
} : {
|