From 2bdaf499a4f8ff794c5f33d7beea75c054d0aa8a Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Wed, 11 Mar 2020 17:13:42 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E9=99=A2=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/college/College.js | 99 +++++++++++++++--------------
1 file changed, 50 insertions(+), 49 deletions(-)
diff --git a/public/react/src/college/College.js b/public/react/src/college/College.js
index cb2f62a06..53fe9d5e3 100644
--- a/public/react/src/college/College.js
+++ b/public/react/src/college/College.js
@@ -902,55 +902,56 @@ class College extends Component {
- {/*基本使用情况2*/}
-
-
- {
- teachers_count ?
-
{teachers_count}人
- :
-
- }
-
-
- {
- students_count ?
-
{students_count}人
- :
-
- }
-
-
- {
- courses_count ?
-
{courses_count}个
- :
-
- }
-
-
- {
- shixuns_count ?
-
{shixuns_count}个
- :
-
- }
-
-
- {
- shixun_report_count ?
-
{shixun_report_count}个
- :
-
- }
-
-
- {
- shixun_time ?
-
{shixun_time}天
- :
-
- }
+ {/*基本使用情况2*/}
+
+
+ {
+ teachers_count || teachers_count===0?
+
{teachers_count}人
+ :
+
+ }
+
+
+ {
+ students_count || students_count===0?
+
{students_count}人
+ :
+
+ }
+
+
+ {
+ courses_count || courses_count === 0?
+
{courses_count}个
+ :
+
+ }
+
+
+ {
+ shixuns_count || shixuns_count === 0?
+
{shixuns_count}个
+ :
+
+ }
+
+
+ {
+ shixun_report_count || shixun_report_count===0?
+
{shixun_report_count}个
+ :
+
+ }
+
+
+ {
+ shixun_time || shixun_time === 0 ?
+
{shixun_time}天
+ :
+
+ }
+
{/*基本使用情况3结束*/}