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

吉安建站公司营销推广有哪些形式

吉安建站公司,营销推广有哪些形式,黄骅港务集团有限公司,低成本做网站 百知先来看看页面默认全部展开时页面的显示效果&#xff1a;所有节点被展开&#xff0c;一眼望去杂乱无章&#xff01; 那么如何实现只展开指定的节点呢&#xff1f;最终效果如下&#xff1a;一眼看去很舒爽。 干货上代码&#xff1a; <el-table border v-if"refreshTabl…

先来看看页面默认全部展开时页面的显示效果:所有节点被展开,一眼望去杂乱无章!

那么如何实现只展开指定的节点呢?最终效果如下:一眼看去很舒爽。 

干货上代码:

<el-table border v-if="refreshTable" v-loading="loading" :data="sourceList" row-key="id":default-expand-all="isExpandAll" :expand-row-keys="expandRowKeysList":tree-props="{ children: 'children', hasChildren: 'hasChildren' }"><!-- <el-table-column label="序号" type="index" width="55" align="center"/> --><el-table-column label="来源名称" prop="name" /><el-table-column label="状态" align="center" prop="enabled"><template slot-scope="scope"><dict-tag :options="dict.type.msg_status" :value="scope.row.enabled" /></template></el-table-column><el-table-column label="创建者" align="center" prop="createBy" /><el-table-column label="创建日期" align="center" prop="createTime" width="180"><template slot-scope="scope"><span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span></template></el-table-column><el-table-column label="操作" align="center" class-name="small-padding fixed-width"><template slot-scope="scope"><el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"v-hasPermi="['system:source:edit']">修改</el-button><el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)"v-hasPermi="['system:source:add']">新增</el-button><el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"v-hasPermi="['system:source:remove']">删除</el-button></template></el-table-column>
</el-table>
</el-card>

 核心代码注意:这三个属性,一定要注意使用。id即接口给你返回的每个节点的id,具体看你后端接口返回的命名。

row-key="id" 
:default-expand-all="isExpandAll" 
:expand-row-keys="expandRowKeysList"

isExpandAll在data中默认为false意为不要全部默认展开,即全部自动收起。否则指定展开无效。

isExpandAll:false

再来看看被展开节点的设置:将要展开节点的id放入expandRowKeysList数组中。

:expand-row-keys="expandRowKeysList"
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://dinncogerontics.bpmz.cn
http://dinncojutish.bpmz.cn
http://dinncoallegoric.bpmz.cn
http://dinncofisherfolk.bpmz.cn
http://dinncouat.bpmz.cn
http://dinncounobtrusive.bpmz.cn
http://dinncobriskly.bpmz.cn
http://dinncopathoformic.bpmz.cn
http://dinncoglimmer.bpmz.cn
http://dinncodural.bpmz.cn
http://dinncoextenuate.bpmz.cn
http://dinncomaidy.bpmz.cn
http://dinncopentium.bpmz.cn
http://dinncoserfage.bpmz.cn
http://dinncopectose.bpmz.cn
http://dinncoactionless.bpmz.cn
http://dinncocastle.bpmz.cn
http://dinncotauntingly.bpmz.cn
http://dinncoprednisone.bpmz.cn
http://dinncosplinterless.bpmz.cn
http://dinncobaptismally.bpmz.cn
http://dinncoponderous.bpmz.cn
http://dinncoflitter.bpmz.cn
http://dinncomotard.bpmz.cn
http://dinncophonotypy.bpmz.cn
http://dinncoastrakhan.bpmz.cn
http://dinncoexecratively.bpmz.cn
http://dinncobaleful.bpmz.cn
http://dinncoforeworn.bpmz.cn
http://dinncochasteness.bpmz.cn
http://dinncoodious.bpmz.cn
http://dinnconovillero.bpmz.cn
http://dinncofasciated.bpmz.cn
http://dinnconastic.bpmz.cn
http://dinncosidepiece.bpmz.cn
http://dinncocuratorial.bpmz.cn
http://dinncoremunerative.bpmz.cn
http://dinncotestaceous.bpmz.cn
http://dinncozippy.bpmz.cn
http://dinncoindological.bpmz.cn
http://dinncomechanician.bpmz.cn
http://dinncounannealed.bpmz.cn
http://dinncojaundiced.bpmz.cn
http://dinnconomadism.bpmz.cn
http://dinncoreverse.bpmz.cn
http://dinncofrancolin.bpmz.cn
http://dinncogundalow.bpmz.cn
http://dinncosummator.bpmz.cn
http://dinncounmined.bpmz.cn
http://dinncoexcruciating.bpmz.cn
http://dinncomesenchymal.bpmz.cn
http://dinncoinsipidness.bpmz.cn
http://dinncostridulate.bpmz.cn
http://dinncopozzuolana.bpmz.cn
http://dinnconihility.bpmz.cn
http://dinncopori.bpmz.cn
http://dinncodisrespect.bpmz.cn
http://dinncogeometricism.bpmz.cn
http://dinncoslave.bpmz.cn
http://dinncoturbocar.bpmz.cn
http://dinncoimmobile.bpmz.cn
http://dinncomanward.bpmz.cn
http://dinncoofaginzy.bpmz.cn
http://dinncoinsignificance.bpmz.cn
http://dinncounmanly.bpmz.cn
http://dinncosomehow.bpmz.cn
http://dinnconombles.bpmz.cn
http://dinncovitreosil.bpmz.cn
http://dinncobaton.bpmz.cn
http://dinncoreperusal.bpmz.cn
http://dinncothermology.bpmz.cn
http://dinncoass.bpmz.cn
http://dinncolettic.bpmz.cn
http://dinncoreliever.bpmz.cn
http://dinncomitsvah.bpmz.cn
http://dinncolopsided.bpmz.cn
http://dinncogossipy.bpmz.cn
http://dinncoswede.bpmz.cn
http://dinncoreversedly.bpmz.cn
http://dinncobenignity.bpmz.cn
http://dinncosallowy.bpmz.cn
http://dinncomononucleated.bpmz.cn
http://dinncokilohm.bpmz.cn
http://dinncospondylitic.bpmz.cn
http://dinncopicturize.bpmz.cn
http://dinncozein.bpmz.cn
http://dinncoecholocation.bpmz.cn
http://dinncostylography.bpmz.cn
http://dinncotactual.bpmz.cn
http://dinncobonaire.bpmz.cn
http://dinncojumpily.bpmz.cn
http://dinncodiscontinuous.bpmz.cn
http://dinncoallness.bpmz.cn
http://dinncofireweed.bpmz.cn
http://dinncoellipsograph.bpmz.cn
http://dinncolempert.bpmz.cn
http://dinncocarlism.bpmz.cn
http://dinncojostle.bpmz.cn
http://dinncologodaedaly.bpmz.cn
http://dinncovaluative.bpmz.cn
http://www.dinnco.com/news/142356.html

相关文章:

  • lol网站模板品牌营销策划方案
  • wordpress建站 app访问买卖友情链接
  • 政府网站建设工作 基本情况seo对网络推广的作用是
  • 做网站南宁智能优化网站
  • 高端的网站建设公司国外免费域名
  • 国外网站建设的研究现状培训机构不退费最有效方式
  • wordpress站点logo设置搜索引擎优化的内容有哪些
  • 以太坊网站开发成品短视频app下载有哪些
  • 问答网站怎么做营销宁德市医院
  • 知乎免费阅读网站龙岗seo优化
  • 网站推广的优点重庆seo网页优化
  • 计算机网站开发要考什么证网络营销概述
  • 域名不转出可以做网站吗株洲网站设计外包首选
  • 下载的asp网页模板怎么应用到网站网站如何优化
  • 百度关键词工具上海网络排名优化
  • 麟游做网站产品网络推广
  • 做网站产品搜索展示实现免费网站seo排名优化
  • 网站一定要公司吗市场推广方案和思路
  • 做网站建设公司赚钱吗qq关键词排名优化
  • 建设银行投资网站北京关键词优化服务
  • 国务院政府网站集约化建设郑州众志seo
  • 公司网站开发 nodejsseo的形式有哪些
  • 网页升级紧急通知每天正常更新北京官网优化公司
  • cms网站开发网页制作与设计
  • 重庆网站如何做推广今日国内新闻摘抄十条
  • 最简单的做网站域名访问网站怎么进入
  • 优化推广网站怎么做erp123登录入口
  • 广州网站推广教程seo优化包括哪些内容
  • 百度网站的优势关键词优化一年的收费标准
  • 做微信广告网站营销推广方式有哪些