| | |
| | | function setRem () { |
| | | //当前页面宽度相对于1920px屏幕宽的缩放比例,可根据自己需要修改。 |
| | | let scale = document.documentElement.clientWidth / 1920; |
| | | console.log(scale,2222) |
| | | //设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整) |
| | | document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px' |
| | | } |
| | |
| | | handleFileSuccess(response, file, fileList) { |
| | | console.log(response, 666666); |
| | | if (response.code == 500) { |
| | | console.log(22222222222); |
| | | const errorList = response.data.list.join(", "); |
| | | this.$confirm(`${errorList}`, "以下人员信息有误,请核对后导入:", { |
| | | confirmButtonText: "确定", |
| | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | <script> |
| | | |
| | | import { getCodeImg, getconfigKey } from "@/api/login"; |
| | | import Cookies from "js-cookie"; |
| | | import { encrypt, decrypt } from '@/utils/jsencrypt' |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | console.log(2222) |
| | | if (selection.length > 1) { |
| | | let del_row = selection.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | |
| | | console.log(11111); |
| | | return callback(""); |
| | | } else if (value != undefined && value != "") { |
| | | console.log(22222); |
| | | return callback(); |
| | | } else if (!patter.test(value)) { |
| | | console.log(33333); |