当前位置: 首页 > news >正文

短网址生成在线网站优化方案教程

短网址生成在线,网站优化方案教程,做购物网站骗人,电商网站首页设计先来看看页面默认全部展开时页面的显示效果#xff1a;所有节点被展开#xff0c;一眼望去杂乱无章#xff01; 那么如何实现只展开指定的节点呢#xff1f;最终效果如下#xff1a;一眼看去很舒爽。 干货上代码#xff1a; el-table border v-ifrefreshTabl…先来看看页面默认全部展开时页面的显示效果所有节点被展开一眼望去杂乱无章 那么如何实现只展开指定的节点呢最终效果如下一眼看去很舒爽。  干货上代码 el-table border v-ifrefreshTable v-loadingloading :datasourceList row-keyid:default-expand-allisExpandAll :expand-row-keysexpandRowKeysList:tree-props{ children: children, hasChildren: hasChildren }!-- el-table-column label序号 typeindex width55 aligncenter/ --el-table-column label来源名称 propname /el-table-column label状态 aligncenter propenabledtemplate slot-scopescopedict-tag :optionsdict.type.msg_status :valuescope.row.enabled //template/el-table-columnel-table-column label创建者 aligncenter propcreateBy /el-table-column label创建日期 aligncenter propcreateTime width180template slot-scopescopespan{{ parseTime(scope.row.createTime, {y}-{m}-{d}) }}/span/template/el-table-columnel-table-column label操作 aligncenter class-namesmall-padding fixed-widthtemplate slot-scopescopeel-button sizemini typetext iconel-icon-edit clickhandleUpdate(scope.row)v-hasPermi[system:source:edit]修改/el-buttonel-button sizemini typetext iconel-icon-plus clickhandleAdd(scope.row)v-hasPermi[system:source:add]新增/el-buttonel-button sizemini typetext iconel-icon-delete clickhandleDelete(scope.row)v-hasPermi[system:source:remove]删除/el-button/template/el-table-column /el-table /el-card 核心代码注意这三个属性一定要注意使用。id即接口给你返回的每个节点的id具体看你后端接口返回的命名。 row-keyid :default-expand-allisExpandAll :expand-row-keysexpandRowKeysList isExpandAll在data中默认为false意为不要全部默认展开即全部自动收起。否则指定展开无效。 isExpandAll:false 再来看看被展开节点的设置将要展开节点的id放入expandRowKeysList数组中。 :expand-row-keysexpandRowKeysList data(){return {isExpandAll:false //table哪些行默认开展expandRowKeysList:[]} } 调用接口 methods: { /** 查询项目来源列表 */getList() {let self thislistSource(this.queryParams).then(response {this.sourceList this.handleTree(response.data, id, pid);this.sourceList.forEach(element {self.expandRowKeysList.push(element.id )});});}, } 默认展开一级。如果你默认展开第二级则修改以上代码将二级节点的id压入数组中即可。
http://www.hkea.cn/news/14573716/

相关文章:

  • 河南做网站哪个公司好网站推广类型
  • 做质粒图谱的网站做专业课视频课的网站
  • 长沙建立企业网站宿城网站建设
  • 天津建站平台电力建设监理招聘网站
  • 岗贝路网站建设洛可可设计公司贾伟
  • 网站接入地最新新闻头条
  • 可以更改上传到网站的文件内容吗wordpress广告位插件
  • 实名网站审核中心网站制作文案杭州
  • 南京网站设计价格如何看出一个网站有做seo
  • 宣武青岛网站建设网站页脚怎么做
  • 所有搜索引擎蜘蛛不来网站了廊坊关键词排名推广
  • 大连seo网站seo免费诊断电话
  • 百度网站怎么做视频做网站领券收佣金
  • 龙华网页设计公司网站网络营销的招聘信息
  • 网站建设特效素材新闻媒体网站开发文档
  • 自己做的网站怎么样合法网线制作工具
  • 网站可以做匿名聊天吗嘉兴网站建设电话
  • 网站什么时候做解析做网站几个步骤
  • 网站开发众包平台影视广告片拍摄厂家
  • 鞍山网站网站建设加工平台设计
  • 如何让网站火起来wordpress邮件验证评论
  • 交流平台网站架构怎么做wordpress 折线图
  • 重庆模板建站软件厦门网站seo外包
  • php网站如何导入数据库网站开发工资一般多少钱
  • 可商用的图片素材网站做网站三年3万块钱
  • 标题制作网站wordpress 改 分隔
  • 广州好蜘蛛网站建设网架公司需要给设计院提交的资料
  • 免费crm网站不用下载的软件惠州seo公司
  • 怎样做免费商城网站我是做网站的 怎么才能提高业绩
  • 门户网站 页面集成成都广告设计公司排名