Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
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_gov_platform
Commits
625295a4
Commit
625295a4
authored
Dec 15, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : 修改窗口关联业务
parent
dabfcad7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
base-manager-ui/admin/src/pages/basicset/business/group/addprofession.vue
...admin/src/pages/basicset/business/group/addprofession.vue
+0
-1
base-manager-ui/admin/src/pages/basicset/dept/components/addWindowBusiness.vue
.../src/pages/basicset/dept/components/addWindowBusiness.vue
+6
-6
No files found.
base-manager-ui/admin/src/pages/basicset/business/group/addprofession.vue
View file @
625295a4
...
...
@@ -181,7 +181,6 @@ export default {
// 确定
handleOk
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
console
.
log
(
this
.
form
.
parentId
);
if
(
valid
)
{
this
.
confirmLoading
=
true
;
let
res
=
await
saveBusiness
({
...
...
base-manager-ui/admin/src/pages/basicset/dept/components/addWindowBusiness.vue
View file @
625295a4
...
...
@@ -54,7 +54,7 @@
}"
:columns=
"columns"
:data-source=
"siteBusinessList"
:rowKey=
"(record) => record.
i
d"
:rowKey=
"(record) => record.
businessI
d"
:row-selection=
"{
selectedRowKeys: rowKeys,
onChange: handleChange,
...
...
@@ -193,17 +193,17 @@ export default {
onSelectRow
(
record
,
selected
)
{
if
(
selected
&&
record
.
children
&&
record
.
children
.
length
)
{
record
.
children
.
forEach
((
v
)
=>
{
this
.
rowKeys
=
[...
new
Set
([...
this
.
rowKeys
,
v
.
i
d
])];
this
.
rowKeys
=
[...
new
Set
([...
this
.
rowKeys
,
v
.
businessI
d
])];
});
}
else
if
(
!
selected
&&
record
.
children
&&
record
.
children
.
length
)
{
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
v
)
=>
v
!=
record
.
i
d
);
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
v
)
=>
v
!=
record
.
businessI
d
);
record
.
children
.
forEach
((
v
)
=>
{
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
val
)
=>
val
!=
v
.
i
d
);
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
val
)
=>
val
!=
v
.
businessI
d
);
});
}
else
if
(
selected
&&
record
.
parentId
)
{
this
.
rowKeys
=
[...
new
Set
([...
this
.
rowKeys
,
record
.
parentId
])];
}
else
if
(
!
selected
)
{
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
v
)
=>
v
!=
record
.
i
d
);
this
.
rowKeys
=
this
.
rowKeys
.
filter
((
v
)
=>
v
!=
record
.
businessI
d
);
}
},
// 保存窗口关联业务
...
...
@@ -236,4 +236,4 @@ export default {
align-items: center;
justify-content: space-between;
}
</
style
>
\ No newline at end of file
</
style
>
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