Browse Source

数据质量报告

yangjunjing 5 years ago
parent
commit
1c5240d161

+ 16 - 8
src/components/echarts/fanChart.vue

@@ -38,33 +38,41 @@ export default {
       let options = {
         tooltip: {
           trigger: 'item',
-          formatter: "{a} <br/>{b} : {c} ({d}%)"
+          formatter: ""
         },
         series: [
           {
-            name: '占比',
+            // name: '占比',
             type: 'pie',
             radius: '55%',
             center: ['50%', '60%'],
             data: this.renderData,
             label: {
               normal: {
-                show: false
+                show: true,
+                position: 'outside',
+                textStyle: {
+                  fontSize: '11'
+                }
               },
               emphasis: {
-                show: false
+                show: true
               }
             },
             labelLine: {
               normal: {
-                show: false
+                show: true,
+                length: 20,
+                lineStyle: {
+                  color: '#999'
+                }
               },
               emphasis: {
-                show: false
+                show: true
               }
             }
-          }
-        ]
+          },
+        ],
       }
       this.myCharts = echarts.init(document.getElementById(this.id))
       this.myCharts.setOption(options)

+ 1 - 1
src/components/echarts/reportDoughnut.vue

@@ -45,7 +45,7 @@ export default {
       let options = {
         tooltip: {
           trigger: 'item',
-          formatter: "{b}: ({d}%)"
+          formatter: "{b}"
         },
         legend: {
           show: false,

+ 29 - 20
src/views/ledger/report/index.vue

@@ -2,28 +2,28 @@
   <div>
     <div class="data-display">
       <ul class="list">
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class='el-icon-s-order'></i>
             {{lederDelObjectCount?lederDelObjectCount:'0'}}
           </p>
           <p class="list-text">台账中待删除的对象</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-help"></i>
             {{notSyncObjectCount?notSyncObjectCount:'0'}}
           </p>
           <p class="list-text">不能同步到物理世界的对象</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-marketing"></i>
             {{notSyncDataCount?notSyncDataCount:'0'}}
           </p>
           <p class="list-text">不能同步到物理世界的关系数据</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-release"></i>
             {{postRelationInforCount?postRelationInforCount:'0'}}
@@ -227,6 +227,12 @@ export default {
     ...mapGetters('layout', ['projectId'])
   },
   methods: {
+    detailPage() {
+      this.$message({
+        message: '待开发',
+        type: 'warning'
+      });
+    },
     zoneTypeConversion(item) {// 分区类型转换
       this.zoneType.forEach(it => {
         if (item.Name === it.Code) {
@@ -359,8 +365,8 @@ export default {
         this.equipment.push({
           title: '未关联资产',
           tips: '设备未关联资产数量',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: this.equipCount - res.Count,
           needCountT: res.Count,
           text: `总数${this.equipCount}`
@@ -370,8 +376,8 @@ export default {
         this.equipment.push({
           title: '现场验证状态占比',
           tips: '设备状态为未找到、已找到的数量与设备总数占比',
-          contentValueO: '已验证',
-          contentValueT: '未验证',
+          contentValueO: '已验证:',
+          contentValueT: '未验证:',
           needCountO: res1.Count,
           needCountT: this.equipCount - res1.Count,
           text: text
@@ -381,8 +387,8 @@ export default {
         this.equipment.push({
           title: '与模型对应占比',
           tips: '"BIM模型中编码"有值的设备数量与设备总数占比',
-          contentValueO: '有BIMID',
-          contentValueT: '无BIMID',
+          contentValueO: '已对应:',
+          contentValueT: '未对应:',
           needCountO: res2.Count,
           needCountT: this.equipCount - res2.Count,
           text: text1
@@ -437,8 +443,8 @@ export default {
         this.assets.push({
           title: '未关联资产',
           tips: '资产未关联设备数量',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           text: `总数${this.assetsCount}`,
           needCountO: this.assetsCount - res1.Count,
           needCountT: res1.Count
@@ -449,8 +455,8 @@ export default {
         this.assets.push({
           title: '现场验证状态占比',
           tips: '资产状态为未找到、已找到的数量与资产总数占比',
-          contentValueO: '已验证',
-          contentValueT: '未验证',
+          contentValueO: '已验证:',
+          contentValueT: '未验证:',
           text: text,
           needCountO: res1.Count,
           needCountT: this.assetsCount - res1.Count
@@ -461,8 +467,8 @@ export default {
         this.assets.push({
           title: '有无坐标占比',
           tips: '有坐标的资产数量百分比',
-          contentValueO: '有坐标',
-          contentValueT: '无坐标',
+          contentValueO: '有坐标:',
+          contentValueT: '无坐标:',
           text: text1,
           needCountO: res2.Count,
           needCountT: this.assetsCount - res2.Count
@@ -547,8 +553,8 @@ export default {
         this.tenant.push({
           title: '关联业务空间完成度',
           tips: '已关联业务空间的租户数量百分比',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: res.Count,
           needCountT: this.rentantCount - res.Count,
           text: text
@@ -597,8 +603,8 @@ export default {
         this.shaft.push({
           title: '关联业务空间完成度',
           tips: '已关联业务空间的竖井数量百分比',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: res1.Count,
           needCountT: this.shaftCount - res1.Count,
           text: text
@@ -650,6 +656,9 @@ export default {
         margin-left: 10px;
       }
     }
+    li:hover {
+      box-shadow: 0px 2px 4px #c9c9c9;
+    }
   }
 }
 .progress {

+ 1 - 0
src/views/model/report/index.vue

@@ -414,6 +414,7 @@ export default {
       if (row.flag && row.flag === 'lost') {
         return 'warning-row';
       }
+      console.log(rowIndex,9381)
     },
     handleSizeChange(val) {// 切换每页显示数量
       this.page.pageSize = val;

+ 3 - 3
src/views/model/report/supplement.vue

@@ -37,9 +37,9 @@
               <p v-if="item.LedgerParam.PhotoDoc.Pic">{{photo.name}}<span>拍摄时间:{{photo.createTime | timeTransformation}}</span></p>
               <div class="img-box" v-if="item.LedgerParam.PhotoDoc.Pic">
                 <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" alt="设备图片" v-if="photo.type !=='video'">
-                <!-- <video :src="'/image-service/common/image_get?systemId=dataPlatform&key='+photo.key" controls
-                  :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ photo.key" v-if="photo.type === 'video'" width="400px"
-                  height="300px"></video> -->
+                <!-- <video v-if="photo.type === 'video'" width="400" height="300" controls>
+                  <source :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" type="video/mp4">
+                </video> -->
               </div>
             </div>
           </div>