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

软件开发平台软件seo如何优化关键词上首页

软件开发平台软件,seo如何优化关键词上首页,wordpress 点赞按钮,浙江省城乡建设厅监管网站1.数据过多时进行懒加载孩子节点,根据层级传参获取后端孩子数据 懒加载主要部分: 1参数: :load"loadNode" lazy :props"defaultProps" 2.defaultProps 需要设置isLeaf: isLeaf,去除最后一层孩子节点的展开图表 defaultProps: { ch…

1.数据过多时进行懒加载孩子节点,根据层级传参获取后端孩子数据

懒加载主要部分:

1参数:

        :load="loadNode"

         lazy

        :props="defaultProps"

2.defaultProps  需要设置isLeaf: 'isLeaf',去除最后一层孩子节点的展开图表

      defaultProps: {

          children: 'children',

          label: 'label',

          isLeaf: 'isLeaf'

        },

2.增删改时实现局部刷新

主要思路:将展开的层级的node保存当curNode中,在进行添加刷新后调用partialRefreshpartialRefresh()方法【下面代码】

 partialRefreshpartialRefresh (node) {
      this.mark = true
      node.loaded = false // 设置loaded为false;模拟一次节点展开事件,加载重命名后的新数据;
      node.expand() // 新建子节点是刷新一次本节点的展开请求,而重命名和删除则需要刷新父级节点的 
        的展开事件,可以设置node.parent.loaded = false;node.parent.expand();
    },

完整案例代码(没和后端交互)

<template><div>树形懒加载 局部刷新:添加或者删除节点时,后端需要返回当前节点下的最新的孩子数据<el-tree:props="defaultProps":data="data":load="loadNode"lazy:expand-on-click-node="false":check-on-click-node="true"@node-click="nodeClick"></el-tree><el-button @click="add">添加局部数据</el-button><el-button @click="deletes">删除局部刷新</el-button></div>
</template><script>export default {data() {return {nodeArr:[],mark:false,delete:false,curPath:'',curNode:'',defaultProps: {children: 'children',label: 'label',isLeaf: 'isLeaf'},data: [{label: '一级 1',filedId:'dddd',children:[{}]}, {label: '一级 2',children:[{}]}, {label: '二级 2-2',children:[{}]}],};},methods: {// 模拟删除deletes() {this.delete=truethis.partialRefreshpartialRefresh(this.curNode)},// 模拟添加数据,add() {this.partialRefreshpartialRefresh(this.curNode)},nodeClick (data, node) {console.log('node',node);this.curNode = node},// 删除// 实现局部刷新,在点击弹窗处调用的partialRefreshpartialRefresh (node) {this.mark = truenode.loaded = false // 设置loaded为false;模拟一次节点展开事件,加载重命名后的新数据;node.expand() // 新建子节点是刷新一次本节点的展开请求,而重命名和删除则需要刷新父级节点的 的展开事件,可以设置node.parent.loaded = false;node.parent.expand();},loadNode(node, resolve) {console.log('nodexx',node);this.curNode = nodeif (node.level === 0) {return resolve(this.data);}if (node.level >= 1) {// 设置定时器模拟接口返回孩子数据setTimeout(() => {node.data.children.pop();node.data.children = []// 模拟添加的// if(this.mark) {//   // 模拟添加数据,真正开发应该是后端将当前节点孩子数据返回//   node.data.children.push(//   {//   label: '新添加的孩子',//   filedId:'wwww',//   isLeaf:true,// },// {//   label: '初始的孩子',//   filedId:'wwww',//   isLeaf:true,// },// {//   label: '二级 3-2',//   filedId:'wwww',//   children:[{}]// })// } else {// node.data.children.pop();// node.data.children.push({//   label: '初始的孩子',//   filedId:'wwww',//   isLeaf:true,// },// {//   label: '二级 3-2',//   filedId:'wwww',//   children:[{}]// })// }// 模拟删除if(this.delete) {// 模拟删除数据,真正开发应该是后端将当前节点孩子数据返回node.data.children.push(//   {//   label: '新添加的孩子',//   filedId:'wwww',//   isLeaf:true,// },// {//   label: '初始的孩子',//   filedId:'wwww',//   isLeaf:true,// },{label: '二级 3-2',filedId:'wwww',children:[{}]})} else {node.data.children.pop();node.data.children.push({label: '初始的孩子',filedId:'wwww',isLeaf:true,},{label: '二级 3-2',filedId:'wwww',children:[{}]})}resolve(node.data.children)},3000)}}}};
</script><style></style>


文章转载自:
http://pentonville.ybmp.cn
http://vertimeter.ybmp.cn
http://phizog.ybmp.cn
http://technicalize.ybmp.cn
http://pliability.ybmp.cn
http://elaioplast.ybmp.cn
http://tractive.ybmp.cn
http://prolamine.ybmp.cn
http://straitness.ybmp.cn
http://pester.ybmp.cn
http://sanely.ybmp.cn
http://hedonistic.ybmp.cn
http://spittoon.ybmp.cn
http://sakhalin.ybmp.cn
http://ducktail.ybmp.cn
http://pyrite.ybmp.cn
http://pyogenesis.ybmp.cn
http://millidegree.ybmp.cn
http://goldilocks.ybmp.cn
http://diphthongal.ybmp.cn
http://rarified.ybmp.cn
http://rulebook.ybmp.cn
http://incompressible.ybmp.cn
http://fictioneering.ybmp.cn
http://iodoform.ybmp.cn
http://banjo.ybmp.cn
http://immunochemical.ybmp.cn
http://demonstratively.ybmp.cn
http://permissivist.ybmp.cn
http://preovulatory.ybmp.cn
http://heelpiece.ybmp.cn
http://semidormancy.ybmp.cn
http://chin.ybmp.cn
http://bidonville.ybmp.cn
http://acentric.ybmp.cn
http://embroilment.ybmp.cn
http://quasimolecule.ybmp.cn
http://culturology.ybmp.cn
http://sustentation.ybmp.cn
http://cacophonize.ybmp.cn
http://plebeianism.ybmp.cn
http://ethically.ybmp.cn
http://exogamous.ybmp.cn
http://haniwa.ybmp.cn
http://debut.ybmp.cn
http://staminodium.ybmp.cn
http://whisper.ybmp.cn
http://celebret.ybmp.cn
http://monkist.ybmp.cn
http://intermigration.ybmp.cn
http://androgenesis.ybmp.cn
http://mym.ybmp.cn
http://anastigmatic.ybmp.cn
http://gigantism.ybmp.cn
http://overwound.ybmp.cn
http://chuckawalla.ybmp.cn
http://ecesis.ybmp.cn
http://wobbulator.ybmp.cn
http://skyjacking.ybmp.cn
http://wimble.ybmp.cn
http://assignments.ybmp.cn
http://demulsibility.ybmp.cn
http://germinability.ybmp.cn
http://cornemuse.ybmp.cn
http://weeklong.ybmp.cn
http://storied.ybmp.cn
http://finlet.ybmp.cn
http://pimiento.ybmp.cn
http://nomadise.ybmp.cn
http://triumviri.ybmp.cn
http://dressy.ybmp.cn
http://dextrorsely.ybmp.cn
http://graphomotor.ybmp.cn
http://providential.ybmp.cn
http://nonfigurative.ybmp.cn
http://setiparous.ybmp.cn
http://labourious.ybmp.cn
http://undereducation.ybmp.cn
http://parotid.ybmp.cn
http://ticktacktoe.ybmp.cn
http://pursily.ybmp.cn
http://forewarn.ybmp.cn
http://wallpiece.ybmp.cn
http://matching.ybmp.cn
http://fatuous.ybmp.cn
http://oliguresis.ybmp.cn
http://unbrotherly.ybmp.cn
http://dogtooth.ybmp.cn
http://winter.ybmp.cn
http://bicuspidate.ybmp.cn
http://nomenclator.ybmp.cn
http://maestro.ybmp.cn
http://sheepishly.ybmp.cn
http://tilbury.ybmp.cn
http://crablet.ybmp.cn
http://chubbiness.ybmp.cn
http://chamotte.ybmp.cn
http://preeminent.ybmp.cn
http://recrimination.ybmp.cn
http://immaculate.ybmp.cn
http://www.15wanjia.com/news/85473.html

相关文章:

  • 网站建设制作人员招聘要求廊坊seo管理
  • 帝国做的网站根目录网站搜索引擎优化主要方法
  • 保定网站建设哪家好公众号开发
  • 网站目录结构网络营销五种方法
  • 重庆营销型网站随做的好处百度站长工具链接提交
  • wordpress uazoh7外链seo招聘
  • web程序设计asp.net实用网站开发外链兔
  • 网站建设的内容管理磁力链
  • 上海网站建设企宁波网站推广优化外包
  • 做国际网站每年要多少钱湖南靠谱的关键词优化
  • 成都网站建设推广淘宝seo什么意思
  • app推广拉新一手渠道代理百度网站怎么优化排名
  • wordpress怎么填写关键词高级seo优化招聘
  • vi设计与网站建设招标文件cpu优化软件
  • 俄罗斯的外贸b2b网站seo标题优化步骤
  • 工厂弄个网站做外贸如何处理企业网络推广
  • 33vu页面访问升级版本排名优化软件点击
  • 无锡网站制作一般多少钱seo优化工具
  • 网站推广外链今天中国新闻
  • wordpress插件 网站跳转百度关键词优化推广
  • 网站建设百度推广咨询热线广告代理商
  • 济南论坛网站建设seo简介
  • 龙岗建设企业网站网络营销策划书范文模板
  • 和印度做外贸的网站企业员工培训课程内容
  • 把别人的图片拿来做网站有源码怎么搭建网站
  • 什么网站专做秒杀怎么优化网站关键词的方法
  • 南宁网站建设超博网络免费永久注册顶级域名网站
  • 个人备案网站营业执照2023北京封控了
  • asp做的网站亚丝娜娜本子全彩武汉seo托管公司
  • 直播网站开发秀色如何推销网站