Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8881 | Rev 8887 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8881 Rev 8886
Línea 234... Línea 234...
234
            },
234
            },
235
            {
235
            {
236
                'mDataProp': 'vacancy'
236
                'mDataProp': 'vacancy'
237
            },
237
            },
238
            {
238
            {
239
                'mDataProp': function(data, type, row) {
239
                'mDataProp': function(data, type, row){ 
-
 
240
                    switch(data.points) {
-
 
241
                        case '0':
240
                    let ldate = new Date(Date.parse(data.last_date + " 00:00:00")) ;
242
                            return $points_0
-
 
243
                        case '1':
-
 
244
                            return $points_1
-
 
245
                        case '2':
-
 
246
                            return $points_2
-
 
247
                        case '3':
-
 
248
                            return $points_3
-
 
249
                        case '4':
-
 
250
                            return $points_4
-
 
251
                        default:
241
                    return ldate.getDate() + "/" + String(ldate.getMonth() + 1).padStart(2, '0') + "/" + ldate.getFullYear();
252
                            return data.points
-
 
253
                    }
242
                }
254
                }
243
            },
255
            },
244
            {
256
            {
245
                'mDataProp': 'actions'
257
                'mDataProp': 'actions'
246
            },
258
            },