![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Y L L
这个作者很懒,什么都没留下…
展开
-
echarts在vue里面封装组件
echarts在vue里面封装组件<!-- 柱状图组件 --><template> <div style="width: 100%; height: 100%" :id="chartid"></div></template> <script>export default { props: { //图表id chartid: { type: String, }, yna原创 2021-05-17 16:01:31 · 145 阅读 · 0 评论 -
后端返回字节流文件,前端应该怎样进行预览与下载,目前只有(txt、pdf、png三种)
后端返回字节流文件,前端应该怎样进行预览与下载,目前只有(txt、pdf、png三种)一、预览async yulan(row) {if (row.docName == “” || row.docExt == “”) {this.$message.error(“找不到文件”);return false}if(row.docExt == “txt”){let url = “/File/DownLoad”;let param = {id: row.attchmentId,},respons原创 2021-05-17 09:13:14 · 1962 阅读 · 0 评论 -
vue生命周期钩子函数
1、beforeCreate组件实例将被创建2、created在此处发送请求,获取数据的初始值,但是此处任然没有dom,不能操作dom,dom是在mounted处才有,但是此处可以访问实例里的data属性,可以访问methods里的方法3、beforeMounted==4、Mounted ==组件模板以及渲染在指定的el中,可以操作dom了5、beforeUpdate6、Updat...原创 2019-11-19 16:18:00 · 71 阅读 · 0 评论