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

网站建设是不是无形资产郑州系统开发

网站建设是不是无形资产,郑州系统开发,怎样找到免费的黄页网站,加wordpress备案号在做后台的时候需要用到地区级联选择器 然后就自己封装了一个 其中 组件页面中 export default {props: { //使用value接收引用页面的绑定值value: [String]},watch: {value: {handler(val) {//val 以及 this.value 都可以获取到引用页面的绑定值},deep: true,immediate: tr…

在做后台的时候需要用到地区级联选择器 然后就自己封装了一个

其中 组件页面中

export default {props: {		//使用value接收引用页面的绑定值value: [String]},watch: {value: {handler(val) {//val 以及 this.value 都可以获取到引用页面的绑定值},deep: true,immediate: true}},
}
//this.$emit("input", this.changeForm()); 这句代码是给引用页面绑定值返回内容

完整地区json文件在网盘中

链接:https://pan.quark.cn/s/0b70e60fd377
提取码:4sSe

下面是完整代码:

引用页面中

<select-address v-model="form.applicableRange"/>

main.js中注册组件

import SelectAddress from '@/components/SelectAddress'Vue.component('SelectAddress', SelectAddress)

组件页面

<template><div class="selectAddress"><el-form :model="form"><el-select v-model="form.provincial" @change="updateProvincials()" clearableplaceholder="请选择省份"><el-option v-for="provincial in provincials" :key="provincial.label" :value="provincial.label":label="provincial.label"/></el-select><el-select v-model="form.municipal" @change="updateMunicipals()"placeholder="请选择城市"><el-option v-for="municipal in municipals" :key="municipal.label" :value="municipal.label":label="municipal.label"/></el-select><el-select v-model="form.regional" @change="updateRegionals()"placeholder="请选择地区"><el-option v-for="regional in regionals" :key="regional.label" :value="regional.label":label="regional.label"/></el-select><el-select v-model="form.streets" @change="updateStreetss()"placeholder="请选择街道"><el-option v-for="streets in streetss" :key="streets.label" :value="streets.label" :label="streets.label"/></el-select></el-form></div>
</template>
<script>
const options = require("@/assets/images/pcas-code.json");
export default {props: {value: [String]},data() {return {form: {provincial: null,municipal: null,regional: null,streets: null,},provincials: options,municipals: [],regionals: [],streetss: [],}},watch: {value: {handler(val) {if (val) {const list = this.value.split(' ');if(list.length == 1){this.form.provincial = list[0];this.updateProvincials();}else if(list.length == 2){this.form.provincial = list[0];this.updateProvincials();this.form.municipal = list[1];this.updateMunicipals();}else if(list.length == 3){this.form.provincial = list[0];this.updateProvincials();this.form.municipal = list[1];this.updateMunicipals();this.form.regional = list[2];this.updateRegionals();}} else {this.reset();return [];}},deep: true,immediate: true}},mounted() {},created() {},computed: {},methods: {reset() {this.form = {provincial: null,municipal: null,regional: null,streets: null}},updateProvincials() {this.form.municipal = "";this.form.regional = "";this.form.streets = "";this.municipals = [];this.regionals = [];this.streetss = [];this.$emit("input", this.changeForm());if(this.form.provincial){this.municipals = this.provincials.find(provincial => provincial.label == this.form.provincial).children;}},updateMunicipals() {this.form.regional = "";this.form.streets = "";this.regionals = [];this.streetss = [];this.$emit("input", this.changeForm());this.regionals = this.municipals.find(municipal => municipal.label == this.form.municipal).children;},updateRegionals() {this.form.streets = "";this.streetss = [];this.$emit("input", this.changeForm());this.streetss = this.regionals.find(regional => regional.label == this.form.regional).children;},updateStreetss() {this.$emit("input", this.changeForm());},changeForm(){let applicableRange = "";if(this.form.provincial){applicableRange = this.form.provincial}if(this.form.provincial && this.form.municipal){applicableRange = this.form.provincial + " " + this.form.municipal}if(this.form.provincial && this.form.municipal && this.form.regional){applicableRange = this.form.provincial + " " + this.form.municipal + " " + this.form.regional}if(this.form.provincial && this.form.municipal && this.form.regional && this.form.streets){applicableRange = this.form.provincial + " " + this.form.municipal + " " + this.form.regional + " " + this.form.streets}return applicableRange;}},
}
</script><style scoped lang="scss">
.el-select {width: 18%;margin-left: 1%;
}
</style>
http://www.yayakq.cn/news/404346/

相关文章:

  • 案例展示网站wordpress 云服务器配置
  • 如何建立公司网站账号河南省建设工程质量协会网站
  • 贵阳免费做网站别人买我的域名做违法事
  • 东营城镇建设规划网站wap建站php源码
  • 网站建设合同交印花税设计效果图制作软件
  • 网站开发与软件开发的区别制作网页最简单的软件
  • 医院网站建设好处网站购物功能如何做
  • 长春百度网站快速排名淮南最新通告今天
  • 网站设计 导航条手机杭州网
  • 网站开发实用技术2.8.5专业网站开发哪家好
  • 运城做网站哪家好app 网站平台建设实施方案
  • 企业网站建设原则是wordpress单页调用标题
  • 贵阳网站建设哪家公司好谷歌风格wordpress
  • 做网站推广好做么软件工程的就业方向
  • 做网站用虚拟服务器可以吗手机网站返回跳转页面
  • 哈尔滨网站制作开发报价淮南吧
  • 国内的足彩网站怎么做的网站 谁建设 谁负责
  • 建网站需要域名成都网站建设:思乐科技
  • 做商品推广有那些网站sae 网站备案信息
  • 网站建设服务器的搭建方式课程分销平台
  • 北京h5网站建设报价大学网站建设的目标
  • 梦织做网站纯静态网站怎么入侵
  • 外贸网站推广销售门户网站开发视频教学
  • 怎么样做网站优化wordpress无觅
  • 网站可以在手机上做吗口碑好的做网站公司哪家好
  • 网站建设课程任务wordpress 关闭警告
  • 免费做公司手机网站佛山三水建设局网站
  • 建个什么网站贵阳网站建设管理
  • 计算机网站建设名称鄂州网约车
  • 做自己的网站给人的启发什么网站做热能表好