(params)
| 509 | |
| 510 | }, |
| 511 | fixParamsTime(params) { |
| 512 | // 如果params中存在时间查询 因 参数里面不可获取当前时间 因此这里对约定的特殊字符进行获取替换 |
| 513 | // #0,23:59:29# 当天结束 #5,00:00:00# 五天前 |
| 514 | let newParams = JSON.stringify(params) |
| 515 | const bakTime = newParams.match(/#.*?\#/gi) |
| 516 | bakTime && bakTime.forEach(item => { |
| 517 | const time = item.split('#')[1].split(',') |
| 518 | const originTime = this.getTime(time[0], time[1]) |
| 519 | newParams = newParams.replace(item, originTime) |
| 520 | }) |
| 521 | return JSON.parse(newParams) |
| 522 | }, |
| 523 | async initApi(item, isSystem = false) { |
| 524 | // 初始化接口数据 |
| 525 | let { url, method, params, dataPath, option, dataOriginConfig, componentsType, dataConversionFunction, shareApiId, shareList } = item.property; |
nothing calls this directly
no outgoing calls
no test coverage detected