소스 검색

修复看板bug

cfort 3 년 전
부모
커밋
7e6c3a657b

+ 2 - 2
src/views/system/jbdHome/board/checkBoard.vue

@@ -139,7 +139,7 @@
                 (select count(id_) as total, count(jian_ce_zhuang_ta = '已完成' or null) as finished from t_jchzb where create_time_ LIKE '${this.month}%') jc,
                 (select count(id_) as task, count(zhuang_tai_ = '任务已完成' or null) as finished from t_rwfpb where create_time_ LIKE '${this.month}%') rw,
                 (select count(id_) as report, count(zhuang_tai_ = '报告待审核' or null) as process, count(zhuang_tai_ = '报告待审批' or null) as approval from t_mjjcbg where create_time_ LIKE '${this.month}%') bg`
-                console.log(sql)
+                // console.log(sql)
                 curdPost('sql', sql).then(res => {
                     const data = res.variables.data
                     console.log(data)
@@ -338,7 +338,7 @@
                 }
                 if (type === 'quarter') {
                     let year = current.getFullYear()
-                    let month = current.getMonth() + 1
+                    let month = current.getMonth()
                     const dateList = [
                         {
                             start: `${year}-01-01`,

+ 2 - 2
src/views/system/jbdHome/board/component/bottomCard.vue

@@ -33,8 +33,8 @@
         name: 'topBar',
         props: {
             info: {
-                type: Array,
-                default: []
+                type: Object,
+                default: {}
             }
         },
         components: {},

+ 6 - 0
src/views/system/jbdHome/board/component/middleCard.vue

@@ -21,6 +21,7 @@
                     :config="tableData"
                     style="width: 100%; height: 100%"
                 />
+                <div v-else :class="$style.no_data">暂无数据</div>
             </div>
         </div>
         <dv-decoration-10 :dur="15"/>
@@ -88,6 +89,11 @@
             &:last-child {
                 width: 49%;
             }
+            .no_data {
+                font-size: 20px;
+                text-align: center;
+                margin-top: 20px;
+            }
         }
     }
     :global {