06 2020 档案

摘要:一、多个函数等待执行 //初始化权限列表 initPermission() { return new Promise((resolve, reject) => { this.$ajax.get(this.permissionUrl[1], { type: 9 }).then(res => { if 阅读全文
posted @ 2020-06-29 17:52 人在路途 阅读(930) 评论(0) 推荐(0)
摘要:奇怪的现象 首次加载页面的时候,没有输入时间会开始校验“不能为空”,但是我选择了时间以后,第一次还是提示”不能为空“,直到下一次的时候才会校验成功 原因: crud.js //设置field changeFields(val){ if(val.name == 'searchForm'){ this. 阅读全文
posted @ 2020-06-24 10:57 人在路途 阅读(1435) 评论(0) 推荐(0)
摘要:获取异步函数的结果 //根据路径去读取文件 async getContentByPath(val){ let address = val.data.contentPath && decodeURI(val.data.contentPath.split("path=")[1]) const res = 阅读全文
posted @ 2020-06-09 14:20 人在路途 阅读(1809) 评论(0) 推荐(0)