Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
金民
weiqiao-vue
Commits
637aaaf3
Commit
637aaaf3
authored
Jan 06, 2026
by
胡鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组织管理-新增人员改动
parent
52363237
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
2 deletions
+52
-2
.gitignore
+1
-0
xjrsoft-vue3/.env.development
+2
-2
xjrsoft-vue3/src/views/system/user/components/UserModal.vue
+49
-0
No files found.
.gitignore
View file @
637aaaf3
...
@@ -38,3 +38,4 @@ jinayi
...
@@ -38,3 +38,4 @@ jinayi
/src/api/jianyi
/src/api/jianyi
/src/views/code/demo3
/src/views/code/demo3
.history
.history
xjrsoft-uni/package-lock.json
xjrsoft-vue3/.env.development
View file @
637aaaf3
...
@@ -16,8 +16,8 @@ VITE_DROP_CONSOLE = false
...
@@ -16,8 +16,8 @@ VITE_DROP_CONSOLE = false
# 接口地址
# 接口地址
# 如果没有跨域问题,直接在这里配置即可
# 如果没有跨域问题,直接在这里配置即可
# VITE_GLOB_API_URL=http://192.168.8.73
:8080
VITE_GLOB_API_URL=http://192.168.8.37
:8080
VITE_GLOB_API_URL=http://localhost:8080
#
VITE_GLOB_API_URL=http://localhost:8080
# 文件上传接口 可选
# 文件上传接口 可选
VITE_GLOB_UPLOAD_URL = /system/oss/upload
VITE_GLOB_UPLOAD_URL = /system/oss/upload
...
...
xjrsoft-vue3/src/views/system/user/components/UserModal.vue
View file @
637aaaf3
...
@@ -89,6 +89,9 @@
...
@@ -89,6 +89,9 @@
</
template
>
</
template
>
</BasicTable>
</BasicTable>
</a-tab-pane>
</a-tab-pane>
<a-tab-pane
key=
"6"
tab=
"所持证书"
force-render
>
<BasicForm
@
register=
"registerForm3"
/>
</a-tab-pane>
</a-tabs>
</a-tabs>
<RoleModal
@
register=
"registerRoleModal"
@
success=
"handleRoleSuccess"
/>
<RoleModal
@
register=
"registerRoleModal"
@
success=
"handleRoleSuccess"
/>
<PostModal
@
register=
"registerPostModal"
@
success=
"handlePostSuccess"
/>
<PostModal
@
register=
"registerPostModal"
@
success=
"handlePostSuccess"
/>
...
@@ -429,6 +432,26 @@
...
@@ -429,6 +432,26 @@
dataIndex
:
'name'
,
dataIndex
:
'name'
,
},
},
];
];
const
certificateFormSchema
:
FormSchema
[]
=
[
{
field
:
'certificateCode'
,
label
:
'证书编号'
,
component
:
'Input'
,
colProps
:
{
span
:
12
},
componentProps
:
{
placeholder
:
'请输入证书编号'
,
},
},
{
field
:
'certificateName'
,
label
:
'证书名称'
,
component
:
'Input'
,
colProps
:
{
span
:
12
},
componentProps
:
{
placeholder
:
'请输入证书名称'
,
},
},
];
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
notification
}
=
useMessage
();
const
{
notification
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isUpdate
=
ref
(
true
);
...
@@ -441,6 +464,7 @@
...
@@ -441,6 +464,7 @@
const
roleDatasource
=
ref
<
any
[]
>
([]);
const
roleDatasource
=
ref
<
any
[]
>
([]);
const
postDatasource
=
ref
<
any
[]
>
([]);
const
postDatasource
=
ref
<
any
[]
>
([]);
const
orgDatasource
=
ref
<
any
[]
>
([]);
const
orgDatasource
=
ref
<
any
[]
>
([]);
const
certificateDatasource
=
ref
<
any
[]
>
([]);
const
[
const
[
registerForm1
,
registerForm1
,
...
@@ -477,6 +501,21 @@
...
@@ -477,6 +501,21 @@
},
},
});
});
const
[
registerForm3
,
{
setFieldsValue
:
setFieldsValue3
,
resetFields
:
resetFields3
,
validate
:
validate3
},
]
=
useForm
({
rowProps
:
{
gutter
:
32
,
},
layout
:
'vertical'
,
schemas
:
certificateFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
registerTable1
,
{
setTableData
:
setTableData1
,
setPagination
:
setPagination1
}]
=
useTable
(
const
[
registerTable1
,
{
setTableData
:
setTableData1
,
setPagination
:
setPagination1
}]
=
useTable
(
{
{
rowKey
:
'id'
,
rowKey
:
'id'
,
...
@@ -534,6 +573,7 @@
...
@@ -534,6 +573,7 @@
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields1
();
resetFields1
();
resetFields2
();
resetFields2
();
resetFields3
();
setModalProps
({
confirmLoading
:
false
,
width
:
800
,
fixedHeight
:
true
,
destroyOnClose
:
true
});
setModalProps
({
confirmLoading
:
false
,
width
:
800
,
fixedHeight
:
true
,
destroyOnClose
:
true
});
activeKey
.
value
=
'1'
;
activeKey
.
value
=
'1'
;
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isUpdate
.
value
=
!!
data
?.
isUpdate
;
...
@@ -549,6 +589,10 @@
...
@@ -549,6 +589,10 @@
setFieldsValue2
({
setFieldsValue2
({
...
record
,
...
record
,
});
});
setFieldsValue3
({
certificateCode
:
record
.
certificates
?.[
0
]?.
certificateCode
||
''
,
certificateName
:
record
.
certificates
?.[
0
]?.
certificateName
||
''
,
});
roleDatasource
.
value
=
record
.
roles
||
[];
roleDatasource
.
value
=
record
.
roles
||
[];
postDatasource
.
value
=
record
.
posts
||
[];
postDatasource
.
value
=
record
.
posts
||
[];
orgDatasource
.
value
=
record
.
chargeDepartments
||
[];
orgDatasource
.
value
=
record
.
chargeDepartments
||
[];
...
@@ -658,6 +702,7 @@
...
@@ -658,6 +702,7 @@
try
{
try
{
const
values
=
await
validate1
();
const
values
=
await
validate1
();
const
values2
=
await
validate2
();
const
values2
=
await
validate2
();
const
values3
=
await
validate3
();
const
roleIds
=
roleDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
const
roleIds
=
roleDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
const
postIds
=
postDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
const
postIds
=
postDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
const
chargeDepartmentIds
=
orgDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
const
chargeDepartmentIds
=
orgDatasource
.
value
?.
map
((
x
)
=>
x
.
id
);
...
@@ -668,6 +713,10 @@
...
@@ -668,6 +713,10 @@
roleIds
,
roleIds
,
postIds
,
postIds
,
chargeDepartmentIds
,
chargeDepartmentIds
,
certificates
:
values3
.
certificateCode
||
values3
.
certificateName
?
[{
certificateCode
:
values3
.
certificateCode
||
''
,
certificateName
:
values3
.
certificateName
||
''
,
}]
:
[],
};
};
setModalProps
({
confirmLoading
:
true
});
setModalProps
({
confirmLoading
:
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