Commit d0c54ff8 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents fd2652d0 76333111
<template>
<div>
<el-drawer size="70%" :visible.sync="drawer" direction="rtl">
<el-drawer size="1200px" :visible.sync="drawer" direction="rtl">
<div slot="title" class="title flex">
<span
>材料列表(共{{
......@@ -29,7 +29,7 @@
</div>
<div class="for-short">{{ v.materialName }}</div>
<div class="matterDatumList-name">
{{ v.materiaFullName }}
材料全称:{{ v.materiaFullName }}
</div>
<!-- <div class="check-btn" @click.stop>点击查看二维码</div> -->
</div>
......@@ -67,7 +67,7 @@ export default {
api: local.getLocal("baseUrl")
? local.getLocal("baseUrl") + "/"
: "http://192.168.0.98:11078/",
row: 5,
row: 4,
};
},
computed: {
......@@ -102,6 +102,20 @@ export default {
border-top: 1px solid #e0e0e0;
padding: 40px;
padding-top: 0px;
overflow-y: auto;
&::-webkit-scrollbar {
width: 12px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
}
.title {
font-size: 28px;
......@@ -124,35 +138,22 @@ export default {
width: 100%;
height: 100%;
align-content: flex-start;
overflow-y: auto;
&::-webkit-scrollbar {
width: 12px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
.list {
content: "";
width: 19%;
width: 236px;
border: 1px solid transparent;
padding: 5px;
overflow: hidden;
}
}
.matterDatumList-item {
width: 19%;
width: 236px;
margin-top: 40px;
// height: 430px;
.pic-box {
width: 207px;
height: 256px;
width: 236px;
height: 300px;
padding: 16px 24px;
background: #f4f6fc;
border-radius: 16px;
......@@ -169,22 +170,26 @@ export default {
}
}
.for-short {
width: 100%;
margin-top: 18px;
margin-bottom: 8px;
font-size: 24px;
font-family: Source Han Sans CN;
color: #333333;
letter-spacing: 1px;
overflow: hidden;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.matterDatumList-name {
width: 100%;
font-size: 18px;
font-family: Source Han Sans CN;
color: #777777;
line-height: 30px;
text-align: center;
letter-spacing: 1px;
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
......
......@@ -187,7 +187,7 @@ export default {
computed: {
optionLeft() {
return {
direction: 2, // 向左滚动
direction: 2, // 滚动方向
step: 0.5, // 数值越大速度滚动越快
limitMoveNum: 5, // 开启无缝滚动的数据量 设置(数值<=页面展示数据条数不滚)(超过页面展示条数滚动)
openWatch: true, // 开启数据实时监控刷新dom
......@@ -196,7 +196,7 @@ export default {
},
optionTop() {
return {
direction: 1, // 向左滚动
direction: 1, // 滚动方向
step: 0.5, // 数值越大速度滚动越快
limitMoveNum: 4, // 开启无缝滚动的数据量 设置(数值<=页面展示数据条数不滚)(超过页面展示条数滚动)
openWatch: true, // 开启数据实时监控刷新dom
......@@ -442,6 +442,7 @@ export default {
border-radius: 8px;
font-size: 22px;
color: var(--main-theme-color1);
letter-spacing: 2px;
&:nth-child(2n-1) {
background-color: #fff;
}
......@@ -484,18 +485,18 @@ export default {
animation: shadow 6s infinite;
}
.fill-btn-text1 {
animation: ring 6s 20ms infinite;
}
.fill-btn-text2 {
animation: ring 6s 60ms infinite;
}
.fill-btn-text3 {
animation: ring 6s 105ms infinite;
}
.fill-btn-text4 {
animation: ring 6s 145ms infinite;
}
// .fill-btn-text1 {
// animation: ring 6s 20ms infinite;
// }
// .fill-btn-text2 {
// animation: ring 6s 60ms infinite;
// }
// .fill-btn-text3 {
// animation: ring 6s 105ms infinite;
// }
// .fill-btn-text4 {
// animation: ring 6s 145ms infinite;
// }
}
.empty-btn {
width: 284px;
......@@ -524,8 +525,9 @@ export default {
margin-bottom: 4px;
line-height: 45px;
border-radius: 8px;
font-size: 22px;
font-size: 20px;
color: var(--main-theme-color1);
letter-spacing: 2px;
&:nth-child(2n) {
background-color: #f6f9fe;
}
......
......@@ -221,6 +221,7 @@ export default {
font-weight: 500;
line-height: 36px;
color: #333333;
letter-spacing: 1px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
......@@ -235,6 +236,7 @@ export default {
font-family: Source Han Sans CN;
color: #888888;
line-height: 24px;
letter-spacing: 1px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
......@@ -246,7 +248,6 @@ export default {
font-family: Source Han Sans CN;
color: #333333;
line-height: 28px;
.count {
color: #2878ff;
}
......
This diff is collapsed.
......@@ -13,5 +13,6 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script src="./JSSDK.js"></script>
</body>
</html>
......@@ -107,10 +107,11 @@ export default {
}
.page-login {
width: 100%;
background-image: linear-gradient(45deg, #333, #111);
background-size: 40px 40px;
margin: 0;
height: 100%;
height: auto;
.el-form {
margin: auto;
......
......@@ -12,6 +12,14 @@
<img class="sample-sheet-img" :src="api + materialsPreview" />
</div>
</div>
<div slot="footer" class="tac">
<el-button
type="primary"
:loading="loading"
@click="handlePrint(materialsInfo)"
>打 印</el-button
>
</div>
</el-dialog>
</div>
</template>
......@@ -48,15 +56,38 @@ export default {
data() {
return {
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>
<style lang="less" scoped>
/deep/.el-dialog__body {
max-height: 86vh;
:deep(.el-dialog__body) {
height: 78vh;
overflow-y: auto;
&::-webkit-scrollbar {
width: 6px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment