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

教育技术学网站模版网站降权了怎么办

教育技术学网站模版,网站降权了怎么办,制作网页模版,金融做网站最后的效果就是树形的下拉多选#xff0c;可选择任意一级选项#xff0c;下拉框中有一个按钮可以实现全选#xff0c;也支持搜索功能。 在mounted生命周期里面获取全部部门的数据#xff0c;handleTree是讲接口返回的数据整理成树形结构#xff0c;可以自行解决 div c…最后的效果就是树形的下拉多选可选择任意一级选项下拉框中有一个按钮可以实现全选也支持搜索功能。 在mounted生命周期里面获取全部部门的数据handleTree是讲接口返回的数据整理成树形结构可以自行解决 div classLeftTextspan stylecolor: red; margin-right: 4px*/span部门/divel-selectv-modelexecutiveDepartNamefilterable:filter-methodselectChangemultiplevisible-changevisibleChangeremove-tagseleRemoveTagstylewidth: 80%el-option styledisplay: none value/el-optionel-checkboxstylewidth: 100%;height: 40px;line-height: 40px;padding-left: 20px;border-bottom: 1px solid #dcdfe6;classallselect:indeterminateisIndeterminatev-modelallSelectModulechangeallselect全选/el-checkboxel-cascader-panelrefcascaderModule:keydeptList.length:optionsdeptListchangecascaderChangestylewidth: 80%:propspropsfilterable:borderfalse:show-all-levelsfalsev-modelexecutiveDepartment/el-cascader-panel/el-select/div props: {multiple: true,value: deptId,label: deptName,checkStrictly: true,emitPath: false,}, allDeptList:[];//所有的部门信息内部结构为{deptId:1,deptName:一级部门}isSeach:false;//是否搜索状态tempExecutive:[];// 搜索前已选中的数据//搜索查询事件--是因为在cascaderChange事件中对v-model的值重新赋值导致下拉选时会触发el-select的搜索事件所以加了一个isFilter判断selectChange(val) {if (val ! ) {this.deptList [];this.deptList this.allDeptList.filter((item) {return item.deptName.toLowerCase().indexOf(val.toLowerCase()) -1;});this.isSeach true;this.tempExecutive this.executiveDepartment;} else {if (!this.isFilter) {this.deptList this.handleTree(this.allDeptList, deptId);this.isFilter !this.isFilter;}}},visibleChange(e) {if (e) {this.isSeach false;this.isFilter false;this.deptList this.handleTree(this.allDeptList, deptId);this.initStatus();}},对全选状态进行重新赋值initStatus() {if (this.executiveDepartment.length this.allDeptList.length) {this.allSelectModule true;this.isIndeterminate false;} else if (this.executiveDepartment.length 0) {this.allSelectModule false;this.isIndeterminate false;} else {this.allSelectModule false;this.isIndeterminate true;}},//select框里回显的是选中部门的名称getDeptName() {const result [];this.executiveDepartment.filter((item) {this.allDeptList.map((i) {if (item i.deptId) {result.push(i.deptName);}});});return result;},seleRemoveTag(val) {if (val) {const result this.allDeptList.find((item) {if (item.deptName val) {return item;}});this.executiveDepartment this.executiveDepartment.filter((item) item ! result.deptId);}},// 下拉多选选中时触发的事件cascaderChange() {this.isFilter true;//如果是搜索状态讲之前选中的值和搜素状态下的值进行合并和去重否则之前选中的值会被清空if (this.isSeach) {this.executiveDepartment [...new Set([...this.tempExecutive, ...this.executiveDepartment]),];}this.executiveDepartName this.getDeptName();this.initStatus();},//全选事件allselect() {if (this.allSelectModule) {this.isIndeterminate false;if (this.isSeach) {this.executiveDepartment this.deptList.map((item) item.deptId);this.executiveDepartName this.getDeptName();} else {this.executiveDepartment this.getAllIds(this.deptList);this.executiveDepartName this.getDeptName();}} else {this.executiveDepartment [];this.executiveDepartName [];}},getAllIds(nodes) {let ids [];(function getIds(nodes) {nodes.forEach((node) {ids.push(node.deptId);if (node.children node.children.length) {getIds(node.children);}});})(nodes);return ids;},
http://www.w-s-a.com/news/586174/

相关文章:

  • 企业信息管理系统免费seo优化个人博客
  • 做任务的设计网站泰州哪里做网站
  • 什么网站可以做设计赚钱吗南京十大软件公司排名
  • 网站开发时间进度北京有哪些著名网站
  • 深圳比较好的设计网站公司自己的网站到期域名如何续费
  • 温州做网站哪儿新云网站模版
  • 网站开发 视频存在哪检察院前期网站建设
  • 备案中的网站信息怎么填如何做分享赚钱的网站
  • 网站行程表怎么做注册公司费用要多少
  • 常见电子商务网站基本模式南山网站公司定
  • 网站搭建代码网站里面送礼物要钱怎么做代码
  • 大学英文网站建设举措wordpress 学院 模板
  • 爱 做 网站吗php网站作业模版
  • wordpress代码乱吗台州做网站seo的
  • 做ptt网站wordpress中文企业网站
  • 深圳雨棚制作深圳 网站优化公司排名
  • 深圳优秀网站建设价格wordpress没人用
  • 国企网站建设需要注意沈阳招标信息网
  • 东莞360推广的网站是谁做的上海网络推广产品
  • 网站可以换主机吗中国十大网站建设企业
  • 怎么做盗版小说网站官网做有下拉列表的网站的图片
  • 邢台网站建设电话网站界面类型
  • 网站制作合同模板做一个网站能挣多少钱
  • 汶上1500元网站建设互联网高端官网
  • 广州做公司网站网站开发培训机构
  • 网站建设与维护 课件网页版qq安全中心登录入口
  • 做三个月网站广告收入dw如何制作网页
  • ...课程网站建设简介工信部 网站备案查询
  • 网站代码建设 实例企业网站建设大概的费用
  • 制作网站软件排行榜过年做啥网站致富