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
cd184045
You need to sign in or sign up before continuing.
Commit
cd184045
authored
Nov 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD:员工 条件搜索过滤 staff
parent
eac70df0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
53 deletions
+56
-53
renyuan.js
src/api/jinrun/renyuan.js
+1
-1
index.js
src/router/index.js
+4
-4
chengbaoshang.vue
src/views/person/chengbaoshang.vue
+13
-33
yuangong.vue
src/views/person/yuangong.vue
+38
-15
No files found.
src/api/jinrun/renyuan.js
View file @
cd184045
...
...
@@ -39,7 +39,7 @@ export function updateInfo(data) {
// 删除人员信息
export
function
delInfo
(
data
)
{
return
request
({
url
:
'
/person/info/deleteRemote
Visitor
Info
'
,
url
:
'
/person/info/deleteRemote
Person
Info
'
,
method
:
'
delete
'
,
data
:
data
})
...
...
src/router/index.js
View file @
cd184045
...
...
@@ -150,16 +150,16 @@ export const constantRoutes = [
}
]
},
//
人员
列表
//
员工
列表
{
path
:
'
/person
'
,
component
:
EmptyLayout
,
redirect
:
'
noredirect
'
,
children
:
[
{
path
:
'
renyuan
'
,
component
:
()
=>
import
(
'
@/views/person/
renyuan
'
),
name
:
'
renyuan
'
,
path
:
'
yuangong
'
,
component
:
()
=>
import
(
'
@/views/person/
yuangong
'
),
name
:
'
yuangong
'
,
meta
:
{
title
:
'
人员列表
'
,
icon
:
'
dashboard
'
,
}
}
]
...
...
src/views/person/
renyuan
.vue
→
src/views/person/
chengbaoshang
.vue
View file @
cd184045
...
...
@@ -357,19 +357,11 @@
placeholder
=
"
请输入内容
"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personType
"
>
<
el
-
select
v
-
model
=
"
form.personType
"
placeholder
=
"
请选择人员类型
"
clearable
>
<
el
-
option
v
-
for
=
"
item in personTypeOptions
"
:
key
=
"
item.dictValue
"
:
label
=
"
item.dictLabel
"
:
value
=
"
item.dictValue
"
><
/el-option
>
<
/el-select
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personTypeName
"
>
<
el
-
input
v
-
model
=
"
form.personTypeName
"
placeholder
=
"
请输入人员类型名称
"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
input
...
...
@@ -686,15 +678,17 @@
<
/template
>
<
script
>
import
{
listInfo
,
delInfo
,
addInfo
,
updateInfo
}
from
"
@/api/jinrun/renyuan
"
;
import
{
getDict
}
from
"
@/api/jinrun/common
"
;
import
{
listInfo
,
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
}
from
"
@/api/jinrun/renyuan
"
;
export
default
{
name
:
"
Info
"
,
data
()
{
return
{
// 人员类型下拉列表数据
personTypeOptions
:
[],
// 遮罩层
loading
:
true
,
// 选中数组
...
...
@@ -802,22 +796,8 @@ export default {
}
,
created
()
{
this
.
getList
();
this
.
getPersonTypeOptions
();
}
,
methods
:
{
/** 获取人员类型下拉列表数据 */
getPersonTypeOptions
()
{
// 调用数据字典接口
getDict
({
dictType
:
"
person_type
"
}
)
.
then
((
response
)
=>
{
this
.
personTypeOptions
=
response
.
data
;
}
)
.
catch
((
error
)
=>
{
this
.
$modal
.
msgError
(
"
获取人员类型数据失败
"
);
console
.
error
(
"
获取人员类型数据失败:
"
,
error
);
}
);
}
,
/** 查询人员信息列表 */
getList
()
{
this
.
loading
=
true
;
...
...
@@ -969,7 +949,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
row
.
personIds
+
'
"的数据项?
'
)
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
return
delInfo
(
row
);
}
)
...
...
src/views/person/yuangong.vue
View file @
cd184045
...
...
@@ -357,11 +357,19 @@
placeholder
=
"
请输入内容
"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personTypeName
"
>
<
el
-
input
v
-
model
=
"
form.personTypeName
"
placeholder
=
"
请输入人员类型名称
"
/>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personType
"
>
<
el
-
select
v
-
model
=
"
form.personType
"
placeholder
=
"
请选择人员类型
"
clearable
>
<
el
-
option
v
-
for
=
"
item in personTypeOptions
"
:
key
=
"
item.dictValue
"
:
label
=
"
item.dictLabel
"
:
value
=
"
item.dictValue
"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
input
...
...
@@ -678,17 +686,15 @@
<
/template
>
<
script
>
import
{
listInfo
,
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
}
from
"
@/api/jinrun/renyuan
"
;
import
{
listInfo
,
delInfo
,
addInfo
,
updateInfo
}
from
"
@/api/jinrun/renyuan
"
;
import
{
getDict
}
from
"
@/api/jinrun/common
"
;
export
default
{
name
:
"
Info
"
,
data
()
{
return
{
// 人员类型下拉列表数据
personTypeOptions
:
[],
// 遮罩层
loading
:
true
,
// 选中数组
...
...
@@ -711,7 +717,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
personType
:
null
,
personType
:
"
staff
"
,
personTypeName
:
null
,
staffType
:
null
,
staffTypeName
:
null
,
...
...
@@ -796,8 +802,22 @@ export default {
}
,
created
()
{
this
.
getList
();
this
.
getPersonTypeOptions
();
}
,
methods
:
{
/** 获取人员类型下拉列表数据 */
getPersonTypeOptions
()
{
// 调用数据字典接口
getDict
({
dictType
:
"
person_type
"
}
)
.
then
((
response
)
=>
{
this
.
personTypeOptions
=
response
.
data
;
}
)
.
catch
((
error
)
=>
{
this
.
$modal
.
msgError
(
"
获取人员类型数据失败
"
);
console
.
error
(
"
获取人员类型数据失败:
"
,
error
);
}
);
}
,
/** 查询人员信息列表 */
getList
()
{
this
.
loading
=
true
;
...
...
@@ -949,9 +969,12 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
row
.
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
return
delInfo
(
row
);
return
delInfo
({
personIds
:
[
row
.
personId
],
personType
:
row
.
personType
,
}
);
}
)
.
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