06 2022 档案

摘要:let list = [ {name:"历下区",code:6}, {name:"历下区",code:6}, {name:"历下区",code:6}, {name:"历城区",code:7}, {name:"历城区",code:7}, {name:"市中区",code:8}, {name:"槐荫区" 阅读全文
posted @ 2022-06-22 17:01 赵辉Coder 阅读(2019) 评论(0) 推荐(0) 编辑
摘要:1. 在 Vue 3 的项目开发中,template 是 Vue 3 默认的写法。虽然 template 长得很像 HTML,但 Vue 其实会把 template 解析为 render 函数,之后,组件运行的时候通过 render 函数返回 h 函数的执行结果去返回虚拟 DOM: 也就是:vue3 阅读全文
posted @ 2022-06-19 11:27 赵辉Coder 阅读(1737) 评论(0) 推荐(0) 编辑
摘要:element-ui 表单重置 this.$refs[formName].resetFields()方法不起作用的解决方法: 现象一:新增和修改用同一个弹窗 解决办法:将回显数据放到 setTimeout 或者 nextTick 里面 现象二: 新增编辑同一个表单,新增时,先校验企业的业务,如果不符 阅读全文
posted @ 2022-06-10 15:18 赵辉Coder 阅读(1020) 评论(0) 推荐(0) 编辑
摘要:很多时候需要销毁实例,再次重新创建 比如:地图动态lines线条的时候,再次去加载会留下上次线条的痕迹。加个dispose()方法 // 在创建之前销毁 echarts.init(document.getElementById(‘main’)).dispose(); // 销毁实例 var myCh 阅读全文
posted @ 2022-06-09 17:45 赵辉Coder 阅读(885) 评论(0) 推荐(0) 编辑
摘要:this.chart = echarts.init(document.getElementById('main'), null, { renderer: 'svg' }) this.chart.setOption(option) window.onresize = this.chart.resize 阅读全文
posted @ 2022-06-09 17:43 赵辉Coder 阅读(298) 评论(0) 推荐(0) 编辑
摘要:<a-modal v-model="uploadVisible" :title="title" :maskClosable="false" width="1000px" :destroyOnClose="true" @cancel="closeModal" :footer="!isshowFoote 阅读全文
posted @ 2022-06-08 11:43 赵辉Coder 阅读(2286) 评论(0) 推荐(0) 编辑
摘要:1.安装xlsx npm i xlsx 2.封装函数 引入xlsx const XLSX = require('xlsx'); /** * 把文件按照二进制进行读取 * @param file * @returns */ export function readFile(file) { return 阅读全文
posted @ 2022-06-08 11:10 赵辉Coder 阅读(1381) 评论(0) 推荐(0) 编辑