|
|
@@ -281,7 +281,8 @@ function addRole() {
|
|
|
// 搜索
|
|
|
let searchList = ref()
|
|
|
const handleSearch = () => {
|
|
|
- searchList.value = roleList.value.filter((item: any) => item.name.includes(roleName.value))
|
|
|
+ getRoleList()
|
|
|
+ // searchList.value = roleList.value.filter((item: any) => item.name.includes(roleName.value))
|
|
|
}
|
|
|
//提交角色信息
|
|
|
async function roleSubmit(roleRef: FormInstance | undefined) {
|
|
|
@@ -473,6 +474,7 @@ function getRoleList() {
|
|
|
.roleList({
|
|
|
system: localStorage.getItem("login_system") || "",
|
|
|
perms: [],
|
|
|
+ name:roleName.value,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
roleList.value = JSON.parse(JSON.stringify(res.data))
|