Forráskód Böngészése

清单指引搜索支持名称

zhongzewei 7 éve
szülő
commit
5b6e144e59
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      web/maintain/billsGuidance_lib/js/billsGuidance.js

+ 1 - 1
web/maintain/billsGuidance_lib/js/billsGuidance.js

@@ -1008,7 +1008,7 @@ const billsGuidance = (function () {
             else{
                 let reg = new RegExp(searchStr, 'i');
                 ration.cache = _.filter(ration.datas, function (data) {
-                    return reg.test(data.code);
+                    return reg.test(data.code) || reg.test(data.name);
                 });
             }
             $('.top-content').hide();