diff --git a/src/api/Getauthority.js b/src/api/Getauthority.js
new file mode 100644
index 00000000..5c51543e
--- /dev/null
+++ b/src/api/Getauthority.js
@@ -0,0 +1,33 @@
+import request from '@/utils/request'
+
+// 角色列表
+export function repairList() {
+ return request({
+ url: '/erp/role/getrolelist',
+ method: 'post'
+ })
+}
+
+// 角色列表
+export function getauthoritydetaillist() {
+ return request({
+ url: '/erp/role/getauthoritydetaillist',
+ method: 'post'
+ })
+}
+
+// 添加角色
+export function addrole(query) {
+ var params = new URLSearchParams()
+ if (query.rolename !== '' && query.rolename !== null && query.rolename !== undefined) {
+ params.append('rolename', query.rolename) // 你要传给后台的参数值 key/value
+ }
+ if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) {
+ params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value
+ }
+ return request({
+ url: '/erp/role/addrole',
+ method: 'post',
+ data: params
+ })
+}
diff --git a/src/icons/svg/quanxian.svg b/src/icons/svg/quanxian.svg
new file mode 100644
index 00000000..2e3e7fcd
--- /dev/null
+++ b/src/icons/svg/quanxian.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/lang/zh.js b/src/lang/zh.js
index 3fbe3fdc..c620305e 100644
--- a/src/lang/zh.js
+++ b/src/lang/zh.js
@@ -267,7 +267,8 @@ export default {
CustomerVisitList: '客户回访列表',
GroupBuyRules: '团购活动规则',
AddGroupBuyRules: '新建团购活动规则',
- GroupBuyRulesList: '团购活动规则列表'
+ GroupBuyRulesList: '团购活动规则列表',
+ Getauthority: '角色权限'
},
navbar: {
logOut: '退出登录',
@@ -1712,7 +1713,13 @@ export default {
endTime: '活动结束时间',
isEffective: '应用状态'
},
+ Getauthority: {
+ rolename: '角色名称',
+ createTime: '创建时间',
+ createPersonName: '创建人'
+ },
public: {
+ save: '保存',
modifyDate: '最后修改日期',
move: '调入',
judgePersonName: '审核人',
diff --git a/src/router/index.js b/src/router/index.js
index 527c0897..6670419b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -414,6 +414,23 @@ export const asyncRouterMap = [
}
]
},
+ {
+ path: '/Getauthority',
+ component: Layout,
+ redirect: 'noredirect',
+ meta: {
+ icon: 'quanxian',
+ type: 1
+ },
+ children: [
+ {
+ path: 'index',
+ component: () => import('@/views/Getauthority/index'),
+ name: 'Getauthority',
+ meta: { title: 'Getauthority', noCache: true }
+ }
+ ]
+ },
// 库存管理
{
path: '/Stockenter',
diff --git a/src/views/Getauthority/index.vue b/src/views/Getauthority/index.vue
new file mode 100644
index 00000000..ef32104e
--- /dev/null
+++ b/src/views/Getauthority/index.vue
@@ -0,0 +1,305 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('public.save') }}
+
+
+
+
+
+
+
角色列表
+
+
+
+ {{ scope.row.roleName }}
+
+
+
+
+ {{ scope.row.createTime }}
+
+
+
+
+ {{ scope.row.createPersonName }}
+
+
+
+
+
+
+
+
模块列表
+
+
+ 名称
+
+
+
+
+
+
+
+
+
+
操作权限
+
+
+ 名称
+ 全选
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Product/detaillist.vue b/src/views/Product/detaillist.vue
index 9587b826..6a24dad5 100644
--- a/src/views/Product/detaillist.vue
+++ b/src/views/Product/detaillist.vue
@@ -8,22 +8,24 @@
placeholder="输入关键字进行过滤"
style="margin-bottom: 30px"
clearable/>
-
-
- {{ node.label }}
-
-
-
+
+
+
+ {{ node.label }}
+
+
+
+
-
-
+
+
@@ -340,6 +342,15 @@ export default {
.ERP-container {
margin: 0px 20px;
margin-right: 0;
+ }
+ .ERP-container >>> .el-scrollbar__wrap {
+ overflow-x: hidden;
+ }
+ .tree{
+ height: 500px;
+ }
+ .tree >>> .el-tree {
+ min-width: 100%;
}
.form-name{
font-size: 18px;