Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
016472b8
authored
Mar 06, 2023
by
芋道源码
Committed by
Gitee
Mar 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!16 1.角色提交问题修改 2.XTable var修改
Merge pull request !16 from 毕梅/master
parents
3af544f1
ece4cf27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
+27
-22
src/components/XTable/src/XTable.vue
+7
-7
src/views/system/role/index.vue
+20
-15
No files found.
src/components/XTable/src/XTable.vue
View file @
016472b8
...
@@ -26,12 +26,12 @@ const prefixCls = getPrefixCls('x-vxe-table')
...
@@ -26,12 +26,12 @@ const prefixCls = getPrefixCls('x-vxe-table')
const
attrs
=
useAttrs
()
const
attrs
=
useAttrs
()
const
emit
=
defineEmits
([
'register'
])
const
emit
=
defineEmits
([
'register'
])
const
removeStyles
=
()
=>
{
const
removeStyles
=
()
=>
{
var
filename
=
'cssTheme'
const
filename
=
'cssTheme'
//移除引入的文件名
//移除引入的文件名
var
targetelement
=
'style'
const
targetelement
=
'style'
var
targetattr
=
'id'
const
targetattr
=
'id'
var
allsuspects
=
document
.
getElementsByTagName
(
targetelement
)
let
allsuspects
=
document
.
getElementsByTagName
(
targetelement
)
for
(
var
i
=
allsuspects
.
length
;
i
>=
0
;
i
--
)
{
for
(
let
i
=
allsuspects
.
length
;
i
>=
0
;
i
--
)
{
if
(
if
(
allsuspects
[
i
]
&&
allsuspects
[
i
]
&&
allsuspects
[
i
].
getAttribute
(
targetattr
)
!=
null
&&
allsuspects
[
i
].
getAttribute
(
targetattr
)
!=
null
&&
...
@@ -43,8 +43,8 @@ const removeStyles = () => {
...
@@ -43,8 +43,8 @@ const removeStyles = () => {
}
}
}
}
const
reImport
=
()
=>
{
const
reImport
=
()
=>
{
var
head
=
document
.
getElementsByTagName
(
'head'
)[
0
]
let
head
=
document
.
getElementsByTagName
(
'head'
)[
0
]
var
style
=
document
.
createElement
(
'style'
)
let
style
=
document
.
createElement
(
'style'
)
style
.
innerText
=
styleCss
style
.
innerText
=
styleCss
style
.
id
=
'cssTheme'
style
.
id
=
'cssTheme'
head
.
appendChild
(
style
)
head
.
appendChild
(
style
)
...
...
src/views/system/role/index.vue
View file @
016472b8
...
@@ -111,16 +111,21 @@
...
@@ -111,16 +111,21 @@
>
>
<el-card
class=
"card"
shadow=
"never"
>
<el-card
class=
"card"
shadow=
"never"
>
<
template
#
header
>
<
template
#
header
>
<!--父子联动(选中父节点,自动选择子节点):-->
父子联动(选中父节点,自动选择子节点):
<!--
<el-switch
v-model=
"checkStrictly"
inline-prompt
active-text=
"是"
inactive-text=
"否"
/>
-->
<el-switch
<!--全选/全不选:-->
v-model=
"checkStrictly"
<!--
<el-switch-->
inline-prompt
<!-- v-model="treeNodeAll"-->
active-text=
"是"
<!-- inline-prompt-->
inactive-text=
"否"
<!-- active-text="是"-->
/>
<!-- inactive-text="否"-->
全选/全不选:
<!-- @change="handleCheckedTreeNodeAll()"-->
<el-switch
<!--/>-->
v-model=
"treeNodeAll"
inline-prompt
active-text=
"是"
inactive-text=
"否"
@
change=
"handleCheckedTreeNodeAll()"
/>
</
template
>
</
template
>
<el-tree
<el-tree
ref=
"treeRef"
ref=
"treeRef"
...
@@ -250,12 +255,12 @@ const dialogScopeTitle = ref('数据权限')
...
@@ -250,12 +255,12 @@ const dialogScopeTitle = ref('数据权限')
const
actionScopeType
=
ref
(
''
)
const
actionScopeType
=
ref
(
''
)
const
dataScopeDictDatas
=
ref
()
const
dataScopeDictDatas
=
ref
()
// 选项
// 选项
const
checkStrictly
=
ref
(
fals
e
)
const
checkStrictly
=
ref
(
tru
e
)
//
const treeNodeAll = ref(false)
const
treeNodeAll
=
ref
(
false
)
// 全选/全不选
// 全选/全不选
//
const handleCheckedTreeNodeAll = () => {
const
handleCheckedTreeNodeAll
=
()
=>
{
//
treeRef.value!.setCheckedNodes(treeNodeAll.value ? treeOptions.value : [])
treeRef
.
value
!
.
setCheckedNodes
(
treeNodeAll
.
value
?
treeOptions
.
value
:
[])
//
}
}
// 权限操作
// 权限操作
const
handleScope
=
async
(
type
:
string
,
row
:
RoleApi
.
RoleVO
)
=>
{
const
handleScope
=
async
(
type
:
string
,
row
:
RoleApi
.
RoleVO
)
=>
{
dataScopeForm
.
id
=
row
.
id
dataScopeForm
.
id
=
row
.
id
...
...
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