随笔分类 -  前端跳坑记

echarts访问不到vue的方法
摘要:vue+echarts this指向问题 vue中使用echarts,但是在echarts鼠标点击事件中,想要使用vue methods中定义的函数(使用this.函数名调用),发现报函数未定义错误。 原因:此时this指向的是echarts 而非 vue解决方法:使用箭头函数。 修改前 toolt 阅读全文

posted @ 2022-06-13 15:37 阿虾 阅读(232) 评论(0) 推荐(0)

echarts让设置legend宽度不生效
摘要:仔细看源码发现问题了, 是 orient="horizontal" 的时候,只有width会起作用,height为auto;orient="vertical" 的时候只有height会起作用,width为auto。 legend: { orient: 'horizontal', bottom: 'b 阅读全文

posted @ 2022-05-13 12:38 阿虾 阅读(2334) 评论(0) 推荐(0)

elementui 校验不能全部为空格
摘要:content: [{required: true, message: '请输入提测内容', trigger: 'blur', pattern: '[^ \x22]+'}], 阅读全文

posted @ 2022-03-18 15:26 阿虾 阅读(302) 评论(0) 推荐(0)

dialog跳转路由参数乱码问题
摘要:1、使用decodeURI将参数包住 // 新建预发提测单 addPreProcess(){ this.$router.push({name: "addPreProcess", params: {'processId': decodeURI(this.multipleSelection)}}) th 阅读全文

posted @ 2022-03-17 22:11 阿虾 阅读(91) 评论(0) 推荐(0)

element-ui实现表格跨页选择
摘要:1、给table加上row-key属性 <el-table :data="tableData" style="width: 100%" row-key='id'> </el-table> 2、打开reserve-selection <el-table :data="tableData" style= 阅读全文

posted @ 2022-03-17 20:28 阿虾 阅读(321) 评论(0) 推荐(0)

element-ui显示默认值但是还是显示必填提示
摘要:原因::model里面绑定的form中定义的该字段是空,需要给该字段赋值 阅读全文

posted @ 2022-03-16 10:35 阿虾 阅读(647) 评论(0) 推荐(0)

vue+element-ui+django 打开后台返回的测试报告
摘要:1、先将测试报告的文件夹设置为模板 2、接口获取测试报告,并返回给前端 # 获取提测流程的自动化测试报告 def get_auto_test_report_vue(request): try: process_id = request.GET['process_id'] env_name = req 阅读全文

posted @ 2022-03-04 15:59 阿虾 阅读(325) 评论(0) 推荐(0)

导航