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
eac70df0
Commit
eac70df0
authored
Nov 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:人员 字典接口对接、 接口method方式修改联调
parent
83c52e2b
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2040 additions
and
34 deletions
+2040
-34
card.js
src/api/jinrun/card.js
+5
-5
common.js
src/api/jinrun/common.js
+38
-0
renyuan.js
src/api/jinrun/renyuan.js
+4
-4
permission.js
src/permission.js
+11
-11
card.vue
src/views/device/card.vue
+1
-1
fangke.vue
src/views/person/fangke.vue
+974
-0
renyuan.vue
src/views/person/renyuan.vue
+33
-13
yuangong.vue
src/views/person/yuangong.vue
+974
-0
No files found.
src/api/jinrun/card.js
View file @
eac70df0
...
...
@@ -4,9 +4,9 @@ import request from '@/utils/request'
export
function
listCard
(
query
)
{
return
request
({
url
:
'
/person/card/getRemoteCardList
'
,
method
:
'
post
'
,
data
:
query
//
params: query
method
:
'
GET
'
,
//
data: query
params
:
query
})
}
...
...
@@ -34,7 +34,7 @@ export function addCard(data) {
export
function
updateCard
(
data
)
{
return
request
({
url
:
'
/person/card/updateRemoteCard
'
,
method
:
'
p
os
t
'
,
method
:
'
p
u
t
'
,
data
:
data
})
}
...
...
@@ -43,7 +43,7 @@ export function updateCard(data) {
export
function
delCard
(
data
)
{
return
request
({
url
:
'
/person/card/deleteRemoteCard
'
,
method
:
'
post
'
,
method
:
'
delete
'
,
data
:
data
})
}
src/api/jinrun/common.js
0 → 100644
View file @
eac70df0
import
request
from
'
@/utils/request
'
// 查询人员信息列表
// 查询人员信息详细
export
function
getDict
(
data
)
{
return
request
({
url
:
'
/sys/dict/findDictType
'
,
method
:
'
get
'
,
params
:
data
})
}
// 新增人员信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'
/person/info/addRemotePersonInfo
'
,
method
:
'
post
'
,
data
:
data
})
}
// 修改人员信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'
/person/info/updateRemotePersonInfo
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除人员信息
export
function
delInfo
(
data
)
{
return
request
({
url
:
'
/person/info/deleteRemoteVisitorInfo
'
,
method
:
'
delete
'
,
data
:
data
})
}
src/api/jinrun/renyuan.js
View file @
eac70df0
...
...
@@ -4,13 +4,13 @@ import request from '@/utils/request'
export
function
listInfo
(
query
)
{
return
request
({
url
:
'
/person/info/getRemotePersonInfoList
'
,
method
:
'
pos
t
'
,
method
:
'
ge
t
'
,
params
:
query
})
}
// 查询人员信息详细
export
function
getInfo
(
data
)
{
export
function
getInfo
Dict
(
data
)
{
return
request
({
url
:
'
/person/info/getRemotePersonInfoById
'
,
method
:
'
post
'
,
...
...
@@ -31,7 +31,7 @@ export function addInfo(data) {
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'
/person/info/updateRemotePersonInfo
'
,
method
:
'
p
os
t
'
,
method
:
'
p
u
t
'
,
data
:
data
})
}
...
...
@@ -40,7 +40,7 @@ export function updateInfo(data) {
export
function
delInfo
(
data
)
{
return
request
({
url
:
'
/person/info/deleteRemoteVisitorInfo
'
,
method
:
'
post
'
,
method
:
'
delete
'
,
data
:
data
})
}
src/permission.js
View file @
eac70df0
...
...
@@ -17,7 +17,7 @@ const isWhiteList = (path) => {
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
NProgress
.
start
()
if
(
getToken
())
{
//
if (getToken()) {
// to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
// /* has token*/
// if (to.path === '/login') {
...
...
@@ -47,16 +47,16 @@ router.beforeEach((to, from, next) => {
// }
// }
next
()
}
else
{
// 没有token
if
(
isWhiteList
(
to
.
path
))
{
// 在免登录白名单,直接进入
next
()
}
else
{
next
(
`/login?redirect=
${
encodeURIComponent
(
to
.
fullPath
)}
`
)
// 否则全部重定向到登录页
NProgress
.
done
()
}
}
//
} else {
//
// 没有token
//
if (isWhiteList(to.path)) {
//
// 在免登录白名单,直接进入
//
next()
//
} else {
//
next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
//
NProgress.done()
//
}
//
}
})
router
.
afterEach
(()
=>
{
...
...
src/views/device/card.vue
View file @
eac70df0
...
...
@@ -229,7 +229,7 @@
</el-form-item>
<el-form-item
label=
"启用状态"
prop=
"cardEnable"
>
<el-select
v-model=
"
queryParams
.cardEnable"
v-model=
"
form
.cardEnable"
placeholder=
"请选择启用状态"
clearable
>
...
...
src/views/person/fangke.vue
0 → 100644
View file @
eac70df0
This diff is collapsed.
Click to expand it.
src/views/person/renyuan.vue
View file @
eac70df0
...
...
@@ -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
,
// 选中数组
...
...
@@ -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,7 +969,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
this
.
$modal
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
personIds
+
'
"的数据项?
'
)
.
confirm
(
'
是否确认删除人员信息编号为"
'
+
row
.
personIds
+
'
"的数据项?
'
)
.
then
(
function
()
{
return
delInfo
(
row
);
}
)
...
...
src/views/person/yuangong.vue
0 → 100644
View file @
eac70df0
This diff is collapsed.
Click to expand it.
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