CN-708 feat: 色块图开发

This commit is contained in:
chenjinsong
2022-09-10 23:13:42 +08:00
parent 503315b8ad
commit 9bc4fa8fdb
15 changed files with 363 additions and 18 deletions

18
src/mock/linkMonitor.js Normal file
View File

@@ -0,0 +1,18 @@
import Mock from 'mockjs'
const openMock = true
if (openMock) {
Mock.mock(BASE_CONFIG.baseUrl + 'interface/linkMonitor/links', 'get', function (requestObj) {
const linkData = []
for (let i = 0; i < 94; i++) {
linkData.push({ linkId: 20 * (i + 300), totalBitsRate: Math.floor(Math.pow(1.1, i) * 10000) })
}
return {
msg: 'success',
code: 200,
data: {
result: linkData
}
}
})
}