随笔 - 112,  文章 - 0,  评论 - 2,  阅读 - 93932
01 2019 档案
VS code 代码格式整理的配置
摘要:{ "workbench.iconTheme": "material-icon-theme", "vetur.validation.template": true, "vsicons.dontShowNewVersionMessage": true, "editor.minimap.enabled" 阅读全文
posted @ 2019-01-24 11:47 鄢宁 阅读(858) 评论(0) 推荐(0) 编辑
判断路由的路径和当前标签是否相同 的方法
摘要:$route (to, from) {if (to.name == 'infant-birth-registration') {this.inpatNum = this.$route.params.getVal ? this.$route.params.getVal.inpatNum : ''if 阅读全文
posted @ 2019-01-24 11:44 鄢宁 阅读(294) 评论(0) 推荐(0) 编辑
小知识
摘要:1.时间格式的处理 new Date().format('yyyy-MM-dd hh:mm:ss') 2.保留两位小数的方法 element.recTime = element.recTime.toFixed(2) 3.如何判断一个对象为空的方法 JSON.stringify(this.getEch 阅读全文
posted @ 2019-01-24 11:39 鄢宁 阅读(209) 评论(0) 推荐(0) 编辑
vue iview render里面写时间截取
摘要:render: (h, params) => {params.row.execDate = (params.row.execDate ? params.row.execDate.substr(0, 10) : '')return h('div', {props: {},}, params.row.e 阅读全文
posted @ 2019-01-24 11:38 鄢宁 阅读(163) 评论(0) 推荐(0) 编辑
vue 高阶 provide/inject
摘要:1.一般情况使用都是在app.vue配置为: provide () {return {isTest: this}}, 2.所有子组件都可以引用 拿到app.vue里面的所有数据 inject: ['isTest'], 阅读全文
posted @ 2019-01-24 11:37 鄢宁 阅读(149) 评论(0) 推荐(0) 编辑
enter事件处方方法
摘要:@keyup.native.enter="cardReading" 阅读全文
posted @ 2019-01-24 11:34 鄢宁 阅读(107) 评论(0) 推荐(0) 编辑
vue 关于父组件无法触发子组件的事件的解决方法
摘要:一般情况导致无法触发子组件的方法 基本都是由于子组件未渲染完成 就进行了调用,解决方法如下: 1.加定时器 setTimeout(() => { //加定时器原因是,子组件页面未渲染处理就做子组件的请求导致失败,稍微延时一下就可解决问题 this.$refs.patientRefInfo.epihS 阅读全文
posted @ 2019-01-24 11:32 鄢宁 阅读(1563) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示