微信项目二维码修改
This commit is contained in:
parent
84f0069cbd
commit
fa43924330
|
@ -934,7 +934,7 @@ class Project < ActiveRecord::Base
|
|||
response = Wechat.api.qrcode_create_scene(invite_code, 2592000)
|
||||
logger.debug "response = #{response}"
|
||||
self.qrcode = response['ticket']
|
||||
save! && reload
|
||||
save!
|
||||
ticket = qrcode
|
||||
end
|
||||
ticket
|
||||
|
|
|
@ -30,13 +30,10 @@ app.controller('EditClassMemberController', ['$scope', '$http', 'auth', 'config'
|
|||
console.log(vm.current_edit_member);
|
||||
|
||||
vm.cancel = function(){
|
||||
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||
// rms.save("project_master_members",[]);
|
||||
// rms.save("project_develop_members",[]);
|
||||
// rms.save("project_report_members",[]);
|
||||
window.history.back();
|
||||
// $location.path("/project").search({id: project_id});
|
||||
});
|
||||
// vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||
// window.history.back();
|
||||
// });
|
||||
window.history.back();
|
||||
};
|
||||
|
||||
vm.edit_member_role = function(){
|
||||
|
|
|
@ -31,13 +31,10 @@ app.controller('EditProjectMemberController', ['$scope', '$http', 'auth', 'confi
|
|||
console.log(vm.current_edit_member);
|
||||
|
||||
vm.cancel = function(){
|
||||
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||
// rms.save("project_master_members",[]);
|
||||
// rms.save("project_develop_members",[]);
|
||||
// rms.save("project_report_members",[]);
|
||||
window.history.back();
|
||||
// $location.path("/project").search({id: project_id});
|
||||
});
|
||||
// vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
|
||||
// window.history.back();
|
||||
// });
|
||||
window.history.back();
|
||||
};
|
||||
|
||||
vm.edit_member_role = function(){
|
||||
|
|
Loading…
Reference in New Issue