上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: import sqlparse from sqlparse.sql import IdentifierList, Identifier from sqlparse.tokens import Keyword, DML # 支持的join方式 ALL_JOIN_TYPE = ('LEFT JOIN', 阅读全文
posted @ 2021-09-03 10:33 醒日是归时 阅读(465) 评论(1) 推荐(0) 编辑
摘要: resty.limit.count 模块介绍: resty.limit.count 模块就是限制接口单位时间的请求数,This module depends on lua-resty-core模块,所以要在openresty 的http标签端添加 nginx init_by_lua_block { 阅读全文
posted @ 2021-08-20 14:49 醒日是归时 阅读(445) 评论(0) 推荐(0) 编辑
摘要: vue前端分页多条件搜索 fliterData() { if (this.query_syscode || this.query_version || this.query_group || String(this.query_status)) { this.blist = this.list.fi 阅读全文
posted @ 2021-08-05 18:04 醒日是归时 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Tree树形控件选中状态 在做分配权限的时候如图选择了父节点的某些子节点,现在父节点是半选中状态,使用this.$refs.tree.getCheckedKeys()只能拿到当前的子节点,子节点全选才能拿到父节点,而后台需要我们把父节点和子节点一起带过去。 解决方法 // 获取选中的子节点 let 阅读全文
posted @ 2021-07-25 01:46 醒日是归时 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 1、安装 requests_toolbelt 模块,引入该模块下的 MultipartEncoder 2、在 请求体 中使用该模块函数,请求头中增加对应参数值 from requests_toolbelt.multipart.encoder import MultipartEncoder impor 阅读全文
posted @ 2021-06-26 16:00 醒日是归时 阅读(1224) 评论(0) 推荐(0) 编辑
摘要: 1.问题 触发bug的条件是先打开,编辑进行赋值,后打开新增 先点开编辑 再打开新增 这个时候你会发现刚刚赋值过的数据还遗留在表单里面 即使在打开 dialog 的时候执行了重置也没有效果 resetForm(formName) { if (this.dialogStatus 'create') { 阅读全文
posted @ 2021-05-19 16:52 醒日是归时 阅读(481) 评论(0) 推荐(0) 编辑
摘要: def cut_num(n, sep=','): # 第一个参数是要传递的数字,第二个是分隔符 s = str(abs(n))[::-1] groups = [] i = 0 while i < len(s): groups.append(s[i:i + 3]) i += 3 retval = se 阅读全文
posted @ 2021-04-06 18:56 醒日是归时 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 在项目中遇到了需要使用字符串进行正则匹配,同时还要忽略大小写可以按照以下方法:1 先使用new RegExp(newVal, ‘i’)生成需要匹配的规则,其中 ‘i’ 表示忽略大小写2 再对相应的字符串进行匹配 string.search(new RegExp(newVal, 'i')) !== - 阅读全文
posted @ 2021-02-24 12:00 醒日是归时 阅读(4325) 评论(0) 推荐(0) 编辑
摘要: 文章目录 Ansible的同步模式与异步模式 Ansible的异步和轮询 [async、poll] Ansible的并发限制 [serial、max_fail_percentage] Ansible的任务委托 [delegate_to、delegate_facts、run_once] Ansible 阅读全文
posted @ 2021-02-20 16:01 醒日是归时 阅读(890) 评论(0) 推荐(0) 编辑
摘要: $(document).on('click', function (e) { $('[data-toggle="popover"],[data-original-title]').each(function () { //the 'is' for buttons that trigger popup 阅读全文
posted @ 2021-02-18 11:41 醒日是归时 阅读(2174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页