![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
封装组件
靓靓的圆子
这个作者很懒,什么都没留下…
展开
-
time.js 时间的封装
time.js时间的封装原创 2022-08-25 16:24:06 · 542 阅读 · 0 评论 -
用v-html来实现双向绑定
<div ref="EdInnerHTML" style="border: 1px solid #acbce8 !important;border-radius: 4px !important;padding: 4px 10px !important;color: #606266;" contenteditable="true" v-html="EduDrugList" @input="changeText"></div>用contenteditable原创 2022-02-09 17:01:01 · 809 阅读 · 0 评论 -
带建议的输入框,显示不全要带tooltip提示,禁止自定义条目
<el-autocomplete style="width: 98%;" size="mini" v-model="scope.row.Drug.value" :fetch-suggestions=" (queryString, cb) => { querySearchAsync(queryString, cb, 1); } " @blur="onInputBlur(scope.row.Drug)" placeholder="请输入药品名称"原创 2022-01-21 15:04:04 · 549 阅读 · 0 评论 -
vue获取登录设备,和浏览器
写了以下的一个ststemTool.js文件// get browerexport function GetCurrentBrowser () { let ua = navigator.userAgent.toLocaleLowerCase() let browserType = null if (ua.match(/msie/) != null || ua.match(/trident/) != null) { browserType = 'IE' } el原创 2021-11-30 14:45:21 · 1687 阅读 · 0 评论 -
排序,去重,合并 --用的el-select可以搜索的下拉框,因为数据多,调接口只调了200条,就无法回显
1,用的el-select可以搜索的下拉框,因为数据多,默认加载下拉框数据调接口只调了200条,但是远程搜索可以搜到所有的数据,比如搜索到了201条,Code是3322,当时正常,页面要求的是到其他页面再回来的时候,要显示之前筛选过的数据,就做了存储之前的筛选条件(也就是Code为3322这条数据)。那再次进来页面回显的时候,在200条内就找不到3322的code,就回显不出来。2,想到的解决办法是合并200条的数据数组和存储的数组,再去重,剩下的就是201条数据在下拉框中了,这样就可以回显了3,在能原创 2021-11-18 15:18:57 · 703 阅读 · 0 评论 -
封装组件引入和打印结果
1,写了一个time.js文件//获取当前时间export function DefaultDisplayLastMonth() { //修改数据date let currentTime = '' currentTime = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " +原创 2021-01-07 14:31:53 · 75 阅读 · 0 评论