随笔分类 -  vue-element-admin

摘要:js处理 //this.newTableData 数组 this.newTableData.map((item,index)=>{ //item.label 数组 if(item.label){ item.label = item.label.join(','); } }) element UI t 阅读全文
posted @ 2022-11-08 15:47 烂笔头~ 阅读(273) 评论(0) 推荐(0) 编辑
摘要:效果图如下: 代码如下: <template> <div class="con-main"> <div class="con-list"> <!-- 日历 --> <el-calendar> <!-- 插槽 --> <template slot="dateCell" slot-scope="{dat 阅读全文
posted @ 2022-11-08 12:05 烂笔头~ 阅读(2452) 评论(0) 推荐(0) 编辑
摘要:效果如下: 首先:在table上加:span-method="spanMethod" 其次: methods中加两个方法 dataPretreatment() { //表格数据列合并预处理,生成一个与行数相同的数组记录每一行设置的合并数 // 如果是第一条记录(索引为0),向数组中加入1,并设置索引 阅读全文
posted @ 2022-11-08 11:51 烂笔头~ 阅读(1844) 评论(0) 推荐(0) 编辑
摘要:报错上图所示, Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed p 阅读全文
posted @ 2022-06-23 14:54 烂笔头~ 阅读(1157) 评论(0) 推荐(0) 编辑
摘要:解决办法,需给el-dialog 加上 append-to-body 代码如下: <el-dialog title="提示" append-to-body style="z-index:3000" :visible.sync="infoDialog" width="30%" :before-clos 阅读全文
posted @ 2022-06-23 11:36 烂笔头~ 阅读(2074) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示