diff --git a/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue b/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue
index e9415296..16488693 100644
--- a/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue
+++ b/project/xumu/AppRoleRightsManager/AppRoleRightsManager.vue
@@ -319,6 +319,7 @@ export default {
params: {
roleName: this.editName,
appId: this.row.appId,
+ type: this.row.type
},
})
.then((res) => {
diff --git a/project/xumu/AppRoleRightsManager/rightsAdd.vue b/project/xumu/AppRoleRightsManager/rightsAdd.vue
index 52faca40..1e22a792 100644
--- a/project/xumu/AppRoleRightsManager/rightsAdd.vue
+++ b/project/xumu/AppRoleRightsManager/rightsAdd.vue
@@ -9,7 +9,7 @@
-
+
@@ -132,24 +132,22 @@ export default {
},
//保存提交
confirm() {
- this.$refs.rightsForm.validate(v => {
- if (v) {
- let menus = [this.$refs.roleTree?.getHalfCheckedKeys(), this.$refs.roleTree?.getCheckedKeys()]?.flat()?.toString()
- this.instance.post(this.top.actions.modify, null, {
- params: {...this.form, menus}
- }).then(res => {
- if (res?.msg == "success") {
- this.$message.success(`${this.msgTitle}应用角色成功`)
- this.back()
- this.top.searchList()
- }
- })
- }
+ this.$refs.rightsForm.validate().then(() => {
+ let menus = [this.$refs.roleTree?.getHalfCheckedKeys(), this.$refs.roleTree?.getCheckedKeys()]?.flat()?.toString()
+ this.instance.post(this.top.actions.modify, null, {
+ params: {...this.form, menus}
+ }).then(res => {
+ if (res?.msg == "success") {
+ this.$message.success(`${this.msgTitle}应用角色成功`)
+ this.back()
+ this.top.searchList()
+ }
+ })
})
},
//取消 返回
- back() {
- this.$router.push({})
+ back(params = {}) {
+ this.$router.push(params)
}
},
}