zengyicheng 1 ano atrás
pai
commit
05a82fd630

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.c0eb00f6.js"></script><script defer="defer" src="/js/app.1d5bc039.js"></script><link href="/css/chunk-vendors.0225060a.css" rel="stylesheet"><link href="/css/app.3ebe307b.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.c0eb00f6.js"></script><script defer="defer" src="/js/app.e5c4d0dd.js"></script><link href="/css/chunk-vendors.0225060a.css" rel="stylesheet"><link href="/css/app.3ebe307b.css" rel="stylesheet"></head><body><div id="app"></div></body></html>

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/837.7805deb8.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/837.7805deb8.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/837.cf77f996.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/837.cf77f996.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/app.e5c4d0dd.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/js/app.e5c4d0dd.js.map


+ 2 - 1
src/views/echarts/components/CircularChart.vue

@@ -1,5 +1,6 @@
 <template>
-  <div ref="Circular" class="mid"></div>
+  <div v-if="data.length > 0" ref="Circular" class="mid"></div>
+  <div v-else class="mid" style="text-align: center;">暂无数据</div>
 </template>
 
 <script>

+ 2 - 1
src/views/echarts/components/ColumnarChart.vue

@@ -1,5 +1,6 @@
 <template>
-  <div ref="Columnar" class="histogram"></div>
+  <div v-if="data.length > 0" ref="Columnar" class="histogram"></div>
+  <div v-else class="mid" style="text-align: center;">暂无数据</div>
 </template>
 
 <script>

+ 2 - 1
src/views/echarts/components/HorizontalChart.vue

@@ -1,5 +1,6 @@
 <template>
-  <div ref="Horizontal" class="mid"></div>
+  <div v-if="data.length > 0" ref="Horizontal" class="mid"></div>
+  <div v-else class="mid" style="text-align: center;">暂无数据</div>
 </template>
 
 <script>

+ 49 - 68
src/views/echarts/components/RankingTable.vue

@@ -1,78 +1,59 @@
 <template>
-    <div>
-        <div class="tabTit">
-          <div>
-              <p>项目排名</p>
-          </div>
-          </div>
-
-          <div class="projectBlock" style="padding-bottom: 60px;">
-          <el-table
-          :data="tableData"
-          tooltip-effect="dark"
-          stripe
-          class="fontSize"
-          :header-cell-style="{ background: '#3867d6',color:'#fff' }"
-          >
-        
-          <el-table-column
-            type="index"
-            label="排名"
-            align="center"
-            width="100">
-          </el-table-column>
-
-          <el-table-column
-            prop="title"
-            label="项目名称"
-            align="center">
-          </el-table-column>
-
-          <el-table-column
-            prop="pro_leader"
-            label="项目负责人"
-            align="center">
-          </el-table-column>
-
-          <el-table-column
-            prop="typeName"
-            label="项目类型"
-            align="center">
-          </el-table-column>
-
-          <el-table-column
-            prop="fund"
-            label="总预算(元)"
-            align="center">
-            <template #default="scope">
-              <div>
-                {{ scope.row.fund }}
-              </div>
-            </template>
-          </el-table-column>
+  <div>
+    <div class="tabTit">
+      <div>
+        <p>项目排名</p>
+      </div>
+    </div>
 
-          <el-table-column
-            prop="collage"
-            label="所属学院"
-            align="center">
-          </el-table-column>
-      
-        </el-table>
-        </div>
+    <div class="projectBlock" style="padding-bottom: 60px">
+      <el-table
+        v-if="tableData.length > 0"
+        :data="tableData"
+        tooltip-effect="dark"
+        stripe
+        class="fontSize"
+        :header-cell-style="{ background: '#3867d6', color: '#fff' }"
+      >
+        <el-table-column type="index" label="排名" align="center" width="100">
+        </el-table-column>
+
+        <el-table-column prop="title" label="项目名称" align="center">
+        </el-table-column>
+
+        <el-table-column prop="pro_leader" label="项目负责人" align="center">
+        </el-table-column>
+
+        <el-table-column prop="typeName" label="项目类型" align="center">
+        </el-table-column>
+
+        <el-table-column prop="fund" label="总预算(元)" align="center">
+          <template #default="scope">
+            <div>
+              {{ scope.row.fund }}
+            </div>
+          </template>
+        </el-table-column>
+
+        <el-table-column prop="collage" label="所属学院" align="center">
+        </el-table-column>
+      </el-table>
+      <div v-else style="text-align: center;">暂无数据</div>
     </div>
+  </div>
 </template>
 
 <script>
-    export default {
-        props:['tableData'],
-    }
+export default {
+  props: ["tableData"],
+};
 </script>
 
 <style lang="less">
-  .el-table__header{
-    height:60px;
-  }
-  .el-table__row{
-    height: 60px;
-  }
+.el-table__header {
+  height: 60px;
+}
+.el-table__row {
+  height: 60px;
+}
 </style>

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff