소스 검색

标段,期新建窗口打开

laiguoran 5 년 전
부모
커밋
c08ce403ff
5개의 변경된 파일13개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 1
      app/public/js/tender_list.js
  2. 2 1
      app/public/js/tender_list_info.js
  3. 2 1
      app/public/js/tender_list_manage.js
  4. 2 1
      app/public/js/tender_list_progress.js
  5. 5 5
      app/view/measure/stage.ejs

+ 2 - 1
app/public/js/tender_list.js

@@ -343,7 +343,8 @@ function bindTenderUrl() {
         });
         if (!tender) return;
         if (tender.measure_type) {
-            window.location.href = '/tender/' + tenderId;
+            // window.location.href = '/tender/' + tenderId;
+            window.open('/tender/' + tenderId, '_blank');
         } else {
             for (const a of $('a', '#jlms')) {
                 a.href = '/tender/' + tenderId + '/type?type=' + $(a).attr('mst');

+ 2 - 1
app/public/js/tender_list_info.js

@@ -399,7 +399,8 @@ function bindTenderUrl() {
             return t.id === tenderId;
         });
         if (tender.measure_type) {
-            window.location.href = '/tender/' + tenderId;
+            // window.location.href = '/tender/' + tenderId;
+            window.open('/tender/' + tenderId, '_blank');
         } else {
             for (const a of $('a', '#jlms')) {
                 a.href = '/tender/' + tenderId + '/type?type=' + $(a).attr('mst');

+ 2 - 1
app/public/js/tender_list_manage.js

@@ -334,7 +334,8 @@ function bindTenderUrl() {
             return t.id === tenderId;
         });
         if (tender.measure_type) {
-            window.location.href = '/tender/' + tenderId;
+            // window.location.href = '/tender/' + tenderId;
+            window.open('/tender/' + tenderId, '_blank');
         } else {
             for (const a of $('a', '#jlms')) {
                 a.href = '/tender/' + tenderId + '/type?type=' + $(a).attr('mst');

+ 2 - 1
app/public/js/tender_list_progress.js

@@ -374,7 +374,8 @@ function bindTenderUrl() {
             return t.id === tenderId;
         });
         if (tender.measure_type) {
-            window.location.href = '/tender/' + tenderId;
+            // window.location.href = '/tender/' + tenderId;
+            window.open('/tender/' + tenderId, '_blank');
         } else {
             for (const a of $('a', '#jlms')) {
                 a.href = '/tender/' + tenderId + '/type?type=' + $(a).attr('mst');

+ 5 - 5
app/view/measure/stage.ejs

@@ -36,7 +36,7 @@
                     <% for (const s of stages) { %>
                     <tr>
                         <td>
-                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>">第 <%- s.order %> 期</a>
+                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" target="_blank">第 <%- s.order %> 期</a>
                             <% if (s.status !== auditConst.status.checked && s.user_id === ctx.session.sessionUser.accountId) { %>
                             <a href="#edit" data-toggle="modal" data-target="#edit"><i class="fa fa-pencil-square-o "></i></a>
                             <% } %>
@@ -56,13 +56,13 @@
                         </td>
                         <td class="text-center">
                             <% if (s.status === auditConst.status.uncheck && s.user_id === ctx.session.sessionUser.accountId) { %>
-                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
+                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" target="_blank" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
                             <% } else if (s.status === auditConst.status.checkNo && s.curAuditor && s.user_id === ctx.session.sessionUser.accountId) { %>
-                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
+                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" target="_blank" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
                             <% } else if (s.status === auditConst.status.checking && s.curAuditor && s.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
-                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
+                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" target="_blank" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
                             <% } else if (s.status === auditConst.status.checkNoPre && s.curAuditor && s.curAuditor2.aid === ctx.session.sessionUser.accountId) { %>
-                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
+                            <a href="<%- '/tender/' + ctx.tender.id + '/measure/stage/' + s.order %>" target="_blank" class="btn <%- auditConst.statusButtonClass[s.status] %> btn-sm"><%- auditConst.statusButton[s.status] %></a>
                             <% } else { %>
                             <span class="<%- auditConst.auditStringClass[s.status] %>"><%- auditConst.auditString[s.status] %></span>
                             <% } %>