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
d1029e67
Commit
d1029e67
authored
Apr 19, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改切换工作站调接口
parent
c5768522
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
44 deletions
+43
-44
index.vue
pages/index/index.vue
+43
-44
No files found.
pages/index/index.vue
View file @
d1029e67
...
...
@@ -21,7 +21,7 @@
<template
v-else
>
<u-row>
<u-col
span=
"3"
v-for=
"(card, index) in workUnitList"
:key=
"index"
>
<u-card
class=
"station_card"
:show-foot=
"false"
:title=
"'工作单元' + card.workunitCode"
>
<u-card
class=
"station_card"
:show-foot=
"false"
:title=
"'工作单元' + card.workunitCode"
>
<view
class=
"station_card_text"
slot=
"body"
>
{{
'工作单元名称:'
+
card
.
workunitName
}}
<u-button
type=
"primary"
@
click=
"setWorkUnit(card)"
style=
"margin-top: 30rpx"
>
选择
</u-button>
...
...
@@ -65,8 +65,7 @@
width=
"1600rpx"
>
<view
class=
"list-bar"
>
<u-form
label-width=
"100px"
:model=
"curTaskInfo"
>
</u-form>
<u-form
label-width=
"100px"
:model=
"curTaskInfo"
></u-form>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-tr>
...
...
@@ -94,7 +93,6 @@
</scroll-view>
</view>
</u-modal>
</view>
</template>
...
...
@@ -139,7 +137,7 @@ export default {
};
},
created
()
{
this
.
createSocket
()
this
.
createSocket
()
;
uni
.
$on
(
'switchTab'
,
(
indexCode
)
=>
{
this
.
tabIndex
=
indexCode
;
});
...
...
@@ -244,10 +242,10 @@ export default {
// console.log(res, 'res888')
if
(
res
.
code
===
200
)
{
this
.
$u
.
vuex
(
'vuex_printerInfo'
,
{
hostUrl
:
'http://'
+
res
.
data
.
printerIp
+
':'
+
res
.
data
.
printerPort
,
hostUrl
:
'http://'
+
res
.
data
.
printerIp
+
':'
+
res
.
data
.
printerPort
,
printerName
:
res
.
data
.
printerName
});
this
.
createSocket
()
this
.
createSocket
()
;
}
});
this
.
getPrint
();
...
...
@@ -278,6 +276,7 @@ export default {
}
else
if
(
command
==
'workunit'
)
{
this
.
showLogoutMenu
=
false
;
this
.
showWorkstationFlag
=
true
;
this
.
getWorkUnitList
();
}
else
if
(
command
==
'print'
)
{
this
.
showPrintFlag
=
true
;
this
.
getPrint
();
...
...
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