Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-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
mes
mes-ui
Commits
b9bf8ecb
Commit
b9bf8ecb
authored
Mar 06, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9cbd2448
bea772d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
8 deletions
+43
-8
index.vue
src/views/mes/tm/toolrequest/index.vue
+43
-8
No files found.
src/views/mes/tm/toolrequest/index.vue
View file @
b9bf8ecb
...
@@ -81,17 +81,16 @@
...
@@ -81,17 +81,16 @@
@
click=
"handleAdd"
@
click=
"handleAdd"
v-hasPermi=
"['tm:tmToolRequest:add']"
v-hasPermi=
"['tm:tmToolRequest:add']"
>
新增
</el-button>
>
新增
</el-button>
</el-col>
<!--
<el-button
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
type=
"success"
plain
plain
icon=
"el-icon-edit"
icon=
"el-icon-edit"
size=
"mini"
size=
"mini"
:disabled=
"single"
@
click=
"handlePrint"
@
click=
"handleUpdate"
>
打印
</el-button>
-->
v-hasPermi=
"['tm:tmToolRequest:edit']"
</el-col>
>
修改
</el-button>
<!--
<el-col
:span=
"1.5"
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
...
@@ -274,8 +273,33 @@
...
@@ -274,8 +273,33 @@
import
{
listTmToolRequest
,
getTmToolRequest
,
delTmToolRequest
,
addTmToolRequest
,
updateTmToolRequest
}
from
"@/api/mes/tm/tmToolRequest"
;
import
{
listTmToolRequest
,
getTmToolRequest
,
delTmToolRequest
,
addTmToolRequest
,
updateTmToolRequest
}
from
"@/api/mes/tm/tmToolRequest"
;
import
itemline
from
"./itemIndex.vue"
;
import
itemline
from
"./itemIndex.vue"
;
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
import
{
io
}
from
"socket.io-client"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
SelectTask
from
"./selectTask.vue"
;
import
SelectTask
from
"./selectTask.vue"
;
const
socket
=
io
(
"http://192.168.23.19:17521"
,
{
transports
:
[
"websocket"
],
auth
:
{
token
:
"Bearer "
+
getToken
(),
// 在此处填入你 client 设置的 token,缺省可留空
}
,
}
);
socket
.
on
(
"connect"
,
()
=>
{
globalThis
.
connect
=
true
;
console
.
log
(
'连接成功444'
)
// TODO: Do something for your project
}
);
socket
.
on
(
"clients"
,
(
clients
)
=>
{
globalThis
.
clients
=
clients
;
console
.
log
(
clients
,
'clients'
)
}
);
socket
.
on
(
"printerList"
,
(
printerList
)
=>
{
globalThis
.
printerList
=
printerList
;
console
.
log
(
printerList
,
'printerList'
)
}
)
export
default
{
export
default
{
name
:
"TmToolRequest"
,
name
:
"TmToolRequest"
,
components
:
{
itemline
,
SelectTask
}
,
components
:
{
itemline
,
SelectTask
}
,
...
@@ -348,9 +372,20 @@ export default {
...
@@ -348,9 +372,20 @@ export default {
}
;
}
;
}
,
}
,
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
}
,
}
,
methods
:
{
methods
:
{
handlePrint
()
{
console
.
log
(
socket
.
emit
(
"getClients"
),
'getClients'
)
socket
.
emit
(
"news"
,
{
client
:
null
,
printer
:
null
,
type
:
"url_pdf"
,
pdf_path
:
'http://192.168.23.19:8081/static/123.pdf'
,
}
);
}
,
/** 查询刀模板申请单列表 */
/** 查询刀模板申请单列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
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