Former-commit-id: 9fecd6bbc5bb2b40a0f3be47c6d580c2fed1e405
master
wangbing 5 years ago
parent c8f60a7d8d
commit d11b7c5c27

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

Loading…
Cancel
Save

Powered by TurnKey Linux.