Sfoglia il codice sorgente

决策大屏改动

ellisran 5 mesi fa
parent
commit
e672966995
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      app/view/datacollect/index.ejs
  2. 2 2
      app/view/datacollect/index4GY18Y.ejs

+ 2 - 2
app/view/datacollect/index.ejs

@@ -44,7 +44,7 @@
                     <div class="dropdown-menu" aria-labelledby="zhankai">
                         <% for (const i of projectData.data_collect_pages) { %>
                         <% if (i === '6') { %>
-                            <a class="dropdown-item" href="/datacollect/index/<%- i %>">决策大屏<%- i %></a>
+                            <a class="dropdown-item" href="/sp/<%- ctx.subProject.id %>/datacollect/index/<%- i %>">决策大屏<%- i %></a>
                         <% } else { %>
                             <a class="dropdown-item change-collect" href="javascript:void(0)" data-collect="<%- i %>">决策大屏<%- i %></a>
                         <% } %>
@@ -1455,7 +1455,7 @@
     let tenders = '';
     // let noticeList = '';
     $(function () {
-        postData('/datacollect/load', {}, function (result) {
+        postData(`/sp/${spid}/datacollect/load`, {}, function (result) {
             tenders = result.tenderList;
             const chart_option5_data = {
                 data1: [],

+ 2 - 2
app/view/datacollect/index4GY18Y.ejs

@@ -61,7 +61,7 @@
                     <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-toggle="dropdown" id="zhankai">决策大屏<span>6</span></button>
                     <div class="dropdown-menu" aria-labelledby="zhankai">
                         <% for (const i of projectData.data_collect_pages) { %>
-                            <a class="dropdown-item" href="/datacollect/index/<%- i %>">决策大屏<%- i %></a>
+                            <a class="dropdown-item" href="/sp/<%- ctx.subProject.id %>/datacollect/index/<%- i %>">决策大屏<%- i %></a>
                         <% } %>
                     </div>
                 </div>
@@ -865,7 +865,7 @@
                 $('#showFull').show();
             }
         });
-        postData('/datacollect/load', {}, function (result) {
+        postData(`/sp/${spid}/datacollect/load`, {}, function (result) {
             tenders = result.tenderList;
             if (category && category.length > 0) {
                 if (category[0] && category[0].value.length > 0) {