Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JINRUN-PERPOSITION
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
JINRUN-PERPOSITION
Commits
83c52e2b
Commit
83c52e2b
authored
Nov 22, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:人员列表 api
parent
a4120669
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
23 deletions
+21
-23
renyuan.js
src/api/jinrun/renyuan.js
+13
-11
renyuan.vue
src/views/person/renyuan.vue
+8
-12
No files found.
src/api/jinrun/renyuan.js
View file @
83c52e2b
...
...
@@ -3,24 +3,25 @@ import request from '@/utils/request'
// 查询人员信息列表
export
function
listInfo
(
query
)
{
return
request
({
url
:
'
/person/info/getRemotePersonInfoList
t
'
,
method
:
'
ge
t
'
,
url
:
'
/person/info/getRemotePersonInfoList
'
,
method
:
'
pos
t
'
,
params
:
query
})
}
// 查询人员信息详细
export
function
getInfo
(
personId
)
{
export
function
getInfo
(
data
)
{
return
request
({
url
:
'
/person/info/
'
+
personId
,
method
:
'
get
'
url
:
'
/person/info/getRemotePersonInfoById
'
,
method
:
'
post
'
,
data
:
data
})
}
// 新增人员信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'
/person/info
'
,
url
:
'
/person/info
/addRemotePersonInfo
'
,
method
:
'
post
'
,
data
:
data
})
...
...
@@ -29,16 +30,17 @@ export function addInfo(data) {
// 修改人员信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'
/person/info
'
,
method
:
'
p
u
t
'
,
url
:
'
/person/info
/updateRemotePersonInfo
'
,
method
:
'
p
os
t
'
,
data
:
data
})
}
// 删除人员信息
export
function
delInfo
(
personId
)
{
export
function
delInfo
(
data
)
{
return
request
({
url
:
'
/person/info/
'
+
personId
,
method
:
'
delete
'
url
:
'
/person/info/deleteRemoteVisitorInfo
'
,
method
:
'
post
'
,
data
:
data
})
}
src/views/person/renyuan.vue
View file @
83c52e2b
...
...
@@ -47,11 +47,10 @@
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:info:add']"
>
新增
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<
!--
<
el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
...
...
@@ -74,7 +73,7 @@
v-hasPermi=
"['system:info:remove']"
>
删除
</el-button
>
</el-col>
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -98,8 +97,7 @@
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"人员ID"
align=
"center"
prop=
"personId"
/>
<!--
<el-table-column
label=
"人员ID"
align=
"center"
prop=
"personId"
/>
-->
<el-table-column
label=
"人员类型"
align=
"center"
prop=
"personType"
/>
<el-table-column
label=
"人员类型名称"
...
...
@@ -315,6 +313,8 @@
prop
=
"
curUserName
"
/>
<
el
-
table
-
column
label
=
"
访客id
"
align
=
"
center
"
prop
=
"
visitorId
"
/>
<
el
-
table
-
column
label
=
"
备注
"
align
=
"
center
"
prop
=
"
remark
"
/>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
...
...
@@ -326,7 +326,6 @@
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
v
-
hasPermi
=
"
['system:info:edit']
"
>
修改
<
/el-butto
n
>
<
el
-
button
...
...
@@ -334,7 +333,6 @@
type
=
"
text
"
icon
=
"
el-icon-delete
"
@
click
=
"
handleDelete(scope.row)
"
v
-
hasPermi
=
"
['system:info:remove']
"
>
删除
<
/el-butto
n
>
<
/template
>
...
...
@@ -804,7 +802,7 @@ export default {
getList
()
{
this
.
loading
=
true
;
listInfo
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
infoList
=
response
.
rows
;
this
.
infoList
=
response
.
data
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
...
...
@@ -922,8 +920,7 @@ export default {
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
personId
=
row
.
personId
||
this
.
ids
;
getInfo
(
personId
).
then
((
response
)
=>
{
getInfo
(
row
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"
修改人员信息
"
;
...
...
@@ -951,11 +948,10 @@ export default {
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
personIds
=
row
.
personId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
return
delInfo
(
personIds
);
return
delInfo
(
row
);
}
)
.
then
(()
=>
{
this
.
getList
();
...
...
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