diff --git a/src/views/system/role/components/RoleForm.vue b/src/views/system/role/components/RoleForm.vue
index bd79682a..dc1852d3 100644
--- a/src/views/system/role/components/RoleForm.vue
+++ b/src/views/system/role/components/RoleForm.vue
@@ -29,7 +29,18 @@
>
-
+
+
+
+
{{ $t("system:role:form:checkbox:menuExpand") }}{{ $t('system:role:form:checkbox:menuExpand') }}
{{ $t("system:role:form:checkbox:menuNodeAll") }}{{ $t('system:role:form:checkbox:menuNodeAll') }}
{{
- $t("system:role:form:checkbox:menuCheckStrictly")
+ $t('system:role:form:checkbox:menuCheckStrictly')
}}
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index e2ff6b68..c31ae267 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -21,26 +21,90 @@
- {{ $t('common:button:search') }}
- {{ $t('common:button:add') }}
+ {{ $t('common:button:search') }}
+ {{ $t('common:button:add') }}
-
+
-
-
-
+
+
+
- {{ scope.row.UserTypeGroupList.map(v => {return v.GroupName}).toString() }}
+ {{
+ scope.row.UserTypeGroupList.map((v) => {
+ return v.GroupName
+ }).toString()
+ }}
-
-
+
+
- {{ $fd('UserType',scope.row.UserTypeEnum) }}
+ {{ $fd('UserType', scope.row.UserTypeEnum) }}
-
+
+
+ {{ $fd('IsEnable', scope.row.IsEnable) }}
+
+
+
{{ $t('common:button:edit') }}
+ >{{ $t('common:button:edit') }}
{{ $t('common:button:delete') }}
+ >{{ $t('common:button:delete') }}
@@ -87,36 +153,36 @@ export default {
treeData: [],
defaultProps: {
label: 'MenuName',
- children: 'Children'
+ children: 'Children',
},
// 查询参数
queryParams: {
GroupId: undefined,
- SearchFilter: undefined
+ SearchFilter: undefined,
},
dialogVisible: false,
editRow: {},
expandedKeys: [],
treeLoading: false,
funcListLoading: false,
- funcList: []
+ funcList: [],
}
},
mounted() {
this.getList()
},
methods: {
- getDictionary() {
-
- },
+ getDictionary() {},
getList() {
this.loading = true
- getUserTypeRoleList(this.queryParams).then((res) => {
- this.loading = false
- this.list = res.Result
- }).catch(() => {
- this.loading = false
- })
+ getUserTypeRoleList(this.queryParams)
+ .then((res) => {
+ this.loading = false
+ this.list = res.Result
+ })
+ .catch(() => {
+ this.loading = false
+ })
},
handleAddRole() {
this.editRow = {}
@@ -139,11 +205,13 @@ export default {
this.$confirm(this.$t('trials:uploadedDicoms:message:deleteMes'), {
type: 'warning',
distinguishCancelAndClose: true,
-
}).then(() => {
deleteUserTypeRole(row.Id).then((res) => {
if (res.IsSuccess) {
- this.list.splice(this.list.findIndex((item) => item.Id === row.Id), 1)
+ this.list.splice(
+ this.list.findIndex((item) => item.Id === row.Id),
+ 1
+ )
this.$message.success(this.$t('common:message:deletedSuccessfully'))
}
})
@@ -152,8 +220,8 @@ export default {
closeModal() {
this.model_cfg.visible = false
this.getList()
- }
- }
+ },
+ },
}