diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index 5388bd51..bba2ef0f 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -138,6 +138,8 @@ class Clues extends HD_Controller !$params['city_id_admin'] && $params['city_id_admin'] = ''; !$params['county_id_admin'] && $params['county_id_admin'] = ''; !$params['biz_id_admin'] && $params['biz_id_admin'] = ''; + !$params['brand_id'] && $params['brand_id'] = 0; + !$params['series_id'] && $params['series_id'] = 0; $count = $this->clues_model->count($where); $lists = []; diff --git a/admin/views/receiver/clues/edit.php b/admin/views/receiver/clues/edit.php index bdc3863c..eebf9709 100644 --- a/admin/views/receiver/clues/edit.php +++ b/admin/views/receiver/clues/edit.php @@ -302,9 +302,7 @@ that.cfroms2 = ; that.init_provinces(); that.init_brands(); - if (that.info.series_id) { - that.get_series() - } + that.get_series(); }, computed: {}, created: function () { diff --git a/admin/views/receiver/clues/get.php b/admin/views/receiver/clues/get.php index 5856f0ec..9b475936 100644 --- a/admin/views/receiver/clues/get.php +++ b/admin/views/receiver/clues/get.php @@ -129,9 +129,7 @@ this.cfromAry = ; this.action = ""; this.init_brands(); - if (this.info.series_id) { - this.get_series() - } + this.get_series(); }, methods: { init_brands: function () { diff --git a/admin/views/receiver/clues/lists.php b/admin/views/receiver/clues/lists.php index aa632b01..55b2ddf8 100644 --- a/admin/views/receiver/clues/lists.php +++ b/admin/views/receiver/clues/lists.php @@ -303,9 +303,7 @@ this.cfroms = ; this.cfroms2 = ; this.init_brands(); - if (this.series_id) { - this.get_series() - } + this.get_series(); }, methods: { init_brands: function () { diff --git a/admin/views/receiver/customer/lists.php b/admin/views/receiver/customer/lists.php index 49c9a8e2..26c4c6a1 100644 --- a/admin/views/receiver/customer/lists.php +++ b/admin/views/receiver/customer/lists.php @@ -462,9 +462,7 @@ vm.show_info = ; vm.export_button = ; vm.init_brands(); - if (vm.params.series_id) { - vm.get_series() - } + vm.get_series() }, methods: { init_brands: function () { @@ -677,8 +675,8 @@ that.params.county_id_admin = ''; that.params.of_id = ''; that.params.of2_id = ''; - that.params.brand_id = ''; - that.params.series_id = ''; + that.params.brand_id = 0; + that.params.series_id = 0; $('#id_tags').val(''); $('#id_tagsIntention').val(''); $('#id_tagsDefeat').val('');