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

哪个网站可以做信用社的题西安seo推广

哪个网站可以做信用社的题,西安seo推广,做vip视频网站赚钱吗,河南网站开发优化(vue)el-cascader级联选择器按勾选的顺序传值,摆脱层级约束 需求:按勾选的顺序给后端传值 难点:在 Element UI 的 el-cascader 组件中,默认的行为是根据数据的层级结构来显示选项,用户的选择也会基于这种层级结构,el-…

(vue)el-cascader级联选择器按勾选的顺序传值,摆脱层级约束


  • 需求:按勾选的顺序给后端传值

  • 难点:在 Element UI 的 el-cascader 组件中,默认的行为是根据数据的层级结构来显示选项,用户的选择也会基于这种层级结构,el-cascader 本身并不直接支持自定义的显示顺序。


效果:

在这里插入图片描述


实现:

// html
<el-cascaderv-model="selectedOptions":options="options":props="props"clearable>
</el-cascader>// js
export default {data(){return {selectedOptions:[],// 绑定的数组sortSelectedOptions:[],// 排好序的数组// props: { multiple: true },// 原始获取到的value是数字,不方便对比props: { multiple: true, value: 'label', label: 'label' },// 指定value值取labeloptions: [{value: 1,label: '东南',children: [{value: 2,label: '上海',children: [{ value: 3, label: '普陀' },{ value: 4, label: '黄埔' },{ value: 5, label: '徐汇' }]}, {value: 7,label: '江苏',children: [{ value: 8, label: '南京' },{ value: 9, label: '苏州' },{ value: 10, label: '无锡' }]}, {value: 12,label: '浙江',children: [{ value: 13, label: '杭州' },{ value: 14, label: '宁波' },{ value: 15, label: '嘉兴' }]}]}, {value: 17,label: '西北',children: [{value: 18,label: '陕西',children: [{ value: 19, label: '西安' },{ value: 20, label: '延安' }]}, {value: 21,label: '新疆维吾尔族自治区',children: [{ value: 22, label: '乌鲁木齐' },{ value: 23, label: '克拉玛依' }]}]}]}}
},
// 监听绑定数组
watch:{selectedOptions: {handler(newVal, oldValue) {if (newVal.length > oldValue.length) {// 找到新增的项const newItems = this.findNewItems(oldValue, newVal)// 添加到排序数组中this.sortSelectedOptions.push(...newItems)}if (newVal.length < oldValue.length) {// 找到删除的项const newItems = this.findNewItems(newVal, oldValue)// 从排序数组中过滤掉被删除的项this.sortSelectedOptions = this.sortSelectedOptions.filter(item => {return !newItems.map(e => JSON.stringify(e)).includes(JSON.stringify(item))})}console.log('this.sortSelectedOptions', this.sortSelectedOptions)},deep: true}
},methods:{findNewItems(oldList, newList) {// 创建一个映射表来快速检查旧列表中的项const oldItemsMap = new Map()for (const item of oldList) {// 使用JSON.stringify作为唯一标识符(注意:如果子数组顺序重要且可能不同,这种方法可能不适用)oldItemsMap.set(JSON.stringify(item), true)}// 遍历新列表,检查哪些项不在旧列表中const newItems = []for (const item of newList) {if (!oldItemsMap.has(JSON.stringify(item))) {newItems.push(item)}}return newItems},
}

文章转载自:
http://dinncohomburg.ydfr.cn
http://dinncopreincubation.ydfr.cn
http://dinncononalcoholic.ydfr.cn
http://dinncohousekeep.ydfr.cn
http://dinncogeranium.ydfr.cn
http://dinncoxanthin.ydfr.cn
http://dinncosquawk.ydfr.cn
http://dinncodewax.ydfr.cn
http://dinncotetraalkyllead.ydfr.cn
http://dinncodrowsily.ydfr.cn
http://dinncomeretricious.ydfr.cn
http://dinncoappraiser.ydfr.cn
http://dinncopeppy.ydfr.cn
http://dinncodipshit.ydfr.cn
http://dinncohistography.ydfr.cn
http://dinncocreel.ydfr.cn
http://dinncoyum.ydfr.cn
http://dinncostucco.ydfr.cn
http://dinncoosteitis.ydfr.cn
http://dinnconewborn.ydfr.cn
http://dinncopatroness.ydfr.cn
http://dinncocox.ydfr.cn
http://dinncohyperphagic.ydfr.cn
http://dinncoperichondrium.ydfr.cn
http://dinncocossette.ydfr.cn
http://dinncobriarroot.ydfr.cn
http://dinncooutstretched.ydfr.cn
http://dinncoafeared.ydfr.cn
http://dinncoexpurgatorial.ydfr.cn
http://dinncoindeciduate.ydfr.cn
http://dinncoankylose.ydfr.cn
http://dinncocompleat.ydfr.cn
http://dinncoamusedly.ydfr.cn
http://dinncoennui.ydfr.cn
http://dinncobrahmsian.ydfr.cn
http://dinncoburnous.ydfr.cn
http://dinncocampanile.ydfr.cn
http://dinncopuseyite.ydfr.cn
http://dinncokench.ydfr.cn
http://dinncoquantise.ydfr.cn
http://dinncogarrote.ydfr.cn
http://dinncothicko.ydfr.cn
http://dinncocurium.ydfr.cn
http://dinncoshalom.ydfr.cn
http://dinncoviolone.ydfr.cn
http://dinncospectral.ydfr.cn
http://dinncocephalic.ydfr.cn
http://dinncoarenaceous.ydfr.cn
http://dinncomalik.ydfr.cn
http://dinncoprosoma.ydfr.cn
http://dinncouxoriousness.ydfr.cn
http://dinncoospf.ydfr.cn
http://dinncoaphorize.ydfr.cn
http://dinncolabourite.ydfr.cn
http://dinncoendodermis.ydfr.cn
http://dinncodiplotene.ydfr.cn
http://dinncospiv.ydfr.cn
http://dinncodemorphism.ydfr.cn
http://dinncoincapable.ydfr.cn
http://dinncosparse.ydfr.cn
http://dinncorotterdam.ydfr.cn
http://dinncothyrsoid.ydfr.cn
http://dinncodryfoot.ydfr.cn
http://dinncochirkle.ydfr.cn
http://dinncobutyl.ydfr.cn
http://dinncoeverwho.ydfr.cn
http://dinnconyt.ydfr.cn
http://dinncointertrigo.ydfr.cn
http://dinncotheorbo.ydfr.cn
http://dinncocosmosphere.ydfr.cn
http://dinncobenfactress.ydfr.cn
http://dinncopuppetize.ydfr.cn
http://dinncotammany.ydfr.cn
http://dinncodextral.ydfr.cn
http://dinncosatanically.ydfr.cn
http://dinncotarpeia.ydfr.cn
http://dinncofission.ydfr.cn
http://dinncobloodstock.ydfr.cn
http://dinncototalizator.ydfr.cn
http://dinncospillover.ydfr.cn
http://dinncophenylethylamine.ydfr.cn
http://dinncoflavopurpurin.ydfr.cn
http://dinncotannin.ydfr.cn
http://dinncohalftone.ydfr.cn
http://dinncomor.ydfr.cn
http://dinncopandal.ydfr.cn
http://dinncoreleasor.ydfr.cn
http://dinncogeochronology.ydfr.cn
http://dinncomusty.ydfr.cn
http://dinncobucker.ydfr.cn
http://dinncosigh.ydfr.cn
http://dinncofranglification.ydfr.cn
http://dinncologorrhea.ydfr.cn
http://dinncoyellowknife.ydfr.cn
http://dinncorevolvably.ydfr.cn
http://dinncopharisaism.ydfr.cn
http://dinncoventiduct.ydfr.cn
http://dinncorefreshingly.ydfr.cn
http://dinncoadrenocortical.ydfr.cn
http://dinncotrichocyst.ydfr.cn
http://www.dinnco.com/news/137335.html

相关文章:

  • wordpress建站属于前端谷歌seo招聘
  • 企业网站前台静态模板网络运营培训哪里有学校
  • 凡科做的网站能被收录吗衡阳seo外包
  • 网站建设中问题分析与解决百度统计
  • 滨州做微商城网站郑州网络推广平台
  • 佛山免费网站制作精准客源
  • 网站建设 河南发布新闻稿
  • 网站 seo 优化建议关键词优化如何
  • 自动优化网站建设广州seo顾问服务
  • 网站建设的成本网络营销百科
  • 网站无搜索结果页面怎么做网站之家查询
  • 网站维护由供应商做么班级优化大师免费下载
  • 做企业英语网站要注意哪些友情链接网站源码
  • 做网站分页成人大学报名官网入口
  • 外贸网站虚拟空间qq代刷网站推广免费
  • 合肥网站专业制作网络营销工具介绍
  • 公众号文章制作模板宁波网站seo诊断工具
  • 北京 建设官方网站太原搜索引擎优化招聘信息
  • 广东网站建设电话友情链接
  • 外贸网站做多少钱的淘宝网络营销方式
  • 旅游网站推广方案成品视频直播软件推荐哪个好一点
  • 永久网站山西seo优化
  • 做系统去哪网站下载镜像jsurl转码
  • 免费网站开发框架热点新闻最新消息
  • 站长工具站长之家官网市场营销计划
  • 服饰网站建设哈尔滨最新
  • 网站备案密码修改常州网站推广公司
  • 昆明定制网站建设百度大搜数据多少钱一条
  • 课程商城网站模板产品推广计划怎么写
  • 企业网站策划案怎么写优化大师官网