From 696fd55ecc1243bce1d421d95cb9fba4b0a598b1 Mon Sep 17 00:00:00 2001 From: yyt <306727702@qq.com> Date: 星期三, 22 五月 2024 18:43:41 +0800 Subject: [PATCH] 380新产品,优化 --- jcdm-ui/src/views/main/kb/crankshaft/index.vue | 43 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 38 insertions(+), 5 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/crankshaft/index.vue b/jcdm-ui/src/views/main/kb/crankshaft/index.vue index c29e4b7..82fbb3f 100644 --- a/jcdm-ui/src/views/main/kb/crankshaft/index.vue +++ b/jcdm-ui/src/views/main/kb/crankshaft/index.vue @@ -3,11 +3,7 @@ <el-card class="box-card" style="height: 60px" > <template> <div class="container" type="flex" justify="center" style="text-align:center"> - <!-- <el-row type="flex" justify="center" style="text-align:center;height: 12px" >--> - <!-- <el-col type="flex" justify="center" :span="14" style="text-align:center">--> - <el-divider><span style="font-size:30px;color:black"><strong>鏇茶酱鐮佹壂鐮佷笂绾�</strong></span></el-divider> - <!-- </el-col>--> - <!-- </el-row>--> + <el-divider><span style="font-size:30px;color:black"><strong>鏇茶酱鎵爜涓婄嚎</strong></span></el-divider> </div> </template> </el-card> @@ -67,6 +63,8 @@ <span class="el-icon-thumb" style="font-size:40px;color:black"></span> <span style="font-size:45px;color:black"><strong>寮哄埗涓婄嚎</strong></span> </el-button> +<!-- <el-button @click="print">鎵撳嵃</el-button>--> +<!-- <el-button @click="test1">鐢熸垚浜岀淮鐮�</el-button>--> </el-col> </el-row> </el-card> @@ -98,6 +96,7 @@ import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo"; import { setSNCode } from "@/api/main/da/opcuaconfig/opcuaconfig"; import {getIp, listStationConf} from "@/api/main/sc/stationConf"; +import QRCode from "qrcodejs2"; export default { components: { }, @@ -213,6 +212,40 @@ parseQRCode(code) { this.form.engineNo = code; }, + // print() { + // 鏈〉闈㈢洿鎺ユ墦鍗帮紙鏈塨ug鍗曞瞾鍏堜笉瑕佸垹锛� + // let oldStr = window.document.body.innerHTML; + // let newStr = document.getElementById('printMe').innerHTML; + // document.body.innerHTML = newStr; + // window.print(); + // document.body.innerHTML = oldStr; + // return false; + + // 鏂板紑椤甸潰鎵撳嵃 + // document.getElementById('canvasWrapper').innerHTML = ''; + // let newStr = document.getElementById('printMe').innerHTML; + // let newWin = window.open('', '_blank'); + // newWin.document.body.innerHTML = newStr; + // newWin.print(); + // return false; + // }, + // test1(){ + // document.getElementById('canvasWrapper').innerHTML = '' + // this.$nextTick(() => { + // let qrCode = new QRCode('canvasWrapper',{ + // width: 80, + // height: 80, + // padding: 0, + // margin: 0, + // // text: this.packCode, + // text:"88888", + // colorDark: '#000', + // colorLight: '#fff' + // }) + // }) + // // console.log(this.packCode) + // // this.print() + // }, }, } -- Gitblit v1.9.3