songxingwei 3 years ago
parent
commit
c2446ae673

+ 1 - 1
application/admin/controller/MainProject.php

@@ -55,7 +55,7 @@ class MainProject extends Controller
         $category_id = $this->request->get('category_id');
         $query = $this->_query($this->table)
             ->like('project_name,basis_for_listing,project_scope,grade,building_composition,case_description,function_parameters,investment_subject,sources_funding,contract_mode,management_mode,owner,total_package,awards,other_instructions,defense_type,engineering_category')
-            ->equal('cost_categories,construction_site_province,construction_site_province,construction_site_city,construction_site_area')
+            ->equal('cost_categories,construction_site_province,construction_site_province,construction_site_city,construction_site_area,template')
             ->fieldBetween('total_land_area','total_land_area_start,total_land_area_end')
             ->fieldBetween('gross_floor_area','gross_floor_area_start,gross_floor_area_end')
             ->fieldBetween('floor_area','floor_area_start,floor_area_end')

+ 1 - 1
application/admin/view/main_project/index_search.html

@@ -65,7 +65,7 @@
         <div class="layui-form-item layui-inline">
             <label class="layui-form-label">模板类型</label>
             <div class="layui-input-inline">
-                <select class="layui-select" name="category_id">
+                <select class="layui-select" name="template">
                     {foreach $template as $k=>$v}
                     {eq name='Think.get.template' value='$v.id.""'}
                     <option selected value="{$v.id}">{$v.title}</option>