瀏覽代碼

fix:设备管理看板校准计划按年查询

zhangjingyuan 2 年之前
父節點
當前提交
7ad9f2b26c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/system/jbdHome/board/equipmentBoard.vue

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

@@ -216,8 +216,8 @@ export default {
       (select count(*) as Equipments from t_sbdj) as a,
       (select bei_zhu_ as mony FROM t_sbdj) as a1,
       (select count(*) as addEquipments  from t_sbdj where gou_jin_ri_qi_ LIKE '${this_.month}%') as b,
-      (select count(*) as testEquipments from t_mjsbxzqrb where  shi_fou_guo_shen_ ='1') as c,
-      (select count(*) as testNoEquipments from t_mjsbjdxzjhzb where create_time_ LIKE '${this_.month}%') as c1,
+      (select count(*) as testEquipments from t_mjsbxzqrb where  shi_fou_guo_shen_ ='1' and create_time_ LIKE '${this_.month.slice(0,4)}%') as c,
+      (select count(*) as testNoEquipments from t_mjsbjdxzjhzb where create_time_ LIKE '${this_.month.slice(0,4)}%') as c1,
       (select count(*) as checkEquipments from t_mjyqsbwxsqb where create_time_ LIKE '${this_.month}%') as d,
       (select count(*) as checkNoEquipments from t_mjsbwxqrb where create_time_ LIKE '${this_.month}%' and shi_fou_guo_shen_ ='1') as d1,
       (select count(*) as goodEquipments  from t_sbdj where she_bei_zhuang_ta ='正常使用' ) as e,