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
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) {
...
@@ -39,7 +39,7 @@ export function updateInfo(data) {
// 删除人员信息
// 删除人员信息
export
function
delInfo
(
data
)
{
export
function
delInfo
(
data
)
{
return
request
({
return
request
({
url
:
'
/person/info/deleteRemote
Visitor
Info
'
,
url
:
'
/person/info/deleteRemote
Person
Info
'
,
method
:
'
delete
'
,
method
:
'
delete
'
,
data
:
data
data
:
data
})
})
...
...
src/router/index.js
View file @
cd184045
...
@@ -150,16 +150,16 @@ export const constantRoutes = [
...
@@ -150,16 +150,16 @@ export const constantRoutes = [
}
}
]
]
},
},
//
人员
列表
//
员工
列表
{
{
path
:
'
/person
'
,
path
:
'
/person
'
,
component
:
EmptyLayout
,
component
:
EmptyLayout
,
redirect
:
'
noredirect
'
,
redirect
:
'
noredirect
'
,
children
:
[
children
:
[
{
{
path
:
'
renyuan
'
,
path
:
'
yuangong
'
,
component
:
()
=>
import
(
'
@/views/person/
renyuan
'
),
component
:
()
=>
import
(
'
@/views/person/
yuangong
'
),
name
:
'
renyuan
'
,
name
:
'
yuangong
'
,
meta
:
{
title
:
'
人员列表
'
,
icon
:
'
dashboard
'
,
}
meta
:
{
title
:
'
人员列表
'
,
icon
:
'
dashboard
'
,
}
}
}
]
]
...
...
src/views/person/
renyuan
.vue
→
src/views/person/
chengbaoshang
.vue
View file @
cd184045
...
@@ -357,19 +357,11 @@
...
@@ -357,19 +357,11 @@
placeholder
=
"
请输入内容
"
placeholder
=
"
请输入内容
"
/>
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personType
"
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personTypeName
"
>
<
el
-
select
<
el
-
input
v
-
model
=
"
form.personType
"
v
-
model
=
"
form.personTypeName
"
placeholder
=
"
请选择人员类型
"
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
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
input
<
el
-
input
...
@@ -686,15 +678,17 @@
...
@@ -686,15 +678,17 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
listInfo
,
delInfo
,
addInfo
,
updateInfo
}
from
"
@/api/jinrun/renyuan
"
;
import
{
import
{
getDict
}
from
"
@/api/jinrun/common
"
;
listInfo
,
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
}
from
"
@/api/jinrun/renyuan
"
;
export
default
{
export
default
{
name
:
"
Info
"
,
name
:
"
Info
"
,
data
()
{
data
()
{
return
{
return
{
// 人员类型下拉列表数据
personTypeOptions
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -802,22 +796,8 @@ export default {
...
@@ -802,22 +796,8 @@ export default {
}
,
}
,
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
getPersonTypeOptions
();
}
,
}
,
methods
:
{
methods
:
{
/** 获取人员类型下拉列表数据 */
getPersonTypeOptions
()
{
// 调用数据字典接口
getDict
({
dictType
:
"
person_type
"
}
)
.
then
((
response
)
=>
{
this
.
personTypeOptions
=
response
.
data
;
}
)
.
catch
((
error
)
=>
{
this
.
$modal
.
msgError
(
"
获取人员类型数据失败
"
);
console
.
error
(
"
获取人员类型数据失败:
"
,
error
);
}
);
}
,
/** 查询人员信息列表 */
/** 查询人员信息列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -969,7 +949,7 @@ export default {
...
@@ -969,7 +949,7 @@ export default {
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$modal
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
row
.
personIds
+
'
"的数据项?
'
)
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delInfo
(
row
);
return
delInfo
(
row
);
}
)
}
)
...
...
src/views/person/yuangong.vue
View file @
cd184045
...
@@ -357,11 +357,19 @@
...
@@ -357,11 +357,19 @@
placeholder
=
"
请输入内容
"
placeholder
=
"
请输入内容
"
/>
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personTypeName
"
>
<
el
-
form
-
item
label
=
"
人员类型名称
"
prop
=
"
personType
"
>
<
el
-
input
<
el
-
select
v
-
model
=
"
form.personTypeName
"
v
-
model
=
"
form.personType
"
placeholder
=
"
请输入人员类型名称
"
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
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
form
-
item
label
=
"
员工类型名称
"
prop
=
"
staffTypeName
"
>
<
el
-
input
<
el
-
input
...
@@ -678,17 +686,15 @@
...
@@ -678,17 +686,15 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
import
{
listInfo
,
delInfo
,
addInfo
,
updateInfo
}
from
"
@/api/jinrun/renyuan
"
;
listInfo
,
import
{
getDict
}
from
"
@/api/jinrun/common
"
;
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
}
from
"
@/api/jinrun/renyuan
"
;
export
default
{
export
default
{
name
:
"
Info
"
,
name
:
"
Info
"
,
data
()
{
data
()
{
return
{
return
{
// 人员类型下拉列表数据
personTypeOptions
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -711,7 +717,7 @@ export default {
...
@@ -711,7 +717,7 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
personType
:
null
,
personType
:
"
staff
"
,
personTypeName
:
null
,
personTypeName
:
null
,
staffType
:
null
,
staffType
:
null
,
staffTypeName
:
null
,
staffTypeName
:
null
,
...
@@ -796,8 +802,22 @@ export default {
...
@@ -796,8 +802,22 @@ export default {
}
,
}
,
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
getPersonTypeOptions
();
}
,
}
,
methods
:
{
methods
:
{
/** 获取人员类型下拉列表数据 */
getPersonTypeOptions
()
{
// 调用数据字典接口
getDict
({
dictType
:
"
person_type
"
}
)
.
then
((
response
)
=>
{
this
.
personTypeOptions
=
response
.
data
;
}
)
.
catch
((
error
)
=>
{
this
.
$modal
.
msgError
(
"
获取人员类型数据失败
"
);
console
.
error
(
"
获取人员类型数据失败:
"
,
error
);
}
);
}
,
/** 查询人员信息列表 */
/** 查询人员信息列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -949,9 +969,12 @@ export default {
...
@@ -949,9 +969,12 @@ export default {
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$modal
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
row
.
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delInfo
(
row
);
return
delInfo
({
personIds
:
[
row
.
personId
],
personType
:
row
.
personType
,
}
);
}
)
}
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
getList
();
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