mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: bug fix
This commit is contained in:
@@ -216,9 +216,13 @@ defineExpose({
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
.ed-checkbox {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.border-r {
|
||||
border-right: 1px solid #dee0e3;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -417,7 +417,8 @@ const next = () => {
|
||||
}
|
||||
})
|
||||
}
|
||||
const savePermission = () => {
|
||||
|
||||
const save = () => {
|
||||
const { id, name, permissions, users } = cloneDeep(currentPermission)
|
||||
|
||||
const permissionsObj = permissions.map((ele: any) => {
|
||||
@@ -459,6 +460,18 @@ const savePermission = () => {
|
||||
handleSearch()
|
||||
})
|
||||
}
|
||||
const savePermission = () => {
|
||||
if (!isCreate.value && activeStep.value === 0) {
|
||||
termFormRef.value.validate((res: any) => {
|
||||
if (res) {
|
||||
save()
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
save()
|
||||
}
|
||||
|
||||
const columnRules = {
|
||||
name: [
|
||||
@@ -809,6 +822,8 @@ const columnRules = {
|
||||
|
||||
<style lang="less" scoped>
|
||||
.permission {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
.ed-empty {
|
||||
padding-top: 200px;
|
||||
padding-bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user