Explorar o código

预算执行优化

wyh hai 1 ano
pai
achega
b7d059795f

+ 1 - 1
src/views/module_kzks/projectCostList/ProjectCostList.vue

@@ -212,7 +212,7 @@
 
         <span slot="action" slot-scope="text, record">
           <!-- <a @click="handleEdit(record)">编辑</a> -->
-          <a @click="handleXushi(record)">虚实成本</a>
+          <a @click="handleXushi(record)">预算执行</a>
 
           <!-- <a-divider type="vertical" />
           <a-dropdown>

+ 30 - 7
src/views/module_kzks/projectXushiContrast/contrastGraph.vue

@@ -29,14 +29,13 @@ export default {
         var zhixing = []
         yusuan.push(this.model.clys)
         yusuan.push(this.model.wxys)
-        var a = this.model.wxys + this.model.clys
-        yusuan.push(a)
+        var zongys = this.model.wxys + this.model.clys
+        yusuan.push(zongys)
         zhixing.push(this.model.clf)
         zhixing.push(this.model.wxf)
-        var b = this.model.wxf + this.model.clf
-        zhixing.push(b)
-        console.log(7777,yusuan,zhixing)
-        let that = this
+        var zongzx = this.model.wxf + this.model.clf
+        zhixing.push(zongzx)
+        console.log(7777,yusuan,zhixing),
         this.zheChart.setOption({
             yAxis: [
                 {
@@ -52,14 +51,38 @@ export default {
                 emphasis: {
                     focus: 'series'
                 },
+                itemStyle: {
+                    normal: {
+                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
+                            offset: 0,
+                            color: '#8FEEBB'
+                        }, {
+                            offset: 1,
+                            color: '#66DD9E'
+                        }]),
+                        // barBorderRadius: 11,
+                    }
+                    
+                },
                 },
                 {
                 name: '执行',
                 type: 'bar',
-                stack: 'Ad',
                 emphasis: {
                     focus: 'series'
                 },
+                itemStyle: {
+                    normal: {
+                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
+                            offset: 0,
+                            color: '#AEDFFA'
+                        }, {
+                            offset: 1,
+                            color: '#95C7FC'
+                        }]),
+                    // barBorderRadius: 11,
+                    }
+                },
                 data: zhixing
                 },
                 // {