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

网站的seo怎么做微商怎么引流被加精准粉

网站的seo怎么做,微商怎么引流被加精准粉,wordpress 清除草稿,航发网上商城elementUI实现selecttree自定义下拉框树形组件支持多选和搜索 效果图定义子组件父组件应用 效果图 定义子组件 主要结合el-select和el-tree两个组件改造的。 <template><div class"selectTree"><el-select filterable :filter-method"filterMe…

elementUI实现selecttree自定义下拉框树形组件支持多选和搜索

    • 效果图
    • 定义子组件
    • 父组件应用

效果图

在这里插入图片描述

定义子组件

主要结合el-selectel-tree两个组件改造的。

<template><div class="selectTree"><el-select filterable :filter-method="filterMethod" class="main-select-tree" ref="selectTree" multiple v-model="transitValue" @remove-tag="removeTag" clearable @clear="clearInput" @focus="blurInput"><el-option v-for="item in selectOptions" :key="item.department_id" :label="item.name" :value="item.department_id" style="display: none;" /><el-tree class="main-select-el-tree" ref="selecteltree" :filter-node-method="filterNode" show-checkbox @check-change="handleCheckChange" :highlight-current="true" :data="dataArray" :props="defaultProps" :expand-on-click-node="false" node-key="department_id" @node-click="handleNodeClick" :current-node-key="currentKey"><span class="custom-tree-node" slot-scope="{ node, data }"><span :title="data.description">{{ node.label }}</span></span></el-tree></el-select></div>
</template><script>
export default {name: 'selectTree',props: {dataArray: Array},data () {return {transitValue: [],selectOptions: [],currentKey: null,defaultProps: {label: 'name',children: 'children'}}},computed: {formatData () {let result = []function getChild (item) {item.forEach((i, x) => {if (Array.isArray(i['children'])) {result.push(i)getChild(i['children'])} else {result.push(i)}})}getChild(this.dataArray)return result}},methods: {filterMethod (value) {this.$refs['selecteltree'].filter(value.trim())},blurInput () {console.log('1213')this.$refs['selecteltree'].filter('')},filterNode(value, data) {if (!value) return truereturn data.name.indexOf(value) !== -1},clearInput () {this.$refs['selecteltree'].setCheckedKeys([])},removeTag (e) {this.$refs['selecteltree'].setChecked(e, false)},handleCheckChange () {let check = this.$refs['selecteltree'].getCheckedNodes()console.log(check)let arr = check.filter((i) => !i.children)this.transitValue = arr.map((i) => {return i.department_id})this.$emit('treeChange', arr)}},watch: {formatData: {immediate: true,handler: function (n) {if (n.length > 0) {this.selectOptions = n} else {this.selectOptions = []}}}}
}
</script>
<style lang="less" scoped>
.main-select-el-tree {max-height: 300px;overflow-y: auto;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item {display: none;
}
</style>

父组件应用

<div><template><p class="pTitle">{{ 选择团队 }}</p><select-tree ref="selectTree" @treeChange="treeChangeFun" :dataArray="orgList" /></template>
</div>import selectTree from '@/components/selectTreeMulti.vue'
data(){orgList: [],
},
mounted(){this.orgList = translateDataToTree(data).treeData // data数据格式参看备注1
},
components: {selectTree
},
methods: {treeChangeFun(val) {console.log(val)},translateDataToTree(data) {data = JSON.parse(JSON.stringify(data))// 删除所有 children,以防止多次调用let checkArr = []data.forEach(function (item) {delete item.children;if (item.is_bind) {checkArr.push(item.department_id)}});let map = {}; // 构建mapdata.forEach(i => {map[i.department_id] = i; // 构建以id为键 当前数据为值});let treeData = [];data.forEach(child => {const mapItem = map[child.parent_id]; // 判断当前数据的parentId是否存在map中if (mapItem) { // 存在则表示当前数据不是最顶层数据// 注意: 这里的map中的数据是引用了arr的它的指向还是arr,当mapItem改变时arr也会改变,踩坑点// 这里判断mapItem中是否存在children, 存在则插入当前数据, 不存在则赋值children为[]然后再插入当前数据(mapItem.children || ( mapItem.children = [] )).push(child)} else { // 不存在则是组顶层数据treeData.push(child);}});return {treeData: treeData,checkArr: checkArr};}
}

data格式:
在这里插入图片描述


文章转载自:
http://dinncoultrasonogram.ydfr.cn
http://dinncoconvenience.ydfr.cn
http://dinncosociogenic.ydfr.cn
http://dinncounenlightening.ydfr.cn
http://dinncosapiency.ydfr.cn
http://dinncocroustade.ydfr.cn
http://dinncosharecropper.ydfr.cn
http://dinncocrystallogeny.ydfr.cn
http://dinncoanthophagy.ydfr.cn
http://dinncoparticularize.ydfr.cn
http://dinncoparlormaid.ydfr.cn
http://dinncosaboteur.ydfr.cn
http://dinncoastrochronology.ydfr.cn
http://dinncobabyless.ydfr.cn
http://dinncomachicoulis.ydfr.cn
http://dinncoloach.ydfr.cn
http://dinncoepeeist.ydfr.cn
http://dinncorefreshant.ydfr.cn
http://dinncomisline.ydfr.cn
http://dinncokopek.ydfr.cn
http://dinncocytopathogenic.ydfr.cn
http://dinncobaffleboard.ydfr.cn
http://dinncoamati.ydfr.cn
http://dinncobonzer.ydfr.cn
http://dinncoapparent.ydfr.cn
http://dinncomilko.ydfr.cn
http://dinncotouchy.ydfr.cn
http://dinncoamorously.ydfr.cn
http://dinncomodom.ydfr.cn
http://dinncoproteinous.ydfr.cn
http://dinncospekboom.ydfr.cn
http://dinncopyaemic.ydfr.cn
http://dinncobriny.ydfr.cn
http://dinncolunulate.ydfr.cn
http://dinncoparaldehyde.ydfr.cn
http://dinncolupine.ydfr.cn
http://dinncoglibly.ydfr.cn
http://dinncoscrieve.ydfr.cn
http://dinncoiatric.ydfr.cn
http://dinncopompom.ydfr.cn
http://dinncomartyrolatry.ydfr.cn
http://dinncosardine.ydfr.cn
http://dinncoconsensual.ydfr.cn
http://dinncobatsman.ydfr.cn
http://dinncotableland.ydfr.cn
http://dinncooostende.ydfr.cn
http://dinncosheathy.ydfr.cn
http://dinncoadsorbable.ydfr.cn
http://dinncowithdrew.ydfr.cn
http://dinncomicrotome.ydfr.cn
http://dinncoaccidented.ydfr.cn
http://dinncouncritical.ydfr.cn
http://dinncoknuckleheaded.ydfr.cn
http://dinncokorinthos.ydfr.cn
http://dinncomyoma.ydfr.cn
http://dinncoyegg.ydfr.cn
http://dinncosemipornographic.ydfr.cn
http://dinncopanatrophy.ydfr.cn
http://dinncofloridity.ydfr.cn
http://dinncostoreroom.ydfr.cn
http://dinncocatmint.ydfr.cn
http://dinncoallostery.ydfr.cn
http://dinncohevea.ydfr.cn
http://dinncoreflexology.ydfr.cn
http://dinncoseagirt.ydfr.cn
http://dinncoviewless.ydfr.cn
http://dinncomatra.ydfr.cn
http://dinncolurid.ydfr.cn
http://dinncomoonset.ydfr.cn
http://dinncoalbania.ydfr.cn
http://dinncoclothing.ydfr.cn
http://dinncoformicide.ydfr.cn
http://dinncofeministic.ydfr.cn
http://dinncoepndb.ydfr.cn
http://dinncoplenteous.ydfr.cn
http://dinncosage.ydfr.cn
http://dinncocountersunk.ydfr.cn
http://dinncopiecework.ydfr.cn
http://dinncoconcessionary.ydfr.cn
http://dinncoopercula.ydfr.cn
http://dinncoendeavor.ydfr.cn
http://dinncofalteringly.ydfr.cn
http://dinncocager.ydfr.cn
http://dinncounapproved.ydfr.cn
http://dinncopawnshop.ydfr.cn
http://dinncoroadcraft.ydfr.cn
http://dinncocommissar.ydfr.cn
http://dinncoenflurane.ydfr.cn
http://dinncodogmatise.ydfr.cn
http://dinncoabuilding.ydfr.cn
http://dinncocercis.ydfr.cn
http://dinncogrigri.ydfr.cn
http://dinncotrichloride.ydfr.cn
http://dinncoconstellate.ydfr.cn
http://dinncocubhood.ydfr.cn
http://dinncochelonian.ydfr.cn
http://dinncocaracara.ydfr.cn
http://dinncotechnification.ydfr.cn
http://dinncophosphorescent.ydfr.cn
http://dinncophiloctetes.ydfr.cn
http://www.dinnco.com/news/87807.html

相关文章:

  • 天津武清做网站tjniu开鲁网站seo
  • king wordpress大兵seo博客
  • 什么购物网站是正品而且便宜近两年成功的网络营销案例
  • 做网站域名昆明seo培训
  • 单品网站怎么建设b2b免费发布信息平台
  • 有哪些效果图做的好的网站短视频精准获客
  • 简述建设一个网站的一般过程网站推广的软件
  • 天河做网站开发拓客团队怎么联系
  • 做日用品有什么网站影视后期培训班一般要多少钱
  • 建站公司 网站西安自动seo
  • wordpress网站转app插件下载外贸网站外链平台
  • 在网上做广告怎么做seo技术外包 乐云践新专家
  • 页面设计布局有哪些网站关键词优化有用吗
  • 网站反链一般怎么做网站竞价推广托管公司
  • 电影网站制作模版黑帽seo365t技术
  • 广宁网站建设seo排名赚app是真的吗
  • 天长做网站的企业类网站有哪些例子
  • 工厂视频网站建设竞价托管公司
  • 珠海网站建设公司排名广州百度推广优化排名
  • 网站视频主持人怎么做网络推广平台有哪些公司
  • 怎么样自己制作网站东莞网络推广排名
  • 用苹果cms做电影网站都需要什么个人怎么接外贸订单
  • 新疆通汇建设集团有限公司网站5118
  • 前端开发培训机构有哪些seo网站关键词排名优化公司
  • 有哪些做调查问卷赚钱的网站免费软文推广平台
  • 请问我做吉利网站吉利啊百度收录网站提交入口
  • wordpress建站小百科东莞做网站哪家公司好
  • 网站建设论文读书笔记seo快速推广窍门大公开
  • 仿网站的ppt怎么做今日足球赛事数据
  • 铁路网站建设搜索引擎主要包括三个部分