Authored by dongjunjie

总览接口修改

@@ -78,7 +78,7 @@ @@ -78,7 +78,7 @@
78 78
79 export default { 79 export default {
80 components:{ 80 components:{
81 - comGrid1: grid 81 + comGrid: grid
82 }, 82 },
83 data() { 83 data() {
84 return { 84 return {
@@ -137,18 +137,19 @@ @@ -137,18 +137,19 @@
137 methods:{ 137 methods:{
138 //获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品金额 138 //获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品金额
139 fetchData1: function() { 139 fetchData1: function() {
  140 + console.log('1');
140 $.ajax({ 141 $.ajax({
141 type:"post", 142 type:"post",
142 url:"/report/getShopBusinessOverview", 143 url:"/report/getShopBusinessOverview",
143 - dataType: 'json',  
144 - data: { 144 + dataType:'json',
  145 + data:{
145 dateId: util.dateFormat(new Date(),"YYYYMMdd") 146 dateId: util.dateFormat(new Date(),"YYYYMMdd")
146 }, 147 },
147 - success: function(rs) { 148 + success:function(rs) {
148 this.buyNumbers = rs.data.buyNumbers; 149 this.buyNumbers = rs.data.buyNumbers;
149 this.orderAmount = rs.data.orderAmount; 150 this.orderAmount = rs.data.orderAmount;
150 }, 151 },
151 - error: function(error) { 152 + error:function(error) {
152 console.log(error) 153 console.log(error)
153 } 154 }
154 }) 155 })
@@ -156,20 +157,21 @@ @@ -156,20 +157,21 @@
156 157
157 //获取店铺的品牌排名,当前等级、排名、上升名词 158 //获取店铺的品牌排名,当前等级、排名、上升名词
158 fetchData2: function() { 159 fetchData2: function() {
  160 + console.log('2');
159 $.ajax({ 161 $.ajax({
160 type:"post", 162 type:"post",
161 url:"/report/getShopBrandRank", 163 url:"/report/getShopBrandRank",
162 - dataType: 'json',  
163 - data: { 164 + dataType:'json',
  165 + data:{
164 dateId: util.dateFormat(new Date(),"YYYYMMdd") 166 dateId: util.dateFormat(new Date(),"YYYYMMdd")
165 }, 167 },
166 - success: function(rs) { 168 + success:function(rs) {
167 this.rankNow = rs.data.rankNow; 169 this.rankNow = rs.data.rankNow;
168 this.rankChange = rs.data.rankChange; 170 this.rankChange = rs.data.rankChange;
169 this.rankLevel = rs.data.rankLevel; 171 this.rankLevel = rs.data.rankLevel;
170 this.rankDate = rs.data.dateId; 172 this.rankDate = rs.data.dateId;
171 }, 173 },
172 - error: function(error) { 174 + error:function(error) {
173 console.log(error) 175 console.log(error)
174 } 176 }
175 }) 177 })
@@ -9,7 +9,7 @@ module.exports={ @@ -9,7 +9,7 @@ module.exports={
9 domain:"{bigdata}", 9 domain:"{bigdata}",
10 url: "/bigdata/getShopBusinessOverview", 10 url: "/bigdata/getShopBusinessOverview",
11 params:{ 11 params:{
12 - dateId:{type:"String"} 12 + dateId:{type:String}
13 } 13 }
14 }, 14 },
15 15
@@ -18,7 +18,7 @@ module.exports={ @@ -18,7 +18,7 @@ module.exports={
18 domain:"{bigdata}", 18 domain:"{bigdata}",
19 url: "/bigdata/getShopBrandRank", 19 url: "/bigdata/getShopBrandRank",
20 params:{ 20 params:{
21 - dateId:{type:"String"} 21 + dateId:{type:String}
22 } 22 }
23 }, 23 },
24 24