cxc-szcx-uniapp/uni_modules/trq-depart-select/readme.md
2025-01-13 16:03:24 +08:00

527 B
Raw Blame History

trq-depart-select

属性 returnCodeOrID 默认值 orgCode 组件返回单位的orgCode 不设置属性或设置为其他,组件返回 单位ID

事件change 选择内容发生变化时发生通过emit 返回给父组件 选择单位的ID或code

由于uni-data-picker 无法选择任意节点数据,通过关闭组件事件返回当前选择的节点数据。

const onpopupclosed = ((e) => {
	selectDepartID.value = tempSelectDepartID.value
	$emit('change', selectDepartID.value)
})