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

网站建设专业性的评估标志设计图片

网站建设专业性的评估,标志设计图片,wordpress添加语系,设计公司网站建设模板图由于es6支持哈希#xff0c;所以数据量只要不太大#xff0c;就不需要对el-cascader进行点击后在调接口出现下一级#xff0c;很简单的就是直接获取所有数据。 templatedivel-cascader :modelValuemodelValue :propsinnerProps所以数据量只要不太大就不需要对el-cascader进行点击后在调接口出现下一级很简单的就是直接获取所有数据。 templatedivel-cascader :modelValuemodelValue :propsinnerProps :optionsoptions changehandleChange filterable:show-all-levelsshowAllLevels :disableddisabled :placeholderplaceholder :clearableclearablestylewidth:100% bluronBlur focusonFocus closehandleClose visible-changeonVisibleChange /!-- --- {{ modelValue }} --/div /templatescript langts setup import { ref, reactive, toRaw, onMounted, watch, onBeforeUnmount } from vue import type { CascaderProps } from element-plus import * as api from ./api.js;const props defineProps({modelValue: {type: Array,default: []},// 是否支持清空选项clearable: {type: Boolean,default: true,},// 是否多选// multiple: {// type: Boolean,// default: false,// },// 指定某省传入该自治区的areacodedesignation: {type: String,default: ,},// 仅显示最后一级showAllLevels: {type: Boolean,default: true,},// 是否禁用disabled: {type: Boolean,default: false,},// 输入框占位文本placeholder: {type: String,default: ,},// 是否选择任意一级选项还是最后叶子结点checkStrictly: {type: Boolean,default: true,},// 次级菜单的展开方式,click和hoverexpandTrigger: {type: String,default: click,},// 多选个数限制selectNummultipleSelectNum: {type: Number,default: 1,},// 省市县乡镇显示层级默认为2到区县。0为省1为市2为区县3为乡镇level: {type: Number,default: 2,}, })let options: any ref([]) //树 const watchArr ref([])onMounted(() {// 获取全量数据getAllData() })//重新定义一个值来接受prop const isMultiple ref(false)//因为prop中的值非动态响应所以需要通过watch监听immediate 初始化时接收父组件中的传值 watch(() props.multipleSelectNum, () {// isMultiple.value props.multipleSelectNum;if(props.multipleSelectNum 1) {isMultiple.value true}console.log(isMultiple.value,props.multipleSelectNum,---props.multipleSelectNum;);}, {immediate: true })onBeforeUnmount(() {})const emit defineEmits([update:modelValue, change]) const handleChange (e: any, e2: any) {watchArr.value eemit(change, e)emit(update:modelValue, e) }async function getAllData() {let res await api.SearchAdministrativeDivisions({queryArea: props.designation,level: props.level})options.value res.data }function onFocus(e: any) { } async function onBeforeFilter(e: any) {let res await api.SearchAdministrativeDivisions({queryArea: e})const fn (arr: any[]) {arr.forEach((item, index) {if (item.children item.children.length) {item.children fn(item.children)} else {if (item.children) delete item.children}})return arr}// console.log(options, ---options);options.value fn(res.data) } // const isMultiple ref(false) const innerProps: CascaderProps {checkStrictly: props.checkStrictly,// lazy: true,value: areaCode,label: name,multiple: isMultiple.value, //modifyexpandTrigger: props.expandTrigger, } const handleClose () { } const onBlur () {// console.log(---onBlur); } const onVisibleChange (e: any) {// if (props.modelValue.length props.multipleSelectNum props.multiple true) {if (props.modelValue.length props.multipleSelectNum isMultiple.value true) { //modifyfunction onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}el.disabled false;el.isFlag false});return list;}const newList onRabbit(options.value);options.value newList;} } // 监听 watch(() watchArr.value,(newVal, oldVal) {// if (props.multiple true) {if (isMultiple.value true) { //modify// console.log(oldVal,watch监听变化前的数)// console.log(newVal, watch监听变化后的数据)if (newVal.length props.multipleSelectNum) {function onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}newVal.forEach((v: any) {if (v[v.length - 1] ! el.areaCode) {if (el.isFlag) {} else {el.disabled trueel.isFlag true}} else {el.disabled falseel.isFlag true}})});return list;}const newList onRabbit(options.value);options.value newList;} else {function onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}el.disabled false;el.isFlag false});return list;}const newList onRabbit(options.value);options.value newList;}}},{immediate: true, // 立即执行deep: true // 深度监听} ) /scriptstyle/style
http://www.huolong8.cn/news/378466/

相关文章:

  • 外贸做企业什么网站建设做购物网站步骤
  • 免费外贸网站在线网站绑定别名好吗
  • 网站域名起名wordpress 搜索翻页
  • 公司招聘网站 哪个部门做单位网址怎么编
  • 新建网站怎么优化自己免费建站平台推荐
  • 做淘宝那样的网站麻烦吗做推广
  • 烟台市芝罘区建设局网站电子政务公开 网站建设
  • 前端作业做一个网站wordpress文章列表摘要
  • 新网网站建设资料描述photoshop在网站建设中的作用与特点.
  • 什么软件做美食视频网站好微网站开发协议
  • wordpress多站点是什么意思莱芜网站优化排名
  • 欢迎访问中国建设银行网上银行网站应用商店下载软件
  • 门户网站什么意思举例子网站搭建 成都
  • 电子商务网站建设与管理课后题ppt模板背景图
  • 怎么加快登录网站速度企业网站建站公司郑州
  • 国外设计师网站的优化方案
  • 琴童少儿音乐创作网站建设国内网络销售平台有哪些
  • 局域网网站制作教程做网站好还是做安卓app好
  • 郏县网站制作公司网站刷排名工具
  • 提供网站建设费用免费制作一个企业网站
  • 可以发锚文本的网站专业做图片制作网站有哪些
  • 有源码手机怎么搭建网站内江 网站建设
  • 做网站需要网页嵌套吗好听的公司名字
  • html5网站特效wordpress注册密码插件
  • 济南百度品牌网站建设推荐乐云seo
  • 黄埔网站建设设计wordpress 当前时间
  • 上海网站建设上海迈歌网站建设需要资质么
  • 河北石家庄建设网站建设网站需要的软件
  • 基于用户体验的网站设计简单网站html模板下载地址
  • 做产地证需要备案上哪个网站中国新零售网