|
|
|
@ -228,7 +228,7 @@
|
|
|
|
|
this.formResource.roleId = item.id
|
|
|
|
|
new Ajax()
|
|
|
|
|
.module("system")
|
|
|
|
|
.target("roleResource")
|
|
|
|
|
.target("roleRes")
|
|
|
|
|
.data({roleId: item.id, pageSize: 0})
|
|
|
|
|
.find(function (response) {
|
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
@ -254,7 +254,7 @@
|
|
|
|
|
onCheck: function (item, status) {
|
|
|
|
|
new Ajax()
|
|
|
|
|
.module("system")
|
|
|
|
|
.target("roleResource")
|
|
|
|
|
.target("roleRes")
|
|
|
|
|
.method("check")
|
|
|
|
|
.data({
|
|
|
|
|
roleId: this.formResource.roleId,
|
|
|
|
@ -272,7 +272,7 @@
|
|
|
|
|
onLoadTree: function () {
|
|
|
|
|
new Ajax()
|
|
|
|
|
.module("system")
|
|
|
|
|
.target("resource")
|
|
|
|
|
.target("res")
|
|
|
|
|
.method("tree")
|
|
|
|
|
.data({})
|
|
|
|
|
.post(function (response) {
|
|
|
|
|