返回顶部

随笔分类 -  vue

摘要:参考:vue用公共组件页面传值_Vue 解决兄弟组件之间传值问题_funny 灵魂的博客-CSDN博客 vue Bus总线 - fanlinqiang - 博客园 (cnblogs.com) vue.js之路(4)——vue2.0s中eventBus实现兄弟组件通信_YuuyaRin的博客-CSDN 阅读全文
posted @ 2022-01-28 11:32 前端-xyq 阅读(1312) 评论(0) 推荐(0)
摘要:参考: 手摸手,带你用vue撸后台 系列二(登录权限篇) - SegmentFault 思否 VUE 路由守卫 next() / next({ ...to, replace: true }) / next(‘/‘) 说明_cimo的博客-CSDN博客_replace: true 导航守卫 | Vue 阅读全文
posted @ 2022-01-21 09:58 前端-xyq 阅读(3953) 评论(1) 推荐(1)
摘要:搬运自: https://www.jianshu.com/p/47325792a61c 解决方法: 1. 使用 svg 渲染,svg 渲染出的图表的清晰度高于 canvas const myChart = this.$echarts.init(document.getElementById('myC 阅读全文
posted @ 2021-07-01 16:39 前端-xyq 阅读(1049) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/minjh/p/12169520.html https://blog.csdn.net/weixin_45264424/article/details/108350638 效果对比: 1. 只清空rangePicker控件绑定的值 2. 添加k 阅读全文
posted @ 2021-03-02 17:12 前端-xyq 阅读(3637) 评论(0) 推荐(0)
摘要:原效果与修改后的效果对比 原因 设置的select的宽度为百分比: <a-select v-model="statusCode" style="width: 25%;" class="input-search" placeholder="状态"> ... </a-select> 解决方法 设置宽度为 阅读全文
posted @ 2021-03-02 16:54 前端-xyq 阅读(5449) 评论(0) 推荐(0)
摘要:想实现的效果 请求接口获取待办数目和链接,当数目>0时,点击数目跳转链接。 出现的问题 页面上待办数目为0,但是打印弹窗发现待办数目为1,点击页面上显示的0仍可以跳转链接 原因 在请求待办时,我还请求了列表。但是列表返回的数据是null,页面上又判断了列表的长度。造成了浏览器报错,所以就没有再继续渲 阅读全文
posted @ 2021-02-05 15:35 前端-xyq 阅读(979) 评论(0) 推荐(0)
摘要:antD官网 https://www.antdv.com/components/tree-cn/ 效果 代码 <template> <div> <a-tree showIcon v-if="treeData.length" :treeData="treeData" :replaceFields="r 阅读全文
posted @ 2021-01-26 11:36 前端-xyq 阅读(6245) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/u011301203/article/details/102629952 https://www.cnblogs.com/codesyofo/p/14142197.html 1.get fetch无需安装依赖,可直接使用 download(url, 阅读全文
posted @ 2021-01-26 10:15 前端-xyq 阅读(2885) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/m0_38134431/article/details/83787237 vcli2 1. 修改config/index.js文件 proxyTable: { '/api': { target: 'http://xxx', secure:false, 阅读全文
posted @ 2021-01-22 16:06 前端-xyq 阅读(274) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/m0_37983475/article/details/103493921 https://blog.csdn.net/yummy_go/article/details/50696328 https://segmentfault.com/a/1190 阅读全文
posted @ 2021-01-07 11:24 前端-xyq 阅读(940) 评论(0) 推荐(0)
摘要:转载自:https://blog.csdn.net/liyangyang1998/article/details/108360291 https://www.cnblogs.com/qing0228/p/13915355.html 我的情况 在main.js中全局引入vant和css,启动项目后,控 阅读全文
posted @ 2020-12-17 15:53 前端-xyq 阅读(12601) 评论(0) 推荐(1)
摘要:参考:https://www.cnblogs.com/wuhairui/p/14048152.html 我的情况:vue + antD实现文件上传功能,本地启动时控制台会报404,放到服务器上控制台会报405 原因:upLoad有默认的上传事件 解决:阻止默认事件即可 代码: ··· <a-uplo 阅读全文
posted @ 2020-12-07 15:08 前端-xyq 阅读(3247) 评论(0) 推荐(0)
摘要:控制台报错: 原因:后端返回的时间戳是字符串格式的 解决:将字符串转为数字即可 <p class="time">{{!createTime?'':moment(Number(createTime)).format(formates)}}</p> 阅读全文
posted @ 2020-11-24 09:33 前端-xyq 阅读(2105) 评论(0) 推荐(0)
摘要:参考:https://www.npmjs.com/package/vue-pdf https://www.cnblogs.com/lodadssd/p/10297989.html 效果 1. 引入vue-pdf 我的vue版本是2.6.10,vue-pdf版本是4.1.0 npm install - 阅读全文
posted @ 2020-09-30 09:34 前端-xyq 阅读(3351) 评论(2) 推荐(0)
摘要:参考: https://www.cnblogs.com/wuqilang/p/13031290.html https://blog.csdn.net/qq_20473985/article/details/84984136 效果 1. 下载pdfjs 官网:http://mozilla.github 阅读全文
posted @ 2020-09-25 16:22 前端-xyq 阅读(18506) 评论(0) 推荐(1)
摘要:参考:https://www.cnblogs.com/stella1024/p/10405730.html 我的情况: 父组件index,子组件unitTree,unitTree内勾选数据后,修改index内的值并显示。但是一直没有效果。 unitTree代码: this.$parent.check 阅读全文
posted @ 2020-09-10 11:38 前端-xyq 阅读(2970) 评论(0) 推荐(1)
摘要:参考:https://www.cnblogs.com/shuihanxiao/p/11081035.html https://www.jianshu.com/p/9e4e4d955d0f https://www.cnblogs.com/look-up-at-the-starlit-sky/p/120 阅读全文
posted @ 2020-09-02 14:21 前端-xyq 阅读(1449) 评论(0) 推荐(0)
摘要:效果 错误(序号1是获取数据后,初始化禁用的项): 正确: 原因 未给数据指定key 代码 <template> <a-table :row-selection="rowSelection" :columns="columns" :data-source="data"> <a slot="name" 阅读全文
posted @ 2020-08-18 15:05 前端-xyq 阅读(2789) 评论(2) 推荐(0)
摘要:问题页面(红框处即为值为空字符串的数据): 改后: 页面: ···<a-select v-model="formData.urgentLevel" style="width: 100%" dropdownClassName="selectOption"> <a-select-option v-for 阅读全文
posted @ 2020-08-18 14:48 前端-xyq 阅读(3867) 评论(0) 推荐(0)
摘要:效果: vue: <template> <div class="tree"> <a-tree showIcon v-if="treeData.length" checkable :treeData="treeData" v-model="checkedId" :defaultExpandedKeys 阅读全文
posted @ 2020-08-14 11:28 前端-xyq 阅读(5532) 评论(0) 推荐(0)