diff --git a/Application/Admin/View/FinancePromote/promoteUser.html b/Application/Admin/View/FinancePromote/promoteUser.html
index 670441488..faee12887 100644
--- a/Application/Admin/View/FinancePromote/promoteUser.html
+++ b/Application/Admin/View/FinancePromote/promoteUser.html
@@ -382,18 +382,19 @@
pickerPosition: 'bottom-left'
})
var promote_id = "{:I('promote_id')}";
- function getPromotersByLevel() {
+ var company_id = "{:I('company_id')}";
+ function getPromotersByCompanyid() {
+ var company_id = $("#company_id option:selected").val();
+ if(!company_id){
+ company_id = -1;
+ }
$.ajax({
- url: "{:U('Ajax/getPromotersByLevel')}",
+ url: "{:U('Ajax/getPromotersByCompanyid')}",
type: "get",
- data: { level: 1 },
+ data: { company_id:company_id},
dataType: 'json',
success: function (response) {
- str = '';
- // $.each(response.data, function(index, item){
- // console.log(item.id);
- // str += '';
- // });
+ str = '';
data = response.data;
for (var i in data) {
str += ""
@@ -404,7 +405,11 @@
}
})
}
- getPromotersByLevel();
+ getPromotersByCompanyid();
+
+ $("#company_id").change(function(){
+ getPromotersByCompanyid();
+ })
})