提交 a5180716 authored 作者: lihuihui's avatar lihuihui

update

上级 30ac805c
module.exports = {
domain: 'dev.ezijing.com',
url: 'http://data-view.ezijing.com',
// url: 'http://data-view.ezijing.com',
// url: 'http://172.16.3.11:8011',
url: 'https://web-chart.ezijing.com/',
isEnableToIphoneDebugger: false,
// apiBaseURL: '//demo-login.ezijing.com/',
webpack: {
......@@ -35,6 +37,6 @@ module.exports = {
},
others: {
loginUrl: 'https://login.ezijing.com/auth/login/index'
}
}
......@@ -16,6 +16,6 @@ module.exports = {
},
others: {
loginUrl: 'https://login.ezijing.com/auth/login/index'
}
}
......@@ -17,6 +17,6 @@ module.exports = {
},
others: {
loginUrl: 'https://login.ezijing.com/auth/login/index'
}
}
......@@ -70,6 +70,9 @@ export default class API {
const { status, data } = res
let err = null
if (status === 200) {
if (res.data.code === 401 || res.data.code === 402) {
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
}
return data
} else {
err = new Error(JSON.stringify(res.data))
......
......@@ -5,40 +5,40 @@ export default class Chart210323API extends BaseAPI {
* get传输方式
* @param {[string]} id resource_id
*/
getMonthProjectIncome = () => this.get('/v1/big_screen_marketing/now_month_project_income', {})
getMonthProjectIncome = () => this.get('/api/chart/v1/big_screen_marketing/now_month_project_income', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getYearPlanCompletion = () => this.get('/v1/big_screen_marketing/year_plan_completion', {})
getYearPlanCompletion = () => this.get('/api/chart/v1/big_screen_marketing/year_plan_completion', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getMonthRevenueTrend = () => this.get('/v1/big_screen_marketing/every_month_project_income', {})
getMonthRevenueTrend = () => this.get('/api/chart/v1/big_screen_marketing/every_month_project_income', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getRealTimePay = () => this.get('/v1/big_screen_marketing/real_time_pay', {})
getRealTimePay = () => this.get('/api/chart/v1/big_screen_marketing/real_time_pay', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getProjectAppCost = () => this.get('/v1/big_screen_marketing/project_app_cost', {})
getProjectAppCost = () => this.get('/api/chart/v1/big_screen_marketing/project_app_cost', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getYearRankingApply = () => this.get('/v1/big_screen_marketing/year_project_apply', {})
getYearRankingApply = () => this.get('/api/chart/v1/big_screen_marketing/year_project_apply', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getChannelPayMoney = () => this.get('/v1/big_screen_marketing/channel_pay_money', {})
getChannelPayMoney = () => this.get('/api/chart/v1/big_screen_marketing/channel_pay_money', {})
/**
* get传输方式
* @param {[string]} id resource_id
*/
getProjectPayWeek = () => this.get('/v1/big_screen_marketing/project_pay_week ', {})
getProjectPayWeek = () => this.get('/api/chart/v1/big_screen_marketing/project_pay_week ', {})
}
......@@ -34,7 +34,8 @@ export default {
initChart(data) {
this.option = {
legend: {
data: ['收入', '投入']
data: ['收入', '投入'],
color: '#fff'
},
grid: {
top: '15%',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论