qymljy 2 سال پیش
والد
کامیت
d8e9960253
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/salesData/modules/orderProductCategory.vue

+ 2 - 2
src/views/salesData/modules/orderProductCategory.vue

@@ -255,6 +255,7 @@ export default {
         return {
           "totalamount": this.totalamount,//值
           "type": item.itemclassfullname,
+          "itemclassid":item.itemclassid,
           "rowindex": item.rowindex,
           "ratio": Math.round(((item.ratio * 100)*100)/100), //比例
           "value":item.value
@@ -276,7 +277,6 @@ export default {
       sessionStorage.setItem('total',res.total)
     },
     renderPie(val){
-      console.log(val,'33333')
       this.chartPie = new Pie('orderProductCategoryChart',{
         appendPadding: 10,
         data:this.chartData,
@@ -331,7 +331,7 @@ export default {
       })
       this.chartPie.on('plot:click',ev=>{
         const states = this.chartPie.getStates()
-        this.param.content.where.type = states.length ===0 ? '':ev.data.data.type
+        this.param.content.where.itemclassid = states.length ===0 ? '':ev.data.data.itemclassid
         this.param.content.pageNumber = 1
         this.queryTable(this.param.content.dataid,this.param.content.where.isleave)
       })