Files
mes-ui-d2/src/mock/chart/G2NightingaleRose.js
李杨 1e06ffe151 no message
Former-commit-id: a93fca08c3279a8a135e52ddad8dd3d42626fb17
Former-commit-id: 265098e111bf7be16c22c23b8b22beff40df2726
Former-commit-id: aa78e1a82a4c3f45882e646defe3f59c29bb97d3
2018-02-19 10:15:00 +08:00

15 lines
406 B
JavaScript

import Mock from 'mockjs'
import * as fn from './_fn'
Mock.mock('/api/chart/G2NightingaleRose', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.type) {
// 基础南丁格尔玫瑰图
case 'base': {
return fn.returnMaker(['中国', '日本', '美国', '法国', '英国'].map(e => ({item: e, count: 100 + fn.r()})))
}
default:
return {}
}
})