常用函数整理

2018-11-13  本文已影响2人  追逐繁星的阿忠
v.top5 = v.commissions.slice(0,5);
                v.topAll = v.commissions.slice(0,v.length-1);
    deep(r): void {
        for (let i of r) {
            i["statusName"] = ''
            if (i.status == 1) {
                i["statusName"] = '待审核'
            } else if (i.status == 2) {
                i["statusName"] = '审核通过'
            } else if (i.status == -1) {
                i["statusName"] = '审核未通过'
            }
            i["startTime"] = this._commonService.time2Date(i.start_time, true, '-')
            i["endTime"] = this._commonService.time2Date(i.end_time, true, '-')

        }
        return r
    }
上一篇下一篇

猜你喜欢

热点阅读