posted @ 2023-12-01 15:28
随笔分类 - vue
摘要:vue项目 新建文件sessionTime.js 文件 /** @desc storage相关 */ // type TStorageItem = { // value: any // expire: string|number // time: Date // }; // type = 'loca
阅读全文
摘要:需要 npm install vue-pdf 和 npm install pdfjs-dist,新建js文件 pdtToImg.js: import pdf from "vue-pdf"; import JsPDF from 'pdfjs-dist'; const PDFJS = require('
阅读全文
posted @ 2023-12-01 15:22
摘要:handlePara(){ if(this.linkUrl){ // tempArr 是一个字符串数组 格式是["key=value", "key=value", ...] this.tempArr = this.linkUrl.split("?")[1]; if (this.tempArr !=
阅读全文
posted @ 2022-12-02 15:15
摘要:<el-cascader size="large" :options="options" placeholder="请选择地区" expand-trigger="hover" ref="cascaderAddr" v-model="selectedOptions" @change="handleCh
阅读全文
posted @ 2022-08-22 13:44
摘要:creatQrCode(hospitalId,ref,qrcodeWid) {//生成二维码 var qrcode ='' qrcode = new QRCode(ref, { text: hospitalId, // 需要转换为二维码的内容 width: qrcodeWid, height: qr
阅读全文
posted @ 2022-08-22 13:36
摘要:getTime(){ let timess = new Date(); const formTime = { y: timess.getFullYear(), m: timess.getMonth() + 1, d: timess.getDate(), h: timess.getHours(), s
阅读全文
posted @ 2022-08-22 13:35