no message
Former-commit-id: 4bfe822510fad9d3caab87f4ff29ce200740555e Former-commit-id: 0336d2c16b1a871375b0d94720c950640397e10d Former-commit-id: d8acf08adce671df5fefe8eaf573defd2f6e424f
This commit is contained in:
18
src/mock/chart/G2Radar.js
Normal file
18
src/mock/chart/G2Radar.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import Mock from 'mockjs'
|
||||
import * as fn from './_fn'
|
||||
|
||||
Mock.mock('/api/chart/G2Radar', 'post', ({body, type, url}) => {
|
||||
const _body = JSON.parse(body)
|
||||
switch (_body.type) {
|
||||
// 基础折线图
|
||||
case 'base': {
|
||||
return fn.returnMaker(['中国', '日本', '美国', '法国', '英国'].map(e => ({
|
||||
item: e,
|
||||
a: fn.r(),
|
||||
b: fn.r()
|
||||
})))
|
||||
}
|
||||
default:
|
||||
return {}
|
||||
}
|
||||
})
|
||||
@@ -3,3 +3,4 @@ import './G2Column'
|
||||
import './G2Line'
|
||||
import './G2NightingaleRose'
|
||||
import './G2Pie'
|
||||
import './G2Radar'
|
||||
|
||||
Reference in New Issue
Block a user