![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
xiaogc_a
这个作者很懒,什么都没留下…
展开
-
页面日期查询问题处理
页面传递过来的是标准时间(yyyy-MM-dd’T’HH:mm:ss.SSSXXX),换成北京时间需要加上8个小时 例子: 后端DTO对象: public void setEndTime(String endTime) { this.endTime=endTime; if(StringUtils.isBlank(endTime)) { thi...原创 2019-12-03 17:41:05 · 294 阅读 · 0 评论 -
VUE定义全局变量、VUE页面按钮控制
VUE 全局变量有好几种实现方式, 现在只记录项目中用到的一个, 将全局变量模块挂载到Vue.prototype 里, 在程序入口的main.js里加下面代码: Vue.prototype.permissionValue = pms; 挂载之后,在需要引用全局量的模块处,不需再导入全局量模块,直接用this就可以引用了,如下 export default { name: '...原创 2018-09-10 23:07:26 · 1325 阅读 · 0 评论 -
vue通过router-link传参
父组件: <router-link :to="{path:'/merchantEdit' ,query: { id: scope.row.merchantId }}"> <el-button v-if="author.indexOf('merchant_list_edit') !=原创 2018-09-10 23:11:44 · 801 阅读 · 0 评论 -
vue父组件调子组件 $refs (把父组件的数据传给子组件)
父组件: <el-dialog title="" @close="refresh" :visible.sync="userRoleVisible" @open="showAuthEvent"> <user-role-panel ref="authPanel"></user-role-panel> &l原创 2018-09-10 23:20:03 · 1561 阅读 · 0 评论 -
vue往后台传参(不是传对象)
因为有规定必须用post提交 example: vue: withdrawCount(){ let formData = new FormData(); formData.append("date",this.date); withdrawCount(formData).then(response => { }); }, js: export ...原创 2018-09-10 23:23:48 · 7320 阅读 · 0 评论