Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yishuju-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
何远江
yishuju-ui
Commits
f100f654
Commit
f100f654
authored
Mar 20, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
法务专员和风控专员
parent
a2426bb6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
94 deletions
+24
-94
user.js
src/api/user.js
+4
-2
AccountFormModal.vue
.../system/legalMemberManage/components/AccountFormModal.vue
+1
-1
index.vue
src/views/system/legalMemberManage/index.vue
+9
-45
AccountFormModal.vue
...s/system/riskMemberManage/components/AccountFormModal.vue
+1
-1
index.vue
src/views/system/riskMemberManage/index.vue
+9
-45
No files found.
src/api/user.js
View file @
f100f654
import
request
from
'@/utils/http/index'
;
function
jsonToUrlParam
(
json
)
{
return
Object
.
keys
(
json
).
map
(
key
=>
key
+
'='
+
json
[
key
]).
join
(
'&'
);
}
export
const
saveUser
=
(
data
)
=>
{
return
request
.
post
(
'/user/save'
,
data
);
};
...
...
@@ -12,7 +14,7 @@ export const deleteUsers = (ids) => {
return
request
.
get
(
'/user/batchDeleteByIds'
,
{
ids
});
};
export
const
saveLeaderGroup
=
(
data
)
=>
{
return
request
.
post
(
`/leaderGroup/add?
username=
${
data
.
username
}
&password=
${
data
.
password
}
&phone=
${
data
.
phone
}
&status=
${
data
.
status
}
&role=
${
data
.
role
}
`
);
return
request
.
post
(
`/leaderGroup/add?
${
jsonToUrlParam
(
data
)
}
`
);
};
export
const
getleaderGroupPage
=
(
params
)
=>
{
...
...
src/views/system/legalMemberManage/components/AccountFormModal.vue
View file @
f100f654
...
...
@@ -115,7 +115,7 @@
showModal
.
value
=
false
;
};
const
openModal
=
(
account
)
=>
{
account
&&
(
form
.
value
=
account
);
account
&&
(
form
.
value
=
account
.
staff
);
getDefualtRoles
().
then
((
res
)
=>
{
options
.
value
=
res
.
result
;
});
...
...
src/views/system/legalMemberManage/index.vue
View file @
f100f654
...
...
@@ -45,41 +45,11 @@
columns
:
[
{
type
:
'checkbox'
,
width
:
60
,
fixed
:
'left'
},
{
field
:
'leader.username'
,
width
:
110
,
title
:
'领导用户名称'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
field
:
'leader.phone'
,
title
:
'领导手机号'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
field
:
'staff.username'
,
width
:
110
,
title
:
'员工用户名称'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
showOverflow
:
'tooltip'
,
slots
:
{
default
:
({
row
})
=>
{
return
(
<>
{
Array
.
from
(
new
Set
(
row
.
staff
.
tenantNames
)).
join
(
','
)}
<
/
>
);
},
},
field
:
'tenantNames'
,
enum
:
Tenantlist
,
search
:
{
el
:
'select'
,
props
:
{
filterable
:
true
},
key
:
'tenantId'
,
labelWidth
:
85
},
fieldNames
:
{
label
:
'name'
,
value
:
'id'
},
title
:
'员工调解中心'
},
{
showOverflow
:
'tooltip'
,
slots
:
{
default
:
({
row
})
=>
{
return
(
<>
{
Array
.
from
(
new
Set
(
row
.
staff
.
roleNames
)).
join
(
','
)}
<
/
>
);
},
},
field
:
'role'
,
enum
:
Rolelist
,
search
:
{
el
:
'select'
,
props
:
{
filterable
:
true
},
key
:
'roleCode'
,
labelWidth
:
85
},
fieldNames
:
{
label
:
'roleName'
,
value
:
'roleCode'
},
title
:
'员工角色'
},
{
field
:
'staff.phone'
,
title
:
'员工手机号'
,
width
:
160
,
search
:
{
el
:
'input'
,
props
:
{
clearable
:
true
},
labelWidth
:
85
},
},
{
...
...
@@ -91,8 +61,8 @@
slots
:
{
default
:
({
row
})
=>
{
return
(
<
ElTag
type
=
{
row
.
status
==
'enable'
?
'primary'
:
'danger'
}
>
{
row
.
status
==
'enable'
?
'启用'
:
'禁用'
}
<
ElTag
type
=
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'primary'
:
'danger'
}
>
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'启用'
:
'禁用'
}
<
/ElTag
>
);
},
...
...
@@ -103,11 +73,6 @@
title
:
'员工创建时间'
,
width
:
170
,
},
{
field
:
'staff.updateTime'
,
title
:
'员工更新时间'
,
width
:
170
,
},
{
field
:
'action'
,
title
:
'操作'
,
...
...
@@ -121,7 +86,7 @@
编辑
<
/ElButton
>
<
ElButton
link
type
=
"primary"
icon
=
{
Edit
}
onClick
=
{()
=>
handleDisable
(
row
)}
>
{
row
.
status
==
'enable'
?
'禁用'
:
'启用'
}
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'禁用'
:
'启用'
}
<
/ElButton
>
<
/
>
);
...
...
@@ -154,7 +119,7 @@
const
editAccount
=
(
row
)
=>
accountFormModalRef
.
value
.
openModal
(
JSON
.
parse
(
JSON
.
stringify
(
row
)));
const
handleDisable
=
async
(
row
)
=>
{
await
ElMessageBox
.
confirm
(
`是否确认
${
row
.
status
==
'enable'
?
'禁用'
:
'启用'
}
该用户?`
,
`是否确认
${
row
.
sta
ff
.
sta
tus
==
'enable'
?
'禁用'
:
'启用'
}
该用户?`
,
'提示'
,
{
confirmButtonText
:
'确认'
,
...
...
@@ -164,13 +129,12 @@
);
// 修改的状态
const
status
=
row
.
status
===
'enable'
?
'disable'
:
'enable'
;
const
status
=
row
.
sta
ff
.
sta
tus
===
'enable'
?
'disable'
:
'enable'
;
await
saveLeaderGroup
({
...
row
,
status
,
...
row
.
staff
,
status
});
row
.
status
=
status
;
row
.
staff
.
status
=
status
;
ElMessage
({
type
:
'success'
,
message
:
`
${
status
==
'enable'
?
'启用'
:
'禁用'
}
成功!`
,
...
...
src/views/system/riskMemberManage/components/AccountFormModal.vue
View file @
f100f654
...
...
@@ -115,7 +115,7 @@
showModal
.
value
=
false
;
};
const
openModal
=
(
account
)
=>
{
account
&&
(
form
.
value
=
account
);
account
&&
(
form
.
value
=
account
.
staff
);
getDefualtRoles
().
then
((
res
)
=>
{
options
.
value
=
res
.
result
;
});
...
...
src/views/system/riskMemberManage/index.vue
View file @
f100f654
...
...
@@ -45,41 +45,11 @@
columns
:
[
{
type
:
'checkbox'
,
width
:
60
,
fixed
:
'left'
},
{
field
:
'leader.username'
,
width
:
110
,
title
:
'领导用户名称'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
field
:
'leader.phone'
,
title
:
'领导手机号'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
field
:
'staff.username'
,
width
:
110
,
title
:
'员工用户名称'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
showOverflow
:
'tooltip'
,
slots
:
{
default
:
({
row
})
=>
{
return
(
<>
{
Array
.
from
(
new
Set
(
row
.
staff
.
tenantNames
)).
join
(
','
)}
<
/
>
);
},
},
field
:
'tenantNames'
,
enum
:
Tenantlist
,
search
:
{
el
:
'select'
,
props
:
{
filterable
:
true
},
key
:
'tenantId'
,
labelWidth
:
85
},
fieldNames
:
{
label
:
'name'
,
value
:
'id'
},
title
:
'员工调解中心'
},
{
showOverflow
:
'tooltip'
,
slots
:
{
default
:
({
row
})
=>
{
return
(
<>
{
Array
.
from
(
new
Set
(
row
.
staff
.
roleNames
)).
join
(
','
)}
<
/
>
);
},
},
field
:
'role'
,
enum
:
Rolelist
,
search
:
{
el
:
'select'
,
props
:
{
filterable
:
true
},
key
:
'roleCode'
,
labelWidth
:
85
},
fieldNames
:
{
label
:
'roleName'
,
value
:
'roleCode'
},
title
:
'员工角色'
},
{
field
:
'staff.phone'
,
title
:
'员工手机号'
,
width
:
160
,
search
:
{
el
:
'input'
,
props
:
{
clearable
:
true
},
labelWidth
:
85
},
},
{
...
...
@@ -91,8 +61,8 @@
slots
:
{
default
:
({
row
})
=>
{
return
(
<
ElTag
type
=
{
row
.
status
==
'enable'
?
'primary'
:
'danger'
}
>
{
row
.
status
==
'enable'
?
'启用'
:
'禁用'
}
<
ElTag
type
=
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'primary'
:
'danger'
}
>
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'启用'
:
'禁用'
}
<
/ElTag
>
);
},
...
...
@@ -103,11 +73,6 @@
title
:
'员工创建时间'
,
width
:
170
,
},
{
field
:
'staff.updateTime'
,
title
:
'员工更新时间'
,
width
:
170
,
},
{
field
:
'action'
,
title
:
'操作'
,
...
...
@@ -121,7 +86,7 @@
编辑
<
/ElButton
>
<
ElButton
link
type
=
"primary"
icon
=
{
Edit
}
onClick
=
{()
=>
handleDisable
(
row
)}
>
{
row
.
status
==
'enable'
?
'禁用'
:
'启用'
}
{
row
.
sta
ff
.
sta
tus
==
'enable'
?
'禁用'
:
'启用'
}
<
/ElButton
>
<
/
>
);
...
...
@@ -154,7 +119,7 @@
const
editAccount
=
(
row
)
=>
accountFormModalRef
.
value
.
openModal
(
JSON
.
parse
(
JSON
.
stringify
(
row
)));
const
handleDisable
=
async
(
row
)
=>
{
await
ElMessageBox
.
confirm
(
`是否确认
${
row
.
status
==
'enable'
?
'禁用'
:
'启用'
}
该用户?`
,
`是否确认
${
row
.
sta
ff
.
sta
tus
==
'enable'
?
'禁用'
:
'启用'
}
该用户?`
,
'提示'
,
{
confirmButtonText
:
'确认'
,
...
...
@@ -164,13 +129,12 @@
);
// 修改的状态
const
status
=
row
.
status
===
'enable'
?
'disable'
:
'enable'
;
const
status
=
row
.
sta
ff
.
sta
tus
===
'enable'
?
'disable'
:
'enable'
;
await
saveLeaderGroup
({
...
row
,
status
,
...
row
.
staff
,
status
});
row
.
status
=
status
;
row
.
staff
.
status
=
status
;
ElMessage
({
type
:
'success'
,
message
:
`
${
status
==
'enable'
?
'启用'
:
'禁用'
}
成功!`
,
...
...
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