【vue3】实现筛选页组件(深层嵌套循环数据切换)的封装和调用

本文主要是介绍【vue3】实现筛选页组件(深层嵌套循环数据切换)的封装和调用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、页面布局截图

1、首次进入该页面,默认选中初中项,并加载右侧初中相关的课程列表

2、筛选页(当点击初中项下的科目项,展示右侧筛选弹窗)

3、切换无内容项展示

图例1:无科目以及无课程列表的截图

 

图例2:有科目无右侧筛选弹窗内容截图

 二、筛选展示的数据结构如下(数据内容仅供参考)

let data=[{"Id": 48,"Name": "初中","AliasName": "","ParentId": 5,"CoverUrl": null,"Children": [{"Id": 50,"Name": "数学","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": [{"Id": 134,"Name": "版本","AliasName": "","ParentId": 50,"CoverUrl": null,"Children": [{"Id": 135,"Name": "人教版","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": [{"Id": 141,"Name": "年级","AliasName": "","ParentId": 135,"CoverUrl": null,"Children": [{"Id": 142,"Name": "七年级上","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": [{"Id": 148,"Name": "每章","AliasName": "","ParentId": 142,"CoverUrl": null,"Children": [{"Id": 149,"Name": "第一章","AliasName": "","ParentId": 148,"CoverUrl": null,"Children": [{"Id": 152,"Name": "每节","AliasName": "","ParentId": 149,"CoverUrl": null,"Children": [{"Id": 181,"Name": "第一节 函数、分数、负数","AliasName": "","ParentId": 152,"CoverUrl": null,"Children": null},{"Id": 182,"Name": "第二节 运算","AliasName": "","ParentId": 152,"CoverUrl": null,"Children": null}]}]},{"Id": 150,"Name": "第二章","AliasName": "","ParentId": 148,"CoverUrl": null,"Children": null},{"Id": 151,"Name": "第三章","AliasName": "","ParentId": 148,"CoverUrl": null,"Children": null}]}]},{"Id": 143,"Name": "七年级下","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": null},{"Id": 144,"Name": "八年级上","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": null},{"Id": 145,"Name": "八年级下","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": null},{"Id": 146,"Name": "九年级上","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": null},{"Id": 147,"Name": "九年级下","AliasName": "","ParentId": 141,"CoverUrl": null,"Children": null}]}]},{"Id": 136,"Name": "北师大版","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": [{"Id": 183,"Name": "年级","AliasName": "","ParentId": 136,"CoverUrl": null,"Children": [{"Id": 162,"Name": "七年级上册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": [{"Id": 168,"Name": "每章","AliasName": "","ParentId": 162,"CoverUrl": null,"Children": [{"Id": 169,"Name": "第一章 丰富的图形世界","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": [{"Id": 176,"Name": "知识点","AliasName": "","ParentId": 169,"CoverUrl": null,"Children": [{"Id": 177,"Name": "生活中的立体图形","AliasName": "","ParentId": 176,"CoverUrl": null,"Children": null},{"Id": 178,"Name": "展开与折叠","AliasName": "","ParentId": 176,"CoverUrl": null,"Children": null}]}]},{"Id": 170,"Name": "第二章 有理数及其运算","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null},{"Id": 171,"Name": "第三章 整式及其加减","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null},{"Id": 172,"Name": "第四章 基本平面图形","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null},{"Id": 173,"Name": "第五章 一元一次方程","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null},{"Id": 174,"Name": "第六章 数据的收集与整理","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null},{"Id": 175,"Name": "综合复习与测试","AliasName": "","ParentId": 168,"CoverUrl": null,"Children": null}]}]},{"Id": 163,"Name": "七年级下册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": null},{"Id": 164,"Name": "八年级上册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": null},{"Id": 165,"Name": "八年级下册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": null},{"Id": 166,"Name": "九年级上册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": null},{"Id": 167,"Name": "九年级下册","AliasName": "","ParentId": 183,"CoverUrl": null,"Children": null}]}]},{"Id": 137,"Name": "苏科版","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 138,"Name": "沪科版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 139,"Name": "华东师大版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 140,"Name": "浙教版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 155,"Name": "冀教版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 156,"Name": "青岛版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 157,"Name": "鲁教版(五四制)(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 158,"Name": "人教版(五四制)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 159,"Name": "京改版","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 160,"Name": "沪教版(上海)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null},{"Id": 161,"Name": "湘教版(2012)","AliasName": "","ParentId": 134,"CoverUrl": null,"Children": null}]}]},{"Id": 51,"Name": "语文","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null},{"Id": 52,"Name": "英语","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null},{"Id": 53,"Name": "物理","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null},{"Id": 54,"Name": "化学","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null},{"Id": 55,"Name": "生物","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null},{"Id": 56,"Name": "政治","AliasName": "","ParentId": 48,"CoverUrl": null,"Children": null}]},{"Id": 49,"Name": "高中","AliasName": "","ParentId": 5,"CoverUrl": null,"Children": null}
]

三、组件的封装,以下三个vue页面文件组件,组合成了筛选页

1、分析

根据设计图需求以及数据结构的结合,返回的数据结构形成的深层嵌套循环与布局不符,其中Children下的数组,数组下的Children是不确定到底有多少层级的,因此

(1)如果直接循环渲染,页面是还原不了设计图的(无论多少层级,都要求左对齐)

(2)如果通过定位的方式布局,就直接写死了(行不通)

2、针对 问题(1) 采取的方法

(1)将右侧筛选弹窗的内容封装成小的组件 menuTree1.vue (也是最里层),如下图

menuTree1.vue

<template><div class="r_item" :style="'width:100%;margin-left:' + (prs.index > 0 ? -prs.width : 0) + 'px'"v-for="(right,riIndex) in menuList" :key="riIndex"><div style="display:flex;" v-if="right.Children &&right.Children.length>0"><div class="r_item_title" :data-index="right.Id">{{ right.Name }}></div><div class="r_nav" v-if="right.Children && right.Children.length > 0"><div class="r_nav_item" v-for="(chi, chiIndex) in right.Children" :key="chiIndex":class="`${person.menuActive == chi.Id ? 'r_nav_item_active' : ''} ${right.Children.length === 1 ?'r_nav2':''}`"@click="goPage(chi.Children, chi.Id, right.Id, chiIndex)">{{ chi.Name }}</div><menuTree v-if="person.isChild && person.isChild[0].ParentId == person.ClickId && right.Id == person.Pid":menuList="person.isChild" :width="person.width" :Id="person.ClickId" :index="1" @MenuTree1="MenuTree1"></menuTree></div></div></div>
</template>
<script setup lang="ts">
import menuTree from './menuTree1.vue';
import { nextTick, onMounted, reactive, ref, toRaw } from 'vue';
let person: any = reactive({IsChild: [],ClickId: 0,Pid: 0,index: 0,width: 0,menuActive:-1,cwidth:0
})
type Menu = {Name: string,Children?: Menu[],ParentId: number,Id: number
}
const isChild = ref()
type Props = {menuList: Menu[],index: number,width:number,Id:number
}
var prop = defineProps<Props>()
let prs = toRaw(prop)const emits = defineEmits(['MenuTree1']);const goPage = (data: Menu[], Id: number, Pid: number,index:number) => {person.menuActive = Idperson.isChild = dataperson.ClickId = Idperson.Pid = Pidperson.index = person.index + 1var a = document.getElementsByClassName('r_item_title')for (let index = 0; index < a.length; index++) {const element = a[index];var di = element.getAttribute('data-index')if (Number(di) === Pid) {// person.width = element.scrollWidth // + 15// 获取元素let secMargin = getComputedStyle(element);person.width = element.scrollWidth + parseFloat(secMargin.marginRight.replace('px', ''))break;}}emits('MenuTree1', Id);
};
const MenuTree1 = (Id: number) => {emits('MenuTree1', Id);
}
onMounted(()=>{nextTick(()=>{person.cwidth = document.body.scrollWidthwindow.onresize=()=>{var a = document.getElementsByClassName('r_item_title')[0]let secMargin = getComputedStyle(a);var w = a.scrollWidth + parseFloat(secMargin.marginRight.replace('px', ''))//获取所有的r_item 元素var r_item = document.getElementsByClassName('r_item')for (let index = 0; index < r_item.length; index++) {const element = r_item[index];//判断是否存在margin-leftlet elementSecMargin = getComputedStyle(element);var i = elementSecMargin.marginLeft.replace('px', '')if (parseInt(i)<0){element.style.marginLeft = -w + "px"}}}})
})
</script>

(2)再将 menuTree1.vue 引入 封装的第二层组件 menuTree.vue 循环调用

menuTree.vue

<template><div class="r_item" :style="'width:100%;'" v-for="(right,riIndex) in menuList" :key="riIndex"><div style="display:flex;"><div class="r_item_title" :data-index="right.Id">{{ right.Name }}></div><div class="r_nav" v-if="right.Children && right.Children.length>0"><div class="r_nav_item" :class="person.menuActive == chi.Id ?'r_nav_item_active':''" v-for="(chi,chiIndex) in right.Children" :key="chiIndex" @click="goPage(chi.Children, chi.Id, right.Id, chiIndex)">{{ chi.Name }}</div><menuTree v-if="person.isChild && person.isChild[0].ParentId == person.ClickId && right.Id==person.Pid" :width="person.width" :menuList="person.isChild" :index="1":Id="0"  @MenuTree1="MenuTree1"></menuTree></div></div></div></template>
<script setup lang="ts">
import menuTree from './menuTree1.vue';
import { reactive, ref, toRaw } from 'vue';
let person: any = reactive({IsChild:[],ClickId:0,Pid:0,index:0,width:0,menuActive:-1
})
type Menu = {Name: string,Children?: Menu[],ParentId: number,Id: number
}
const isChild = ref()
type Props = {menuList: Menu[],index:number
}
var prop= defineProps<Props>()
let prs = toRaw(prop)const emits = defineEmits(['MenuTree']);const goPage = (data:Menu[],Id:number,Pid:number,index:number) => {person.menuActive = Idperson.isChild=dataperson.ClickId=Idperson.Pid=Pidperson.index=person.index+1var a= document.getElementsByClassName('r_item_title')for (let index = 0; index < a.length; index++) {const element = a[index];var di = element.getAttribute('data-index')if (Number(di) === Pid) {// person.width = element.scrollWidth // + 15// 获取元素let secMargin = getComputedStyle(element);// console.log('获取值', secMargin.marginRight);person.width = element.scrollWidth +parseFloat(secMargin.marginRight.replace('px',''))break;}}MenuTree1(person.ClickId)
};
// // 获取里层的方法
const MenuTree1 =(item:any)=>{emits('MenuTree', item);
}
</script>

(3)再将 menuTree.vue 引入 封装的第一层组件 index.vue 调用,如下图

index.vue

/**
*@Author: meihang
*@Date: 2022/10/26
*@Description: 录播筛选组件
*/
<template><div class="screen_page" v-if="person.gradeList && person.gradeList.length>0"><div class="screen_l"><!-- 年级 --><div class="l_nav"><div class="l_nav_item" :class="[person.gradeActive===grIndex?'l_nav_item_active':'']" v-for="(grade,grIndex) in person.gradeList" :key="grIndex" @click="gradeChange(grade, grIndex)">{{ grade.Name }}</div></div><!-- 科目 --><div class="l_nav_panel" v-if="person.gradeList[person.gradeActive].Children && person.gradeList[person.gradeActive].Children.length > 0"><div class="panel_item" :class="[person.subjectActive === chiIndex ?'panel_item_active':'']" v-for="(chi,chiIndex) in person.gradeList[person.gradeActive].Children" :key="chiIndex" @click="subjectChange(chi, chiIndex)"><span>{{ chi.Name }}</span><i class="el-icon-caret-right"></i></div></div><div v-else class="null_box"><p>暂无科目</p></div></div><!-- 右侧 --><div class="screen_r" v-if="person.isShowRight"><div class="r_item_socrll" v-if="person.rightList && person.rightList.length>0"><div class="r_item_box"><menuTree :menuList="person.rightList" @MenuTree="MenuTree" ></menuTree></div></div><div v-else class="null_box"><p>暂无筛选数据</p></div><div class="r_btn"><el-button @click="okClick">确定</el-button><el-button @click="cancelClick">取消</el-button></div></div></div>
</template>
<script lang="ts" setup>
import { reactive, defineExpose, toRaw, ref } from 'vue'
import  menuTree from './menuTree.vue';
let person: any = reactive({gradeList:[], // 年级及以下列表gradeActive: 0, // 年级筛选subjectActive: -1, // 科目筛选isShowRight:false, // 是否显示右侧rightList: [], // 右侧一级列表rightId:0,lastId:0
})type TleftData={AliasName: string,Children: Array<TleftData>CoverUrl: stringId: stringName: string
}type TProps = {leftData: Array<TleftData>
}
let prop = defineProps<TProps>()
let prs = toRaw(prop)
person.gradeList = prs.leftDataconst emit = defineEmits(['gradeMenu', 'okMenu'])// 年级切换
const gradeChange=(item:any,index:number)=>{person.gradeActive = indexemit('gradeMenu', item)
}
// 科目切换
const subjectChange = (item: any, index: number) => {person.subjectActive = indexperson.isShowRight=trueif (item.Children && item.Children.length > 0){person.rightList = item.Childrenperson.rightId=item.Id}else{person.rightList = []}
}
const MenuTree = (Id: number) => {console.log('点击完成后', Id)person.lastId = Id
};// 确认筛选
const okClick=()=>{person.isShowRight = falselet selectId = 0const gradeId = person.gradeList[person.gradeActive].Idconst subjectId = person.gradeList[person.gradeActive].Children[person.subjectActive] && person.gradeList[person.gradeActive].Children[person.subjectActive].Idif (person.lastId>0){selectId = person.lastId} else if (subjectId>0){selectId = subjectId} else if (gradeId > 0) {selectId = gradeId}emit('okMenu', selectId)person.lastId = 0
}
// 取消筛选
const cancelClick = () => {person.isShowRight = false
}
</script>
<style lang="scss">
.r_nav {display: flex;flex-wrap: wrap;color: #737272;font-size: 16px;.r_nav_item {margin-right: 20px;margin-bottom: 10px;}.r_nav_item_active {color: #5182FF;}
}.r_nav1 {white-space: normal !important;display: flex;flex-wrap: wrap;justify-content: start;color: #737272;height: auto !important;.r_nav_item1 {margin-right: 20px;margin-bottom: 15px;}.r_nav_item1_active {color: #5182FF;border: 1px solid #5182FF;}
}.r_nav2{max-width: 450px;min-width: 350px;
}
.r_item {padding: 15px 0;.r_item_title {font-weight: 500;margin-right: 15px;color: #000;font-size: 16px;}
}
</style>
<style lang="scss" scoped >
.screen_page {width: 1200px;height: calc(100vh - 200px);display: flex;position: relative;.screen_l{width: 257px;padding: 15px;font-size: 16px;color: #6D6D6D;background: #fff;.l_nav{display: flex;justify-content: space-between;.l_nav_item{padding: 5px 0px;border: 1px solid #5182FF;border-radius: 4px;color: #5182FF;width: 50%;text-align: center;margin-right: 10px;}.l_nav_item:last-child{margin-right: 2px;}.l_nav_item_active{color: #fff !important;background: #5182FF !important;}}.l_nav_panel::-webkit-scrollbar {width: 4px;}.l_nav_panel::-webkit-scrollbar-thumb{background: #eee;border-radius: 10px;}.l_nav_panel{margin-top: 15px;height: calc(100vh - 290px);overflow-y: scroll;.panel_item{border-radius: 4px;padding: 10px 5px 10px 10px;display: flex;justify-content: space-between;i{color: #D9E4FF;font-size: 20px;}}.panel_item_active{background: rgba(81, 130, 255, 0.15);color: #5182FF;i {color: #5182FF;}}}}.screen_r{border-left: 1px solid #D7D7D7;white-space: nowrap;width: calc(100% - 257px);z-index: 100000;background: #fff;padding: 20px 60px 20px 30px;position: relative;.r_item_socrll::-webkit-scrollbar{width: 0;}.r_item_socrll{border-bottom: 1px solid #EAEAEA;height: calc(100% - 80px);overflow-y: scroll;.r_item_box {border-bottom: 1px solid #EAEAEA;}.r_item_box:last-child {border:0;}.r_item:last-child{border: 0;}}.r_btn{position: absolute;bottom: 40px;right: 90px;.el-button{min-height: inherit;padding: 9px 32px;}.el-button:first-child{background: #5182FF;color: #fff;}.el-button:nth-child(2) {border: 1px solid #5182FF;color:#5182FF;}}}
}
</style>

四、课程列表页中的调用


// 页面使用
<template><div><Screen @gradeMenu="gradeMenu" @okMenu="okMenu" v-if="person.menuList && person.menuList.length > 0" :leftData="person.menuList"></Screen></div>
</template>// 引入组件
<script lang="ts" setup>
import Screen from "@/components/Screen/index.vue";// 年级切换
const gradeMenu = (item: any) => {// 获取传递过来的Idconsole.log(item.Id)
}
// 确认筛选
const okMenu = (lastId: number) => {// 获取筛选后点击确认传递过来的Idconsole.log(lastId)
}
</script>

       希望我的愚见能够帮助你哦~,若有不足之处,还望指出,你们有更好的解决方法,欢迎大家在评论区下方留言支持,大家一起相互学习参考呀~

这篇关于【vue3】实现筛选页组件(深层嵌套循环数据切换)的封装和调用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/670321

相关文章

Vue3 的 shallowRef 和 shallowReactive:优化性能

大家对 Vue3 的 ref 和 reactive 都很熟悉,那么对 shallowRef 和 shallowReactive 是否了解呢? 在编程和数据结构中,“shallow”(浅层)通常指对数据结构的最外层进行操作,而不递归地处理其内部或嵌套的数据。这种处理方式关注的是数据结构的第一层属性或元素,而忽略更深层次的嵌套内容。 1. 浅层与深层的对比 1.1 浅层(Shallow) 定义

JS常用组件收集

收集了一些平时遇到的前端比较优秀的组件,方便以后开发的时候查找!!! 函数工具: Lodash 页面固定: stickUp、jQuery.Pin 轮播: unslider、swiper 开关: switch 复选框: icheck 气泡: grumble 隐藏元素: Headroom

大模型研发全揭秘:客服工单数据标注的完整攻略

在人工智能(AI)领域,数据标注是模型训练过程中至关重要的一步。无论你是新手还是有经验的从业者,掌握数据标注的技术细节和常见问题的解决方案都能为你的AI项目增添不少价值。在电信运营商的客服系统中,工单数据是客户问题和解决方案的重要记录。通过对这些工单数据进行有效标注,不仅能够帮助提升客服自动化系统的智能化水平,还能优化客户服务流程,提高客户满意度。本文将详细介绍如何在电信运营商客服工单的背景下进行

基于MySQL Binlog的Elasticsearch数据同步实践

一、为什么要做 随着马蜂窝的逐渐发展,我们的业务数据越来越多,单纯使用 MySQL 已经不能满足我们的数据查询需求,例如对于商品、订单等数据的多维度检索。 使用 Elasticsearch 存储业务数据可以很好的解决我们业务中的搜索需求。而数据进行异构存储后,随之而来的就是数据同步的问题。 二、现有方法及问题 对于数据同步,我们目前的解决方案是建立数据中间表。把需要检索的业务数据,统一放到一张M

这15个Vue指令,让你的项目开发爽到爆

1. V-Hotkey 仓库地址: github.com/Dafrok/v-ho… Demo: 戳这里 https://dafrok.github.io/v-hotkey 安装: npm install --save v-hotkey 这个指令可以给组件绑定一个或多个快捷键。你想要通过按下 Escape 键后隐藏某个组件,按住 Control 和回车键再显示它吗?小菜一碟: <template

关于数据埋点,你需要了解这些基本知识

产品汪每天都在和数据打交道,你知道数据来自哪里吗? 移动app端内的用户行为数据大多来自埋点,了解一些埋点知识,能和数据分析师、技术侃大山,参与到前期的数据采集,更重要是让最终的埋点数据能为我所用,否则可怜巴巴等上几个月是常有的事。   埋点类型 根据埋点方式,可以区分为: 手动埋点半自动埋点全自动埋点 秉承“任何事物都有两面性”的道理:自动程度高的,能解决通用统计,便于统一化管理,但个性化定

【 html+css 绚丽Loading 】000046 三才归元阵

前言:哈喽,大家好,今天给大家分享html+css 绚丽Loading!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕 目录 📚一、效果📚二、信息💡1.简介:💡2.外观描述:💡3.使用方式:💡4.战斗方式:💡5.提升:💡6.传说: 📚三、源代码,上代码,可以直接复制使用🎥效果🗂️目录✍️

使用SecondaryNameNode恢复NameNode的数据

1)需求: NameNode进程挂了并且存储的数据也丢失了,如何恢复NameNode 此种方式恢复的数据可能存在小部分数据的丢失。 2)故障模拟 (1)kill -9 NameNode进程 [lytfly@hadoop102 current]$ kill -9 19886 (2)删除NameNode存储的数据(/opt/module/hadoop-3.1.4/data/tmp/dfs/na

异构存储(冷热数据分离)

异构存储主要解决不同的数据,存储在不同类型的硬盘中,达到最佳性能的问题。 异构存储Shell操作 (1)查看当前有哪些存储策略可以用 [lytfly@hadoop102 hadoop-3.1.4]$ hdfs storagepolicies -listPolicies (2)为指定路径(数据存储目录)设置指定的存储策略 hdfs storagepolicies -setStoragePo

Hadoop集群数据均衡之磁盘间数据均衡

生产环境,由于硬盘空间不足,往往需要增加一块硬盘。刚加载的硬盘没有数据时,可以执行磁盘数据均衡命令。(Hadoop3.x新特性) plan后面带的节点的名字必须是已经存在的,并且是需要均衡的节点。 如果节点不存在,会报如下错误: 如果节点只有一个硬盘的话,不会创建均衡计划: (1)生成均衡计划 hdfs diskbalancer -plan hadoop102 (2)执行均衡计划 hd