Просмотр исходного кода

feat: 首页添加预付款待关注推送

lanjianrong 5 лет назад
Родитель
Сommit
984c2061fc
2 измененных файлов с 18 добавлено и 1 удалено
  1. 1 0
      app/controller/dashboard_controller.js
  2. 17 1
      app/view/dashboard/index.ejs

+ 1 - 0
app/controller/dashboard_controller.js

@@ -69,6 +69,7 @@ module.exports = app => {
                 acChange: auditConst.flow,
                 acRevise: auditConst.revise,
                 acMaterial: auditConst.material,
+                acAdvance: auditConst.advance,
                 noticeList,
                 pushType: auditConst.pushType,
                 projectData,

+ 17 - 1
app/view/dashboard/index.ejs

@@ -222,7 +222,7 @@
                                                     </p>
                                                 </div>
                                             </li>
-                                        <% } else { %>
+                                        <% } else if(notice.type === pushType.change){ %>
                                             <li class="media pb-3 mb-3 border-bottom-1">
                                                 <div class="media-body">
                                                     <div class="row">
@@ -238,6 +238,22 @@
                                                     </p>
                                                 </div>
                                             </li>
+                                        <% } else if(notice.type === pushType.advance) { %>
+                                            <li class="media pb-3 mb-3 border-bottom-1">
+                                                <div class="media-body">
+                                                    <div class="row">
+                                                        <div class="col-auto"><span class="badge badge-warning">预付款</span></div>
+                                                        <div class="col-6">
+                                                            <a href="/tender/<%- notice.tid %>"><%- notice.name %></a>
+                                                            <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail">第<%- notice.order %>期</a>
+                                                            <%- acAdvance.statusString[notice.status]%>
+                                                        </div>
+                                                    </div>
+                                                    <p class="mt-1 mb-0"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
+                                                        <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
+                                                    </p>
+                                                </div>
+                                            </li>
                                         <% } %>
                                     <% } %>
                                 </ul>