|
@@ -248,13 +248,7 @@ export default {
|
|
return delObj(row.roleId)
|
|
return delObj(row.roleId)
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.getList(this.page)
|
|
this.getList(this.page)
|
|
- this.list.splice(index, 1)
|
|
|
|
- _this.$message({
|
|
|
|
- showClose: true,
|
|
|
|
- message: '删除成功',
|
|
|
|
- type: 'success'
|
|
|
|
- })
|
|
|
|
- }).catch(function() {
|
|
|
|
|
|
+ this.$notify.success('删除成功')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
create(row, done, loading) {
|
|
create(row, done, loading) {
|
|
@@ -264,12 +258,7 @@ export default {
|
|
addObj(this.form).then(() => {
|
|
addObj(this.form).then(() => {
|
|
this.getList(this.page)
|
|
this.getList(this.page)
|
|
done()
|
|
done()
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '创建成功',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
|
|
+ this.$notify.success('创建成功')
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
loading()
|
|
loading()
|
|
})
|
|
})
|
|
@@ -281,12 +270,7 @@ export default {
|
|
putObj(this.form).then(() => {
|
|
putObj(this.form).then(() => {
|
|
this.getList(this.page)
|
|
this.getList(this.page)
|
|
done()
|
|
done()
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '修改成功',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
|
|
+ this.$notify.success('修改成功')
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
loading()
|
|
loading()
|
|
})
|
|
})
|
|
@@ -296,20 +280,7 @@ export default {
|
|
this.menuIds = this.$refs.menuTree.getCheckedKeys().join(',').concat(',').concat(this.$refs.menuTree.getHalfCheckedKeys().join(','))
|
|
this.menuIds = this.$refs.menuTree.getCheckedKeys().join(',').concat(',').concat(this.$refs.menuTree.getHalfCheckedKeys().join(','))
|
|
permissionUpd(roleId, this.menuIds).then(() => {
|
|
permissionUpd(roleId, this.menuIds).then(() => {
|
|
this.dialogPermissionVisible = false
|
|
this.dialogPermissionVisible = false
|
|
- fetchMenuTree()
|
|
|
|
- .then(response => {
|
|
|
|
- this.form = response.data.data
|
|
|
|
- return fetchRoleTree(roleId)
|
|
|
|
- })
|
|
|
|
- .then(response => {
|
|
|
|
- this.checkedKeys = response.data.data
|
|
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '修改成功',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
|
|
+ this.$notify.success('修改成功')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|