Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
76333111
Commit
76333111
authored
Dec 02, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:新增公共库预览打印
parent
88a25a20
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2516 additions
and
4 deletions
+2516
-4
sample-form-manager-ui/admin/public/JSSDK.js
sample-form-manager-ui/admin/public/JSSDK.js
+2479
-0
sample-form-manager-ui/admin/public/index.html
sample-form-manager-ui/admin/public/index.html
+1
-0
sample-form-manager-ui/admin/src/pages/login/login.vue
sample-form-manager-ui/admin/src/pages/login/login.vue
+2
-1
sample-form-manager-ui/admin/src/pages/software/librarymanage/modal/PreviewMaterals.vue
...rc/pages/software/librarymanage/modal/PreviewMaterals.vue
+34
-3
No files found.
sample-form-manager-ui/admin/public/JSSDK.js
0 → 100644
View file @
76333111
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/public/index.html
View file @
76333111
...
@@ -13,5 +13,6 @@
...
@@ -13,5 +13,6 @@
</noscript>
</noscript>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
<script
src=
"./JSSDK.js"
></script>
</body>
</body>
</html>
</html>
sample-form-manager-ui/admin/src/pages/login/login.vue
View file @
76333111
...
@@ -107,10 +107,11 @@ export default {
...
@@ -107,10 +107,11 @@ export default {
}
}
.page-login {
.page-login {
width: 100%;
background-image: linear-gradient(45deg, #333, #111);
background-image: linear-gradient(45deg, #333, #111);
background-size: 40px 40px;
background-size: 40px 40px;
margin: 0;
margin: 0;
height:
100%
;
height:
auto
;
.el-form {
.el-form {
margin: auto;
margin: auto;
...
...
sample-form-manager-ui/admin/src/pages/software/librarymanage/modal/PreviewMaterals.vue
View file @
76333111
...
@@ -12,6 +12,14 @@
...
@@ -12,6 +12,14 @@
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"tac"
>
<el-button
type=
"primary"
:loading=
"loading"
@
click=
"handlePrint(materialsInfo)"
>
打 印
</el-button
>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -48,15 +56,38 @@ export default {
...
@@ -48,15 +56,38 @@ export default {
data
()
{
data
()
{
return
{
return
{
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
val
:
""
,
loading
:
false
,
};
};
},
},
methods
:
{
handlePrint
(
info
)
{
let
_this
=
this
;
_this
.
loading
=
true
;
/* eslint-disable */
device
.
printer
({
papertype
:
"
A4
"
,
printername
:
""
,
// 打印机名称 为空则为默认打印机
printertype
:
"
url
"
,
// base64 ,normal,url
url
:
info
.
fileUrl
,
// url
success
:
(
res
)
=>
{
if
(
res
&&
res
.
code
==
"
00000
"
)
{
_this
.
$message
.
success
(
"
打印成功
"
);
_this
.
loading
=
false
;
}
},
fail
:
(
err
)
=>
{
_this
.
$message
.
error
(
err
.
Message
);
_this
.
loading
=
false
;
},
});
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
/deep/.el-dialog__body
{
:deep(.el-dialog__body)
{
max-height: 86
vh;
height: 78
vh;
overflow-y: auto;
overflow-y: auto;
&::-webkit-scrollbar {
&::-webkit-scrollbar {
width: 6px;
width: 6px;
...
...
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