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
3e79a980
Commit
3e79a980
authored
Sep 09, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/lin-task' into dev
parents
ecaab0cf
f56cf599
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
5 deletions
+41
-5
src/api/logistics.ts
+5
-2
src/assets/images/分拣口说明.png
+0
-0
src/types/api/logistics.ts
+2
-2
src/utils/hooks/useImagePreview..ts
+34
-1
src/views/logistics/sortingConfiguration.vue
+0
-0
No files found.
src/api/logistics.ts
View file @
3e79a980
...
...
@@ -467,11 +467,14 @@ export function updateSortingApi(data: IsortingInfo) {
data
,
)
}
export
function
deleteSortingApi
(
ids
:
string
)
{
export
function
deleteSortingApi
(
params
:
{
ids
:
string
type
:
string
|
number
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'logistics/sortingConfig/delete'
,
{
params
:
{
ids
}
,
params
,
},
)
}
...
...
src/assets/images/分拣口说明.png
0 → 100644
View file @
3e79a980
59.3 KB
src/types/api/logistics.ts
View file @
3e79a980
...
...
@@ -19,4 +19,5 @@ export interface IsortingInfo {
sortingArea
:
number
|
null
sortingAreaName
?:
string
|
null
serviceCode
:
string
|
null
}
\ No newline at end of file
type
?:
string
|
number
}
src/utils/hooks/useImagePreview..ts
View file @
3e79a980
...
...
@@ -37,11 +37,19 @@ export default function useImagePreview() {
}
}
const
mouseoverImg
=
(
ev
:
MouseEvent
,
url
:
string
)
=>
{
const
mouseoverImg
=
(
ev
:
MouseEvent
,
url
:
string
,
newWitdh
?:
string
,
newBorder
?:
boolean
,
positionBOOTTOM
?:
boolean
,
)
=>
{
ev
.
preventDefault
()
if
(
show
.
value
===
true
)
return
img
.
src
=
url
img
.
style
.
backgroundColor
=
'#eee'
if
(
newBorder
)
img
.
style
.
border
=
'1px solid #eee'
if
(
newWitdh
)
img
.
style
.
width
=
newWitdh
const
cW
=
document
.
body
.
clientWidth
const
cH
=
document
.
body
.
clientHeight
const
cX
=
ev
.
clientX
...
...
@@ -55,6 +63,31 @@ export default function useImagePreview() {
div
.
style
.
left
=
x
+
'px'
div
.
style
.
top
=
y
+
'px'
div
.
style
.
display
=
'block'
if
(
positionBOOTTOM
)
{
// 获取图片实际尺寸
const
imgWidth
=
img
.
clientWidth
const
imgHeight
=
img
.
clientHeight
// 计算新位置(鼠标正下方)
let
x
=
cX
/
2
let
y
=
cY
+
150
// 20px 垂直偏移
// 边界检测
if
(
x
+
imgWidth
>
cW
)
{
x
=
cW
-
imgWidth
-
10
}
if
(
x
<
0
)
{
x
=
10
}
if
(
y
+
imgHeight
>
cH
)
{
y
=
cY
-
imgHeight
-
20
}
if
(
y
<
0
)
{
y
=
10
}
div
.
style
.
left
=
x
+
'px'
div
.
style
.
top
=
y
+
'px'
}
show
.
value
=
true
currentTarget
=
ev
.
currentTarget
as
HTMLElement
window
.
addEventListener
(
'mousemove'
,
mousemoveHandler
)
...
...
src/views/logistics/sortingConfiguration.vue
View file @
3e79a980
This diff is collapsed.
Click to expand it.
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