Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
b31a792f
Commit
b31a792f
authored
Jan 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
393197d2
77b659b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
base-manager-ui/admin/src/pages/basicset/surface/modal/AddSurface.vue
...-ui/admin/src/pages/basicset/surface/modal/AddSurface.vue
+20
-11
base-manager-ui/admin/src/pages/basicset/surface/windowskin/WindowSkin.vue
...dmin/src/pages/basicset/surface/windowskin/WindowSkin.vue
+1
-1
No files found.
base-manager-ui/admin/src/pages/basicset/surface/modal/AddSurface.vue
View file @
b31a792f
...
...
@@ -392,10 +392,15 @@ export default {
if
(
valid
)
{
this
.
loading
=
true
;
let
conponentsId
=
document
.
getElementById
(
"
conponentsId
"
);
let
info
=
conponentsId
.
getBoundingClientRect
();
let
width
=
info
.
width
;
let
height
=
info
.
height
;
html2canvas
(
conponentsId
,
{
backgroundColor
:
null
,
useCORS
:
true
,
dpi
:
window
.
devicePixelRatio
*
4
,
//设备像素比
width
:
width
,
height
:
height
,
scale
:
0.9
,
})
.
then
(
async
(
canvas
)
=>
{
...
...
@@ -414,20 +419,24 @@ export default {
let
{
code
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
formData
.
previewImagePath
=
res
.
data
.
url
;
let
result
=
await
skinSave
({
...
this
.
facilityInfo
,
...
this
.
formData
,
});
let
{
code
,
msg
}
=
result
.
data
;
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$emit
(
"
addSkinSuccess
"
);
this
.
backOne
();
}
}
})
.
then
(
async
(
)
=>
{
let
res
=
await
skinSave
({
...
this
.
facilityInfo
,
...
this
.
formData
,
});
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"
图片生成失败,请刷新重试
"
);
console
.
log
(
"
err
"
,
err
);
})
.
finally
(()
=>
{
this
.
loading
=
false
;
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$emit
(
"
addSkinSuccess
"
);
this
.
backOne
();
}
});
}
});
...
...
base-manager-ui/admin/src/pages/basicset/surface/windowskin/WindowSkin.vue
View file @
b31a792f
...
...
@@ -127,7 +127,7 @@ export default {
<
style
lang=
"less"
scoped
>
.window-skin-across {
width: 1000px;
height: 562
.5
px;
height: 562px;
padding: 20px;
background-image: linear-gradient(#26c5ff, #2c66ff);
background-repeat: no-repeat !important;
...
...
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