|
|
@ -5,10 +5,9 @@ |
|
|
|
功能概述:原生的折现属性面板 添加一个场景选择器功能,用于决定防区添加到哪个区域(场景)下 |
|
|
|
--> |
|
|
|
<template> |
|
|
|
<ApiTreeSelect :api="sceneIdTree" v-model:value="sceneId" placeholder="请选择所属区域" |
|
|
|
:disabled="disabled" |
|
|
|
@change="(value: any) => handleChange(value)" |
|
|
|
> |
|
|
|
<ApiTreeSelect :api="sceneIdTree" v-model:value="sceneId" placeholder="请选择所属区域" :disabled="disabled" |
|
|
|
:allowClear="false" |
|
|
|
@change="(value: any) => handleChange(value)"> |
|
|
|
</ApiTreeSelect> |
|
|
|
</template> |
|
|
|
|
|
|
@ -43,7 +42,7 @@ onMounted(()=>{ |
|
|
|
// console.log("currentModelaaaaaa",props.currentModel); |
|
|
|
// console.log("currentModelaaaaaa",props); |
|
|
|
// console.log("proxy",proxy); |
|
|
|
sceneId.value = props.currentModel.sceneId? props.currentModel.sceneId: ""; |
|
|
|
sceneId.value = props.currentModel.sceneId ? props.currentModel.sceneId : null; |
|
|
|
}) |
|
|
|
function handleChange(params: type) { |
|
|
|
// console.log("params",params); |
|
|
@ -66,9 +65,13 @@ const sceneIdTree = () => defHttp.get<Recordable[]> |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="less"> |
|
|
|
:deep(.ant-select) { |
|
|
|
width: 180px !important; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-select-selector) { |
|
|
|
background-color: rgba(0,0,0,.5) !important |
|
|
|
background-color: rgba(0, 0, 0, .5) !important; |
|
|
|
width: 180px !important; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-select-selection-placeholder) { |
|
|
@ -96,5 +99,4 @@ const sceneIdTree = () => defHttp.get<Recordable[]> |
|
|
|
:deep(.ant-select-selection-item) { |
|
|
|
color: #ddd !important; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |