Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
122e9777
Commit
122e9777
authored
Nov 04, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zwg' into dev
parents
bd86d5a6
15a6c5f6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
10 deletions
+28
-10
src/page/main/system/organization/tree.vue
src/page/main/system/organization/tree.vue
+1
-1
src/page/main/system/role/add/role_form.vue
src/page/main/system/role/add/role_form.vue
+7
-2
src/page/main/system/role/index.vue
src/page/main/system/role/index.vue
+12
-1
src/router/function.js
src/router/function.js
+8
-6
No files found.
src/page/main/system/organization/tree.vue
View file @
122e9777
...
...
@@ -74,7 +74,7 @@ import { useRouter } from 'vue-router';
const
actionFlag
=
ref
(
false
)
const
selectData
=
ref
(
null
)
const
selectDataParent
=
ref
(
null
)
const
mvDataParent
=
ref
(
null
)
const
mvDataParent
=
ref
(
[]
)
const
treeRef
=
ref
(
null
)
const
orgData
=
ref
([])
...
...
src/page/main/system/role/add/role_form.vue
View file @
122e9777
...
...
@@ -17,7 +17,7 @@
class=
"role_form"
>
<el-form-item
prop=
"role_name"
label=
"角色名称"
>
<el-input
v-model=
"formData.role_name"
maxlength=
"50"
show-word-limit
/>
<el-input
v-model=
"formData.role_name"
maxlength=
"50"
show-word-limit
:disabled=
"rowType != 0"
/>
</el-form-item>
<el-form-item
prop=
"role_desc"
label=
"描述"
>
<el-input
...
...
@@ -27,11 +27,12 @@
maxlength=
"300"
show-word-limit
:autosize=
"
{ minRows: 5 }"
:disabled="rowType != 0"
>
</el-input>
</el-form-item>
<el-form-item
label=
"数据权限"
prop=
"data_purview"
>
<el-radio-group
v-model=
"formData.data_purview"
>
<el-radio-group
v-model=
"formData.data_purview"
:disabled=
"rowType != 0"
>
<el-radio
:label=
"3"
>
全平台所有
</el-radio>
<el-radio
:label=
"2"
>
本组织所有
</el-radio>
<el-radio
:label=
"1"
>
仅自己
</el-radio>
...
...
@@ -54,6 +55,7 @@
inline-prompt
active-text=
"是"
inactive-text=
"否"
:disabled=
"rowType != 0"
/>
</el-form-item>
...
...
@@ -117,6 +119,7 @@ const roleState = reactive({
children
:
'
Child
'
,
},
// 菜单框默认配置
permissionData
:
[],
// 菜单数据
rowType
:
0
,
})
const
getMenuTree
=
()
=>
{
axios
...
...
@@ -140,6 +143,7 @@ const getRoleDetail = () => {
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
{
role_name
,
role_desc
,
data_purview
,
state
,
menus
}
=
res
.
data
.
data
roleState
.
rowType
=
res
.
data
.
data
.
role_type
let
permission_arr
=
[]
if
(
menus
&&
menus
.
length
>
0
)
{
menus
.
forEach
(
e
=>
{
...
...
@@ -214,6 +218,7 @@ const {
rules
,
defaultProps
,
permissionData
,
rowType
,
}
=
toRefs
(
roleState
)
</
script
>
...
...
src/page/main/system/role/index.vue
View file @
122e9777
...
...
@@ -56,7 +56,7 @@
{{
row
.
created_time
.
split
(
"
+
"
)[
0
].
replace
(
"
T
"
,
"
"
).
replace
(
"
Z
"
,
"
"
)
}}
</
template
>
<
template
v-slot:action=
"{ row }"
>
<bg-table-btn
class=
"can_click_text"
:click=
"()=>
{edit_row(row)}"
:disabled="row.state == 1 || row.role_type == 1"
>
<bg-table-btn
class=
"can_click_text"
:click=
"()=>
{edit_row(row)}">
编辑
</bg-table-btn>
<bg-table-btn
class=
"can_click_text"
:click=
"()=>
{distribute_user(row)}" :disabled="row.cant_allot == 1">
...
...
@@ -621,6 +621,17 @@ const {
height
:
calc
(
100%
-
68px
);
.user_table
{
max-height
:
calc
(
100%
-
48px
);
:deep
()
.bg-table
{
.el-scrollbar
{
--el-scrollbar-bg-color
:
#fff
}
.el-table__empty-block
{
.empty_container
{
height
:
calc
(
100%
-
45px
);
}
}
}
}
}
}
...
...
src/router/function.js
View file @
122e9777
...
...
@@ -40,12 +40,6 @@ var adminMenu = [
dict_group_id
:
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
,
menuType
:
2
,
},
{
menuName
:
"
ui服务测试
"
,
path
:
"
/ui-example
"
,
dict_group_id
:
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
,
menuType
:
2
,
},
{
menuName
:
"
注册认证
"
,
path
:
"
/register-valid
"
,
...
...
@@ -99,6 +93,14 @@ var adminMenu = [
path
:
"
/ability-manage/sold-list/service-test
"
,
dict_group_id
:
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
,
menuType
:
2
,
children
:
[
{
menuName
:
"
ui服务测试
"
,
path
:
"
/ui-example
"
,
dict_group_id
:
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
,
menuType
:
2
,
},
]
},
],
dict_group_id
:
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment