防抖 使用Lodash 工具库 引入 import _ from 'lodash' testMesssge: _.debounce(function() { console.log('22') }, 500) 节流 testMesssge: _.debounce(function() { conso Read More
posted @ 2020-10-21 14:14 Kipper_liu Views(79) Comments(0) Diggs(0)
let arr = ['CP12', 'CP123', 'CP124', 'CP125'] //需要筛选的数据 let arrfilterlen = []// 截取的length let arrsubstring = []// 转换数组 arr.map((item) => { arrfilterle Read More
posted @ 2020-09-15 16:26 Kipper_liu Views(158) Comments(0) Diggs(0)
arrlist: [1, 2, 3, 5, 2, 3, '1'] // 得到 [1,5,'1'] let newArr = [] let spliceArr = [] // 使用set进行数组去重 newArr = [...new Set(this.arrlist)] let newarr2 = n Read More
posted @ 2020-06-09 11:05 Kipper_liu Views(421) Comments(0) Diggs(0)
主要板块-菜单栏 【首页】-1【工作台】-2【日程】 【基本信息管理】- 3【患者基本信息登记】- 4【患者基本信息管理】 【挂号管理】-5【门诊挂号】-6【门诊挂号维护】-7【预约维护】-8【预约查询】 【收费管理】-9【门诊收费】-10【门诊退费】-11【门诊退费申请】-12【门诊退费申请审核】 Read More
posted @ 2020-03-04 16:36 Kipper_liu Views(1219) Comments(0) Diggs(0)
需求:组合退费,payTypeArr 是父组件传的支付方式, v-model:item.money输入退费金额,退费弹框是子组件,框架element-ui 解决: @change 不能触发 用的@input 监听 ,问题就在v-model上 子组件data定义 payTypeArr对象 问题解决了 Read More
posted @ 2019-11-14 11:27 Kipper_liu Views(1182) Comments(0) Diggs(0)
闲着没事弄个小程序练练手 整理下方便日后看 用的是iview-webapp ui插件,框架mpvue,看mpvue api 就能搭建一个小demo 上手很快 先整理一个小坑 小程序不支持select 标签, 刚好ui 插件也没得,看了下小程序是用picker 替代了select 看着api 就写了一 Read More
posted @ 2018-11-02 16:03 Kipper_liu Views(1046) Comments(0) Diggs(0)
管理系统三个不同样式不同内容的左侧导航栏就懒得自己写用的这个插件 插件太多api有的不是很全面查起来浪费时间自己整理下 api: http://www.treejs.cn/v3/demo.php#_114 去掉前面的加减符号 找到 jquery.ztree.core.js 1258行 注释就可以了 Read More
posted @ 2018-06-22 11:08 Kipper_liu Views(6110) Comments(0) Diggs(0)
post请求在config -> index.js 下 1:pathRewrite 重定向进行删除 proxyTable: { '/api': { target: 'http://xxxxxx/', changeOrigin: true, /* pathRewrite: { '^/api': '' Read More
posted @ 2018-03-18 21:58 Kipper_liu Views(201) Comments(0) Diggs(0)
vue-cli脚手架构建了项目如何去除Eslint验证 1.创建工程的时候,提示是否启用eslint检测的。 Use ESLint to lint your code? No 2.在webpack.base.conf.js里面删掉下面: 1 2 3 4 5 6 7 8 9 { test: /\.(j Read More
posted @ 2018-03-18 21:49 Kipper_liu Views(85) Comments(0) Diggs(0)
/* $(document).on('click','.td_v',function () { window.location.href = gPages['single']+'&toneId='+$(this).attr('toneId'); })*/ /* $(document).live('c Read More
posted @ 2017-12-20 11:01 Kipper_liu Views(109) Comments(0) Diggs(0)