2022年7月1日

python3导自定义的包,添加了__init__.py还是报ModuleNotFound,记录解决办法

摘要: 将顶层目录,一级目录、二级目录都设置为source,然后直接从二级目录开始导入 阅读全文

posted @ 2022-07-01 16:51 阿虾 阅读(42) 评论(0) 推荐(0) 编辑

2022年6月21日

python设置excel文本格式为数字不生效解决

摘要: 问题描述: 设置excel单元格百分比格式为数字老是不生效 sheet.cell(row=1, column=5).number_format = '0.00%' 修改代码给该单元格赋值的语句 原代码: sheet.cell(row=1, column=5).value = '{:.2%}'.for 阅读全文

posted @ 2022-06-21 13:40 阿虾 阅读(360) 评论(0) 推荐(0) 编辑

2022年6月13日

echarts访问不到vue的方法

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

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

2022年6月8日

记调试Django+celery启动的低级错误

摘要: 执行celery -A xxx worker -l info 一直报错,找不到Django的应用 查问题查了两天,两天!!!!!! 最后发现 celery.py文件中的 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoAutoTest.s 阅读全文

posted @ 2022-06-08 23:13 阿虾 阅读(69) 评论(0) 推荐(0) 编辑

2022年6月1日

django+celery+django-celery-beat+redis实现定时任务且动态配置和异步任务

摘要: 一、在项目同级目录下新增celery.py、celeryconfig.py文件 二、项目下代码如下 __init__.py文件中新增如下代码 from __future__ import absolute_import, unicode_literals from .celery import ap 阅读全文

posted @ 2022-06-01 09:40 阿虾 阅读(1280) 评论(0) 推荐(0) 编辑

2022年5月19日

celery beat 执行定时任务命令报错

摘要: celery beat 在启动的时回去创建存储定时任务信息的数据库(参见shelve模块),但是该文件已存在,所以导致启动beat的时候报错, 解决办法是将该文件删除,然后重启beat即可。 阅读全文

posted @ 2022-05-19 18:19 阿虾 阅读(118) 评论(0) 推荐(0) 编辑

2022年5月13日

echarts让设置legend宽度不生效

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

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

2022年3月18日

elementui 校验不能全部为空格

摘要: content: [{required: true, message: '请输入提测内容', trigger: 'blur', pattern: '[^ \x22]+'}], 阅读全文

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

2022年3月17日

dialog跳转路由参数乱码问题

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

posted @ 2022-03-17 22:11 阿虾 阅读(72) 评论(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 阿虾 阅读(240) 评论(0) 推荐(0) 编辑

导航