随笔分类 -  vue2+elementUI

摘要:前提:实现了axios二次封装 // 注册api // 获取员工列表 export const sysUserSimple = () => { return request({ url: '/sys/user/simple' }) } // 导入api import { sysUserSimple 阅读全文 »
posted @ 2022-11-15 00:13 Cherishe 阅读(23) 评论(0) 推荐(0) 编辑
摘要://表单element-ui // 表单 <el-form label-width="120px" :model="form" :rules="rules" ref="form"> <el-form-item prop="rulesprop" label="部门名称"> // 文本框 <el-inp 阅读全文 »
posted @ 2022-11-15 00:02 Cherishe 阅读(17) 评论(0) 推荐(0) 编辑
摘要:// 1、新增对话框 <el-dialog title="新增部门" width="700px" :visible.sync="show"> // 2、隐藏对话框 show: false // 3、导入注册使用新增对话框组件 // 使用 <!-- 新增弹框组件 --> <Add ref="add" 阅读全文 »
posted @ 2022-11-14 23:51 Cherishe 阅读(26) 评论(0) 推荐(0) 编辑
摘要:// 1、设置场景值 scene: '', // 2、标题上使用动态title :title="{ add: '新增题目', edit: '编辑题目' }[scene]" // 3、父级组件使用子级组件 <Add ref="add" /> // 4、编辑和新增按钮分别使用子级场景值 this.$re 阅读全文 »
posted @ 2022-11-14 23:40 Cherishe 阅读(17) 评论(0) 推荐(0) 编辑
摘要:本地接口(启动) token失效(重新登录) 端口号占用(切换端口) 阅读全文 »
posted @ 2022-11-14 23:16 Cherishe 阅读(11) 评论(0) 推荐(0) 编辑

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