-
-
+
-
- 新建
-
-
- 删除
-
+ 新建
+
+
+ 删除
+
+ 确定删除选中的数据吗?
+
+
+
+
+
diff --git a/src/views/system/role/info.js b/src/views/system/role/info.js
index 211910b..d80fb79 100644
--- a/src/views/system/role/info.js
+++ b/src/views/system/role/info.js
@@ -6,24 +6,6 @@ const data = [
placeholder: '请输入角色名称'
}
}
- // {
- // label: '角色类型',
- // type: 'select',
- // key: 'op',
- // props: {
- // options: [{
- // label: 11, value: 1
- // }]
- // }
- // },
- // {
- // label: '角色类型',
- // type: 'date',
- // key: 'date',
- // props: {
- // type: 'date'
- // }
- // }
]
export default data
diff --git a/src/views/system/role/table.js b/src/views/system/role/table.js
index 04c91b2..7c1a4f8 100644
--- a/src/views/system/role/table.js
+++ b/src/views/system/role/table.js
@@ -1,71 +1,28 @@
-import TableImage from '@/components/DataTable/tools/Image.vue'
-import { h } from 'vue'
const data = {
columns: [
+ { type: 'selection' },
{
- title: '用户编号',
+ title: '角色编号',
key: 'code',
align: 'center'
},
{
- title: '头像',
- key: 'avatar',
- align: 'center',
- render(row) {
- return h(TableImage, {
- images: {
- width: 36,
- height: 36,
- src: row.avatar
- }
- })
- }
- },
- {
- title: '用户账号',
- key: 'username',
- align: 'center'
- },
- {
- title: '用户姓名',
- key: 'realname',
- align: 'center'
- },
- {
- title: '用户类型',
- key: 'type',
- align: 'center',
- width: 100
- },
- {
- title: '角色',
- key: 'roles',
- align: 'center'
-
- },
- {
- title: '状态',
- key: 'status',
- align: 'center',
- width: 100
- },
- {
- title: '部门',
- key: 'deptName',
+ title: '角色名称',
+ key: 'name',
align: 'center'
},
{
title: '创建时间',
key: 'createTime',
align: 'center',
- width: 160
+ Minwidth: 160
},
{
title: '更新时间',
key: 'updateTime',
align: 'center',
- width: 160
+ Minwidth: 160
}
]
}
diff --git a/src/views/system/user/components/UserModal.vue b/src/views/system/user/components/UserModal.vue
index dbf0cdf..2278a5b 100644
--- a/src/views/system/user/components/UserModal.vue
+++ b/src/views/system/user/components/UserModal.vue
@@ -1,11 +1,18 @@