- 博客(13)
- 收藏
- 关注
原创 js双向数据绑定
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>.
2022-07-21 12:36:28
472
原创 vue表单输入框只能输入正整数
<!-- 优化 新增建筑层数 --> <el-form-item label="建筑层数" :label-width="formLabelWidth" prop="floor" > <el-input @keyup.native="handleInput" ...
2022-01-17 15:20:15
1748
原创 点击跳转页面
<div class="pointDetail" @click="toPage('/pointmanagement')">查看明细</div>methods:{ //跳转页面 toPage(rte) { if (rte) { this.$router.push({ path: rte, }); } else { this.$toast("功能暂未开发"); }.
2022-01-17 14:53:39
739
原创 权限管理动态路由(一)
一.根据后台返回数据进行菜单和路由添加将后台返回api进行封装,在router文件下的index.js中调用该方法,进行判断返回成功定义一个data 调用routesData方法将从后台获取的result传入,定义一个拼接数据得方法,对数据进行遍历,拼接路由router.addRoutes(routes: Array<RouteConfig>)动态添加更多的路由规则。参数必须是一个符合 routes 选项要求的数组。...
2022-01-09 19:05:33
604
原创 搜索时分页问题
data(){ return { isSearch: false,}}, methods: { //获取table数据 getData() { let obj = {}; if (this.isSearch) { obj = { txnCommCom: { tPageJump: this.current, tRecInpage: this.size, },.
2022-01-07 10:19:38
171
原创 判断是添加还是编辑
data() {return { editType:'averge',//默认添加}} methods: { //点击添加按钮 priceDia(item) { this.title = item.veVariety; this.isShow = true; this.productDetail = item; this.editType = 'averge' //设置添加状态 }, //点击编辑 exi...
2022-01-06 21:45:02
489
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人