Commit 6288199f authored by hujun's avatar hujun

门店编辑

parent 417c21c7
......@@ -42,7 +42,7 @@ class AStore extends BaseModel
$resutlt = $this->id;
} else {
$this->save($store_data, ['id'=>$data['id']]);
$resutlt = $agents_id;
$resutlt = $data['id'];
}
//处理经纪人等级 10业务员 20店长 30总监 40店长和总监
......@@ -64,7 +64,7 @@ class AStore extends BaseModel
$agents->saveAll($agents_data);
}
$agents_store['level'] = 20;
$agents_store['store_id'] = $data['id'];
$agents_store['store_id'] = $resutlt;
$agents->editData($agents_store,$agents_id,'id');
return $resutlt;
......
......@@ -46,7 +46,6 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
});
$ (document).delegate (".submit_edit", "click", function () {//提交编辑
store.Submit_edit();
store.getList();
});
$ (document).delegate (".mend", "click", function () {//点击业务员列表
store.house_id = $ (this).attr ("data-id");
......@@ -259,7 +258,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: "json",
success: function(data){
if(data.code==200){
store.getList(1);
}else{
alert(data.msg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment