Browse Source

fix:行业分析和历史分析页面对接接口,修改页面显示数据问题

luzhixia 2 tuần trước cách đây
mục cha
commit
29d0306765

+ 8 - 7
src/views/costAudit/auditInfo/auditManage/index.vue

@@ -241,6 +241,7 @@
   import taskDetail from '@/components/task/taskDetail.vue'
   import TaskCustomizedReleaseDialog from '@/components/task/TaskCustomizedReleaseDialog.vue'
   import { getCostProjectDetail } from '@/api/taskCustomizedRelease.js'
+  import { dictMixin } from '@/mixins/useDict'
   export default {
     name: 'CostAuditManagement',
     components: {
@@ -251,8 +252,12 @@
       taskDetail,
       TaskCustomizedReleaseDialog,
     },
+    mixins: [dictMixin],
     data() {
       return {
+        dictData: {
+          projectProposal: [],
+        },
         // 分页相关
         pageNum: 1,
         pageSize: 10,
@@ -317,7 +322,8 @@
                 auditObject: record.auditedUnitName,
                 auditPeriod: record.auditPeriod,
                 source: this.getSourceTypeText(record.sourceType),
-                form: this.getAuditTypeText(record.auditType),
+                // form: this.getAuditTypeText(record.auditType),
+                form: record.auditTypeName,
                 status: this.getStatusText(record.status),
                 statusName: record.statusName,
                 isSubTask: record.pid !== '0',
@@ -362,12 +368,7 @@
 
       // 获取来源类型文本
       getSourceTypeText(type) {
-        const typeMap = {
-          1: '年度计划内',
-          2: '年度计划外',
-          // 可根据实际需求补充其他类型
-        }
-        return typeMap[type] || type
+        return this.getDictName('projectProposal', type)
       },
 
       // 获取审核类型文本

+ 12 - 2
src/views/costAudit/baseInfo/statistics/index.js

@@ -562,7 +562,7 @@ export const comprehensiveMixin = {
               length2: 5,
               lineStyle: {
                 width: 1,
-                color: '#999',
+                color: 'auto', // 线条跟随扇区颜色
               },
             },
             emphasis: {
@@ -576,6 +576,11 @@ export const comprehensiveMixin = {
                 shadowOffsetX: 0,
                 shadowColor: 'transparent',
               },
+              labelLine: {
+                lineStyle: {
+                  color: 'auto',
+                },
+              },
             },
             data: data,
           },
@@ -645,7 +650,7 @@ export const comprehensiveMixin = {
               length2: 5,
               lineStyle: {
                 width: 1,
-                color: '#999',
+                color: 'auto', // 线条跟随扇区颜色
               },
             },
             emphasis: {
@@ -659,6 +664,11 @@ export const comprehensiveMixin = {
                 shadowOffsetX: 0,
                 shadowColor: 'transparent',
               },
+              labelLine: {
+                lineStyle: {
+                  color: 'auto',
+                },
+              },
             },
             data: data,
           },

+ 3 - 3
src/views/costAudit/baseInfo/statistics/industryAnalysis.vue

@@ -1586,7 +1586,7 @@
     font-size: 14px;
     color: #333;
     text-align: center;
-    border-bottom: 1px solid #e0e0e0;
+    // border-bottom: 1px solid #e0e0e0;
   }
 
   .list-content {
@@ -1611,7 +1611,7 @@
     transition: background-color 0.2s;
     border-bottom: 1px solid #e0e0e0;
     &:first-child {
-      border-top: none;
+      border-top: 1px solid #e0e0e0;
     }
     &:last-child {
       border-bottom: none;
@@ -1629,7 +1629,7 @@
   }
 
   .list-children {
-    background-color: #fafafa;
+    // background-color: #fafafa;
   }
 
   .item-label {