Browse Source

标段列表,修改分类后,无法打开标段

MaiXinRong 5 years atrás
parent
commit
958e290fd8

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

@@ -334,7 +334,7 @@ function getTenderTreeHtml () {
     }
 }
 function bindTenderUrl() {
-    $('a', '.c-body').bind('click', function () {
+    $('.c-body').on('click', 'a', function () {
         const tenderId = parseInt($(this).attr('id'));
         const tender = _.find(tenders, function (t) {
             return t.id === tenderId;

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

@@ -367,7 +367,7 @@ function getTenderTreeHtml () {
     }
 }
 function bindTenderUrl() {
-    $('a', '.c-body').bind('click', function () {
+    $('.c-body').on('click', 'a', function () {
         const tenderId = parseInt($(this).attr('id'));
         const tender = _.find(tenders, function (t) {
             return t.id === tenderId;

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

@@ -345,7 +345,7 @@ function getTenderTreeHtml () {
     }
 }
 function bindTenderUrl() {
-    $('a', '.c-body').bind('click', function () {
+    $('.c-body').on('click', 'a', function () {
         const tenderId = parseInt($(this).attr('id'));
         const tender = _.find(tenders, function (t) {
             return t.id === tenderId;