mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:03:44 +00:00
perf: 优化角色创建时权限没有提示
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="input-text">
|
||||
{{ value.toString() }}
|
||||
<div :class="bolder ? 'bolder' : ''" class="input-text">
|
||||
{{ value.toString() || text }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -9,7 +9,15 @@ export default {
|
||||
props: {
|
||||
value: {
|
||||
type: [String, Boolean],
|
||||
default: () => false
|
||||
default: ''
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
bolder: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -20,12 +28,14 @@ export default {
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.input-text {
|
||||
border: solid 1px #dcdfe6;
|
||||
line-height: 32px;
|
||||
padding-left: 5px;
|
||||
padding-left: 8px;
|
||||
height: 32px;
|
||||
margin-top: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.bolder {
|
||||
border: solid 1px #dcdfe6;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import { GenericCreateUpdatePage } from '@/layout/components'
|
||||
import { Text } from '@/components/Form/FormFields'
|
||||
import { TextReadonly } from '@/components/Form/FormFields'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -33,9 +33,10 @@ export default {
|
||||
readonly: true
|
||||
},
|
||||
permissions: {
|
||||
component: Text,
|
||||
component: TextReadonly,
|
||||
el: {
|
||||
text: this.$t('users.HelpText.addRolePermissions')
|
||||
text: this.$t('users.HelpText.addRolePermissions'),
|
||||
bolder: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user