Commit bedfa15c authored by 王礼鸿 Baimax Wang's avatar 王礼鸿 Baimax Wang

Merge branch 'ld_databoard_fix' into 230829_wlh_fix

# Conflicts:
#	src/module/api/apiList.js
#	src/module/databoard/index.vue
parents ead026da a435bee0
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
mounted() { mounted() {
// 获取图表数据 // 获取图表数据
arCompanyBar().then(res => { arCompanyBar().then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
// 获取图表数据 // 获取图表数据
arCompanyMonthlyBar(company).then(res => { arCompanyMonthlyBar(company).then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData0 = [] let seriesData0 = []
let seriesData1 = [] let seriesData1 = []
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
mounted() { mounted() {
// 获取图表数据 // 获取图表数据
arMonthlyBar().then(res => { arMonthlyBar().then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
this.barChart.title.text = month + " 已开票未收款(结算单位)" this.barChart.title.text = month + " 已开票未收款(结算单位)"
// 获取图表数据 // 获取图表数据
arMonthlyCompanyBar(month).then(res => { arMonthlyCompanyBar(month).then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -152,6 +152,7 @@ import TableColumn from "./components/table/table-column.vue"; ...@@ -152,6 +152,7 @@ import TableColumn from "./components/table/table-column.vue";
import RingPieChart from "./components/chart/ring-pie-chart.vue"; import RingPieChart from "./components/chart/ring-pie-chart.vue";
import {calc_hb_str, calc_tb_str, conver_amont} from "../util/util"; import {calc_hb_str, calc_tb_str, conver_amont} from "../util/util";
import {arSummaryBar, arCompanyList,getBusinessConditionDatas} from "../api/apiList" import {arSummaryBar, arCompanyList,getBusinessConditionDatas} from "../api/apiList"
import {calc_hb_str, calc_tb_str, conver_amont} from "../utils/numUtil";
// import {refreshData} from "./databoard/js/api"; // import {refreshData} from "./databoard/js/api";
export default { export default {
...@@ -408,7 +409,7 @@ export default { ...@@ -408,7 +409,7 @@ export default {
methods: { methods: {
cellStyleFunction(data) { cellStyleFunction(data) {
let res = {color: '#33ff66'}; let res = {color: '#33ff66'};
console.log(data+":"+data.indexOf('+')) console.log(data + ":" + data.indexOf('+'))
if (data.indexOf('-') !== -1) { if (data.indexOf('-') !== -1) {
res.color = '#ff3300' res.color = '#ff3300'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment