Browse Source

Merge pull request 'develop' (#5) from develop into test

Reviewed-on: http://gitea.qinglakeji.com:3000/develop/qwl-data-report-h5/pulls/5
test
曾尔比 3 years ago
parent
commit
c615c956eb
  1. 8
      src/views/PerformanceData/index.vue
  2. 10
      src/views/cityDistribution/index.vue

8
src/views/PerformanceData/index.vue

@ -24,7 +24,7 @@
export default { export default {
data() { data() {
return { return {
opinionData: [0, 0, 0, 0, 15904960, 0, 0, 0, 0],
opinionData: [],
year_count_order_money: '', year_count_order_money: '',
money_count_order_money: '', money_count_order_money: '',
order_goods_num: '', order_goods_num: '',
@ -44,7 +44,6 @@
methods: { methods: {
async getData() { async getData() {
this.opinionData = [] this.opinionData = []
// let data = new Date()
let month = new Date().getMonth() + 1; let month = new Date().getMonth() + 1;
const res = await data.earningReport(); const res = await data.earningReport();
let list = res.data.month_list_money_count let list = res.data.month_list_money_count
@ -83,7 +82,7 @@
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
data:["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
}, },
yAxis: { yAxis: {
type: 'value' type: 'value'
@ -125,11 +124,10 @@
right: '3%', right: '3%',
bottom: '3%', bottom: '3%',
containLabel: true, containLabel: true,
}, },
xAxis: [{ xAxis: [{
type: 'category', type: 'category',
data: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
data: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
axisLine: { // x axisLine: { // x
lineStyle: { lineStyle: {
color: '#c1c1c1', color: '#c1c1c1',

10
src/views/cityDistribution/index.vue

@ -36,15 +36,10 @@
name: 'cityDistribution', name: 'cityDistribution',
data() { data() {
return { return {
chinachart: null,
chartOption: null,
poxy_sum: '', poxy_sum: '',
city: {}, city: {},
cityName: '广东', cityName: '广东',
cityInfo: [], cityInfo: [],
rankArea: [],
selectArea: [],
regions: [],
chartBar: null, chartBar: null,
} }
}, },
@ -55,7 +50,6 @@
}, },
async mounted() { async mounted() {
await this.getData() await this.getData()
// return
this.drawarea(); this.drawarea();
this.statistical(this.cityInfo) this.statistical(this.cityInfo)
}, },
@ -64,7 +58,7 @@
const res = await data.dataDistribution(); const res = await data.dataDistribution();
this.poxy_sum = res.data.poxy_sum this.poxy_sum = res.data.poxy_sum
this.city = res.data.city this.city = res.data.city
console.log(this.city, '---this.city[this.cityName]');
this.cityName = this.city[0].name
this.cityInfo.push({ this.cityInfo.push({
value: this.city[0].num.level_id_1, value: this.city[0].num.level_id_1,
name: 'vip' name: 'vip'
@ -157,7 +151,7 @@
} }
} }
}, { }, {
name: "广东",
name: this.city[0].name,
selected: true, selected: true,
}], }],
itemStyle: { itemStyle: {

Loading…
Cancel
Save