摘要: 方式一: <span class="person_name">{{item.type_name == '车商' ? item.title : item.type_name == '车型' ? item.card_title : '暂无数据'}}</span> 方式2:v-if <span v-if= 阅读全文
posted @ 2020-07-31 10:55 醒日是归时 阅读(645) 评论(0) 推荐(0)
摘要: 经常会遇到远程排序,需要去掉null状态的排序,当设置sortable='custom'时,设置sort-orders为['ascending', 'descending']是不生效的。然后查到了一种解决办法,如下: element表格排序有三种状态,升序、降序、null,现在想要实现的效果为只要升 阅读全文
posted @ 2020-07-31 10:43 醒日是归时 阅读(718) 评论(0) 推荐(0)
摘要: 一、typeof判断数据类型(判断数组跟对象都返回object) console.log(typeof null); // "object" console.log(typeof function () { return 1; }); // "function" console.log(typeof 阅读全文
posted @ 2020-07-30 18:40 醒日是归时 阅读(12194) 评论(0) 推荐(0)
摘要: 当 v-if 与 v-for 一起使用时,v-for 具有比 v-if 更高的优先级,这意味着 v-if 将分别重复运行于每个 v-for 循环中 所以,不推荐v-if和v-for同时使用 使用推荐方式: <div v-if="proxyconfig.ip instanceof Object "> 阅读全文
posted @ 2020-07-30 18:37 醒日是归时 阅读(1175) 评论(0) 推荐(0)
摘要: 跳转到别的页面带参数 const space = this.pageHelperspace['search'] = this.searchconst query_params = Object.assign({}, row, space)this.$router.push({name: 'ansib 阅读全文
posted @ 2020-07-30 15:20 醒日是归时 阅读(358) 评论(0) 推荐(0)
摘要: 环境: 后端,python+uwsgi启动 前端:vue 用nginx运行,指定静态目录 问题 :发布后带路径打开页面报404问题,带路径打开即不是打开的主页 解决方案: https://router.vuejs.org/zh/guide/essentials/history-mode.html#% 阅读全文
posted @ 2020-07-28 17:30 醒日是归时 阅读(2387) 评论(0) 推荐(0)
摘要: 在直接使用 ansible 时候有-B -p 参数可以启用异步操作,然后返回一个 job_id 值 [root@master ansible]# ansible node1 -B 3600 -P 0 -m yum -a "name=ansible" -vv Using /etc/ansible/an 阅读全文
posted @ 2020-07-23 16:50 醒日是归时 阅读(415) 评论(0) 推荐(0)
摘要: yum模块 name 必选 指定安装包名 state 执行命令 present installed removed latest absent 其中installed and present等效 latest标志安装yum中最新版本,absent and removed 等效 表示删除安装包 dis 阅读全文
posted @ 2020-07-23 11:49 醒日是归时 阅读(3586) 评论(0) 推荐(0)
摘要: 环境:flask+python+sqlite,我想给某个表里某个字段加unique属性 执行 python manage.py db migrate 没报错,执行 python manage.py db upgrade 的时候报错如下 Traceback (most recent call last 阅读全文
posted @ 2020-07-22 16:39 醒日是归时 阅读(640) 评论(0) 推荐(0)
摘要: 安装所需环境 Nginx 是 C语言 开发,建议在 Linux 上运行,当然,也可以安装 Windows 版本,本篇则使用 CentOS 7 作为安装环境。 一. gcc 安装 安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum i 阅读全文
posted @ 2020-07-20 09:47 醒日是归时 阅读(1286) 评论(0) 推荐(0)