摘要: { "workbench.iconTheme": "material-icon-theme", "vetur.validation.template": true, "vsicons.dontShowNewVersionMessage": true, "editor.minimap.enabled" 阅读全文
posted @ 2019-01-24 11:47 鄢宁 阅读(839) 评论(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 鄢宁 阅读(292) 评论(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 鄢宁 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 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 鄢宁 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.一般情况使用都是在app.vue配置为: provide () {return {isTest: this}}, 2.所有子组件都可以引用 拿到app.vue里面的所有数据 inject: ['isTest'], 阅读全文
posted @ 2019-01-24 11:37 鄢宁 阅读(148) 评论(0) 推荐(0) 编辑
摘要: @keyup.native.enter="cardReading" 阅读全文
posted @ 2019-01-24 11:34 鄢宁 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 一般情况导致无法触发子组件的方法 基本都是由于子组件未渲染完成 就进行了调用,解决方法如下: 1.加定时器 setTimeout(() => { //加定时器原因是,子组件页面未渲染处理就做子组件的请求导致失败,稍微延时一下就可解决问题 this.$refs.patientRefInfo.epihS 阅读全文
posted @ 2019-01-24 11:32 鄢宁 阅读(1517) 评论(0) 推荐(0) 编辑