摘要:摘要:在table中 某一列数据的字段展示不同,可以使用render函数加if实现效果 数据是这样的: data: [ { type: 0, }, { type: 0, }, { type: 0, children: [ { type: 1, }, { type: 1, }, ], }, { typ
阅读全文
摘要:参考以下网址:https://www.jianshu.com/p/5b66e647f211
阅读全文
摘要:#### 一、vue文件使用sessionStorage:(简单存值取值) 1.存储数据:sessionStorage.setItem('取得k的名字','要存储的值') ```vue sessionStorage.setItem('loadClaim','this.node') ``` 2.获取数
阅读全文
摘要:摘要:在vue页面中 组件之间的传值 务必会使用watch方法监听传过来的值,根据值得变化做相应的逻辑变化,但是使用watch 会遇到 数据改变,视图不更新的问题、数据不发生变化 无法触发watch里边的逻辑等两个常见的问题 解决方案:watch中的immdiate和deep两个属性就能解决以上问题
阅读全文
摘要:<template> <div v-viewer="viewOps"> <el-carousel :indicator="false" :autoplay="false"> <el-carousel-item v-for="(img,index) in images" :key="index"> <
阅读全文
摘要:<template> <el-table :data="tableData"> <el-table-column prop="invChecked" label="审核状态"> <template slot-scope="scope"> <span>{{scope.row.invChecked "0
阅读全文
摘要:1.先引入request: import request from "@utils/request" 2.导出POST请求 export function listPost(params){ return request({ url:'url', method:'POST', data:{ ..
阅读全文
摘要:<el-table-column min-width="80" prop="invChecked" label="审核状态" align="center"> <template slot-scope = "scope"> <span>{{scope.row.invChecked '0' ?'未审核'
阅读全文
摘要:<span :style="{'display':isshow ? 'block':'none'}" >动态绑定样式</span>
阅读全文