上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 124 下一页
摘要: 单纯判断是否包含 var arr = [ { key:1, name: '牛百叶' }, { key:2, name: '虾滑' } ]; // bool 为true说明数组中包含这个对象 为false则不包含 var bool1 = arr.some(item=> item.name == '虾滑 阅读全文
posted @ 2023-02-03 15:53 ThisCall 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 地址1 地址2 阅读全文
posted @ 2023-01-11 10:27 ThisCall 阅读(57) 评论(0) 推荐(0) 编辑
摘要: this.$nextTick(() => { this.$refs.navBox.scrollTop = 0; }); 或 this.$nextTick(() => { let scrollElem = this.$refs.scrollDiv; scrollElem.scrollTo({ top: 阅读全文
posted @ 2022-12-06 17:06 ThisCall 阅读(536) 评论(0) 推荐(0) 编辑
摘要: html, body, #app, .wrapper { width: 100%; height: 100%; /* overflow: hidden; */ -webkit-filter : grayscale(100%); -moz-filter: grayscale(100%); -o-fil 阅读全文
posted @ 2022-12-01 09:47 ThisCall 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 新开的窗口 created () { // 监听页面关闭 window.onbeforeunload = this.beforeDestroyFn; }, methods: { beforeDestroyFn () { console.log('shaqk') window.opener.postM 阅读全文
posted @ 2022-11-28 17:06 ThisCall 阅读(198) 评论(0) 推荐(0) 编辑
摘要: <van-field clickable name="XXXX" is-link readonly :value="statusValue" placeholder="请选择是否油库" @click="showStatusFn" :rules="[{ required: true, message: 阅读全文
posted @ 2022-11-22 18:04 ThisCall 阅读(2533) 评论(0) 推荐(0) 编辑
摘要: downloadFile(url, "电子作业票APP.jpg"); // fileRealPath 文件全路径 // fileName 文件名带格式的 export function downloadFile(fileRealPath, fileName) { let link = documen 阅读全文
posted @ 2022-11-04 11:47 ThisCall 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 调用 this.$download.url('/api/v1/org/question/exportData', datVal, `${this.questMess.name}.xlsx`); js文件 import { saveAs } from 'file-saver' import axios 阅读全文
posted @ 2022-11-04 11:38 ThisCall 阅读(209) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios' import { getToken } from '@/utils/util' // 文件流转blob对象下载 var baseURL = '' if (process.env.NODE_ENV == 'production') { baseURL 阅读全文
posted @ 2022-11-04 11:31 ThisCall 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.通用组件封装dialogImg.vue <template> <div> <el-dialog v-show="isShow" :visible.sync="isShow" width="50%" @close="seePicUrl = ''" append-to-body style="tex 阅读全文
posted @ 2022-11-04 11:29 ThisCall 阅读(652) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 124 下一页