Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
b52929e9
Commit
b52929e9
authored
Mar 31, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 操作单操作日志
parent
7dd60816
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
src/components/LogList.vue
+3
-0
src/views/order/factoryOrderNew/component/CardLayout.vue
+30
-2
No files found.
src/components/LogList.vue
View file @
b52929e9
...
...
@@ -32,9 +32,12 @@ defineProps({
.
log
-
list
{
height
:
500
px
;
overflow
:
auto
;
font
-
size
:
14
px
;
}
.
log
-
item
{
line
-
height
:
26
px
;
white
-
space
:
pre
-
wrap
;
word
-
break
:
break
-
all
;
}
.
log
-
item
div
:
not
(:
last
-
child
)
{
margin
-
right
:
6
px
;
...
...
src/views/order/factoryOrderNew/component/CardLayout.vue
View file @
b52929e9
...
...
@@ -95,7 +95,11 @@
>
{{
item
.
customizedQuantity
===
1
?
'单'
:
'多'
}}
</div>
<Icon
name=
"caozuorizhi"
style=
"width: 28px; height: 28px"
>
<Icon
name=
"caozuorizhi"
style=
"width: 28px; height: 28px"
@
click
.
stop=
"openLogDialog(item)"
>
<template
#
title
>
<title>
操作日志
</title>
</
template
>
...
...
@@ -211,16 +215,27 @@
@
current-change=
"onCurrentPageChange"
/>
</div>
<el-dialog
v-model=
"logVisible"
title=
"操作日志"
width=
"1000px"
:close-on-click-modal=
"false"
>
<LogList
:log-list=
"logList"
/>
<div
v-if=
"!logList.length"
class=
"empty-content"
>
暂无数据
</div>
</el-dialog>
</div>
</template>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
import
{
ElMessage
}
from
'element-plus'
import
{
getCardLayoutListApi
}
from
'@/api/factoryOrderNew'
import
{
getCardLayoutListApi
,
getFactoryOrderNewLogApi
}
from
'@/api/factoryOrderNew'
import
type
{
PaginationData
}
from
'@/types/api'
import
usePageList
from
'@/utils/hooks/usePageList'
import
{
operateOrderListData
}
from
'@/types/api/factoryOrderNew'
import
type
{
LogListData
}
from
'@/types/api/order'
import
LogList
from
'@/components/LogList.vue'
import
platformJson
from
'../../../../json/platform.json'
const
props
=
defineProps
<
{
...
...
@@ -255,6 +270,8 @@ const {
})
const
selectedItems
=
ref
<
operateOrderListData
[]
>
([])
const
logVisible
=
ref
(
false
)
const
logList
=
ref
<
LogListData
[]
>
([])
const
isSelected
=
(
item
:
operateOrderListData
)
=>
selectedItems
.
value
.
some
((
s
)
=>
s
.
id
===
item
.
id
)
...
...
@@ -274,6 +291,17 @@ const copyText = (text: string) => {
ElMessage
.
success
(
'复制成功'
)
}
const
openLogDialog
=
async
(
item
:
operateOrderListData
)
=>
{
if
(
!
item
.
podOrderId
)
return
try
{
const
res
=
await
getFactoryOrderNewLogApi
(
item
.
podOrderId
as
number
)
logList
.
value
=
(
res
.
data
||
[])
as
unknown
as
LogListData
[]
logVisible
.
value
=
true
}
catch
(
e
)
{
// ignore
}
}
const
clearSelection
=
()
=>
{
selectedItems
.
value
=
[]
emit
(
'selection-change'
,
[])
...
...
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