摘要: 将 "isolatedModules": false, 设为false 阅读全文
posted @ 2023-01-16 10:03 李笑吅 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 第一种:JSON.stringify()let obj = { username:admin, password:"123456"}//先转为json格式字符,再转回来let newObj = JSON.parse(JSON.stringify(obj));obj.password = MD5(ob 阅读全文
posted @ 2022-10-28 10:16 李笑吅 阅读(2467) 评论(0) 推荐(0) 编辑
摘要: // 排序方法compare (namse) { return (obj1, obj2) => { const val1 = obj1[namse] * 1 const val2 = obj2[namse] * 1 if (val1 < val2) { return 1 } else if (val 阅读全文
posted @ 2022-07-14 09:21 李笑吅 阅读(21) 评论(0) 推荐(0) 编辑
摘要: util文件: export const echartsSize = function (size, defalteWidth = 1920) { const docEl = document.documentElement const clientWidth = window.innerWidth 阅读全文
posted @ 2022-07-12 09:18 李笑吅 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1.安装项目 npm create vite@latest 2.起名 3.选择vue 选择ts版 安装router+axios+pinia pinia:https://pinia.web3doc.top/core-concepts/ router:https://router.vuejs.org/z 阅读全文
posted @ 2022-06-09 11:20 李笑吅 阅读(90) 评论(0) 推荐(0) 编辑
摘要: <el-autocomplete v-model="dform.auto_idname" @select="openxuanfun" :debounce="1000" :fetch-suggestions="querySearch" placeholder="车辆" value-key="auto_ 阅读全文
posted @ 2022-06-08 14:37 李笑吅 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <!-- 文章列表 --> <view class="activity_list" wx:for="{{3}}"> <view class="list_item"> <view class="item_wenzi"> <view class="wenzi_bit">美家分类进行的活动活动标题...< 阅读全文
posted @ 2022-03-22 15:37 李笑吅 阅读(16) 评论(0) 推荐(0) 编辑
摘要: // 选中handleSelect(e, term) { switch (term) { case '使用人': this.dform.operator_uid = e.id break case '责任人': this.dform.liable_uid = e.id break }},// 搜索后 阅读全文
posted @ 2022-03-15 14:23 李笑吅 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 小程序版,通过组件的形式,如果里面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 李笑吅 阅读(37) 评论(0) 推荐(0) 编辑
摘要: if(this.isClick) { this.isClick = false; //定时器 setTimeout(function() { this.isClick = true; }, 1000);//一秒内不能重复点击} isClick: null, handleSearch(e) { //文 阅读全文
posted @ 2021-12-11 11:25 李笑吅 阅读(70) 评论(0) 推荐(0) 编辑