فهرست منبع

通知为空logo提示

laiguoran 3 سال پیش
والد
کامیت
ee12c705c8
2فایلهای تغییر یافته به همراه36 افزوده شده و 12 حذف شده
  1. BIN
      app/public/images/nulllogo.png
  2. 36 12
      app/view/dashboard/index.ejs

BIN
app/public/images/nulllogo.png


+ 36 - 12
app/view/dashboard/index.ejs

@@ -58,18 +58,24 @@
                         </div>
                         <div class="card-body p-0">
                             <div class="contant-height-one">
-                                <table class="table table-middle">
+                                <% if (auditTenders.length !== 0 || auditRevise.length !== 0 || auditStages.length !== 0 || auditChanges.length !== 0 || auditMaterial.length !== 0 || auditAdvance.length !== 0 || auditChangeProject.length !== 0 || auditChangeApply.length !== 0 || auditChangePlan.length !== 0) { %>
+                                <style>
+                                    #doing-list td {
+                                        word-wrap:break-word;
+                                    }
+                                </style>
+                                <table style="table-layout:fixed;" class="table table-middle">
                                     <thead class="thead-light">
                                     <tr>
-                                        <th class="pl-3">类型</th>
+                                        <th width="110" class="pl-3">类型</th>
                                         <th>名称</th>
                                         <th width="60">状态</th>
                                         <th width="120">创建时间</th>
-                                        <th width="80">操作</th>
+                                        <th width="90">操作</th>
                                     </tr>
                                     </thead>
                                     <tbody id="doing-list">
-                                    <% if (auditTenders.length !== 0 || auditRevise.length !== 0 || auditStages.length !== 0 || auditChanges.length !== 0 || auditMaterial.length !== 0 || auditAdvance.length !== 0 || auditChangeProject.length !== 0 || auditChangeApply.length !== 0 || auditChangePlan.length !== 0) { %>
+
                                         <% for (const t of auditTenders) { %>
                                             <% if (t.ledger_status === acLedger.status.checking) { %>
                                                 <tr data-type="5">
@@ -207,9 +213,14 @@
                                                 </tr>
                                             <% } %>
                                         <% } %>
-                                    <% } %>
                                     </tbody>
                                 </table>
+                                <% } else { %>
+                                        <div class="p-5 text-center text-muted">
+                                            <img src="/public/images/nulllogo.png" />
+                                            <div class="pt-3">暂时没有需要你处理的事项</div>
+                                        </div>
+                                <% } %>
                             </div>
                             <!--&lt;!&ndash;没有处理信息&ndash;&gt;-->
                             <!--<p class="text-center text-muted">暂时没有需要你处理的事项。</p>-->
@@ -253,7 +264,10 @@
                                 <ul class="list-group list-group-flush">
                                     <% if (msgList.length === 0) { %>
                                         <!--没有通知-->
-                                        <li class="list-group-item text-muted"><p class="text-center mb-0">暂时没有通知</p></li>
+                                        <li class="list-group-item text-muted text-center p-5">
+                                            <img src="/public/images/nulllogo.png" />
+                                            <p class="pt-2 text-center mb-0">暂时没有通知</p>
+                                        </li>
                                     <% } else { %>
                                         <% for (const msg of msgList) { %>
                                             <li class="list-group-item text-muted">
@@ -299,7 +313,13 @@
                         </div>
                         <div class="card-body p-0">
                             <div class="contant-height-one">
-                                <table class="table table-middle">
+                                <% if(noticeList.length) { %>
+                                <style>
+                                    #notice-list a {
+                                        word-wrap:break-word;
+                                    }
+                                </style>
+                                <table style="table-layout:fixed;" class="table table-middle">
                                     <thead class="thead-light">
                                     <tr>
                                         <th width="110" class="pl-3">类型</th>
@@ -312,7 +332,6 @@
                                     </tr>
                                     </thead>
                                     <tbody id="notice-list">
-                                    <% if(noticeList.length) { %>
                                         <!--<ul id="notice" class="list-unstyled m-0">-->
                                         <% for (const notice of noticeList) { %>
                                             <% if(notice.type === pushType.stage) { %>
@@ -407,9 +426,14 @@
                                                 </tr>
                                             <% } %>
                                         <% } %>
-                                    <% } %>
                                     </tbody>
                                 </table>
+                                <% } else { %>
+                                    <div class="p-5 text-center text-muted">
+                                        <img src="/public/images/nulllogo.png" />
+                                        <div class="pt-3">暂时没有需要你关注的事项</div>
+                                    </div>
+                                <% } %>
                             </div>
                         </div>
                         <!--没有关注信息-->
@@ -545,7 +569,7 @@
             {
                 orient: 'vertical',
                 left: '3%',
-                top: '20%',
+                top: '15%',
                 itemWidth: 13,
                 itemHeight: 13,
                 textStyle: {
@@ -558,7 +582,7 @@
             {
                 orient: 'vertical',
                 right: '3%',
-                top: '20%',
+                top: '15%',
                 itemWidth: 13,
                 itemHeight: 13,
                 textStyle: {
@@ -573,7 +597,7 @@
             {
                 name: '审批次数',
                 type: 'pie',
-                radius: ['50%', '75%'],
+                radius: ['48%', '70%'],
                 right:'0',
                 avoidLabelOverlap: false,
                 data: [