MaiXinRong 5 місяців тому
батько
коміт
12e41a96bf
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      app/public/js/tender_list_base.js

+ 3 - 3
app/public/js/tender_list_base.js

@@ -474,7 +474,7 @@ $(document).ready(() => {
             // }
 
         }
-        postData('/list/add', data, function (result) {
+        postData(`/sp/${spid}/list/add`, data, function (result) {
             tenders.push(result);
             initTenderTree();
             $('.c-body').html(getTenderTreeHtml());
@@ -510,7 +510,7 @@ $(document).ready(() => {
             // }
             // data.category.push(cate);
         }
-        postData('/list/update', data, function (result) {
+        postData(`/sp/${spid}/list/update`, data, function (result) {
             const tender = _.find(tenders, {id: result.id});
             _.assign(tender, result);
             initTenderTree();
@@ -524,7 +524,7 @@ $(document).ready(() => {
     $('#del-bd-ok').click(function () {
         const tid = parseInt($(this).attr('tid'));
         if (tid >= 0) {
-            postData('/list/del', [tid], function (result) {
+            postData(`/sp/${spid}/list/del`, [tid], function (result) {
                 function getCategory(arr, id) {
                     for (const a of arr) {
                         if (a.cid) {