摘要: 小程序版,通过组件的形式,如果里面nodes有值得话在循环组件 组件部分 <view> <view> {{lists.name}} <block a:if="{{lists.roles.length>0}}"> <view a:for="{{lists.roles}}" a:for-item="rt 阅读全文
posted @ 2022-02-16 08:42 李笑吅 阅读(52) 评论(0) 推荐(0)
摘要: if(this.isClick) { this.isClick = false; //定时器 setTimeout(function() { this.isClick = true; }, 1000);//一秒内不能重复点击} isClick: null, handleSearch(e) { //文 阅读全文
posted @ 2021-12-11 11:25 李笑吅 阅读(92) 评论(0) 推荐(0)
摘要: html <el-select v-model="dform.e_id" filterable remote reserve-keyword placeholder="请输入关键词" :remote-method="remoteMethod" :loading="loading"> <el-opti 阅读全文
posted @ 2021-10-29 15:20 李笑吅 阅读(108) 评论(0) 推荐(0)
摘要: html部分: <el-form-item label="图片" prop="icon"> <el-upload v-model="rotationfrom.img" action="" multiple show-file-list :http-request="httpRequest" list 阅读全文
posted @ 2021-10-28 16:51 李笑吅 阅读(151) 评论(0) 推荐(0)
摘要: 1.安装 npm install echarts --save 2.引入 ECharts import * as echarts from 'echarts'; 3.在页面中设置ECharts <template> <!--应收款分析--> <div className="com-threemois 阅读全文
posted @ 2021-10-08 10:38 李笑吅 阅读(761) 评论(0) 推荐(0)
摘要: 1.创建文件 export const echartsSize = function (size, defalteWidth = 1920) { const docEl = document.documentElement const clientWidth = window.innerWidth 阅读全文
posted @ 2021-10-08 09:54 李笑吅 阅读(110) 评论(0) 推荐(0)
摘要: 1、字符串转换为数组 var string = '123,456,789'; var stringResult = string.split(','); console.log(stringResult) //输出["123", "456", "789"] var string2 = 'abcdef 阅读全文
posted @ 2021-08-12 17:09 李笑吅 阅读(162) 评论(0) 推荐(0)
摘要: 1.获取后台数据存本地 1)获取时间戳进行比对,如果差的话就重新取值 在存入时要注意格式 // 存 localStorage.setItem('jdclassdata', JSON.stringify(arr)) // 取 var arr = JSON.parse(localStorage.getI 阅读全文
posted @ 2021-08-10 14:41 李笑吅 阅读(31) 评论(0) 推荐(0)
摘要: 1.克隆:https://github.com/PanJiaChen/vue-admin-template.git 2.修改中文:main.js 3.在不使用模拟数据时: 设置反向代理: 1.在env.development,设置/api 2. vue.config.js 设置测试环境反向代理 其中 阅读全文
posted @ 2021-08-04 11:29 李笑吅 阅读(215) 评论(0) 推荐(0)
摘要: 以管理员身份运行 PowerShell或命令提示符,并执行命令set-ExecutionPolicy RemoteSigned将PowerShell的执行策略更改为RemoteSigned 1.win+X 2.输入set-ExecutionPolicy RemoteSigned 然后选Y 好了 阅读全文
posted @ 2021-08-02 11:14 李笑吅 阅读(684) 评论(0) 推荐(0)