Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
7e03dad4
Commit
7e03dad4
authored
Nov 08, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改工作区
parent
4d9efe44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
AccountModal.vue
src/views/system/workspace/AccountModal.vue
+4
-3
AddGroupModal.vue
src/views/system/workspace/AddGroupModal.vue
+4
-3
detail.vue
src/views/system/workspace/detail.vue
+12
-2
No files found.
src/views/system/workspace/AccountModal.vue
View file @
7e03dad4
...
...
@@ -33,18 +33,19 @@
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
()
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
isUpdate
.
value
=
!!
data
?.
isUpdate
;
});
const
getTitle
=
computed
(()
=>
'新增用户'
);
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增用户'
:
'编辑用户'
)
);
async
function
handleSubmit
()
{
try
{
const
values
=
await
validate
();
setModalProps
({
confirmLoading
:
true
});
if
(
unref
(
isUpdate
))
{
createMessage
.
success
(
'
新增
成功'
);
createMessage
.
success
(
'
编辑
成功'
);
closeModal
();
emit
(
'success'
,
{
isUpdate
:
unref
(
isUpdate
),
values
:
{
...
values
,
id
:
rowId
.
value
}
});
}
else
{
...
...
src/views/system/workspace/AddGroupModal.vue
View file @
7e03dad4
...
...
@@ -33,18 +33,19 @@
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
()
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
isUpdate
.
value
=
!!
data
?.
isUpdate
;
});
const
getTitle
=
computed
(()
=>
'新增用户'
);
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增工作组'
:
'编辑工作组'
)
);
async
function
handleSubmit
()
{
try
{
const
values
=
await
validate
();
setModalProps
({
confirmLoading
:
true
});
if
(
unref
(
isUpdate
))
{
createMessage
.
success
(
'
新增
成功'
);
createMessage
.
success
(
'
编辑
成功'
);
closeModal
();
emit
(
'success'
,
{
isUpdate
:
unref
(
isUpdate
),
values
:
{
...
values
,
id
:
rowId
.
value
}
});
}
else
{
...
...
src/views/system/workspace/detail.vue
View file @
7e03dad4
...
...
@@ -170,6 +170,8 @@
<GroupTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-2/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"handleDelete"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"editGroup"
>
编辑
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
添加用户
</a-button>
<a-button
type=
"primary"
@
click=
"handleApproval"
>
审批配置
</a-button>
</
template
>
...
...
@@ -177,6 +179,10 @@
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
{
color: 'error',
label: '删除',
...
...
@@ -231,7 +237,7 @@
const
{
setOptions
}
=
useECharts
(
chartRef
as
Ref
<
HTMLDivElement
>
);
const
tableData
=
ref
([]);
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
}]
=
useTable
({
title
:
'
工作组
列表'
,
title
:
'
用户
列表'
,
api
:
async
()
=>
{
const
response
=
{
pageNu
:
'1'
,
...
...
@@ -338,7 +344,6 @@
reload
();
}
}
function
handleView
(
record
:
Recordable
)
{}
/** 新增按钮*/
function
handleCreate
()
{
openModal
(
true
,
{
...
...
@@ -350,6 +355,11 @@
isUpdate
:
false
,
});
}
function
editGroup
()
{
openAddGroupModal
(
true
,
{
isUpdate
:
false
,
});
}
function
handleApproval
()
{
openApprovalModal
(
true
);
}
...
...
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