|
|
|
|
@ -4,14 +4,15 @@
@@ -4,14 +4,15 @@
|
|
|
|
|
v-model="isShowDrawer" |
|
|
|
|
:title="title" |
|
|
|
|
direction="rtl" |
|
|
|
|
size="90%" |
|
|
|
|
size="100%" |
|
|
|
|
modal-class="model-dev-opn" |
|
|
|
|
:before-close="handleBeforeClose" |
|
|
|
|
@opened="onDrawerOpened"> |
|
|
|
|
<main class="wh-full flex"> |
|
|
|
|
|
|
|
|
|
<EdfsWrap title="点位选择" |
|
|
|
|
class="p-r-4 h-full w-340 border-r-1 border-solid border-r-#e4e7ed"> |
|
|
|
|
isCollapse :collapsed="collapsed" @collapse="onCollapse" |
|
|
|
|
:style="{width: `${collapsed ? 0 : 340}px`}"> |
|
|
|
|
<el-select |
|
|
|
|
v-if="currentGroup?.customNode" |
|
|
|
|
v-model="selectValue" |
|
|
|
|
@ -109,6 +110,7 @@ async function open(device: IDevice & {
@@ -109,6 +110,7 @@ async function open(device: IDevice & {
|
|
|
|
|
}, group: IPointGroupOV) { |
|
|
|
|
curDevice.value = device |
|
|
|
|
currentGroup.value = group |
|
|
|
|
onCollapse(false) |
|
|
|
|
if ( |
|
|
|
|
currentGroup.value.customNode && |
|
|
|
|
currentGroup.value.brother && |
|
|
|
|
@ -215,6 +217,7 @@ async function loadChardData() {
@@ -215,6 +217,7 @@ async function loadChardData() {
|
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
clearData() |
|
|
|
|
onCollapse(true) |
|
|
|
|
const limit = chartLimit.value |
|
|
|
|
const offset = chartOffset.value |
|
|
|
|
const options: any = { |
|
|
|
|
@ -389,6 +392,10 @@ const disabledDate = (time: any) => {
@@ -389,6 +392,10 @@ const disabledDate = (time: any) => {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
const getBeforeMonth = dayjs().startOf('month').subtract(1, 'month').startOf('month').toDate() |
|
|
|
|
const collapsed = ref(false) |
|
|
|
|
function onCollapse(value?:boolean) { |
|
|
|
|
collapsed.value = value ?? !collapsed.value |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
defineExpose({ |
|
|
|
|
open, |
|
|
|
|
|