Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
5d7434f3
Commit
5d7434f3
authored
Jul 02, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作中心默认选第一个
parent
34888448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
index.vue
pages/index/index.vue
+7
-6
No files found.
pages/index/index.vue
View file @
5d7434f3
...
...
@@ -118,7 +118,7 @@ export default {
data
()
{
return
{
tabIndex
:
'PRO'
,
showWorkstationFlag
:
tru
e
,
showWorkstationFlag
:
fals
e
,
showPrintFlag
:
false
,
showLogoutMenu
:
false
,
activeProcess
:
null
,
...
...
@@ -136,7 +136,7 @@ export default {
currentFlag
:
0
};
},
created
()
{
async
created
()
{
this
.
createSocket
();
uni
.
$on
(
'switchTab'
,
(
indexCode
)
=>
{
this
.
tabIndex
=
indexCode
;
...
...
@@ -145,8 +145,9 @@ export default {
this
.
handleCommand
(
'workunit'
);
});
this
.
checkWorkstation
();
this
.
getWorkUnitList
();
// this.checkWorkstation();
await
this
.
getWorkUnitList
();
this
.
setWorkUnit
(
this
.
workUnitList
[
0
])
},
destroyed
()
{
uni
.
$off
(
'switchTab'
);
...
...
@@ -200,8 +201,8 @@ export default {
}
});
},
getWorkUnitList
(
item
)
{
this
.
$u
.
api
.
getWorkUnitList
({}).
then
((
res
)
=>
{
async
getWorkUnitList
(
item
)
{
await
this
.
$u
.
api
.
getWorkUnitList
({}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
workUnitList
=
res
.
rows
;
}
else
{
...
...
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