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
ee2ab82b
Commit
ee2ab82b
authored
Nov 27, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:人员字段对接
parent
825aa82a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
337 additions
and
744 deletions
+337
-744
common.js
src/api/jinrun/common.js
+1
-1
fangke.vue
src/views/person/fangke.vue
+320
-694
renyuan.vue
src/views/person/renyuan.vue
+5
-15
yuangong.vue
src/views/person/yuangong.vue
+11
-34
No files found.
src/api/jinrun/common.js
View file @
ee2ab82b
...
...
@@ -4,7 +4,7 @@ import request from '@/utils/request'
// 查询人员信息详细
export
function
getDict
(
data
)
{
return
request
({
url
:
'
/sys/dict/
findDictType
'
,
url
:
'
/sys/dict/
getDictList
'
,
method
:
'
get
'
,
params
:
data
})
...
...
src/views/person/fangke.vue
View file @
ee2ab82b
This diff is collapsed.
Click to expand it.
src/views/person/renyuan.vue
View file @
ee2ab82b
...
...
@@ -39,16 +39,6 @@
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"在线状态"
prop=
"personType"
>
<el-select
v-model=
"queryParams.onlineStatus"
placeholder=
"请选择在线状态"
clearable
>
<el-option
label=
"在线"
:value=
"1"
></el-option>
<el-option
label=
"离线"
:value=
"0"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
...
...
@@ -72,8 +62,8 @@
<el-table-column
label=
"人员类型"
align=
"center"
prop=
"personTypeName"
/>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"realName"
/>
<el-table-column
label=
"性别"
align=
"center"
prop=
"sex"
/>
<el-table-column
label=
"所在部门
1"
align=
"center"
prop=
"jobNumber
"
/>
<el-table-column
label=
"岗位名称
1"
align=
"center"
prop=
"jobNumber
"
/>
<el-table-column
label=
"所在部门
"
align=
"center"
prop=
"deptName
"
/>
<el-table-column
label=
"岗位名称
"
align=
"center"
prop=
"positionName
"
/>
<el-table-column
label=
"联系方式"
align=
"center"
prop=
"phone"
/>
<el-table-column
label=
"身份证号"
align=
"center"
prop=
"idNumber"
/>
<el-table-column
label=
"定位卡号"
align=
"center"
prop=
"cardId"
/>
...
...
@@ -121,7 +111,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
personType
:
"
staff
"
,
personType
:
""
,
personTypeName
:
null
,
staffType
:
null
,
staffTypeName
:
null
,
...
...
@@ -196,7 +186,7 @@ export default {
},
// 表单参数
form
:
{
personType
:
"
staff
"
,
personType
:
""
,
},
// 表单校验
rules
:
{
...
...
@@ -217,7 +207,7 @@ export default {
// 调用数据字典接口
getDict
({
dictType
:
"
person_type
"
})
.
then
((
response
)
=>
{
this
.
personTypeOptions
=
response
.
data
;
this
.
personTypeOptions
=
response
.
records
||
[]
;
})
.
catch
((
error
)
=>
{
this
.
$modal
.
msgError
(
"
获取人员类型数据失败
"
);
...
...
src/views/person/yuangong.vue
View file @
ee2ab82b
...
...
@@ -410,6 +410,16 @@ export default {
};
this
.
bindOpen
=
true
;
},
/** 取消绑定卡对话框 */
cancelBind
()
{
this
.
bindOpen
=
false
;
this
.
bindForm
=
{
personId
:
null
,
realName
:
null
,
cardId
:
null
,
personType
:
"
staff
"
,
};
},
/** 提交绑定卡表单 */
submitBindForm
()
{
...
...
@@ -429,30 +439,6 @@ export default {
});
},
/** 取消绑定卡对话框 */
cancelBind
()
{
this
.
bindOpen
=
false
;
this
.
bindForm
=
{
personId
:
null
,
realName
:
null
,
cardId
:
null
,
personType
:
"
staff
"
,
};
},
/** 查看按钮操作 */
handleView
(
row
)
{
this
.
reset
();
listInfo
({
pageNum
:
1
,
pageSize
:
1
,
personId
:
row
.
personId
,
}).
then
((
response
)
=>
{
this
.
form
=
response
.
data
[
0
];
this
.
open
=
true
;
this
.
title
=
"
查看员工信息
"
;
this
.
dialogType
=
"
view
"
;
});
},
/** 获取人员类型下拉列表数据 */
getPersonTypeOptions
()
{
// 调用数据字典接口
...
...
@@ -476,16 +462,7 @@ export default {
console
.
error
(
"
获取定位卡号列表失败:
"
,
error
);
});
},
/** 处理照片上传 */
handlePhotoUpload
(
file
)
{
// 创建FileReader来读取图片内容
const
reader
=
new
FileReader
();
reader
.
onload
=
(
e
)
=>
{
// 将图片内容转为DataURL存储到form中
this
.
form
.
personPhoto
=
e
.
target
.
result
;
};
reader
.
readAsDataURL
(
file
.
raw
);
},
/** 查询员工信息列表 */
getList
()
{
this
.
loading
=
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