Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
43bb188f
Commit
43bb188f
authored
Dec 08, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 管理员也有聊天页面
parent
460bc50f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
AddressBookList.vue
src/views/withMenu/AddressBook/AddressBookList.vue
+10
-6
No files found.
src/views/withMenu/AddressBook/AddressBookList.vue
View file @
43bb188f
...
...
@@ -13,6 +13,12 @@
"
>
</AddressBookItem>
</List>
<div
v-if=
"!loading && list.length === 0"
class=
"text-center text-sm mt-20 text-app-txt"
>
无联系人
</div>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
staffGetUsers
}
from
"@/service/StaffService"
;
...
...
@@ -32,10 +38,6 @@ const page = ref(1);
const
pageSize
=
ref
(
10
);
const
total
=
ref
(
0
);
const
userMsg
=
getUserMsg
();
const
isStaff
=
userMsg
?.
role
===
eRole
.
staff
;
const
isUser
=
userMsg
?.
role
===
eRole
.
user
;
async
function
staffLoadCustoms
()
{
const
ret
=
await
staffGetUsers
({
is_desc
:
true
,
...
...
@@ -73,9 +75,11 @@ async function userLoadAccountManager() {
}
async
function
onLoad
()
{
if
(
isStaff
)
{
const
userMsg
=
getUserMsg
();
if
(
userMsg
?.
role2
===
eRole
.
manager
||
userMsg
?.
role2
===
eRole
.
staff
)
{
staffLoadCustoms
();
}
else
if
(
isUser
)
{
}
else
{
userLoadAccountManager
();
}
loading
.
value
=
false
;
...
...
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