摘要: <script> (function () { var clientwidth = document.documentElement.clientWidth || window.innerWidth; if (clientwidth>750) return // 在标准 375px 适配下,100p 阅读全文
posted @ 2023-01-11 10:38 文磊啊~ 阅读(62) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <el-input class="noborder" @focus="focus" @blur="blur" @input="search" :placeholder="$t('rela.attach.tip')" v-model="searchkey" clear 阅读全文
posted @ 2022-11-23 10:16 文磊啊~ 阅读(327) 评论(0) 推荐(0) 编辑
摘要: config.js.js文件用来封装我们的 basUrl, api.js用来统一管理我们的接口url, http.js中封装axios,添加请求拦截和响应拦截。在请求拦截中,会给请求头添加token字段,还有loading动画的开启。在响应拦截中,可以做一些loading动画的关闭,还有可以根据后端 阅读全文
posted @ 2022-07-19 14:20 文磊啊~ 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 主要是记录这种输入框的宽度自适应剩余空间 import 'dart:async'; import 'package:crm/widgets/iconfont.dart'; import 'package:flutter/material.dart'; import 'package:flutter_ 阅读全文
posted @ 2022-07-06 10:42 文磊啊~ 阅读(787) 评论(0) 推荐(0) 编辑
摘要: drag() { var dragging = false var boxX, boxY, mouseX, mouseY, offsetX, offsetY var box = document.getElementById('box') // 鼠标按下的动作 box.onmousedown = d 阅读全文
posted @ 2022-06-29 10:00 文磊啊~ 阅读(496) 评论(0) 推荐(0) 编辑
摘要: function D(t) { if (!t) return; const e = t.xxx; $(".top-toolbar").children().each((function() { const i = $(this); switch (i.attr("title")) { case "你 阅读全文
posted @ 2022-06-24 16:19 文磊啊~ 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 其实他是有配置可开启双击编辑的,在ReportTable.js里有readonly属性置为false即可,但是我没弄明白怎么拿编辑后的值,就自己加了双击事件 选择了在特殊一点的数据集处理代码中去加双击操作 // 监听表格的双击编辑事件对值处理 ==>nwl var oldVal = ''; var 阅读全文
posted @ 2022-06-20 10:24 文磊啊~ 阅读(279) 评论(0) 推荐(0) 编辑
摘要: <!-- 大图预览 --> <div class="bigPicBox" id="bigPicBox" onmousewheel='mousewheel(event)'> <div class="bigPicBox_mask" onclick="hidenImg()"></div> <span cl 阅读全文
posted @ 2022-04-18 15:52 文磊啊~ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="slider-captcha" :style="{width:width,height:height}" :class="activeClass"> <div class="bg"></div> <div class="slidermask" :styl 阅读全文
posted @ 2022-03-17 11:37 文磊啊~ 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 一、安装依赖 # 生产依赖 dependencies: azlistview: ^0.1.2 #选择城市 lpinyin: ^1.0.7 二、主页面 import 'dart:convert'; import 'package:azlistview/azlistview.dart'; import 阅读全文
posted @ 2022-02-25 16:32 文磊啊~ 阅读(597) 评论(0) 推荐(0) 编辑