uniapp 常用的地区行业各种多选多选,支持回显,复制粘贴可使用

uniapp 常用的地区行业各种多选多选,支持回显

在这里插入图片描述

必须导入uni-popup 弹出层 该组件

1.目前项目开发中使用到这类似挺多的,记录一下,方便以后是使用
2.使用前提,目前不做无限级,只支持二维数组,模板里只循环了两层,如果有特殊需求,请自行修改
3.数据子级目前是使用的children字段,显示名字使用的name,如多你的后端返回的数据格式字段不一样,请自己先递归处理一下,这两个对应上,
4.大概处理如下,

	addCheckAttr(arr) {
				return arr.map(item => {
					item.checked = false
					item.label = item.name   // 这里将你后端返回的名字赋值成你想要的字段
					if (item.children && Array.isArray(item.children)) {
						item.children = this.addCheckAttr(item.children)
					}
					return item
				})
			},

5.废话不多说直接粘贴复制使用

具体使用如下(有更加写法请自行修改)


1.新建组件 tree.vue
2.注意事项 ,如果数据回显,单选的情况下父组件你就不要传多个值进去

<template>
	<view class="content">
		<uni-popup ref="popup" type="bottom" background-color="#fff">
			<view class='head'>
				<view class='leftbnt' @click='handReset'>
					<button>重置</button>
				</view>
				<view class='rightbnt' @click='determine'>
					<button :style="{'color':confirmColor}">确认</button>
				</view>
			</view>

			<view class='mianbox' :style="{ 'height': defH + 'px'}">
				<view v-for="(item,index) in list" :key='index'>
					<view class='treeTit'>
						<view style='margin-left:10px;'> {{item.name}}</view>
					</view>
					<view v-for="(it,i) in item.children " :key='i'
						:style="{background: it.checked ? itemColor : '',color: it.checked ? itemtxtColor : ''}"
						:class="[it.checked ? 'addClass':'subli']" @tap="handItem(index,i)">
						{{it.name}}
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>
<script>
	export default {
		props: {
			// 窗口默认高度 暂未完善百分比
			defH: {
				type: Number,
				default: 550
			},
			dataTree: { // 父组件传递下来的数据
				type: Array
			},
			defchech: { // 默认选中
				type: Array
			},
			confirmColor: { // 确认按钮的颜色
				type: String,
				default: '#54b0ab'
			},
			itemColor: { // 选中的子级item 背景色
				type: String,
				default: '#e4f6f8'
			},
			itemtxtColor: { // 选中的子级item 背景色
				type: String,
				default: '#54b0ab'
			},
			// 是否支持多选
			isMultiple: {
				type: Boolean,
				default: true
			},
			isnumber: { // 最多可选数量
				type: Number,
				default: 5
			},
		},
		data() {
			return {
				newData: [],
				list: []
			}
		},
		methods: {
			handItem(index, i) {
				
				if (this.isMultiple) {
				  this.clickItem(index, i)
				} else {
					this.list = this.addCheckAttr(this.list)
					this.clickItem(index, i)
				}
			},
			clickItem(index, i) {
				this.list[index].children[i].checked = !this.list[index].children[i].checked
				this.someArr()
			},
			addCheckAttr(arr) {
				return arr.map(item => {
					item.checked = false
					item.label = item.name
					if (item.children && Array.isArray(item.children)) {
						item.children = this.addCheckAttr(item.children)
					}
					return item
				})
			},
			open() {
				this.list = this.dataTree
				this.$refs.popup.open('bottom')
				this.list = this.checkedTreeData(this.list)
				this.someArr()
			},
			someArr() {
				this.newData = this.findCheckedElements(this.list)
			},
			// 遍历选出相选中的数据
			findCheckedElements(arr) {
				let result = []

				function traverse(item) {
					if (item.checked) {
						result.push(item)
					}
					if (item.children) {
						for (let child of item.children) {
							traverse(child)
						}
					}
				}
				for (let item of arr) {
					traverse(item)
				}
				return result
			},
			// 回显数据
			checkedTreeData(arr) {
				return arr.map(item => {
					if (this.defchech.indexOf(item.id) !== -1) {
						item.checked = true
					} else {
						item.checked = false
					}
					if (item.children && Array.isArray(item.children)) {
						item.children = this.checkedTreeData(item.children)
					}
					return item
				})
			},

			close() {
				this.$refs.popup.close()
			},
			// 重置
			handReset() {
				this.list = this.addCheckAttr(this.dataTree)
				this.someArr()
			},
			// 确认
			determine() {
				if(this.newData.length > this.isnumber){
					uni.showToast({
						title: `最多选择${this.isnumber}个`
					})
					return
				}
				this.$emit("onChange", this.newData)
			}
		}
	}
</script>

<style scoped>
	.treeTit {
		width: 100%;
		height: 45px;
		font-size: 16px;
		font-weight: bold;
		position: sticky;
		top: -1px;
		left: 0px;
		line-height: 45px;
		background: #fff;
	}

	.subli {
		display: inline-block;
		margin: 4px;
		padding: 5px 10px;
		background: #f6f6f6;
		border: 1px solid #fff;
		border-radius: 10rpx;
	}

	.addClass {
		display: inline-block;
		margin: 4px;
		padding: 5px 10px;
		border: 1px solid #4bb4a5;
		background: #f6f6f6;
		border-radius: 10rpx;
	}

	.mianbox {
		width: 100%;
		height: 300px;
		background: #fff;
		overflow: scroll;
	}

	.head {
		width: 100%;
		height: 45px;
		display: flex;
		align-items: center;
	}

	.leftbnt {
		flex: 1;
		text-align: center;
		border: 1px solid #f4f4f4;
	}

	.rightbnt {
		flex: 1;
		text-align: center;
		border: 1px solid #f4f4f4;
		font-weight: bold;
	}
</style>

2.使用,在你的页面中引入组件注册

import TreeList from "./tree.vue"  // 根据自己的实际目录

3.例如带index页面使用,

<template>
	<view>
		<TreeList ref='child' :dataTree='dataTree' :defchech='defChecked' :isMultiple='true' :defH="600"
			 itemColor='#e4f6f8' @onChange='onChange' />
		<view v-for='(item,index) in list'>
			{{item.name}}
		</view>
	</view>
</template>
<script>
	import TreeList from "../../components/tree.vue"
	export default {
		components: {
			TreeList
		},
		data() {
			return {
				list: [],
				 // 这里需要注意 后端返回的id 的类型 字符串还是数子  要传对用类型单选你就不要乱传多个值进去
				defChecked: [17],
				dataTree: [{
						"id": 15,
						"name": "互联网/IT/电子/通信",
						"level": 0,
						"parentId": 0,
						"sort": 2,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 16,
								"name": "电子商务",
								"level": 1,
								"parentId": 15,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 17,
								"name": "企业服务",
								"level": 1,
								"parentId": 15,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 18,
								"name": "物联网",
								"level": 1,
								"parentId": 15,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 19,
								"name": "新媒体",
								"level": 1,
								"parentId": 15,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 20,
								"name": "人工智能",
								"level": 1,
								"parentId": 15,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 21,
								"name": "智能硬件",
								"level": 1,
								"parentId": 15,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 22,
								"name": "在线教育",
								"level": 1,
								"parentId": 15,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 23,
								"name": "在线医疗",
								"level": 1,
								"parentId": 15,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 24,
								"name": "新零售",
								"level": 1,
								"parentId": 15,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 25,
								"name": "区块链",
								"level": 1,
								"parentId": 15,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 26,
								"name": "游戏",
								"level": 1,
								"parentId": 15,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 27,
								"name": "社交网络",
								"level": 1,
								"parentId": 15,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 28,
								"name": "在线招聘/求职",
								"level": 1,
								"parentId": 15,
								"sort": 13,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 29,
								"name": "云计算/大数据",
								"level": 1,
								"parentId": 15,
								"sort": 14,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 30,
								"name": "网络/信息安全",
								"level": 1,
								"parentId": 15,
								"sort": 15,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 31,
								"name": "在线生活服务(O2O)",
								"level": 1,
								"parentId": 15,
								"sort": 16,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 32,
								"name": "在线音乐/视频/阅读",
								"level": 1,
								"parentId": 15,
								"sort": 17,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 33,
								"name": "互联网",
								"level": 1,
								"parentId": 15,
								"sort": 18,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 34,
								"name": "IT服务",
								"level": 1,
								"parentId": 15,
								"sort": 19,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 35,
								"name": "计算机软件",
								"level": 1,
								"parentId": 15,
								"sort": 20,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 36,
								"name": "计算机硬件",
								"level": 1,
								"parentId": 15,
								"sort": 21,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 37,
								"name": "通信/网络设备",
								"level": 1,
								"parentId": 15,
								"sort": 22,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 38,
								"name": "运营商/增值服务",
								"level": 1,
								"parentId": 15,
								"sort": 23,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 39,
								"name": "电子/半导体/集成电路",
								"level": 1,
								"parentId": 15,
								"sort": 24,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 40,
								"name": "消费电子产品",
								"level": 1,
								"parentId": 15,
								"sort": 25,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 41,
								"name": "光电子行业",
								"level": 1,
								"parentId": 15,
								"sort": 26,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 42,
						"name": "生活服务",
						"level": 0,
						"parentId": 0,
						"sort": 3,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 43,
								"name": "餐饮服务",
								"level": 1,
								"parentId": 42,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 44,
								"name": "酒店/民宿",
								"level": 1,
								"parentId": 42,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 45,
								"name": "旅游/景区",
								"level": 1,
								"parentId": 42,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 46,
								"name": "美容/美发",
								"level": 1,
								"parentId": 42,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 47,
								"name": "婚庆/摄影",
								"level": 1,
								"parentId": 42,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 48,
								"name": "休闲/娱乐",
								"level": 1,
								"parentId": 42,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 49,
								"name": "回收/维修",
								"level": 1,
								"parentId": 42,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 50,
								"name": "家政服务",
								"level": 1,
								"parentId": 42,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 51,
								"name": "宠物服务",
								"level": 1,
								"parentId": 42,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 52,
								"name": "运动/健身",
								"level": 1,
								"parentId": 42,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 53,
								"name": "保健/养生",
								"level": 1,
								"parentId": 42,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 54,
								"name": "养老服务",
								"level": 1,
								"parentId": 42,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 55,
								"name": "搬家/生活配送",
								"level": 1,
								"parentId": 42,
								"sort": 13,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 56,
								"name": "其他生活服务",
								"level": 1,
								"parentId": 42,
								"sort": 14,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 57,
						"name": "批发/零售/贸易",
						"level": 0,
						"parentId": 0,
						"sort": 4,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 58,
								"name": "快速消费品",
								"level": 1,
								"parentId": 57,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 59,
								"name": "耐用消费品",
								"level": 1,
								"parentId": 57,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 61,
								"name": "零售/批发",
								"level": 1,
								"parentId": 57,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 62,
								"name": "食品/饮料",
								"level": 1,
								"parentId": 57,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 63,
								"name": "烟草/酒业",
								"level": 1,
								"parentId": 57,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 64,
								"name": "日化",
								"level": 1,
								"parentId": 57,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 65,
								"name": "服装/纺织/皮革",
								"level": 1,
								"parentId": 57,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 66,
								"name": "奢侈品",
								"level": 1,
								"parentId": 57,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 67,
								"name": "玩具/礼品",
								"level": 1,
								"parentId": 57,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 68,
								"name": "珠宝/首饰",
								"level": 1,
								"parentId": 57,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 69,
								"name": "办公用品/设备",
								"level": 1,
								"parentId": 57,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 70,
								"name": "工艺品/收藏品/艺术品",
								"level": 1,
								"parentId": 57,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 71,
								"name": "家具/家居/家电",
								"level": 1,
								"parentId": 57,
								"sort": 13,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 72,
								"name": "贸易/进出口",
								"level": 1,
								"parentId": 57,
								"sort": 14,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 73,
						"name": "专业服务",
						"level": 0,
						"parentId": 0,
						"sort": 5,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 74,
								"name": "法律服务",
								"level": 1,
								"parentId": 73,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 75,
								"name": "咨询服务",
								"level": 1,
								"parentId": 73,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 76,
								"name": "翻译服务",
								"level": 1,
								"parentId": 73,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 77,
								"name": "人力资源服务",
								"level": 1,
								"parentId": 73,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 78,
								"name": "财务/审计/税务",
								"level": 1,
								"parentId": 73,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 79,
								"name": "工程技术与设计服务",
								"level": 1,
								"parentId": 73,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 80,
								"name": "检测/认证",
								"level": 1,
								"parentId": 73,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 81,
								"name": "景区/商业/市场等综合管理",
								"level": 1,
								"parentId": 73,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 82,
								"name": "商业代理服务",
								"level": 1,
								"parentId": 73,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 83,
								"name": "专利/商标/知识产权",
								"level": 1,
								"parentId": 73,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 84,
								"name": "租赁服务",
								"level": 1,
								"parentId": 73,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 85,
								"name": "专业技术服务",
								"level": 1,
								"parentId": 73,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 86,
						"name": "生物医药/医疗健康",
						"level": 0,
						"parentId": 0,
						"sort": 6,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 87,
								"name": "医院",
								"level": 1,
								"parentId": 86,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 88,
								"name": "卫生服务",
								"level": 1,
								"parentId": 86,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 89,
								"name": "生物工程",
								"level": 1,
								"parentId": 86,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 90,
								"name": "医药制造",
								"level": 1,
								"parentId": 86,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 91,
								"name": "医疗检测",
								"level": 1,
								"parentId": 86,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 92,
								"name": "医药批发/零售",
								"level": 1,
								"parentId": 86,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 93,
								"name": "医疗设备/器械",
								"level": 1,
								"parentId": 86,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 94,
								"name": "IVD",
								"level": 1,
								"parentId": 86,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 95,
								"name": "医美/健康服务",
								"level": 1,
								"parentId": 86,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 96,
								"name": "医药外包",
								"level": 1,
								"parentId": 86,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 97,
						"name": "金融业",
						"level": 0,
						"parentId": 0,
						"sort": 7,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 98,
								"name": "银行",
								"level": 1,
								"parentId": 97,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 99,
								"name": "保险",
								"level": 1,
								"parentId": 97,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 100,
								"name": "基金",
								"level": 1,
								"parentId": 97,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 101,
								"name": "信托",
								"level": 1,
								"parentId": 97,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 102,
								"name": "证券/期货",
								"level": 1,
								"parentId": 97,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 103,
								"name": "投资/融资",
								"level": 1,
								"parentId": 97,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 104,
								"name": "汽车金融",
								"level": 1,
								"parentId": 97,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 105,
								"name": "互联网金融/小额贷款",
								"level": 1,
								"parentId": 97,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 106,
								"name": "租赁/拍卖/典当/担保",
								"level": 1,
								"parentId": 97,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 122,
						"name": "高技术制造业",
						"level": 0,
						"parentId": 0,
						"sort": 8,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 123,
								"name": "人工智能",
								"level": 1,
								"parentId": 122,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 124,
								"name": "智能硬件",
								"level": 1,
								"parentId": 122,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 125,
								"name": "物联网",
								"level": 1,
								"parentId": 122,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 126,
								"name": "区块链",
								"level": 1,
								"parentId": 122,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 127,
								"name": "云计算/大数据",
								"level": 1,
								"parentId": 122,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 128,
								"name": "计算机硬件",
								"level": 1,
								"parentId": 122,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 129,
								"name": "通信/网络设备",
								"level": 1,
								"parentId": 122,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 130,
								"name": "电子/半导体/集成电路",
								"level": 1,
								"parentId": 122,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 131,
								"name": "消费电子产品",
								"level": 1,
								"parentId": 122,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 132,
								"name": "光电子行业",
								"level": 1,
								"parentId": 122,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 133,
								"name": "船舶/航空/航天/火车制造",
								"level": 1,
								"parentId": 122,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 134,
								"name": "电气机械/电力设备",
								"level": 1,
								"parentId": 122,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 135,
								"name": "电子设备制造",
								"level": 1,
								"parentId": 122,
								"sort": 13,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 136,
								"name": "机器人",
								"level": 1,
								"parentId": 122,
								"sort": 14,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 137,
								"name": "专用设备制造",
								"level": 1,
								"parentId": 122,
								"sort": 15,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 138,
								"name": "通用设备制造",
								"level": 1,
								"parentId": 122,
								"sort": 16,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 139,
								"name": "仪器仪表制造",
								"level": 1,
								"parentId": 122,
								"sort": 17,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 140,
								"name": "工业自动化",
								"level": 1,
								"parentId": 122,
								"sort": 18,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 141,
								"name": "新材料",
								"level": 1,
								"parentId": 122,
								"sort": 19,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 142,
						"name": "制造业",
						"level": 0,
						"parentId": 0,
						"sort": 9,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 143,
								"name": "船舶/航空/航天/火车制造",
								"level": 1,
								"parentId": 142,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 144,
								"name": "电气机械/电力设备",
								"level": 1,
								"parentId": 142,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 145,
								"name": "电子设备制造",
								"level": 1,
								"parentId": 142,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 146,
								"name": "机器人",
								"level": 1,
								"parentId": 142,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 147,
								"name": "钢铁/有色金属冶炼及加工",
								"level": 1,
								"parentId": 142,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 148,
								"name": "专用设备制造",
								"level": 1,
								"parentId": 142,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 149,
								"name": "军工制造",
								"level": 1,
								"parentId": 142,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 150,
								"name": "金属制品业",
								"level": 1,
								"parentId": 142,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 151,
								"name": "通用设备制造",
								"level": 1,
								"parentId": 142,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 152,
								"name": "仪器仪表制造",
								"level": 1,
								"parentId": 142,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 153,
								"name": "摩托车/自行车制造",
								"level": 1,
								"parentId": 142,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 154,
								"name": "非金属矿物制品业",
								"level": 1,
								"parentId": 142,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 155,
								"name": "新材料",
								"level": 1,
								"parentId": 142,
								"sort": 13,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 156,
								"name": "化学纤维制造业",
								"level": 1,
								"parentId": 142,
								"sort": 14,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 157,
								"name": "化学原料/化学制品",
								"level": 1,
								"parentId": 142,
								"sort": 15,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 158,
								"name": "日化产品制造",
								"level": 1,
								"parentId": 142,
								"sort": 16,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 159,
								"name": "纺织业/服饰产品加工制造",
								"level": 1,
								"parentId": 142,
								"sort": 17,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 160,
								"name": "农副产品加工制造",
								"level": 1,
								"parentId": 142,
								"sort": 18,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 161,
								"name": "燃料资源加工制造",
								"level": 1,
								"parentId": 142,
								"sort": 19,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 162,
								"name": "橡胶和塑料制品",
								"level": 1,
								"parentId": 142,
								"sort": 20,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 163,
								"name": "文体/办公设备制造",
								"level": 1,
								"parentId": 142,
								"sort": 21,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 164,
								"name": "家具制造",
								"level": 1,
								"parentId": 142,
								"sort": 22,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 165,
								"name": "印刷/包装/造纸",
								"level": 1,
								"parentId": 142,
								"sort": 23,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 166,
								"name": "工业自动化",
								"level": 1,
								"parentId": 142,
								"sort": 24,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 167,
						"name": "广告/传媒/文化/体育",
						"level": 0,
						"parentId": 0,
						"sort": 10,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 168,
								"name": "广告/营销",
								"level": 1,
								"parentId": 167,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 169,
								"name": "广播/影视",
								"level": 1,
								"parentId": 167,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 170,
								"name": "会议/展览",
								"level": 1,
								"parentId": 167,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 171,
								"name": "文化艺术/娱乐",
								"level": 1,
								"parentId": 167,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 172,
								"name": "体育",
								"level": 1,
								"parentId": 167,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 173,
								"name": "新闻/出版",
								"level": 1,
								"parentId": 167,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 174,
						"name": "教育培训/科研",
						"level": 0,
						"parentId": 0,
						"sort": 11,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 175,
								"name": "培训/辅导服务",
								"level": 1,
								"parentId": 174,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 176,
								"name": "学校/学历教育",
								"level": 1,
								"parentId": 174,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 177,
								"name": "学术/科研",
								"level": 1,
								"parentId": 174,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 178,
								"name": "科学技术推广",
								"level": 1,
								"parentId": 174,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 179,
								"name": "其他教育培训",
								"level": 1,
								"parentId": 174,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 180,
						"name": "汽车",
						"level": 0,
						"parentId": 0,
						"sort": 12,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 181,
								"name": "汽车研发/制造",
								"level": 1,
								"parentId": 180,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 182,
								"name": "汽车零部件",
								"level": 1,
								"parentId": 180,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 183,
								"name": "4S店/后市场",
								"level": 1,
								"parentId": 180,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 184,
								"name": "新能源汽车",
								"level": 1,
								"parentId": 180,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 185,
								"name": "汽车智能网联",
								"level": 1,
								"parentId": 180,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 186,
								"name": "汽车经销商",
								"level": 1,
								"parentId": 180,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 187,
								"name": "汽车后市场",
								"level": 1,
								"parentId": 180,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 188,
								"name": "摩托车/自行车制造",
								"level": 1,
								"parentId": 180,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 189,
						"name": "房地产/建筑",
						"level": 0,
						"parentId": 0,
						"sort": 13,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 190,
								"name": "房地产开发经营",
								"level": 1,
								"parentId": 189,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 191,
								"name": "工程施工",
								"level": 1,
								"parentId": 189,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 192,
								"name": "建筑设计",
								"level": 1,
								"parentId": 189,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 193,
								"name": "装修装饰",
								"level": 1,
								"parentId": 189,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 194,
								"name": "建筑材料",
								"level": 1,
								"parentId": 189,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 195,
								"name": "房地产中介/租赁",
								"level": 1,
								"parentId": 189,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 196,
								"name": "物业管理",
								"level": 1,
								"parentId": 189,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 197,
								"name": "房屋建筑工程",
								"level": 1,
								"parentId": 189,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 198,
								"name": "土木工程",
								"level": 1,
								"parentId": 189,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 199,
								"name": "机电工程",
								"level": 1,
								"parentId": 189,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 200,
								"name": "建筑工程咨询服务",
								"level": 1,
								"parentId": 189,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 201,
								"name": "土地与公共设施管理",
								"level": 1,
								"parentId": 189,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 202,
						"name": "交通运输/物流",
						"level": 0,
						"parentId": 0,
						"sort": 14,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 203,
								"name": "交通/运输",
								"level": 1,
								"parentId": 202,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 204,
								"name": "物流/仓储",
								"level": 1,
								"parentId": 202,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 205,
								"name": "即时配送",
								"level": 1,
								"parentId": 202,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 206,
								"name": "快递",
								"level": 1,
								"parentId": 202,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 207,
								"name": "公路物流",
								"level": 1,
								"parentId": 202,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 208,
								"name": "同城货运",
								"level": 1,
								"parentId": 202,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 209,
								"name": "跨境物流",
								"level": 1,
								"parentId": 202,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 210,
								"name": "装卸搬运和仓储业",
								"level": 1,
								"parentId": 202,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 211,
								"name": "客运服务",
								"level": 1,
								"parentId": 202,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 212,
								"name": "港口/铁路/公路/机场",
								"level": 1,
								"parentId": 202,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 213,
						"name": "能源/化工/环保",
						"level": 0,
						"parentId": 0,
						"sort": 15,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 214,
								"name": "石油/石化",
								"level": 1,
								"parentId": 213,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 215,
								"name": "化工",
								"level": 1,
								"parentId": 213,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 216,
								"name": "矿产/地质",
								"level": 1,
								"parentId": 213,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 217,
								"name": "采掘/冶炼",
								"level": 1,
								"parentId": 213,
								"sort": 4,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 218,
								"name": "电力/热力/燃气/水利",
								"level": 1,
								"parentId": 213,
								"sort": 5,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 219,
								"name": "新能源",
								"level": 1,
								"parentId": 213,
								"sort": 6,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 220,
								"name": "环保",
								"level": 1,
								"parentId": 213,
								"sort": 7,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 221,
								"name": "光伏",
								"level": 1,
								"parentId": 213,
								"sort": 8,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 222,
								"name": "储能",
								"level": 1,
								"parentId": 213,
								"sort": 9,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 223,
								"name": "动力电池",
								"level": 1,
								"parentId": 213,
								"sort": 10,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 224,
								"name": "风电",
								"level": 1,
								"parentId": 213,
								"sort": 11,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 225,
								"name": "其他新能源",
								"level": 1,
								"parentId": 213,
								"sort": 12,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					},
					{
						"id": 226,
						"name": "农/林/牧/渔",
						"level": 0,
						"parentId": 0,
						"sort": 16,
						"status": "00",
						"isDisabled": true,
						"children": [{
							"id": 227,
							"name": "农/林/牧/渔",
							"level": 1,
							"parentId": 226,
							"sort": 1,
							"status": "00",
							"isDisabled": false,
							"children": []
						}]
					},
					{
						"id": 228,
						"name": "政府/非盈利机构",
						"level": 0,
						"parentId": 0,
						"sort": 17,
						"status": "00",
						"isDisabled": true,
						"children": [{
								"id": 229,
								"name": "政府/公共事业",
								"level": 1,
								"parentId": 228,
								"sort": 1,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 230,
								"name": "社团/组织/社会保障",
								"level": 1,
								"parentId": 228,
								"sort": 2,
								"status": "00",
								"isDisabled": false,
								"children": []
							},
							{
								"id": 231,
								"name": "养老/孤儿/看护",
								"level": 1,
								"parentId": 228,
								"sort": 3,
								"status": "00",
								"isDisabled": false,
								"children": []
							}
						]
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			handOpen() {
				this.$refs.child.open()
			},
			onChange(e) {
				console.log(e)
				this.list = e
				this.$refs.child.close()
			}
		}
	}
</script>

<style>

</style>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/900922.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

GitLab+Jenkins 实现 Webhook 自动化触发构建

在持续集成和持续部署&#xff08;CI/CD&#xff09;过程中&#xff0c;如何实现代码提交后自动触发构建&#xff1f;今天&#xff0c;我们将通过GitLab与Jenkins的集成&#xff0c;利用Webhook实现自动化触发构建&#xff0c;为你的开发流程注入高效能量&#xff01; 在每次代…

从零开始:AI制作PPT工具大比拼

现在真的万物皆可AI了&#xff0c;甚至是令人头疼的PPT&#xff0c;也可以直接用AI来搞定了。作为一个PPT新手&#xff0c;我最近对AI制作PPT这个话题产生了浓厚的兴趣。我决定亲自试一试市面上几款热门的AI制作PPT工具&#xff1a;笔灵AIPPT、轻竹PPT、博思白板AIPPT和KimiAI。…

GPT-4o 和 GPT-4 Turbo 模型之间的对比

GPT-4o 和 GPT-4 Turbo 之间的对比 备注 要弄 AI &#xff0c;不同模型之间的对比就比较重要。 GPT-4o 是 GPT-4 Turbo 的升级版本&#xff0c;能够提供比 GPT-4 Turbo 更多的内容和信息&#xff0c;但成功相对来说更高一些。 第三方引用 在 2024 年 5 月 13 日&#xff0…

kaggle在线训练深度学习模型

kaggle https://www.kaggle.com/ code 通过jupyter notebook上传代码&#xff0c;执行训练 dataset 支持手动上传本地资源文件到input /kaggle/input&#xff0c;dataset通过input访问&#xff0c;input目录是只读的 /kaggle/working&#xff0c;保存文件到working&#…

多厂商的实现不同vlan间通信

Cisco单臂路由 Cisco路由器配置 -交换机配置 -pc配置 华三的单臂路由 -路由器配置 -华三的接口默认是打开的 -pc配置及ping的结果 -注意不要忘记配置默认网关 Cisco-SVI -交换机的配置 -创建vlan -> 设置物理接口对应的Acess或Trunk -> 进入vlan接口&#xff0c;打开接…

ctfshow-web入门-web172

//拼接sql语句查找指定ID用户 $sql "select username,password from ctfshow_user2 where username !flag and id ".$_GET[id]." limit 1;"; 联合查询 该题目与上一个题目不是同一个类型&#xff0c;该题目需要进行sql联合查询。 第一步&#xff1a;确…

微信小程序中关闭默认的 `navigationBar`,并使用自定义的 `nav-bar` 组件

要在微信小程序中关闭默认的 navigationBar&#xff0c;并使用自定义的 nav-bar 组件&#xff0c;你可以按照以下步骤操作&#xff1a; 1. 关闭默认的 navigationBar 在你的页面的配置文件 *.json 中设置 navigationBar 为 false。你需要在页面的 JSON 配置文件中添加以下代码…

Echarts_柱状图属性汇总

目录 1、基础 柱状图属性 2、常用 柱状图属性 3、双Y轴双柱 柱状图属性 4、渐变圆角 柱状图属性 5、横向渐变圆角 柱状图属性 6、嵌套圆角 柱状图属性 7、堆叠 柱状图属性 1、基础 柱状图属性 var myChart echarts.init(document.getElementById(charts)); var option …

二叉树的基本概念及运用

二叉树的概念&#xff1a;一棵二叉树是结点的一个有限集合&#xff0c;该集合&#xff1a; 1.或者为空 2.或者是由一个根节点加上两棵别称为为左子树和右子树的二叉树组成。 2.2&#xff1a; 两种特殊的二叉树&#xff1a; 1.满二叉树&#xff1a;一课二叉树&#xff0c;如…

Z-BlogPHP显示错误Undefined array key 0 (set_error_handler)的解决办法

今天打开博客的时候&#xff0c;意外发现页面&#xff0c;打开均显示错误&#xff1a;Undefined array key 0 (set_error_handler)。 博客程序采用的是Z-BlogPHP。百度了一圈没有找到解决办法&#xff0c;在官方论坛里也没找到解决办法。 于是开始自己排查原因。我服务器采用…

问:MySQL表过大,你有哪些优化实践?

当MySQL单表记录数过大时&#xff0c;数据库的CRUD&#xff08;创建、读取、更新、删除&#xff09;性能会明显下降。为了提升性能&#xff0c;我们需要采取一些优化措施。本文将详细介绍几种常见的优化方案。 1. 限定数据的范围 描述 务必禁止不带任何限制数据范围条件的查…

新品发布:Manus Metagloves Pro虚拟现实手套

Manus 全新发布的 Metagloves Pro量子追踪手套能够支持您捕捉手部的每一个细节动作&#xff0c;您的手指捕捉将不再有任何限制。Manus Metagloves Pro可帮助您节省在制作动画时的宝贵时间&#xff0c;提供更加真实的手部动作表现。 Manus Metagloves Pro支持快速设置&#xff0…

C++从入门到起飞之——红黑树 全方位剖析!

&#x1f308;个人主页&#xff1a;秋风起&#xff0c;再归来~&#x1f525;系列专栏&#xff1a;C从入门到起飞 &#x1f516;克心守己&#xff0c;律己则安 目录 1. 红⿊树的概念 2. 红⿊树的实现 2.1 构建整体框架 2.2 红黑树的插入 2.3 红黑树的验证 2.4 红黑树…

解决JAVA使用@JsonProperty序列化出现字段重复问题(大写开头的字段重复序列化)

文章目录 引言I 解决方案方案1:使用JsonAutoDetect注解方案2:手动编写get方法,JsonProperty注解加到方法上。方案3:首字母改成小写的II 知识扩展:对象默认是怎样被序列化?引言 需求: JSON序列化时,使用@JsonProperty注解,将字段名序列化为首字母大写,兼容前端和第三方…

万字图文实战:从0到1构建 UniApp + Vue3 + TypeScript 移动端跨平台开源脚手架

&#x1f680; 作者主页&#xff1a; 有来技术 &#x1f525; 开源项目&#xff1a; youlai-mall &#x1f343; vue3-element-admin &#x1f343; youlai-boot &#x1f343; vue-uniapp-template &#x1f33a; 仓库主页&#xff1a; Gitee &#x1f4ab; Github &#x1f…

使用 NumPy 和 Matplotlib 实现交互式数据可视化

使用 NumPy 和 Matplotlib 实现交互式数据可视化 在数据分析中&#xff0c;交互式可视化可以更好地帮助我们探索和理解数据。虽然 Matplotlib 是静态绘图库&#xff0c;但结合一些技巧和 Matplotlib 的交互功能&#xff08;widgets、event handlers&#xff09;&#xff0c;我…

Git创建和拉取项目分支的应用以及Gitlab太占内存,如何配置降低gitlab内存占用进行优化

一、Git创建和拉取项目分支的应用 1. 关于git创建分支&#xff0c; git创建分支&#xff0c;可以通过git管理平台可视化操作创建&#xff0c;也可以通过git bash命令行下创建&#xff1a; A. 是通过git管理平台创建&#xff1a; 进入gitlab管理平台具体的目标项目中&#xff…

mac电脑设置chrome浏览器语言切换为日语英语等不生效问题

在chrome中设置了语言&#xff0c;并且已经置顶了&#xff0c;但是不生效&#xff0c;在windows上直接有设置当前语言为chrome显示语言&#xff0c;但是mac上没有。 解决办法 在系统里面有一个单独给chrome设置语言的&#xff1a; 单独给它设定成指定的语言&#xff0c;然后重…

Find My平板键盘|苹果Find My技术与键盘结合,智能防丢,全球定位

‌平板键盘的主要用途包括提高输入效率、支持轻量化办公、提供丰富的文本编辑功能以及快捷操作。相比于直接在屏幕上打字&#xff0c;使用键盘可以显著提升输入速度&#xff0c;减少输入错误&#xff0c;特别是对于需要大量文字输入的场景&#xff0c;如写作、记录笔记等‌。平…

如何在算家云搭建GPT-SOVITS(语音转换)

一、模型介绍 GPT-SOVITS是一款强大的小样本语音转换和文本转语音 WebUI工具。它集成了声音伴奏分离、自动训练集分割、中文ASR和文本标注等辅助工具。 具有以下特征&#xff1a; 零样本 TTS&#xff1a; 输入 5 秒的声音样本并体验即时文本到语音的转换。少量样本 TTS&…